myEmpty.vue 596 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view class="empty-box">
  3. <image class="empty-icon" src="/static/images/pages_watch/images/icon_img_empty.png" mode="aspectFill"></image>
  4. <text>{{text}}</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "myEmpty",
  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-box {
  24. display: flex;
  25. flex-direction: column;
  26. align-items: center;
  27. padding: 100rpx 0;
  28. color: #c0c4cc;
  29. font-size: 14px;
  30. }
  31. .empty-icon {
  32. width: 160px;
  33. height: 160px;
  34. }
  35. </style>