Skip to content

Commit

Permalink
fix: 多选项label默认值'', 没有实际用途反而会导致选中判断有误
Browse files Browse the repository at this point in the history
  • Loading branch information
YufJi committed Jan 11, 2024
1 parent 4da8d76 commit 3859e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/checkbox-group/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace nasl.ui {
emptyBackground: 'add-sub',
snippets: [{
title: '多选项',
code: '<van-checkbox name="n" shape="square"><van-text text="节点"></van-text></van-checkbox>'
code: '<van-checkbox shape="square"><van-text text="节点"></van-text></van-checkbox>'
}]
})
slotDefault: () => Array<VanCheckbox<V>>;
Expand Down
2 changes: 1 addition & 1 deletion src/checkbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default createComponent({
}),
],
props: {
label: { type: String, default: '' },
label: { type: String },
},
computed: {
checked: {
Expand Down

0 comments on commit 3859e4b

Please sign in to comment.