perf: 优化下滑框性能(部分)

This commit is contained in:
chenjinsong
2020-07-17 16:53:42 +08:00
parent 81ef842a12
commit cdb6ab245c
2 changed files with 3 additions and 10 deletions

View File

@@ -241,7 +241,7 @@ export const bottomBoxWindow = {
vm.mainResizeShow = true;
}
}
if(parseInt(subListDom.offsetHeight) <= 100){
if(parseInt(subListDom.style.height) <= 100){
if (vm.subResizeShow) {
vm.subResizeShow = false;
}

View File

@@ -1,5 +1,5 @@
<template>
<el-popover :placement="placement" width="487" ref="selectAreaPopBox" v-model="popBox.show" popper-class="nz-pop nz-pop-select-area" transition="slide">
<el-popover :placement="placement" width="698" ref="selectAreaPopBox" v-model="popBox.show" popper-class="nz-pop nz-pop-select-area" transition="slide">
<div>
<div class="pop-item-wider">
<el-scrollbar class="select-area-tree">
@@ -36,14 +36,7 @@
currentArea: {type: Number}
},
mounted() {
/*this.$nextTick(() => {
console.info(this.$refs)
this.$refs.areaTree.setCurrentKey(this.currentArea);
});*/
setTimeout(() => {
console.info(this.$refs)
this.$refs.areaTree.setCurrentKey(this.currentArea);
}, 100);
},
data(){
return {