mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
1.4 KiB
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;
}