<swiper :disable-touch="disableTouch" ></swiper>

- 发布:2024-03-25 15:23
- 更新:2024-03-25 15:23
- 阅读:363
产品分类: uniapp/小程序/字节跳动
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 22H2
HBuilderX类型: 正式
HBuilderX版本号: 3.99
第三方开发者工具版本号: 4.2.1
基础库版本号: 3.14.0.1
项目创建方式: HBuilderX
操作步骤:
预期结果:
设置disable-touch属性应禁止用户滑动swiper页面
设置disable-touch属性应禁止用户滑动swiper页面
实际结果:
设置disable-touch为true后,无效
设置disable-touch为true后,无效
bug描述:
在根据官方文档在swiper组件上设置disable-touch的初始状态(文档上写只在初始化时有效,不能动态变更),那么我只设置了初始状态,并没有动态改变,经测试在开发者工具上和真机展示中都可以滑动swiper页面。

