mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
239 B
239 B
受控状态
<n-checkbox :checked="value">复选框</n-checkbox>
<n-switch v-model="value"/>
export default {
data() {
return {
value: false
}
}
}
.n-checkbox {
margin: 0 12px 8px 0;
}