浏览代码

修改样式

Renxy 1 年之前
父节点
当前提交
57015d9900
共有 2 个文件被更改,包括 8 次插入5 次删除
  1. 1 0
      src/pages/Home/index.less
  2. 7 5
      src/pages/SmartReport/index.js

+ 1 - 0
src/pages/Home/index.less

@@ -70,6 +70,7 @@
     color: #3b3b3b;
     line-height: 0.5rem;
     text-align: center;
+    letter-spacing: 0.04rem;
     font-family: PangMenZhengDao-3, PangMenZhengDao-3;
   }
 }

+ 7 - 5
src/pages/SmartReport/index.js

@@ -386,7 +386,7 @@ const SmartReport = () => {
                 <div
                   ref={eqDomRef}
                   style={{
-                    height: '4rem',
+                    height: '8rem',
                     width: 'calc(100% - 1.2rem)',
                     margin: '0 0 0 0.8rem',
                   }}
@@ -413,7 +413,7 @@ const SmartReport = () => {
                 <div
                   ref={workScoreDomRef}
                   style={{
-                    height: '4rem',
+                    height: '8rem',
                     width: 'calc(100% - 1.2rem)',
                     margin: '0 0 0 0.8rem',
                   }}
@@ -467,7 +467,7 @@ const SmartReport = () => {
                   <div
                     ref={taskDomRef}
                     style={{
-                      height: '4rem',
+                      height: '8rem',
                       width: '100%',
                       marginTop: '0.2rem',
                     }}
@@ -478,7 +478,7 @@ const SmartReport = () => {
                   <div
                     ref={workDomRef}
                     style={{
-                      height: '4rem',
+                      height: '8rem',
                       width: '100%',
                       marginTop: '0.2rem',
                     }}
@@ -526,9 +526,11 @@ const getPieOption = (chartData, legend = {}) => {
     legend: {
       orient: 'horizontal',
       // left: 'left',
+      itemWidth: 10,
+      itemHeight: 8,
       textStyle: {
         color: '#000000',
-        fontSize: 18,
+        fontSize: 12,
       },
       ...legend,
     },