Ver Fonte

:art: eCharts调整

Ritchie há 1 ano atrás
pai
commit
6565e156e4
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 2
      src/styles/home/index.less
  2. 2 0
      src/views/home/index.vue

+ 2 - 2
src/styles/home/index.less

@@ -114,7 +114,7 @@
       background-size: 100% 100%;
       // width: 100%;
       margin-top: 0.5rem;
-      padding: 0.5rem 0.5rem;
+      padding: 0.15rem 0.2rem;
 
       // .block5 {
       //   width: 100%;
@@ -324,7 +324,7 @@
 
     .Chart1 {
       background-color: rgba(255, 255, 255, 1);
-      height: 350px;
+      height: 200px;
       width: 100%;
     }
 

+ 2 - 0
src/views/home/index.vue

@@ -328,10 +328,12 @@ export default {
               },
             },
             grid: {
+              top: '10%',
               left: "3%",
               right: "4%",
               bottom: "10%",
               containLabel: true,
+              height: 'auto',
             },
             legend: {
               bottom: 0,