mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
582 B
582 B
Indeterminate
<n-checkbox v-model:value="value" :indeterminate="indeterminate">checkbox</n-checkbox>
<n-checkbox v-model:value="value" :indeterminate="indeterminate"/>
<n-checkbox v-model:value="value" :indeterminate="indeterminate" disabled/>
<n-button @click="value = !value" size="small">Check</n-button>
<n-button @click="indeterminate = !indeterminate" size="small">Indeterminate</n-button>
export default {
data () {
return {
value: false,
indeterminate: false
}
}
}
.n-checkbox, .n-button {
margin: 0 12px 8px 0;
}