@vtj/materials 0.10.6 → 0.10.7
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.
- package/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +3 -3
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/deps/@vtj/utils/index.umd.js +20 -20
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +7 -7
- package/src/uni-h5/components/input.ts +2 -2
- package/src/uni-h5/components/scrollView.ts +3 -3
- package/src/uni-h5/components/video.ts +1 -1
- package/src/uni-ui/components/badge.ts +1 -5
- package/src/uni-ui/components/breadcrumb.ts +1 -20
- package/src/uni-ui/components/collapse.ts +22 -23
- package/src/uni-ui/components/grid.ts +0 -9
- package/src/uni-ui/components/group.ts +1 -10
- package/src/uni-ui/components/index.ts +4 -4
- package/src/uni-ui/components/popup.ts +10 -2
- package/src/uni-ui/components/swiperDot.ts +21 -7
- package/src/uni-ui/components/table.ts +9 -3
- package/src/uni-ui/components/transition.ts +10 -1
- package/src/uni-ui/index.ts +19 -44
- package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +153 -0
- package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +425 -0
- package/src/uni-ui/lib/uni-data-picker/keypress.js +45 -0
- package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +604 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +622 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +335 -0
- package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +181 -170
- package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +977 -939
- package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +1024 -932
- package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +15 -17
- package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -392
- package/src/uni-ui/lib/uni-fav/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-fav/uni-fav.vue +170 -0
- package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +280 -0
- package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +668 -0
- package/src/uni-ui/lib/uni-file-picker/upload-file.vue +325 -0
- package/src/uni-ui/lib/uni-file-picker/upload-image.vue +292 -0
- package/src/uni-ui/lib/uni-file-picker/utils.js +110 -0
- package/src/uni-ui/lib/uni-grid/uni-grid.vue +148 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +152 -128
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +50 -50
- package/src/uni-ui/lib/uni-load-more/i18n/en.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +5 -0
- package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +456 -0
- package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +484 -0
- package/src/uni-ui/lib/uni-popup/uni-popup.vue +4 -4
- package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +149 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +362 -343
- package/src/uni-ui/lib/uni-row/uni-row.vue +193 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +339 -0
- package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +294 -285
- package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +8 -9
- package/src/uni-ui/lib/uni-th/filter-dropdown.vue +551 -503
- package/src/uni-ui/lib/uni-tr/table-checkbox.vue +165 -163
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +6 -6
- package/src/uni-ui/lib/uni-transition/createAnimation.js +131 -0
- package/src/uni-ui/lib/uni-transition/uni-transition.vue +310 -0
- 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
|
-
|
10
|
-
|
11
|
-
|
9
|
+
data() {
|
10
|
+
return {};
|
11
|
+
},
|
12
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
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
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
165
|
+
/**
|
166
|
+
* 开启swipe
|
167
|
+
*/
|
168
|
+
open(type) {
|
169
|
+
this.animation(type);
|
170
|
+
},
|
163
171
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
172
|
+
/**
|
173
|
+
* 关闭swipe
|
174
|
+
*/
|
175
|
+
close() {
|
176
|
+
this.animation('none');
|
177
|
+
},
|
170
178
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
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
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
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
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
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
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
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
|
-
|
343
|
-
|
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;
|