Skip to content

Commit

Permalink
fix(checkbox): fix prop's label default value
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Aug 25, 2020
1 parent 423feb1 commit 047090b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/checkbox/doc/basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/src/checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default defineComponent({
},
label: {
type: [Object, Boolean, String],
default: () => ({}),
default: ' ',
},
indeterminate: Boolean,
disabled: Boolean,
Expand Down

0 comments on commit 047090b

Please sign in to comment.