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
- setTimeout(() => {
271
+ const source = e.detail.source
272
+ if (source === 'autoplay' || source === 'touch') {
273
+ // 只有在自动轮播和用户主动触发才去改变current值
272
274
  this.val = current
273
275
  this.handleEmitChange()
274
- }, 50)
276
+ }
275
277
  },
276
278
  handleSwiperClick(index) {
277
279
  // 点击时触发 | index, 当前页的索引
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta119",
3
+ "version": "1.2.7-beta121",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {