2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-01-24 12:45:18 +08:00
naive-ui/demo/documentation/components/checkbox/zhCN/indeterminate.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

563 B

部分选中

<n-checkbox v-model="value" :indeterminate="indeterminate">复选框</n-checkbox>
<n-checkbox v-model="value" :indeterminate="indeterminate"/>
<n-checkbox v-model="value" :indeterminate="indeterminate" disabled/>
<n-button @click="value = !value" size="small">选中</n-button>
<n-button @click="indeterminate = !indeterminate" size="small">部分选中</n-button>
export default {
  data() {
    return {
      value: false,
      indeterminate: false
    }
  }
}
.n-checkbox, .n-button {
  margin: 0 12px 8px 0;
}