mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
feat: setting-pane 新增removeProp 函数
This commit is contained in:
parent
8fd77df2a0
commit
b97c80746c
@ -55,8 +55,8 @@ export default class FunctionSetter extends PureComponent<FunctionSetterProps, {
|
||||
}
|
||||
|
||||
removeFunctionBind = () => {
|
||||
const { field ,onChange} = this.props;
|
||||
field.parent.clearPropValue(field.name);
|
||||
const { field ,removeProp} = this.props;
|
||||
removeProp();
|
||||
}
|
||||
|
||||
parseFunctionName = (functionString: String) => {
|
||||
|
||||
@ -142,6 +142,10 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
||||
});
|
||||
field.setValue(value);
|
||||
},
|
||||
|
||||
removeProp:()=>{
|
||||
field.parent.clearPropValue(field.name);
|
||||
}
|
||||
}),
|
||||
extraProps.forceInline ? 'plain' : extraProps.display,
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user