perf: model-panel调整

1.修复顶部工具栏遮挡panel的问题;
2.model-panel图标更换;
3.修复panel resize后滚动条不对的问题;
This commit is contained in:
chenjinsong
2020-05-20 15:06:49 +08:00
parent 83000ef214
commit fa957563c8
9 changed files with 16 additions and 10 deletions

View File

@@ -39,7 +39,7 @@
</template>
<!-- model-panel/asset-detail/project-overview的panel-->
<panel-tab v-if="from == 'model' && targetTab == 'panel'" v-show="subResizeShow" :from="from" :obj="obj"></panel-tab>
<panel-tab v-if="from == 'model' && targetTab == 'panel'" v-show="subResizeShow" :from="from" :obj="obj" ref="panelTab"></panel-tab>
</div>
</span>
@@ -102,6 +102,9 @@
if (this.from == 'endpoint' && this.targetTab == 'endpointQuery') {
this.$refs.endpointQuery.tableReload();
}
if (this.from == 'model') {
setTimeout(() => {this.$refs.panelTab.$refs.dashboardScrollbar.update();}, 400);
}
}
}
}