mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
fix: 🐛 修复 Swiper 在支付宝小程序平台点击事件无效的问题
This commit is contained in:
parent
6091566380
commit
f63bf10133
@ -19,13 +19,14 @@
|
||||
@change="handleChange"
|
||||
@animationfinish="handleAnimationfinish"
|
||||
>
|
||||
<swiper-item v-for="(item, index) in list" :key="index" class="wd-swiper__item" @click="handleClick(index, item)">
|
||||
<swiper-item v-for="(item, index) in list" :key="index" class="wd-swiper__item">
|
||||
<image
|
||||
v-if="isImage(item)"
|
||||
:src="isObj(item) ? item[valueKey] : item"
|
||||
:class="`wd-swiper__image ${customImageClass} ${customItemClass} ${getCustomItemClass(currentValue, index, list)}`"
|
||||
:style="{ height: addUnit(height) }"
|
||||
:mode="imageMode"
|
||||
@click="handleClick(index, item)"
|
||||
/>
|
||||
<video
|
||||
v-else-if="isVideo(item)"
|
||||
@ -41,6 +42,7 @@
|
||||
muted
|
||||
:autoplay="autoplayVideo"
|
||||
objectFit="cover"
|
||||
@click="handleClick(index, item)"
|
||||
/>
|
||||
<text v-if="isObj(item) && item[textKey]" :class="`wd-swiper__text ${customTextClass}`" :style="customTextStyle">{{ item[textKey] }}</text>
|
||||
</swiper-item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user