Loading.vue 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view class="Loads acea-row row-center-wrapper" v-if="loading || !loaded" style="margin-top: 20rpx;">
  3. <template v-if="loading">
  4. <view class="iconfont icon-jiazai loading acea-row row-center-wrapper"></view>
  5. 正在加载中
  6. </template>
  7. <template v-if="!loading">
  8. 上拉加载更多
  9. </template>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. name: "Loading",
  15. props: {
  16. loaded: Boolean,
  17. loading: Boolean
  18. }
  19. };
  20. </script>
  21. <style lang="less">
  22. .Loads {
  23. height: 0.8*100rpx;
  24. font-size: 0.25*100rpx;
  25. color: #000;
  26. }
  27. .Loads .iconfont {
  28. font-size: 0.3*100rpx;
  29. margin-right: 0.1*100rpx;
  30. height: 0.32*100rpx;
  31. line-height: 0.32*100rpx;
  32. }
  33. /*加载动画*/
  34. @keyframes load {
  35. from {
  36. transform: rotate(0deg);
  37. }
  38. to {
  39. transform: rotate(360deg);
  40. }
  41. }
  42. .loadingpic {
  43. animation: load 3s linear 1s infinite;
  44. }
  45. .loading {
  46. animation: load linear 1s infinite;
  47. }
  48. </style>