大屏
This commit is contained in:
@@ -831,7 +831,6 @@
|
|||||||
|
|
||||||
.top {
|
.top {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 80px 60px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
autoScale () {
|
autoScale () {
|
||||||
const treeWidth = this.$refs.tree.offsetWidth
|
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.scale = treeWidth < containerWidth ? 1 : containerWidth / treeWidth
|
||||||
this.x = '50%'
|
this.x = '50%'
|
||||||
this.y = '50%'
|
this.y = '50%'
|
||||||
|
|||||||
Reference in New Issue
Block a user