Checkbox 选中问题优化

This commit is contained in:
liaoxuezhi 2019-09-17 23:05:59 +08:00
parent 8ed2c7c8d5
commit b733940049

View File

@ -81,7 +81,7 @@ export function expandValue(value: OptionValue, props: Partial<OptionProps>): Op
return null;
}
if (valueType === 'object' && props.joinValues !== false) {
if (valueType === 'object' && value && value.hasOwnProperty(props.valueField || 'value')) {
value = (value as Option)[valueField || 'value'] || '';
}