custom-reach-bottom.vue 729 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. height: 88rpx;
  17. background: #FFFFFF;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. color: #000000;
  22. font-size: 24rpx;
  23. .loading {
  24. animation: bottom-loading 1s infinite linear;
  25. animation-fill-mode: forwards;
  26. }
  27. text {
  28. margin-left: 16rpx;
  29. }
  30. }
  31. @keyframes bottom-loading {
  32. 0% {
  33. transform: rotateZ(0deg);
  34. }
  35. 100% {
  36. transform: rotateZ(360deg);
  37. }
  38. }
  39. </style>