mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
pref: 树组件外部事件触发editApi新增参数originValue
This commit is contained in:
parent
3d19611bb5
commit
204cc34a39
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user