[Doc] new theme
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## IndexBar
|
||||
# IndexBar
|
||||
|
||||
### Install
|
||||
|
||||
@@ -8,9 +8,9 @@ import { IndexBar } from 'vant';
|
||||
Vue.use(IndexBar);
|
||||
```
|
||||
|
||||
### Usage
|
||||
## Usage
|
||||
|
||||
#### Basic Usage
|
||||
### Basic Usage
|
||||
|
||||
```html
|
||||
<van-index-bar>
|
||||
@@ -28,7 +28,7 @@ Vue.use(IndexBar);
|
||||
</van-index-bar>
|
||||
```
|
||||
|
||||
#### Custom Index List
|
||||
### Custom Index List
|
||||
|
||||
```html
|
||||
<van-index-bar :index-list="indexList">
|
||||
@@ -56,6 +56,8 @@ export default {
|
||||
}
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### IndexBar Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|
||||
@@ -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
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|
||||
Reference in New Issue
Block a user