From 45e291c7e7a17d8b34535cc2d6847abcce39f574 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期日, 28 二月 2021 19:13:47 +0800
Subject: [PATCH] 朔黄进度条定制样式
---
src/components/subComponents/SystemInfo.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/components/subComponents/SystemInfo.vue b/src/components/subComponents/SystemInfo.vue
index 4a67a74..813b467 100644
--- a/src/components/subComponents/SystemInfo.vue
+++ b/src/components/subComponents/SystemInfo.vue
@@ -1,6 +1,6 @@
<template>
<div :class="showClass">
- <div class="card-box" :style="`width:${borderWidth}`">
+ <div class="card-box" :style="`width:${borderWidth};min-width:456px`" >
<ul>
<li style="max-width:30px;" v-if="ShowLocalVedio">
<div class="total-box">
@@ -75,7 +75,7 @@
</li>
</ul>
</div>-->
- <div class="eCharts-box" >
+ <div class="eCharts-box" v-if="PollData.barCharts.length>0">
<eChartsBar ref="cpuMeneryCharts" :xAxisData="PollData.barCharts"></eChartsBar>
</div>
</div>
@@ -114,7 +114,7 @@
},
borderWidth: {
type: String,
- default: '70%'
+ default: '64%'
},
liquidWidth: {
type: String,
@@ -126,6 +126,9 @@
this.$forceUpdate();
}
},
+ mounted(){
+ console.log('PollData.RealTimeValidCount',this.PollData.RealTimeValidCount)
+ }
}
</script>
<style lang="scss">
@@ -178,17 +181,18 @@
}
}
.eCharts-box {
- width: 28%;
- float: right;
+ width: 46%;
+ float: left;
box-sizing: border-box;
height: 100%;
- margin-left: 5px;
- @media screen and (min-width: 1280px) and (max-width: 1440px) {
- width: 35%;
- }
- @media screen and (max-width: 1279px) {
- width: 30%;
- }
+ padding-left: 10px;
+ //margin-left: 10px;
+ // @media screen and (min-width: 1280px) and (max-width: 1440px) {
+ // width: 35%;
+ // }
+ // @media screen and (max-width: 1279px) {
+ // width: 30%;
+ // }
}
.chart-box {
float: left;
--
Gitblit v1.8.0