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

25 lines
333 B
Markdown

<cn>
#### 基本用法
简单的checkbox
</cn>
<us>
#### Basic
Basic usage of checkbox
</us>
```html
<template>
<a-checkbox @change="onChange">Checkbox</a-checkbox>
</template>
<script>
export default {
methods: {
onChange(e) {
console.log(`checked = ${e.target.checked}`);
},
},
};
</script>
```