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