2019-10-11 19:04:22 +08:00
|
|
|
# Basic
|
|
|
|
```html
|
2020-10-21 17:30:45 +08:00
|
|
|
<n-collapse v-model:expandedNames="activeNames">
|
2019-10-11 19:04:22 +08:00
|
|
|
<n-collapse-item title="right" name="1">
|
|
|
|
<div>good</div>
|
|
|
|
</n-collapse-item>
|
|
|
|
<n-collapse-item title="right" name="2">
|
2020-03-18 15:56:59 +08:00
|
|
|
<div>nice</div>
|
2019-10-11 19:04:22 +08:00
|
|
|
</n-collapse-item>
|
2019-11-29 14:45:32 +08:00
|
|
|
<n-collapse-item title="right" name="3">
|
2020-03-18 15:56:59 +08:00
|
|
|
<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>
|
2019-10-11 19:04:22 +08:00
|
|
|
```
|
|
|
|
```js
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
activeNames: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|