ant-design-vue/components/checkbox/demo/basic.vue

19 lines
293 B
Vue
Raw Normal View History

2017-11-03 18:46:18 +08:00
<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>