naive-ui/demo/documentation/components/radio/zhCN/basic.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

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;
}