✨ fix(g-sys-dict): 修复checkbox模式下,初值处理异常导致无法正常选择的问题
This commit is contained in:
parent
ff06be56b3
commit
f344af374b
@ -148,7 +148,7 @@ const trySetMultipleValue = (value: any) => {
|
||||
console.warn('[g-sys-dict]解析多选值失败, 异常信息:', error);
|
||||
}
|
||||
}
|
||||
} else if (props.multiple && !value) {
|
||||
} else if ((props.renderAs === 'checkbox' || props.multiple) && !value) {
|
||||
newValue = [];
|
||||
}
|
||||
if (newValue != value) updateValue(newValue);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user