6***@qq.com
6***@qq.com
  • 发布:2019-09-28 17:19
  • 更新:2019-09-28 17:19
  • 阅读:1820

swiper 切换时子元素touchmove及vue事件修饰符

分类:uni-app

如题,

<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。

有大佬明白是怎么回事儿吗?

2019-09-28 17:19 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复