naive-ui/demo/documentation/components/collapse/enUS/index.md

41 lines
695 B
Markdown
Raw Normal View History

# Collapse
2020-01-27 20:16:25 +08:00
I saw it appears in many side control panels.
## Demos
```demo
basic
accordion
nested
2020-01-27 20:16:25 +08:00
```
## V-model
|Prop|Event|
|-|-|
|expanded-names|expanded-names-change|
2020-01-27 20:16:25 +08:00
## Props
### Collapse
|Name|Type|Default|Description|
|-|-|-|-|
|expanded-names|`Array`|`null`||
2020-01-27 20:16:25 +08:00
|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
2020-02-03 21:20:21 +08:00
## Slots
### Collapse Slots
|Name|Parameters|Description|
|-|-|-|
|default|`()`||
### Collapse Item Slots
|Name|Parameters|Description|
|-|-|-|
|default|`()`||
2020-01-27 20:16:25 +08:00
## Event
|Name|Parameters|Description|
|-|-|-|
|expanded-names|`(expandedNames: Array<string>)`||