update docs

pull/1947/head^2
baiyaaaaa 2016-12-26 15:18:26 +08:00 committed by 杨奕
parent 22360be889
commit a96a07910f
2 changed files with 9 additions and 9 deletions

View File

@ -133,18 +133,18 @@ At the same time only one item can be opened.
:::
### Collapse Attributes
| Attribute | Description | Type | Accepted Values | Default |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------- |---------- |-------------------------------- |-------- |
| accordion | whether is accordion mode | boolean | — | false |
| value | the active item's name | string/array | — | — |
| accordion | 是否手风琴模式 | boolean | — | false |
| value | 当前激活的面板(如果是手风琴模式,绑定值类型需要为`string`,否则为`array`) | string/array | — | — |
### Collapse Events
| Event Name | Description | Parameters |
| 事件名称 | 说明 | 回调参数 |
|---------|---------|---------|
| change | trigger when the active names change | (activeNames: array) |
| change | 当前激活面板改变时触发(如果是手风琴模式,参数 `activeNames` 类型为`string`,否则为`array`) | (activeNames: array\|string) |
### Collapse Item Attributes
| Attribute | Description | Type | Accepted Values | Default |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------- |---------- |-------------------------------- |-------- |
| name | unique identifier | string/number | — | — |
| title | title | string | — | — |
| name | 唯一标志符 | string/number | — | — |
| title | 面板标题 | string | — | — |

View File

@ -141,7 +141,7 @@
### Collapse Events
| 事件名称 | 说明 | 回调参数 |
|---------|---------|---------|
| change | 当前激活面板改变时触发(如果是手风琴模式,参数 `activeNames` 类型为`string`,否则为`array`) | (activeNames: array\|array) |
| change | 当前激活面板改变时触发(如果是手风琴模式,参数 `activeNames` 类型为`string`,否则为`array`) | (activeNames: array\|string) |
### Collapse Item Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |