使用Vue-scroller,页面input框不能触发滑动的问题
因为项目中有个填写信息的页面,有很多input框,引入vue-scroller后发现在input区域滑动失效;看了一下引入的vue-scroller组件里的源码,发现在组件源码里的Scroller.vue中在touchStart、touchMove和mouseDownd方法的时候被return了 touchStart(e) { // Don't react if initial down happens on a form element //注释掉这段代码就行 //
原创
2020-08-05 10:41:02 ·
590 阅读 ·
1 评论