mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
feat: add function return for event setter
This commit is contained in:
parent
5a1e1bc052
commit
c6d65dbdc1
@ -224,7 +224,7 @@ export default function (metadata: IPublicTypeTransformedComponentMetadata): IPu
|
||||
field.parent.setPropValue(item.name, {
|
||||
type: 'JSFunction',
|
||||
// 需要传下入参
|
||||
value: `function(){this.${item.relatedEventName}.apply(this,Array.prototype.slice.call(arguments).concat([${item.paramStr ? item.paramStr : ''}])) }`,
|
||||
value: `function(){return this.${item.relatedEventName}.apply(this,Array.prototype.slice.call(arguments).concat([${item.paramStr ? item.paramStr : ''}])) }`,
|
||||
});
|
||||
return item;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user