emptyPage.vue 558 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="empty-box">
  3. <image src="../static/images/empty-box.png"></image>
  4. <view class="txt">{{title}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default{
  9. props: {
  10. title: {
  11. type: String,
  12. default: '暂无记录',
  13. },
  14. },
  15. }
  16. </script>
  17. <style lang="scss">
  18. .empty-box{
  19. display: flex;
  20. flex-direction: column;
  21. justify-content: center;
  22. align-items: center;
  23. margin-top: 200rpx;
  24. padding-bottom: 60rpx;
  25. image{
  26. width: 414rpx;
  27. height: 240rpx;
  28. }
  29. .txt{
  30. font-size: 26rpx;
  31. color: #999;
  32. }
  33. }
  34. </style>