景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
812 B

6 months ago
  1. <template>
  2. <scroll-view
  3. scroll-y="true"
  4. :style="{height: height}"
  5. @scrolltolower="$emit('loadMoreData')">
  6. <uv-empty
  7. v-if="!list || !list.length"
  8. :text="emptyText"
  9. textSize="30rpx"
  10. iconSize="200rpx"
  11. :icon="emptyImage"></uv-empty>
  12. <template
  13. v-else
  14. v-for="(item, index) in list">
  15. <slot
  16. :index="index"
  17. :item="item">
  18. <view class="">
  19. 未定义内容
  20. </view>
  21. </slot>
  22. </template>
  23. </scroll-view>
  24. </template>
  25. <script>
  26. export default {
  27. props : {
  28. height : {
  29. default : 'auto'
  30. },
  31. list : {
  32. default : [],
  33. },
  34. emptyImage : {
  35. default : 'list'
  36. },
  37. emptyText : {
  38. default : '空空如也!'
  39. },
  40. textColor : {
  41. default : '#c0c4cc'
  42. }
  43. },
  44. data() {
  45. return {
  46. }
  47. },
  48. methods: {
  49. }
  50. }
  51. </script>
  52. <style>
  53. </style>