naive-ui/demo/documentation/components/collapse/enUS/nested.demo.md
2020-10-21 17:30:45 +08:00

29 lines
622 B
Markdown

# Nested
It can be nested.
```html
<n-collapse v-model:expandedNames="activeNames">
<n-collapse-item title="right" name="1">
<n-collapse v-model:expandedNames="activeNames2">
<n-collapse-item title="right" name="1">
<div>good</div>
</n-collapse-item>
<n-collapse-item title="right" name="2">
<div>good</div>
</n-collapse-item>
</n-collapse>
</n-collapse-item>
<n-collapse-item title="right" name="2">
<div>good</div>
</n-collapse-item>
</n-collapse>
```
```js
export default {
data() {
return {
activeNames: [],
activeNames2: []
}
}
}
```