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

1.4 KiB

栅格

和栅格一起使用。

<n-checkbox-group v-model="value">
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Prosperity" label="富强" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Democracy" label="民主" />
    </n-col>
  </n-row>
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Civility" label="文明" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Harmony" label="和谐" />
    </n-col>
  </n-row>
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Freedom" label="自由" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Equality" label="平等" />
    </n-col>
  </n-row>
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Justice" label="公正" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Rule of Law" label="法制" />
    </n-col>
  </n-row>
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Patriotism" label="爱国" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Dedication" label="敬业" />
    </n-col>
  </n-row>
  <n-row>
    <n-col :span="12">
      <n-checkbox value="Integrity" label="诚信" />
    </n-col>
    <n-col :span="12">
      <n-checkbox value="Friendship" label="友善" />
    </n-col>
  </n-row>
</n-checkbox-group>
export default {
  data() {
    return {
      value: null
    }
  }
}
.n-checkbox, .n-button {
  margin: 0 12px 8px 0;
}