From 0ae83a895e80a4b9777a27f613d721a7e5e2ac18 Mon Sep 17 00:00:00 2001 From: ali <ali9696@163.com> Date: 星期二, 03 九月 2024 10:18:27 +0800 Subject: [PATCH] 整体样式修改 --- energy_management_ui/src/views/dashboard/PanelGroup.vue | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/energy_management_ui/src/views/dashboard/PanelGroup.vue b/energy_management_ui/src/views/dashboard/PanelGroup.vue index 1a1081f..3724515 100644 --- a/energy_management_ui/src/views/dashboard/PanelGroup.vue +++ b/energy_management_ui/src/views/dashboard/PanelGroup.vue @@ -9,7 +9,12 @@ <div class="card-panel-text"> 璁垮 </div> - <count-to :start-val="0" :end-val="102400" :duration="2600" class="card-panel-num" /> + <count-to + :start-val="0" + :end-val="102400" + :duration="2600" + class="card-panel-num" + /> </div> </div> </el-col> @@ -22,7 +27,12 @@ <div class="card-panel-text"> 娑堟伅 </div> - <count-to :start-val="0" :end-val="81212" :duration="3000" class="card-panel-num" /> + <count-to + :start-val="0" + :end-val="81212" + :duration="3000" + class="card-panel-num" + /> </div> </div> </el-col> @@ -35,7 +45,12 @@ <div class="card-panel-text"> 閲戦 </div> - <count-to :start-val="0" :end-val="9280" :duration="3200" class="card-panel-num" /> + <count-to + :start-val="0" + :end-val="9280" + :duration="3200" + class="card-panel-num" + /> </div> </div> </el-col> @@ -48,7 +63,12 @@ <div class="card-panel-text"> 璁㈠崟 </div> - <count-to :start-val="0" :end-val="13600" :duration="3600" class="card-panel-num" /> + <count-to + :start-val="0" + :end-val="13600" + :duration="3600" + class="card-panel-num" + /> </div> </div> </el-col> @@ -56,7 +76,7 @@ </template> <script> -import CountTo from 'vue-count-to' +import CountTo from "vue-count-to"; export default { components: { @@ -64,10 +84,10 @@ }, methods: { handleSetLineChartData(type) { - this.$emit('handleSetLineChartData', type) + this.$emit("handleSetLineChartData", type); } } -} +}; </script> <style lang="scss" scoped> @@ -85,9 +105,8 @@ position: relative; overflow: hidden; color: #666; - background: #fff; - box-shadow: 4px 4px 40px rgba(0, 0, 0, .05); - border-color: rgba(0, 0, 0, .05); + box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05); + border-color: rgba(0, 0, 0, 0.05); &:hover { .card-panel-icon-wrapper { @@ -107,7 +126,7 @@ } .icon-shopping { - background: #34bfa3 + background: #34bfa3; } } @@ -124,7 +143,7 @@ } .icon-shopping { - color: #34bfa3 + color: #34bfa3; } .card-panel-icon-wrapper { @@ -160,7 +179,7 @@ } } -@media (max-width:550px) { +@media (max-width: 550px) { .card-panel-description { display: none; } -- Gitblit v1.9.3