mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 13:59:15 +08:00
docs(IndexBar): add Q&A (#4459)
* docs(IndexBar): add Q&A * docs(IndexBar): update doc
This commit is contained in:
parent
f2e52128c6
commit
583581fbee
@ -105,3 +105,12 @@ Page({
|
||||
| 名称 | 说明 |
|
||||
| ---- | -------------------------------- |
|
||||
| - | 锚点位置显示内容,默认为索引字符 |
|
||||
|
||||
|
||||
## 常见问题
|
||||
|
||||
### 嵌套在滚动元素中 IndexAnchor 失效?
|
||||
|
||||
由于 `<IndexBar />` 内部使用 wx.pageScrollTo 滚动到指定位置,因此只支持页面级滚动,无法在滚动元素中嵌套使用,例如:`view` 使用 `overflow: scroll;` 或者 `scroll-view`,
|
||||
具体可查看[微信小程序文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.html)。
|
||||
历史issue: [#4252](https://github.com/youzan/vant-weapp/issues/4252)
|
||||
|
Loading…
x
Reference in New Issue
Block a user