@vtj/materials 0.10.6 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/assets/antdv/index.umd.js +2 -2
  2. package/dist/assets/charts/index.umd.js +2 -2
  3. package/dist/assets/element/index.umd.js +2 -2
  4. package/dist/assets/ui/index.umd.js +2 -2
  5. package/dist/assets/uni-h5/index.umd.js +3 -3
  6. package/dist/assets/uni-ui/index.umd.js +3 -3
  7. package/dist/assets/vant/index.umd.js +2 -2
  8. package/dist/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/deps/@vtj/ui/index.umd.js +3 -3
  11. package/dist/deps/@vtj/utils/index.umd.js +20 -20
  12. package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
  13. package/dist/deps/uni-ui/index.umd.js +1 -1
  14. package/dist/deps/uni-ui/style.css +1 -1
  15. package/package.json +7 -7
  16. package/src/uni-h5/components/input.ts +2 -2
  17. package/src/uni-h5/components/scrollView.ts +3 -3
  18. package/src/uni-h5/components/video.ts +1 -1
  19. package/src/uni-ui/components/badge.ts +1 -5
  20. package/src/uni-ui/components/breadcrumb.ts +1 -20
  21. package/src/uni-ui/components/collapse.ts +22 -23
  22. package/src/uni-ui/components/grid.ts +0 -9
  23. package/src/uni-ui/components/group.ts +1 -10
  24. package/src/uni-ui/components/index.ts +4 -4
  25. package/src/uni-ui/components/popup.ts +10 -2
  26. package/src/uni-ui/components/swiperDot.ts +21 -7
  27. package/src/uni-ui/components/table.ts +9 -3
  28. package/src/uni-ui/components/transition.ts +10 -1
  29. package/src/uni-ui/index.ts +19 -44
  30. package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +153 -0
  31. package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +425 -0
  32. package/src/uni-ui/lib/uni-data-picker/keypress.js +45 -0
  33. package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +604 -0
  34. package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +622 -0
  35. package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
  36. package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +335 -0
  37. package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +181 -170
  38. package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +977 -939
  39. package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +1024 -932
  40. package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +15 -17
  41. package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -392
  42. package/src/uni-ui/lib/uni-fav/i18n/en.json +4 -0
  43. package/src/uni-ui/lib/uni-fav/i18n/index.js +8 -0
  44. package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +4 -0
  45. package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +4 -0
  46. package/src/uni-ui/lib/uni-fav/uni-fav.vue +170 -0
  47. package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +280 -0
  48. package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +668 -0
  49. package/src/uni-ui/lib/uni-file-picker/upload-file.vue +325 -0
  50. package/src/uni-ui/lib/uni-file-picker/upload-image.vue +292 -0
  51. package/src/uni-ui/lib/uni-file-picker/utils.js +110 -0
  52. package/src/uni-ui/lib/uni-grid/uni-grid.vue +148 -0
  53. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +152 -128
  54. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +50 -50
  55. package/src/uni-ui/lib/uni-load-more/i18n/en.json +5 -0
  56. package/src/uni-ui/lib/uni-load-more/i18n/index.js +8 -0
  57. package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +5 -0
  58. package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +5 -0
  59. package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +456 -0
  60. package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +484 -0
  61. package/src/uni-ui/lib/uni-popup/uni-popup.vue +4 -4
  62. package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +149 -0
  63. package/src/uni-ui/lib/uni-rate/uni-rate.vue +362 -343
  64. package/src/uni-ui/lib/uni-row/uni-row.vue +193 -0
  65. package/src/uni-ui/lib/uni-search-bar/i18n/en.json +4 -0
  66. package/src/uni-ui/lib/uni-search-bar/i18n/index.js +8 -0
  67. package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +4 -0
  68. package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +4 -0
  69. package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +339 -0
  70. package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +294 -285
  71. package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +8 -9
  72. package/src/uni-ui/lib/uni-th/filter-dropdown.vue +551 -503
  73. package/src/uni-ui/lib/uni-tr/table-checkbox.vue +165 -163
  74. package/src/uni-ui/lib/uni-tr/uni-tr.vue +6 -6
  75. package/src/uni-ui/lib/uni-transition/createAnimation.js +131 -0
  76. package/src/uni-ui/lib/uni-transition/uni-transition.vue +310 -0
  77. package/src/version.ts +2 -2
@@ -1,302 +1,311 @@
1
- let bindIngXMixins = {}
1
+ let bindIngXMixins = {};
2
2
 
3
3
  // #ifdef APP-NVUE
4
- const BindingX = uni.requireNativePlugin('bindingx');
5
- const dom = uni.requireNativePlugin('dom');
6
- const animation = uni.requireNativePlugin('animation');
4
+ // const BindingX = uni.requireNativePlugin('bindingx');
5
+ // const dom = uni.requireNativePlugin('dom');
6
+ // const animation = uni.requireNativePlugin('animation');
7
7
 
8
8
  bindIngXMixins = {
9
- data() {
10
- return {}
11
- },
9
+ data() {
10
+ return {};
11
+ },
12
12
 
13
- watch: {
14
- show(newVal) {
15
- if (this.autoClose) return
16
- if (this.stop) return
17
- this.stop = true
18
- if (newVal) {
19
- this.open(newVal)
20
- } else {
21
- this.close()
22
- }
23
- },
24
- leftOptions() {
25
- this.getSelectorQuery()
26
- this.init()
27
- },
28
- rightOptions(newVal) {
29
- this.init()
30
- }
31
- },
32
- created() {
33
- this.swipeaction = this.getSwipeAction()
34
- if (this.swipeaction && Array.isArray(this.swipeaction.children)) {
35
- this.swipeaction.children.push(this)
36
- }
37
- },
38
- mounted() {
39
- this.box = this.getEl(this.$refs['selector-box--hock'])
40
- this.selector = this.getEl(this.$refs['selector-content--hock']);
41
- this.leftButton = this.getEl(this.$refs['selector-left-button--hock']);
42
- this.rightButton = this.getEl(this.$refs['selector-right-button--hock']);
43
- this.init()
44
- },
45
- // beforeDestroy() {
46
- // this.swipeaction.children.forEach((item, index) => {
47
- // if (item === this) {
48
- // this.swipeaction.children.splice(index, 1)
49
- // }
50
- // })
51
- // },
52
- methods: {
53
- init() {
54
- this.$nextTick(() => {
55
- this.x = 0
56
- this.button = {
57
- show: false
58
- }
59
- setTimeout(() => {
60
- this.getSelectorQuery()
61
- }, 200)
62
- })
63
- },
64
- onClick(index, item, position) {
65
- this.$emit('click', {
66
- content: item,
67
- index,
68
- position
69
- })
70
- },
71
- touchstart(e) {
72
- // fix by mehaotian 禁止滑动
73
- if (this.disabled) return
74
- // 每次只触发一次,避免多次监听造成闪烁
75
- if (this.stop) return
76
- this.stop = true
77
- if (this.autoClose && this.swipeaction) {
78
- this.swipeaction.closeOther(this)
79
- }
13
+ watch: {
14
+ show(newVal) {
15
+ if (this.autoClose) return;
16
+ if (this.stop) return;
17
+ this.stop = true;
18
+ if (newVal) {
19
+ this.open(newVal);
20
+ } else {
21
+ this.close();
22
+ }
23
+ },
24
+ leftOptions() {
25
+ this.getSelectorQuery();
26
+ this.init();
27
+ },
28
+ rightOptions(newVal) {
29
+ this.init();
30
+ }
31
+ },
32
+ created() {
33
+ this.swipeaction = this.getSwipeAction();
34
+ if (this.swipeaction && Array.isArray(this.swipeaction.children)) {
35
+ this.swipeaction.children.push(this);
36
+ }
37
+ },
38
+ mounted() {
39
+ console.log('this', this);
40
+ // this.box = this.getEl(this.$refs['selector-box--hock']);
41
+ // this.selector = this.getEl(this.$refs['selector-content--hock']);
42
+ // this.leftButton = this.getEl(this.$refs['selector-left-button--hock']);
43
+ // this.rightButton = this.getEl(this.$refs['selector-right-button--hock']);
44
+ this.init();
45
+ },
46
+ beforeDestroy() {
47
+ this.swipeaction.children.forEach((item, index) => {
48
+ if (item === this) {
49
+ this.swipeaction.children.splice(index, 1);
50
+ }
51
+ });
52
+ },
53
+ methods: {
54
+ init() {
55
+ this.$nextTick(() => {
56
+ this.x = 0;
57
+ this.button = {
58
+ show: false
59
+ };
60
+ setTimeout(() => {
61
+ this.getSelectorQuery();
62
+ }, 200);
63
+ });
64
+ },
65
+ onClick(index, item, position) {
66
+ this.$emit('click', {
67
+ content: item,
68
+ index,
69
+ position
70
+ });
71
+ },
72
+ touchstart(e) {
73
+ // fix by mehaotian 禁止滑动
74
+ if (this.disabled) return;
75
+ // 每次只触发一次,避免多次监听造成闪烁
76
+ if (this.stop) return;
77
+ this.stop = true;
78
+ if (this.autoClose && this.swipeaction) {
79
+ this.swipeaction.closeOther(this);
80
+ }
80
81
 
81
- const leftWidth = this.button.left.width
82
- const rightWidth = this.button.right.width
83
- let expression = this.range(this.x, -rightWidth, leftWidth)
84
- let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0)
85
- let rightExpression = this.range(this.x + rightWidth, 0, rightWidth)
82
+ const leftWidth = this.button.left.width;
83
+ const rightWidth = this.button.right.width;
84
+ let expression = this.range(this.x, -rightWidth, leftWidth);
85
+ let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0);
86
+ let rightExpression = this.range(this.x + rightWidth, 0, rightWidth);
86
87
 
87
- this.eventpan = BindingX.bind({
88
- anchor: this.box,
89
- eventType: 'pan',
90
- props: [{
91
- element: this.selector,
92
- property: 'transform.translateX',
93
- expression
94
- }, {
95
- element: this.leftButton,
96
- property: 'transform.translateX',
97
- expression: leftExpression
98
- }, {
99
- element: this.rightButton,
100
- property: 'transform.translateX',
101
- expression: rightExpression
102
- }, ]
103
- }, (e) => {
104
- // nope
105
- if (e.state === 'end') {
106
- this.x = e.deltaX + this.x;
107
- this.isclick = true
108
- this.bindTiming(e.deltaX)
109
- }
110
- });
111
- },
112
- touchend(e) {
113
- if (this.isopen !== 'none' && !this.isclick) {
114
- this.open('none')
115
- }
116
- },
117
- bindTiming(x) {
118
- const left = this.x
119
- const leftWidth = this.button.left.width
120
- const rightWidth = this.button.right.width
121
- const threshold = this.threshold
122
- if (!this.isopen || this.isopen === 'none') {
123
- if (left > threshold) {
124
- this.open('left')
125
- } else if (left < -threshold) {
126
- this.open('right')
127
- } else {
128
- this.open('none')
129
- }
130
- } else {
131
- if ((x > -leftWidth && x < 0) || x > rightWidth) {
132
- if ((x > -threshold && x < 0) || (x - rightWidth > threshold)) {
133
- this.open('left')
134
- } else {
135
- this.open('none')
136
- }
137
- } else {
138
- if ((x < threshold && x > 0) || (x + leftWidth < -threshold)) {
139
- this.open('right')
140
- } else {
141
- this.open('none')
142
- }
143
- }
144
- }
145
- },
88
+ this.eventpan = BindingX.bind(
89
+ {
90
+ anchor: this.box,
91
+ eventType: 'pan',
92
+ props: [
93
+ {
94
+ element: this.selector,
95
+ property: 'transform.translateX',
96
+ expression
97
+ },
98
+ {
99
+ element: this.leftButton,
100
+ property: 'transform.translateX',
101
+ expression: leftExpression
102
+ },
103
+ {
104
+ element: this.rightButton,
105
+ property: 'transform.translateX',
106
+ expression: rightExpression
107
+ }
108
+ ]
109
+ },
110
+ (e) => {
111
+ // nope
112
+ if (e.state === 'end') {
113
+ this.x = e.deltaX + this.x;
114
+ this.isclick = true;
115
+ this.bindTiming(e.deltaX);
116
+ }
117
+ }
118
+ );
119
+ },
120
+ touchend(e) {
121
+ if (this.isopen !== 'none' && !this.isclick) {
122
+ this.open('none');
123
+ }
124
+ },
125
+ bindTiming(x) {
126
+ const left = this.x;
127
+ const leftWidth = this.button.left.width;
128
+ const rightWidth = this.button.right.width;
129
+ const threshold = this.threshold;
130
+ if (!this.isopen || this.isopen === 'none') {
131
+ if (left > threshold) {
132
+ this.open('left');
133
+ } else if (left < -threshold) {
134
+ this.open('right');
135
+ } else {
136
+ this.open('none');
137
+ }
138
+ } else {
139
+ if ((x > -leftWidth && x < 0) || x > rightWidth) {
140
+ if ((x > -threshold && x < 0) || x - rightWidth > threshold) {
141
+ this.open('left');
142
+ } else {
143
+ this.open('none');
144
+ }
145
+ } else {
146
+ if ((x < threshold && x > 0) || x + leftWidth < -threshold) {
147
+ this.open('right');
148
+ } else {
149
+ this.open('none');
150
+ }
151
+ }
152
+ }
153
+ },
146
154
 
147
- /**
148
- * 移动范围
149
- * @param {Object} num
150
- * @param {Object} mix
151
- * @param {Object} max
152
- */
153
- range(num, mix, max) {
154
- return `min(max(x+${num}, ${mix}), ${max})`
155
- },
155
+ /**
156
+ * 移动范围
157
+ * @param {Object} num
158
+ * @param {Object} mix
159
+ * @param {Object} max
160
+ */
161
+ range(num, mix, max) {
162
+ return `min(max(x+${num}, ${mix}), ${max})`;
163
+ },
156
164
 
157
- /**
158
- * 开启swipe
159
- */
160
- open(type) {
161
- this.animation(type)
162
- },
165
+ /**
166
+ * 开启swipe
167
+ */
168
+ open(type) {
169
+ this.animation(type);
170
+ },
163
171
 
164
- /**
165
- * 关闭swipe
166
- */
167
- close() {
168
- this.animation('none')
169
- },
172
+ /**
173
+ * 关闭swipe
174
+ */
175
+ close() {
176
+ this.animation('none');
177
+ },
170
178
 
171
- /**
172
- * 开启关闭动画
173
- * @param {Object} type
174
- */
175
- animation(type) {
176
- const time = 300
177
- const leftWidth = this.button.left.width
178
- const rightWidth = this.button.right.width
179
- if (this.eventpan && this.eventpan.token) {
180
- BindingX.unbind({
181
- token: this.eventpan.token,
182
- eventType: 'pan'
183
- })
184
- }
179
+ /**
180
+ * 开启关闭动画
181
+ * @param {Object} type
182
+ */
183
+ animation(type) {
184
+ const time = 300;
185
+ const leftWidth = this.button.left.width;
186
+ const rightWidth = this.button.right.width;
187
+ if (this.eventpan && this.eventpan.token) {
188
+ BindingX.unbind({
189
+ token: this.eventpan.token,
190
+ eventType: 'pan'
191
+ });
192
+ }
185
193
 
186
- switch (type) {
187
- case 'left':
188
- Promise.all([
189
- this.move(this.selector, leftWidth),
190
- this.move(this.leftButton, 0),
191
- this.move(this.rightButton, rightWidth * 2)
192
- ]).then(() => {
193
- this.setEmit(leftWidth, type)
194
- })
195
- break
196
- case 'right':
197
- Promise.all([
198
- this.move(this.selector, -rightWidth),
199
- this.move(this.leftButton, -leftWidth * 2),
200
- this.move(this.rightButton, 0)
201
- ]).then(() => {
202
- this.setEmit(-rightWidth, type)
203
- })
204
- break
205
- default:
206
- Promise.all([
207
- this.move(this.selector, 0),
208
- this.move(this.leftButton, -leftWidth),
209
- this.move(this.rightButton, rightWidth)
210
- ]).then(() => {
211
- this.setEmit(0, type)
212
- })
194
+ switch (type) {
195
+ case 'left':
196
+ Promise.all([
197
+ this.move(this.selector, leftWidth),
198
+ this.move(this.leftButton, 0),
199
+ this.move(this.rightButton, rightWidth * 2)
200
+ ]).then(() => {
201
+ this.setEmit(leftWidth, type);
202
+ });
203
+ break;
204
+ case 'right':
205
+ Promise.all([
206
+ this.move(this.selector, -rightWidth),
207
+ this.move(this.leftButton, -leftWidth * 2),
208
+ this.move(this.rightButton, 0)
209
+ ]).then(() => {
210
+ this.setEmit(-rightWidth, type);
211
+ });
212
+ break;
213
+ default:
214
+ Promise.all([
215
+ this.move(this.selector, 0),
216
+ this.move(this.leftButton, -leftWidth),
217
+ this.move(this.rightButton, rightWidth)
218
+ ]).then(() => {
219
+ this.setEmit(0, type);
220
+ });
221
+ }
222
+ },
223
+ setEmit(x, type) {
224
+ const leftWidth = this.button.left.width;
225
+ const rightWidth = this.button.right.width;
226
+ this.isopen = this.isopen || 'none';
227
+ this.stop = false;
228
+ this.isclick = false;
229
+ // 只有状态不一致才会返回结果
230
+ if (this.isopen !== type && this.x !== x) {
231
+ if (type === 'left' && leftWidth > 0) {
232
+ this.$emit('change', 'left');
233
+ }
234
+ if (type === 'right' && rightWidth > 0) {
235
+ this.$emit('change', 'right');
236
+ }
237
+ if (type === 'none') {
238
+ this.$emit('change', 'none');
239
+ }
240
+ }
241
+ this.x = x;
242
+ this.isopen = type;
243
+ },
244
+ move(ref, value) {
245
+ return new Promise((resolve, reject) => {
246
+ animation.transition(
247
+ ref,
248
+ {
249
+ styles: {
250
+ transform: `translateX(${value})`
251
+ },
252
+ duration: 150, //ms
253
+ timingFunction: 'linear',
254
+ needLayout: false,
255
+ delay: 0 //ms
256
+ },
257
+ function (res) {
258
+ resolve(res);
259
+ }
260
+ );
261
+ });
262
+ },
213
263
 
214
- }
215
- },
216
- setEmit(x, type) {
217
- const leftWidth = this.button.left.width
218
- const rightWidth = this.button.right.width
219
- this.isopen = this.isopen || 'none'
220
- this.stop = false
221
- this.isclick = false
222
- // 只有状态不一致才会返回结果
223
- if (this.isopen !== type && this.x !== x) {
224
- if (type === 'left' && leftWidth > 0) {
225
- this.$emit('change', 'left')
226
- }
227
- if (type === 'right' && rightWidth > 0) {
228
- this.$emit('change', 'right')
229
- }
230
- if (type === 'none') {
231
- this.$emit('change', 'none')
232
- }
233
- }
234
- this.x = x
235
- this.isopen = type
236
- },
237
- move(ref, value) {
238
- return new Promise((resolve, reject) => {
239
- animation.transition(ref, {
240
- styles: {
241
- transform: `translateX(${value})`,
242
- },
243
- duration: 150, //ms
244
- timingFunction: 'linear',
245
- needLayout: false,
246
- delay: 0 //ms
247
- }, function(res) {
248
- resolve(res)
249
- })
250
- })
264
+ /**
265
+ * 获取ref
266
+ * @param {Object} el
267
+ */
268
+ // getEl(el) {
269
+ // console.log('getEl', el);
270
+ // return el.ref;
271
+ // },
272
+ /**
273
+ * 获取节点信息
274
+ */
275
+ getSelectorQuery() {
276
+ Promise.all([this.getDom('left'), this.getDom('right')]).then((data) => {
277
+ let show = 'none';
278
+ if (this.autoClose) {
279
+ show = 'none';
280
+ } else {
281
+ show = this.show;
282
+ }
251
283
 
252
- },
253
-
254
- /**
255
- * 获取ref
256
- * @param {Object} el
257
- */
258
- getEl(el) {
259
- return el.ref
260
- },
261
- /**
262
- * 获取节点信息
263
- */
264
- getSelectorQuery() {
265
- Promise.all([
266
- this.getDom('left'),
267
- this.getDom('right'),
268
- ]).then((data) => {
269
- let show = 'none'
270
- if (this.autoClose) {
271
- show = 'none'
272
- } else {
273
- show = this.show
274
- }
275
-
276
- if (show === 'none') {
277
- // this.close()
278
- } else {
279
- this.open(show)
280
- }
281
-
282
- })
283
-
284
- },
285
- getDom(str) {
286
- return new Promise((resolve, reject) => {
287
- dom.getComponentRect(this.$refs[`selector-${str}-button--hock`], (data) => {
288
- if (data) {
289
- this.button[str] = data.size
290
- resolve(data)
291
- } else {
292
- reject()
293
- }
294
- })
295
- })
296
- }
297
- }
298
- }
284
+ if (show === 'none') {
285
+ // this.close()
286
+ } else {
287
+ this.open(show);
288
+ }
289
+ });
290
+ },
291
+ getDom(str) {
292
+ return new Promise((resolve, reject) => {
293
+ dom.getComponentRect(
294
+ this.$refs[`selector-${str}-button--hock`],
295
+ (data) => {
296
+ if (data) {
297
+ this.button[str] = data.size;
298
+ resolve(data);
299
+ } else {
300
+ reject();
301
+ }
302
+ }
303
+ );
304
+ });
305
+ }
306
+ }
307
+ };
299
308
 
300
309
  // #endif
301
310
 
302
- export default bindIngXMixins
311
+ export default bindIngXMixins;
@@ -97,7 +97,7 @@
97
97
  <!-- #endif -->
98
98
  <!-- app nvue端 使用 bindingx -->
99
99
  <!-- #ifdef APP-NVUE -->
100
- <view
100
+ <!-- <view
101
101
  ref="selector-box--hock"
102
102
  class="uni-swipe"
103
103
  @horizontalpan="touchstart"
@@ -165,11 +165,11 @@
165
165
  <view ref="selector-content--hock" class="uni-swipe_box">
166
166
  <slot></slot>
167
167
  </view>
168
- </view>
168
+ </view> -->
169
169
  <!-- #endif -->
170
170
  <!-- 其他平台使用 js ,长列表性能可能会有影响-->
171
171
  <!-- #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || MP-QQ -->
172
- <view class="uni-swipe">
172
+ <!-- <view class="uni-swipe">
173
173
  <view
174
174
  class="uni-swipe_box"
175
175
  @touchstart="touchstart"
@@ -245,7 +245,7 @@
245
245
  </slot>
246
246
  </view>
247
247
  </view>
248
- </view>
248
+ </view> -->
249
249
  <!-- #endif -->
250
250
  </view>
251
251
  </template>
@@ -338,10 +338,10 @@
338
338
  },
339
339
  // #ifndef VUE3
340
340
  // TODO vue2
341
- destroyed() {
342
- if (this.__isUnmounted) return;
343
- this.uninstall();
344
- },
341
+ // destroyed() {
342
+ // if (this.__isUnmounted) return;
343
+ // this.uninstall();
344
+ // },
345
345
  // #endif
346
346
  // #ifdef VUE3
347
347
  // TODO vue3
@@ -378,7 +378,6 @@
378
378
  };
379
379
  </script>
380
380
 
381
-
382
381
  <style lang="scss">
383
382
  .uni-swipe {
384
383
  position: relative;