uni-empty-view.vue 620 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="empty">
  3. <image src="/static/images/empty@2x.png" mode=""></image>
  4. <view class="">{{ text }}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name:"uni-empty-view",
  10. props:{
  11. text:{
  12. type:String,
  13. default:'暂无数据'
  14. }
  15. },
  16. data() {
  17. return {
  18. };
  19. }
  20. }
  21. </script>
  22. <style lang="scss" scoped>
  23. .empty {
  24. padding: 50rpx 0;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. flex-direction: column;
  29. image {
  30. width: 440rpx;
  31. height: 401rpx;
  32. margin-bottom: 32rpx;
  33. }
  34. view {
  35. color: #333333;
  36. font-size: 32rpx;
  37. line-height: 1;
  38. }
  39. }
  40. </style>