Skip to content

Commit 4a20219

Browse files
authored
fix: 修复 checkbox 单独使用时无法切换选中状态的问题 (#198)
1 parent e2fb515 commit 4a20219

File tree

1 file changed

+4
-2
lines changed
  • src/uni_modules/wot-design-uni/components/wd-checkbox

1 file changed

+4
-2
lines changed

src/uni_modules/wot-design-uni/components/wd-checkbox/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ export const checkboxProps = {
3434
* 选中值,在 checkbox-group 中使用无效,需同 false-value 一块使用
3535
*/
3636
trueValue: {
37-
type: [String, Number, Boolean]
37+
type: [String, Number, Boolean],
38+
default: true
3839
},
3940
/**
4041
* 非选中时的值,在 checkbox-group 中使用无效,需同 true-value 一块使用
4142
*/
4243
falseValue: {
43-
type: [String, Number, Boolean]
44+
type: [String, Number, Boolean],
45+
default: false
4446
},
4547
/**
4648
* 设置大小,可选值:large

0 commit comments

Comments
 (0)