mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
428 B
428 B
Basic
<n-checkbox v-model:value="value">Checkbox</n-checkbox>
<n-checkbox v-model:value="value"/>
<n-checkbox v-model:value="value" :disabled="disabled">Checkbox</n-checkbox>
<n-button @click="disabled = !disabled" size="small">Disabled</n-button>
export default {
data () {
return {
value: false,
disabled: true
}
}
}
.n-checkbox, .n-button {
margin: 0 12px 8px 0;
}