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

23 lines
424 B
Markdown
Raw Normal View History

# Basic
```html
2020-10-21 17:30:45 +08:00
<n-collapse v-model:expandedNames="activeNames">
<n-collapse-item title="right" name="1">
<div>good</div>
</n-collapse-item>
<n-collapse-item title="right" name="2">
<div>nice</div>
</n-collapse-item>
2019-11-29 14:45:32 +08:00
<n-collapse-item title="right" name="3">
<div>very good</div>
2019-11-27 17:01:21 +08:00
</n-collapse-item>
2019-11-29 14:45:32 +08:00
</n-collapse>
```
```js
export default {
data() {
return {
activeNames: []
}
}
}
```