fix(checkbox): fix prop's label default value

This commit is contained in:
zouhang 2020-08-25 10:30:03 +08:00
parent 423feb1051
commit 047090b127
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<el-checkbox v-model="checked1" disabled>{{ checked1 }}</el-checkbox>
<el-checkbox v-model="checked2" disabled>{{ checked2 }}</el-checkbox>
<el-checkbox v-model="checked1" label="A" border />
<el-checkbox v-model="checked2" label="B" border />
<el-checkbox v-model="checked2" border />
<el-checkbox-group v-model="checkList">
<el-checkbox label="A" />

View File

@ -77,7 +77,7 @@ export default defineComponent({
},
label: {
type: [Object, Boolean, String],
default: () => ({}),
default: ' ',
},
indeterminate: Boolean,
disabled: Boolean,