NEZ-1203 style : project 添加小窗口下的横向滚动条

This commit is contained in:
zhangyu
2021-11-08 10:46:05 +08:00
parent b3409f5797
commit 30ddb294f5
2 changed files with 8 additions and 3 deletions

View File

@@ -615,12 +615,12 @@ export default {
// getTopology(this.topologyIndex).fitView(30) // getTopology(this.topologyIndex).fitView(30)
}, },
shrink (n) { shrink (n) {
setTimeout(()=>{ setTimeout(() => {
const domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect() const domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
getTopology(this.topologyIndex).canvasPos = domRect getTopology(this.topologyIndex).canvasPos = domRect
getTopology(this.topologyIndex).resize() getTopology(this.topologyIndex).resize()
getTopology(this.topologyIndex).centerView() getTopology(this.topologyIndex).centerView()
},500) }, 500)
} }
}, },
computed: { computed: {
@@ -2114,7 +2114,7 @@ export default {
}) })
getTopology(this.topologyIndex).centerView() getTopology(this.topologyIndex).centerView()
this.getNodesArr() this.getNodesArr()
}, 100) }, 500)
}, },
contextmenuNone () { contextmenuNone () {
this.contextmenu = { this.contextmenu = {

View File

@@ -52,13 +52,18 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
background: #f6f6f6; background: #f6f6f6;
overflow-x: auto;
.projectList{ .projectList{
flex: 1; flex: 1;
width: calc(50% - 10px);
margin-right: 10px; margin-right: 10px;
min-width: 745px;
} }
.projectTopo{ .projectTopo{
flex: 1; flex: 1;
width: calc(50% - 10px);
margin-right: 10px; margin-right: 10px;
min-width: 435px;
} }
.hide{ .hide{
display: none; display: none;