afc163 8 лет назад
Родитель
Сommit
3cc8570ea2
2 измененных файлов с 9 добавлено и 6 удалено
  1. 8 6
      src/components/Charts/demo/mini-pie.md
  2. 1 0
      src/components/TagSelect/index.less

+ 8 - 6
src/components/Charts/demo/mini-pie.md

@@ -9,11 +9,13 @@ title: 迷你饼状图
 import { Pie } from 'ant-design-pro/lib/Charts';
 import { Pie } from 'ant-design-pro/lib/Charts';
 
 
 ReactDOM.render(
 ReactDOM.render(
-  <Pie
-    percent={28}
-    subTitle="中式快餐"
-    total="28%"
-    height={129}
-  />
+  <div style={{ width: 200, display: 'inline-block' }}>
+    <Pie
+      percent={28}
+      subTitle="中式快餐"
+      total="28%"
+      height={130}
+    />
+  </div>
 , mountNode);
 , mountNode);
 ````
 ````

+ 1 - 0
src/components/TagSelect/index.less

@@ -13,6 +13,7 @@
     .ant-tag {
     .ant-tag {
       padding: 0 8px;
       padding: 0 8px;
       margin-right: 24px;
       margin-right: 24px;
+      font-size: @font-size-base;
     }
     }
   }
   }
   &.expanded {
   &.expanded {