NoMore.vue 635 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view v-if="show" class="no-more-content">
  3. <view class="line" />
  4. <view class="text">
  5. <slot>没有更多了</slot>
  6. </view>
  7. <view class="line" />
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'NoMore',
  13. props: {
  14. show: {
  15. type: Boolean,
  16. default: false
  17. }
  18. },
  19. data() {
  20. return {}
  21. },
  22. methods: {}
  23. }
  24. </script>
  25. <style
  26. lang="scss"
  27. scoped
  28. >
  29. .no-more-content {
  30. margin-top: 35rpx;
  31. width: 100%;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. .line {
  36. width: 20vw;
  37. height: 2rpx;
  38. background-color: #808080;
  39. }
  40. .text {
  41. color: #808080;
  42. margin: 0 50rpx;
  43. }
  44. }
  45. </style>