Prechádzať zdrojové kódy

column分组样式修复

zhouy 3 rokov pred
rodič
commit
9b34f9edf0

+ 5 - 2
uas-office-web/uas-mobile/src/components/common/bizgoblin/ColumnChart.jsx

@@ -122,7 +122,7 @@ export default class ColumnChart extends Component {
                         fill: '#333333', // 文本的颜色
                         fontSize: 12, // 文本大小
                         textBaseline: 'top', // 文本基准线,可取 top middle bottom,默认为middle
-                      },
+                      }
                     }}
               />
               <Interval
@@ -137,7 +137,10 @@ export default class ColumnChart extends Component {
                         style: {
                           fill: '#333333',
                           fontSize: 12
-                        }
+                        },
+                        position: 'middle',
+                        offset: 0,
+                        layout: { type: 'limit-in-shape' }
                       }
                     },
                   ]}