mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
409 B
409 B
Basic
<n-checkbox v-model="value">Checkbox</n-checkbox>
<n-checkbox v-model="value"/>
<n-checkbox v-model="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;
}