perf: 优化terminal resize体验

This commit is contained in:
chenjinsong
2020-10-15 15:51:43 +08:00
parent 259282faa5
commit e80994e9d4
4 changed files with 152 additions and 98 deletions

View File

@@ -77,11 +77,8 @@ export default {
this.setFontSize(this.fontSize);
})
},
resizeServiceConsole(){
const consoleBox = document.getElementById('ternimalContainer'+this.idIndex);
resizeServiceConsole(height){
let width = document.body.clientWidth;//可视宽度
let height = parseInt(consoleBox.style.height);
if(height==null||!height){height=this.termimalHeight;}
const winStyle={
width:width,
height:height,