如题,
<swiper>
<swiper-item>
<uni-list>
<uni-swipe-action :options="options1">
<uni-list-item :show-arrow="false" title="item1" />
</uni-swipe-action>
<uni-swipe-action :options="options1">
<uni-list-item :show-arrow="false" title="item1" />
</uni-swipe-action>
<uni-swipe-action :options="options1">
<uni-list-item :show-arrow="false" title="item1" />
</uni-swipe-action>
</uni-list>
</swiper-item>
<swiper-item>
<uni-list>
<uni-swipe-action :options="options1">
<uni-list-item :show-arrow="false" title="item1" />
</uni-swipe-action>
<uni-swipe-action :options="options1">
<uni-list-item :show-arrow="false" title="item1" />
</uni-swipe-action>
</uni-list>
</swiper-item>
</swiper>
我用了组件,并在swiper-item下的子项的touchmove事件中加了 :.stop 修饰符,它的表现在chrome浏览器手机模拟器上可以在左右滑动 uni-swipe-action时,不会滑动到下一个swiper-item,但我用hbuilderx打包之后,安装到小米8上面之后,只能滑动到下一个swiper-item,并没有如浏览器上表现的只可以滑动uni-swipe-action。
有大佬明白是怎么回事儿吗?
0 个回复