mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
refactor: 删除冗余函数转换代码
This commit is contained in:
parent
93f5c3b7b1
commit
c4dd107dbe
@ -86,11 +86,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
||||
const skeleton = this.context as Skeleton;
|
||||
const { stages } = skeleton;
|
||||
|
||||
// todo: error handling
|
||||
let _onChange = extraProps?.onChange?.value;
|
||||
if (extraProps && extraProps.onChange && extraProps.onChange.type === 'JSFunction') {
|
||||
_onChange = transformStringToFunction(extraProps.onChange.value);
|
||||
}
|
||||
let _onChange = extraProps?.onChange;
|
||||
let stageName;
|
||||
if (display === 'entry') {
|
||||
const stage = stages.add({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user