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>
|
2019-09-28 12:45:07 +00:00
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
onChange(e) {
|
|
|
|
console.log(`checked = ${e.target.checked}`);
|
|
|
|
},
|
2018-03-09 05:26:34 +00:00
|
|
|
},
|
2019-09-28 12:45:07 +00:00
|
|
|
};
|
2018-03-09 05:26:34 +00:00
|
|
|
</script>
|
|
|
|
```
|