naive-ui/demo/documentation/components/collapse/enUS/nested.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

594 B

Nested

It can be nested.

<n-collapse v-model="activeNames">
  <n-collapse-item title="right" name="1">
    <n-collapse v-model="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>
export default {
  data() {
    return {
      activeNames: [],
      activeNames2: []
    }
  }
}