File tree Expand file tree Collapse file tree
src/uni_modules/wot-design-uni/components/wd-swiper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 @change =" handleChange"
2020 @animationfinish =" handleAnimationfinish"
2121 >
22- <swiper-item v-for =" (item, index) in list" :key =" index" class =" wd-swiper__item" @click = " handleClick(index, item) " >
22+ <swiper-item v-for =" (item, index) in list" :key =" index" class =" wd-swiper__item" >
2323 <image
2424 v-if =" isImage(item)"
2525 :src =" isObj(item) ? item[valueKey] : item"
2626 :class =" `wd-swiper__image ${customImageClass} ${customItemClass} ${getCustomItemClass(currentValue, index, list)}`"
2727 :style =" { height: addUnit(height) }"
2828 :mode =" imageMode"
29+ @click =" handleClick(index, item)"
2930 />
3031 <video
3132 v-else-if =" isVideo(item)"
4142 muted
4243 :autoplay =" autoplayVideo"
4344 objectFit =" cover"
45+ @click =" handleClick(index, item)"
4446 />
4547 <text v-if =" isObj(item) && item[textKey]" :class =" `wd-swiper__text ${customTextClass}`" :style =" customTextStyle" >{{ item[textKey] }}</text >
4648 </swiper-item >
You can’t perform that action at this time.
0 commit comments