This commit is contained in:
yanran200730
2022-07-21 18:33:18 +08:00
parent f5abfa0084
commit 7a310007b1
2 changed files with 1 additions and 2 deletions

View File

@@ -831,7 +831,6 @@
.top {
flex: 1;
padding: 80px 60px;
}
.bottom {

View File

@@ -118,7 +118,7 @@
autoScale () {
const treeWidth = this.$refs.tree.offsetWidth
const containerWidth = this.$refs.container.offsetWidth
const containerWidth = this.$refs.container.offsetWidth - 100
this.scale = treeWidth < containerWidth ? 1 : containerWidth / treeWidth
this.x = '50%'
this.y = '50%'