🔨 动态计算使用时间.

This commit is contained in:
lijiahang
2024-03-20 11:43:59 +08:00
parent 30349cb362
commit 3d853eb7d4
4 changed files with 41 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
import type { IDisposable, ITerminalOptions, ITerminalInitOnlyOptions } from 'xterm';
import { Terminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import { SearchAddon } from 'xterm-addon-search';
import { CanvasAddon } from 'xterm-addon-canvas';
import type { Terminal } from 'xterm';
import type { FitAddon } from 'xterm-addon-fit';
import type { SearchAddon } from 'xterm-addon-search';
import type { CanvasAddon } from 'xterm-addon-canvas';
// appender 配置
export const AppenderOptions: ITerminalOptions & ITerminalInitOnlyOptions = {

View File

@@ -105,7 +105,6 @@ export default class LogAppender implements ILogAppender {
// 自适应
fit(): void {
Object.values(this.appenderRel).forEach(s => {
console.log(s);
s.addons?.fit?.fit();
});
}