feat: 终端承载页.

This commit is contained in:
lijiahang
2024-01-12 19:42:16 +08:00
parent 322301d9c9
commit 720c2247c8
7 changed files with 153 additions and 35 deletions

View File

@@ -9,7 +9,9 @@ export default class TerminalTabManager implements ITerminalTabManager {
public items: Array<TerminalTabItem>;
constructor() {
this.active = InnerTabs.NEW_CONNECTION.key;
// fixme
// this.active = InnerTabs.NEW_CONNECTION.key;
this.active = undefined as unknown as string;
this.items = [InnerTabs.NEW_CONNECTION];
}
@@ -27,6 +29,8 @@ export default class TerminalTabManager implements ITerminalTabManager {
if (key === this.active && this.items.length !== 0) {
// 切换为前一个 tab
this.active = this.items[Math.max(tabIndex - 1, 0)].key;
} else {
this.active = undefined as unknown as string;
}
}