From dff9fb32c1bac52d378a6d196f670b92610c01d3 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期四, 16 十二月 2021 17:21:49 +0800 Subject: [PATCH] 自适应2 --- src/pages/internetEquipment/views/helemetEquipment.vue | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/pages/internetEquipment/views/helemetEquipment.vue b/src/pages/internetEquipment/views/helemetEquipment.vue index ab9f851..d9e407a 100644 --- a/src/pages/internetEquipment/views/helemetEquipment.vue +++ b/src/pages/internetEquipment/views/helemetEquipment.vue @@ -32,6 +32,7 @@ }, data() { return { + boundArr: [], warnArr: [], lowBatteryArr: [], }; @@ -52,6 +53,7 @@ } .helmet-equipment { + position: relative; padding: 20px; width: 100%; height: 100%; @@ -62,10 +64,28 @@ } .footer { - height: 292px; + position: absolute; + top: 540px; + left: 20px; + right: 20px; + bottom: 20px; display: flex; - justify-content: space-between; + justify-content: start; color: #4f4f4f; + .real-time-module { + flex: 2.35; + height: 100%; + } + .elec-module { + flex: 1; + margin: 0 20px; + height: 100%; + } + + .history-module { + flex: 1; + height: 100%; + } } } </style> \ No newline at end of file -- Gitblit v1.8.0