问题:nvue(uniapp模式) swiper组件设置为纵向滚动时 transition 的y轴获取不到坐标;
相关:在vue下就没事。
版本:2.3.3.20190924-alpha
示例代码如下(详见附件 swiper.nvue.zip):
<template>
<view>
<swiper @transition="swTr" style="height: 500px;width: 750upx;" :vertical="true" circular :indicator-dots="true">
<swiper-item>
<view class="swiper-item">1</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">2</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">3</view>
</swiper-item>
</swiper>
</view>
</template>
<script>
export default {
methods: {
swTr(e) {
console.log(e.detail);
}
},
data() {
return {
};
}
}
</script>
raise (作者)
修复了吗?
2019-10-09 14:11
DCloud_uni-ad_HDX
回复 raise: HBuilderX 2.3.4 alpha版 已修复
2019-10-11 10:57