mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-06-15 20:02:39 +00:00
16 lines
416 B
TypeScript
16 lines
416 B
TypeScript
import { makeObservable, obx } from '@alilc/lowcode-editor-core';
|
|
import { Resource } from './resource';
|
|
|
|
export class EditorWindow {
|
|
constructor(public resource: Resource) {
|
|
// debugger
|
|
makeObservable(this);
|
|
this.editorView = resource.getEditorView(this.resource.defaultViewType);
|
|
}
|
|
|
|
@obx editorView;
|
|
|
|
changeViewType(name: string) {
|
|
this.editorView = this.resource.getEditorView(name);
|
|
}
|
|
} |