JPcontent.vue 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="contentBody" >
  3. <view v-show="status==0" style="display: flex;justify-content: center;margin: 40px 0;" >
  4. <view class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
  5. <i class="uni-icon_toast uni-loading"
  6. style="
  7. width: 80rpx;
  8. height: 80rpx;
  9. "
  10. ></i><p class="uni-toast__content"> </p>加载中...</view>
  11. </view>
  12. <view v-show="status==1">
  13. <view style=" margin-top: 60rpx; margin-bottom: 0rpx;">
  14. <u-empty text="无记录" mode="search"></u-empty>
  15. </view>
  16. </view>
  17. <view v-show="status==2">
  18. <slot ></slot>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. name:"contentBody",
  25. props:{
  26. status: {
  27. type: Number,
  28. default: 0
  29. },
  30. },
  31. data() {
  32. return {
  33. };
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>