naive-ui/demo/documentation/components/checkbox/zhCN/group.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

405 B

选项组

<n-checkbox-group v-model="cities">
  <n-checkbox value="Beijing" label="北京" />
  <n-checkbox value="Shanghai" label="上海" />
  <n-checkbox value="Guangzhou" label="广州" />
  <n-checkbox value="Shenzen" label="深圳" />
</n-checkbox-group>
export default {
  data() {
    return {
      cities: null
    }
  }
}
.n-checkbox {
  margin-right: 12px;
}