Skip to content

Commit 06a4a22

Browse files
committed
feat: add editorGroup model
1 parent fdfa1df commit 06a4a22

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/model/editorGroup.ts

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { ITab } from 'mo/components/tabs';
2+
import { IEditorGroup } from 'mo/workbench/editor/editor';
3+
4+
export class EditorGroup implements IEditorGroup {
5+
id: number;
6+
activeTab: ITab;
7+
tabs: ITab[];
8+
breadcrumb: any[];
9+
actions: any[];
10+
menu: any[];
11+
editorInstance: any;
12+
13+
constructor(
14+
id: number,
15+
activeTab: ITab,
16+
tabs: ITab[],
17+
breadcrumb: any[] = [],
18+
actions: any[] = [],
19+
menu: any[] = [],
20+
editorInstance?: any,
21+
) {
22+
this.id = id;
23+
this.tabs = tabs;
24+
this.menu = menu;
25+
this.actions = actions;
26+
this.activeTab = activeTab;
27+
this.breadcrumb = breadcrumb;
28+
this.editorInstance = editorInstance;
29+
}
30+
}

0 commit comments

Comments
 (0)