mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-25 11:28:18 +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 = () => {
|
removeFunctionBind = () => {
|
||||||
const { field ,onChange} = this.props;
|
const { field ,removeProp} = this.props;
|
||||||
field.parent.clearPropValue(field.name);
|
removeProp();
|
||||||
}
|
}
|
||||||
|
|
||||||
parseFunctionName = (functionString: String) => {
|
parseFunctionName = (functionString: String) => {
|
||||||
|
|||||||
@ -142,6 +142,10 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
|||||||
});
|
});
|
||||||
field.setValue(value);
|
field.setValue(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
removeProp:()=>{
|
||||||
|
field.parent.clearPropValue(field.name);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
extraProps.forceInline ? 'plain' : extraProps.display,
|
extraProps.forceInline ? 'plain' : extraProps.display,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user