mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
28 lines
723 B
Vue
28 lines
723 B
Vue
<template>
|
|
<CheckboxGroup @change="onChange">
|
|
<AntRow>
|
|
<AntCol :span="8"><Checkbox value="A">A</Checkbox></AntCol>
|
|
<AntCol :span="8"><Checkbox value="B">B</Checkbox></AntCol>
|
|
<AntCol :span="8"><Checkbox value="C">C</Checkbox></AntCol>
|
|
<AntCol :span="8"><Checkbox value="D">D</Checkbox></AntCol>
|
|
<AntCol :span="8"><Checkbox value="E">E</Checkbox></AntCol>
|
|
</AntRow>
|
|
</CheckboxGroup>
|
|
</template>
|
|
<script>
|
|
import { Checkbox, Row, Col } from 'antd'
|
|
export default {
|
|
methods: {
|
|
onChange (checkedValues) {
|
|
console.log('checked = ', checkedValues)
|
|
},
|
|
},
|
|
components: {
|
|
Checkbox,
|
|
AntRow: Row,
|
|
AntCol: Col,
|
|
CheckboxGroup: Checkbox.Group,
|
|
},
|
|
}
|
|
</script>
|