[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+7 -5
View File
@@ -1,6 +1,6 @@
## IndexBar 索引栏
# IndexBar 索引栏
### 使用指南
### 引入
``` javascript
import { IndexBar, IndexAnchor } from 'vant';
@@ -8,9 +8,9 @@ import { IndexBar, IndexAnchor } from 'vant';
Vue.use(IndexBar).use(IndexAnchor);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
点击索引栏时,会自动跳转到对应的`IndexAnchor`锚点位置
@@ -30,7 +30,7 @@ Vue.use(IndexBar).use(IndexAnchor);
</van-index-bar>
```
#### 自定义索引列表
### 自定义索引列表
可以通过`index-list`属性自定义展示的索引字符列表,
@@ -60,6 +60,8 @@ export default {
}
```
## API
### IndexBar Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |