mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
19 lines
293 B
Vue
19 lines
293 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<Checkbox @change="onChange">Checkbox</Checkbox>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script>
|
||
|
import { Checkbox } from 'antd'
|
||
|
export default {
|
||
|
methods: {
|
||
|
onChange (e) {
|
||
|
console.log(`checked = ${e.target.checked}`)
|
||
|
},
|
||
|
},
|
||
|
components: {
|
||
|
Checkbox,
|
||
|
},
|
||
|
}
|
||
|
</script>
|