perf: endpoint-query交互优化

This commit is contained in:
chenjinsong
2020-05-12 14:56:43 +08:00
parent 692dc7bae7
commit 3382732aff
3 changed files with 77 additions and 71 deletions

View File

@@ -258,6 +258,7 @@ export const bottomBoxWindow = {
}
},
exitFullScreen(vm) {
window.resizing = true;
let contentRightDom = document.querySelector(".content-right"); //右侧内容区
let contentRightHeight = contentRightDom.offsetHeight;//可视高度
//主列表
@@ -273,9 +274,11 @@ export const bottomBoxWindow = {
if (document.querySelector(".sub-list").offsetHeight >= 100) {
vm.subResizeShow = true;
}
window.resizing = false;
}, 210);
},
fullScreen(vm) {
window.resizing = true;
let contentRightDom = document.querySelector(".content-right"); //右侧内容区
let contentRightHeight = contentRightDom.offsetHeight;//可视高度
vm.isFullScreen = true;
@@ -285,6 +288,7 @@ export const bottomBoxWindow = {
vm.mainResizeShow = false;
//副列表
document.querySelector(".sub-list").style.height = contentRightHeight + 'px';
window.resizing = false;
},
showSubListWatch(vm, n) {
vm.inTransform = n;