2019-10-11 19:04:22 +08:00
|
|
|
# Collapse
|
2020-01-27 20:16:25 +08:00
|
|
|
I saw it appears in many side control panels.
|
|
|
|
## Demos
|
2019-10-11 19:04:22 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
accordion
|
|
|
|
nested
|
2020-01-27 20:16:25 +08:00
|
|
|
```
|
|
|
|
## V-model
|
|
|
|
|Prop|Event|
|
|
|
|
|-|-|
|
|
|
|
|expand-names|expand-names-change|
|
|
|
|
|
|
|
|
## Props
|
|
|
|
### Collapse
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|expand-names|`Array`|`null`||
|
|
|
|
|accordion|`boolean`|`false`||
|
|
|
|
|
|
|
|
### Collapse Item
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|title|`string \| number`|`null`||
|
2020-02-03 21:07:58 +08:00
|
|
|
|name|`string \| number`||**required**|
|
2020-01-27 20:16:25 +08:00
|
|
|
|
|
|
|
## Event
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 21:03:34 +08:00
|
|
|
|expand-names|`(expandNames: Array<string>)`||
|