fix: 解决 mac 失焦问题

This commit is contained in:
fofolee
2022-01-01 12:43:06 +08:00
parent 438140b91b
commit 9f2ac5cf88
3 changed files with 11 additions and 11 deletions

View File

@@ -45,17 +45,17 @@ import qcparser from "./qcparser.js"
})
// 配置页面
if (code == 'options') {
utools.setExpendHeight(600);
utools.setExpendHeight(550);
$("#quickpanel").hide()
// $("#options").show();
qcfeatures.showFeatureList();
} else if (code == 'code') {
var file = ""
// utools.setExpendHeight(600);
// utools.setExpendHeight(550);
if (type == 'files') file = payload[0].path
qccommands.showCodeEditor(file)
} else if (code == 'newcommand') {
utools.setExpendHeight(600)
utools.setExpendHeight(550)
$("#quickpanel").hide()
$("#options").empty().fadeIn();
let qc = { "program": "quickcommand", "cmd": "", "output": "ignore" }
@@ -65,7 +65,7 @@ import qcparser from "./qcparser.js"
}
qccommands.editCurrentCommand(qc, false)
} else if (code.slice(0, 6) == 'panel_') {
utools.setExpendHeight(600)
utools.setExpendHeight(550)
qcpanel.showPanel(hexDecode(code.slice(6)))
} else {
// console.log(new Date().getTime() - window.startTime);

View File

@@ -120,7 +120,7 @@ let getSharedQCFromYuQue = async () => {
$('#options').show()
$('#customize').removeData('returnShare')
}
utools.setExpendHeight(600)
utools.setExpendHeight(550)
}
export default {