feat(input): UiCheckBox 支持 multicheck 多选(opts.multicheck)——原属性存在但从未赋值

This commit is contained in:
yumoqing 2026-09-02 13:54:23 +08:00
parent 6a94f10370
commit f2bf42e7c7

View File

@ -819,6 +819,7 @@ bricks.UiCheckBox =class extends bricks.UiType {
constructor(opts){
super(opts);
this.uitype='checkbox';
this.multicheck = opts.multicheck || false;
this.valueField = opts.valueField || 'value';
this.textField = opts.textField || 'text';
this.value = this.opts.value || this.opts.defaultValue||[];