[Doc] optimzie doc detail (#413)

This commit is contained in:
neverland
2017-12-12 13:13:35 +08:00
committed by GitHub
parent 6f2b4c99da
commit a57887919d
5 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ Vue.use(Badge);
#### 基础用法
通过在`van-badge-group`上设置`active-key`属性来控制选中的`badge`
通过在`van-badge-group`上设置`activeKey`属性来控制选中的`badge`
```html
<van-badge-group :active-key="activeKey">
<van-badge-group :activeKey="activeKey">
<van-badge title="热销榜" @click="onClick"></van-badge>
<van-badge title="花式寿司" @click="onClick" info="8"></van-badge>
<van-badge title="火炽寿司" @click="onClick" info="99"></van-badge>
@@ -41,7 +41,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| active-key | 选中`badge`的索引 | `String | Number` | `0` | - |
| activeKey | 选中`badge`的索引 | `String | Number` | `0` | - |
### Badge API
| 参数 | 说明 | 类型 | 默认值 | 可选值 |