From d746a8a8342fb6686dd4338a892e1a39dca058ea Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期三, 16 九月 2020 11:15:39 +0800
Subject: [PATCH] 可视化页面计算动态宽度
---
src/pages/visual/index/App.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/pages/visual/index/App.vue b/src/pages/visual/index/App.vue
index fe5c20e..3e1d4e8 100644
--- a/src/pages/visual/index/App.vue
+++ b/src/pages/visual/index/App.vue
@@ -13,7 +13,7 @@
</div>
</div>
- <home></home>
+ <home :class="{'hasLeftTree':TreeDataPool.showTreeBox}"></home>
</div>
</div>
</template>
@@ -74,6 +74,10 @@
min-width: 1350px;
overflow: auto;
}
+.hasLeftTree{
+ float: left;
+ width: calc(100% - 315px);
+}
.router-view-box {
width: 100%;
height: 100%;
--
Gitblit v1.8.0