mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
563 B
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;
}