mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 21:27:52 +08:00
fix checkbox docs
This commit is contained in:
parent
e45572cc0c
commit
96c8ac0876
@ -5,7 +5,7 @@
|
|||||||
return {
|
return {
|
||||||
checkList: ['选中且禁用','复选框 A'],
|
checkList: ['选中且禁用','复选框 A'],
|
||||||
// checkList2: ['复选框 A'],
|
// checkList2: ['复选框 A'],
|
||||||
checked: false,
|
checked: true,
|
||||||
checked1: false,
|
checked1: false,
|
||||||
checked2: true,
|
checked2: true,
|
||||||
isValid: '可用',
|
isValid: '可用',
|
||||||
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
handleCheckAllChange(event) {
|
handleCheckAllChange(event) {
|
||||||
this.checkedCities = event.target.checked ? cityOptions : [];
|
this.checkedCities = event.target.checked ? cityOptions : [];
|
||||||
this.isIndeterminate = true;
|
this.isIndeterminate = false;
|
||||||
},
|
},
|
||||||
handleCheckedCitiesChange(value) {
|
handleCheckedCitiesChange(value) {
|
||||||
let checkedCount = value.length;
|
let checkedCount = value.length;
|
||||||
@ -55,7 +55,7 @@
|
|||||||
```html
|
```html
|
||||||
<template>
|
<template>
|
||||||
<!-- `checked` 为 true 或 false -->
|
<!-- `checked` 为 true 或 false -->
|
||||||
<el-checkbox v-model="checked" checked>备选项</el-checkbox>
|
<el-checkbox v-model="checked">备选项</el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user