z-paging-cell.vue 812 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- z-paging -->
  2. <!-- github地址:https://github.com/SmileZXLee/uni-z-paging -->
  3. <!-- dcloud地址:https://ext.dcloud.net.cn/plugin?id=3935 -->
  4. <!-- 反馈QQ群:790460711 -->
  5. <!-- z-paging-cell,用于在nvue中使用cell包裹,vue中使用view包裹 -->
  6. <template>
  7. <!-- #ifdef APP-NVUE -->
  8. <cell :style="[cellStyle]" @touchstart="onTouchstart">
  9. <slot />
  10. </cell>
  11. <!-- #endif -->
  12. <!-- #ifndef APP-NVUE -->
  13. <view :style="[cellStyle]" @touchstart="onTouchstart">
  14. <slot />
  15. </view>
  16. <!-- #endif -->
  17. </template>
  18. <script>
  19. export default {
  20. name: "z-paging-cell",
  21. props: {
  22. //cellStyle
  23. cellStyle: {
  24. type: Object,
  25. default: function() {
  26. return {}
  27. }
  28. }
  29. },
  30. methods: {
  31. onTouchstart(e) {
  32. this.$emit('touchstart', e);
  33. }
  34. }
  35. }
  36. </script>