Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2021-01-02 17:20:30 +08:00
8 changed files with 50 additions and 35 deletions
+8
View File
@@ -102,6 +102,14 @@ export default {
| ------- | -------------------------------- |
| default | 锚点位置显示内容,默认为索引字符 |
### IndexBar 方法
通过 ref 可以获取到 IndexBar 实例并调用实例方法,详见[组件实例方法](#/zh-CN/advanced-usage#zu-jian-shi-li-fang-fa)。
| 方法名 | 说明 | 参数 | 返回值 |
| ------------------ | -------------- | ------------------------- | ------ |
| scrollTo `v2.12.2` | 滚动到指定锚点 | _index: number \| string_ | - |
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。