mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
468 B
468 B
基础用法
<n-radio
v-model="value"
value="Definitely Maybe"
>
Definitely Maybe
</n-radio>
<n-radio
v-model="value"
value="Be Here Now"
>
Be Here Now
</n-radio>
<n-radio
v-model="value"
value="Be Here Now"
:disabled="disabled"
>
Be Here Now
</n-radio>
<n-switch v-model="disabled"/>
export default {
data () {
return {
disabled: true,
value: null
}
}
}
.n-radio {
margin-right: 8px;
}