index.vue 647 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="page">
  3. <template v-if="loading">
  4. <u-loading-icon text="正在加载中..." textSize="26"></u-loading-icon>
  5. </template>
  6. <template v-else>
  7. <p>已经到底啦~</p>
  8. </template>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props:{
  14. loading:{
  15. typeof: Boolean,
  16. default: false
  17. }
  18. },
  19. data(){
  20. return {
  21. }
  22. },
  23. methods:{
  24. }
  25. }
  26. </script>
  27. <style scoped lang="less">
  28. .page{
  29. width: 100%;
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. margin-top: 30rpx;
  34. p{
  35. font-size: 26rpx;
  36. color: lightgray;
  37. }
  38. }
  39. </style>