empty.vue 564 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="">
  3. <view class="empty-page" >
  4. <image src="/static/common/empty.png" style=""></image>
  5. <view>{{text || '暂无数据'}}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: '',
  12. props: ['text'],
  13. data() {
  14. return {
  15. };
  16. }
  17. };
  18. </script>
  19. <style lang="scss" scoped>
  20. .empty-page {
  21. position: absolute;
  22. left: 50%;
  23. top: 35%;
  24. transform: translate(-50%, -50%);
  25. image {
  26. width: 200rpx;
  27. height: 200rpx;
  28. }
  29. view {
  30. text-align: center;
  31. color: #b3b7be;
  32. font-size: 28rpx;
  33. }
  34. }
  35. </style>