sadais-piui 1.2.7-beta118 → 1.2.7-beta119

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.
@@ -15,14 +15,19 @@
15
15
  :style="[swiperStyle]"
16
16
  @change="handleSwiperChange"
17
17
  >
18
- <swiper-item v-for="(img, index) in imgs" :key="index" class="swiper-item">
18
+ <swiper-item
19
+ v-for="(img, index) in imgs"
20
+ :key="index"
21
+ class="swiper-item"
22
+ >
19
23
  <view
20
24
  class="swiper-image-wrap"
21
25
  :class="[val != index ? 'list-scale' : '']"
22
26
  :style="[
23
27
  {
24
28
  borderRadius: `${borderRadius}rpx`,
25
- transform: effect3d && val !== index ? 'scaleY(0.9)' : 'scaleY(1)',
29
+ transform:
30
+ effect3d && val !== index ? 'scaleY(0.9)' : 'scaleY(1)',
26
31
  padding: effect3d && val !== index ? '0 20rpx' : 0
27
32
  }
28
33
  ]"
@@ -40,10 +45,16 @@
40
45
  </view>
41
46
  </swiper-item>
42
47
  </swiper>
43
- <view v-if="indicatorType !== 'none'" class="swiper-indicator" :style="[swiperIndicatorStyle]">
48
+ <view
49
+ v-if="indicatorType !== 'none'"
50
+ class="swiper-indicator"
51
+ :style="[swiperIndicatorStyle]"
52
+ >
44
53
  <!-- 数字形式展示 -->
45
54
  <template v-if="indicatorType === 'number'">
46
- <view class="indicator-item number">{{ val + 1 }}/{{ imgs.length }}</view>
55
+ <view class="indicator-item number"
56
+ >{{ val + 1 }}/{{ imgs.length }}</view
57
+ >
47
58
  </template>
48
59
  <!-- 点,矩形 -->
49
60
  <template v-else>
@@ -257,8 +268,10 @@ export default {
257
268
  methods: {
258
269
  handleSwiperChange(e) {
259
270
  const current = e.detail.current
260
- this.val = current
261
- this.handleEmitChange()
271
+ setTimeout(() => {
272
+ this.val = current
273
+ this.handleEmitChange()
274
+ }, 50)
262
275
  },
263
276
  handleSwiperClick(index) {
264
277
  // 点击时触发 | index, 当前页的索引
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta118",
3
+ "version": "1.2.7-beta119",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {