Merge branch develop into release/1.1.0-beta

This commit is contained in:
liujuping 2022-12-30 14:29:56 +08:00
commit 02a712d52a
3 changed files with 4 additions and 5 deletions

View File

@ -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;
});

View File

@ -1 +1,4 @@
export { Workspace } from './workspace';
export { Resource } from './resource';
export * from './editor-window/context';
export * from './layouts/workbench';

View File

@ -6,10 +6,6 @@ import { BasicContext } from './base-context';
import { EditorWindow } from './editor-window/context';
import { Resource } from './resource';
export { Resource } from './resource';
export * from './editor-window/context';
export * from './layouts/workbench';
enum event {
ChangeWindow = 'change_window',