mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 21:12:53 +00:00
40 lines
831 B
TypeScript
40 lines
831 B
TypeScript
import { windowSymbol } from '../symbols';
|
|
import { IPublicModelWindow } from '@alilc/lowcode-types';
|
|
import { EditorWindow } from '@alilc/lowcode-workspace';
|
|
|
|
export class Window implements IPublicModelWindow {
|
|
private readonly [windowSymbol]: EditorWindow;
|
|
|
|
get id() {
|
|
return this[windowSymbol].id;
|
|
}
|
|
|
|
get title() {
|
|
return this[windowSymbol].title;
|
|
}
|
|
|
|
get icon() {
|
|
return this[windowSymbol].icon;
|
|
}
|
|
|
|
get resourceName() {
|
|
return this[windowSymbol].resourceName;
|
|
}
|
|
|
|
constructor(editorWindow: EditorWindow) {
|
|
this[windowSymbol] = editorWindow;
|
|
}
|
|
|
|
importSchema(schema: any): any {
|
|
this[windowSymbol].importSchema(schema);
|
|
}
|
|
|
|
changeViewType(viewName: string) {
|
|
this[windowSymbol].changeViewType(viewName);
|
|
}
|
|
|
|
async save() {
|
|
return await this[windowSymbol].save();
|
|
}
|
|
}
|