empty.vue 834 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="hl88-empty-wrap">
  3. <view class="wanl-gray text-center">
  4. <image class="animation-scale-down" :src="src ? $appKit.appstc('/default/' + src + '.png') : $appKit.appstc('/default/default3x.png')"></image>
  5. <view class="text-30">{{ text }}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. /**
  11. * WanlEmpty 缺省页
  12. *
  13. * @property {String} src 图片地址名
  14. * @property {String} text 提示文字
  15. * @example <empty src="" text=""/>
  16. */
  17. export default {
  18. name: 'Empty',
  19. props: {
  20. src: {
  21. type: String,
  22. default: ''
  23. },
  24. text: {
  25. type: String,
  26. default: 'No data'
  27. }
  28. }
  29. };
  30. </script>
  31. <style>
  32. .empty-content {
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. width: 100%;
  37. padding: 200rpx 130rpx;
  38. }
  39. .hl88-empty-wrap image{
  40. width: 320rpx;
  41. height: 320rpx;
  42. }
  43. </style>