mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 22:58:15 +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 skeleton = this.context as Skeleton;
|
||||||
const { stages } = skeleton;
|
const { stages } = skeleton;
|
||||||
|
|
||||||
// todo: error handling
|
let _onChange = extraProps?.onChange;
|
||||||
let _onChange = extraProps?.onChange?.value;
|
|
||||||
if (extraProps && extraProps.onChange && extraProps.onChange.type === 'JSFunction') {
|
|
||||||
_onChange = transformStringToFunction(extraProps.onChange.value);
|
|
||||||
}
|
|
||||||
let stageName;
|
let stageName;
|
||||||
if (display === 'entry') {
|
if (display === 'entry') {
|
||||||
const stage = stages.add({
|
const stage = stages.add({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user