feat: combo组件添加addItem动作

This commit is contained in:
sqzhou 2022-11-15 10:47:32 +08:00
parent 04802f8b9e
commit 0ed56e82b2

View File

@ -448,7 +448,7 @@ export default class ComboControl extends React.Component<ComboProps> {
const {onChange, resetValue} = this.props;
if (actionType === 'addItem') {
this.addItemValue(args.item);
this.addItemValue(args?.item ?? {});
}
else if (actionType === 'clear') {
onChange('');