mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Swipe): add tips of fastclick (#5179)
This commit is contained in:
parent
d04fe7717f
commit
2bc3ae2b60
@ -181,3 +181,11 @@ export default {
|
||||
|------|------|------|
|
||||
| default | 轮播内容 | - |
|
||||
| indicator | 自定义指示器 | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
### 滑动轮播时为什么触发了 click 事件?
|
||||
|
||||
这种情况通常是由于项目中引入了`fastclick`库导致的,`fastclick`会在滑动过程中触发`click`事件。
|
||||
|
||||
将 Swipe 组件的 stop-propagation 属性设置为 false 即可避免这个问题。
|
||||
|
Loading…
x
Reference in New Issue
Block a user