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

25 lines
318 B
Markdown
Raw Normal View History

2018-03-09 13:26:34 +08:00
<cn>
#### 基本用法
简单的checkbox
</cn>
<us>
#### Basic
Basic usage of checkbox
</us>
```html
<template>
2018-03-09 17:50:33 +08:00
<a-checkbox @change="onChange">Checkbox</a-checkbox>
2018-03-09 13:26:34 +08:00
</template>
<script>
export default {
methods: {
onChange (e) {
console.log(`checked = ${e.target.checked}`)
},
},
}
</script>
```