index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="empty">
  3. <view class="empty-content">
  4. <text class="iconfont iconnodata-search" :class="'text-'+themeColor.name"></text>
  5. <text class="empty-content-info">{{ info }}</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. components: {
  12. },
  13. props: {
  14. src: {
  15. type: String,
  16. default: 'empty'
  17. },
  18. isRecommendShow: {
  19. type: Boolean,
  20. default: true
  21. },
  22. info: {
  23. type: String,
  24. default: ''
  25. },
  26. bottom: {
  27. type: Number,
  28. default: 0
  29. },
  30. list: {
  31. type: Array,
  32. default() {
  33. return [];
  34. }
  35. }
  36. },
  37. data() {
  38. return {};
  39. },
  40. computed: {}
  41. };
  42. </script>
  43. <style lang="scss">
  44. .empty {
  45. background-color: $color-white;
  46. .empty-content {
  47. width: 100%;
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. flex-direction: column;
  52. padding: 20upx 0 80upx;
  53. .empty-content-info {
  54. font-size: $font-base - 2upx;
  55. }
  56. .iconfont {
  57. font-size: 240upx;
  58. }
  59. &-image {
  60. width: 200upx;
  61. height: 200upx;
  62. }
  63. }
  64. .emptyOnly {
  65. position: fixed;
  66. left: 0;
  67. top: 0;
  68. right: 0;
  69. bottom: 0;
  70. }
  71. }
  72. </style>