docs(changelog): 2.10.8

This commit is contained in:
chenjiahan
2020-09-21 21:36:15 +08:00
parent e59fa850e3
commit 43da00b724
4 changed files with 44 additions and 10 deletions
+3 -3
View File
@@ -113,6 +113,6 @@ export default {
### SidebarItem Slots
| Name | Description |
| ----- | ---------------- |
| title | Custom item title |
| Name | Description |
| --------------- | ----------------- |
| title `v2.10.8` | Custom item title |
+7 -7
View File
@@ -14,7 +14,7 @@ Vue.use(SidebarItem);
### 基础用法
通过`v-model`绑定当前选中项的索引
通过 `v-model` 绑定当前选中项的索引
```html
<van-sidebar v-model="activeKey">
@@ -36,7 +36,7 @@ export default {
### 徽标提示
设置`dot`属性后,会在右上角展示一个小红点设置`badge`属性后,会在右上角展示相应的徽标
设置 `dot` 属性后,会在右上角展示一个小红点设置 `badge` 属性后,会在右上角展示相应的徽标
```html
<van-sidebar v-model="activeKey">
@@ -48,7 +48,7 @@ export default {
### 禁用选项
通过`disabled`属性禁用选项
通过 `disabled` 属性禁用选项
```html
<van-sidebar v-model="activeKey">
@@ -60,7 +60,7 @@ export default {
### 监听切换事件
设置`change`方法来监听切换导航项时的事件
设置 `change` 方法来监听切换导航项时的事件
```html
<van-sidebar v-model="activeKey" @change="onChange">
@@ -122,6 +122,6 @@ export default {
### SidebarItem Slots
| Name | Description |
| ----- | ----------- |
| title | 自定义标题 |
| Name | Description |
| --------------- | ----------- |
| title `v2.10.8` | 自定义标题 |