custom-reach-bottom.vue 715 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="custom-reach-bottom">
  3. <text v-if="!nomore" class="cuIcon-loading1 loading"></text>
  4. <text>{{ nomore ? '没有更多了' : '加载中' }}</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. nomore: Boolean
  11. }
  12. }
  13. </script>
  14. <style lang="scss" scoped>
  15. .custom-reach-bottom {
  16. @include flex();
  17. height: 88rpx;
  18. font-size: 26rpx;
  19. margin-top: 10rpx;
  20. background: #FFFFFF;
  21. color: $app-main-text-color;
  22. .loading {
  23. animation: bottom-loading 1s infinite linear;
  24. animation-fill-mode: forwards;
  25. }
  26. text {
  27. margin-left: 16rpx;
  28. }
  29. }
  30. @keyframes bottom-loading {
  31. 0% {
  32. transform: rotateZ(0deg);
  33. }
  34. 100% {
  35. transform: rotateZ(360deg);
  36. }
  37. }
  38. </style>