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