sadais-piui 1.2.7-beta119 → 1.2.7-beta121
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.
|
@@ -268,10 +268,12 @@ export default {
|
|
|
268
268
|
methods: {
|
|
269
269
|
handleSwiperChange(e) {
|
|
270
270
|
const current = e.detail.current
|
|
271
|
-
|
|
271
|
+
const source = e.detail.source
|
|
272
|
+
if (source === 'autoplay' || source === 'touch') {
|
|
273
|
+
// 只有在自动轮播和用户主动触发才去改变current值
|
|
272
274
|
this.val = current
|
|
273
275
|
this.handleEmitChange()
|
|
274
|
-
}
|
|
276
|
+
}
|
|
275
277
|
},
|
|
276
278
|
handleSwiperClick(index) {
|
|
277
279
|
// 点击时触发 | index, 当前页的索引
|