pref: 树组件外部事件触发editApi新增参数originValue

This commit is contained in:
zhouqiqi01 2023-12-11 14:56:42 +08:00
parent 3d19611bb5
commit 204cc34a39
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ export default class TreeControl extends React.Component<TreeProps, TreeState> {
const value = hasAbility(item, valueAbility) ? item[valueAbility] : '';
return value === originValue;
});
onEdit && editItem && onEdit(item, editItem, true);
onEdit && editItem && onEdit({...item, originValue}, editItem, true);
}
@autobind

View File

@ -539,7 +539,7 @@ export default class TreeSelectControl extends React.Component<
const value = hasAbility(item, valueAbility) ? item[valueAbility] : '';
return value === originValue;
});
onEdit && editItem && onEdit(item, editItem, true);
onEdit && editItem && onEdit({...item, originValue}, editItem, true);
}
@autobind