Browse Source

remove size="large"

afc163 8 years atrás
parent
commit
cb286ee457

+ 2 - 2
src/components/Exception/demo/403.md

@@ -11,8 +11,8 @@ import { Button } from 'antd';
 
 const actions = (
   <div>
-    <Button type="primary" size="large">回到首页</Button>
-    <Button size="large">查看详情</Button>
+    <Button type="primary">回到首页</Button>
+    <Button>查看详情</Button>
   </div>
 );
 ReactDOM.render(

+ 1 - 1
src/components/Exception/index.js

@@ -21,7 +21,7 @@ export default ({ className, type, title, desc, img, actions }) => {
         <h1>{title || config[pageType].title}</h1>
         <div className={styles.desc}>{desc || config[pageType].desc}</div>
         <div className={styles.actions}>
-          {actions || <Link to="/"><Button size="large" type="primary">返回首页</Button></Link>}
+          {actions || <Link to="/"><Button type="primary">返回首页</Button></Link>}
         </div>
       </div>
     </div>

+ 3 - 3
src/components/PageHeader/demo/standard.md

@@ -19,10 +19,10 @@ const menu = (
 
 const action = (
   <div>
-    <Button size="large" type="primary">主操作</Button>
-    <Button size="large">次操作</Button>
+    <Button type="primary">主操作</Button>
+    <Button>次操作</Button>
     <Dropdown overlay={menu}>
-      <Button size="large">
+      <Button>
         更多 <Icon type="down" />
       </Button>
     </Dropdown>

+ 3 - 3
src/components/Result/demo/classic.md

@@ -46,9 +46,9 @@ const extra = (
 
 const actions = (
   <div>
-    <Button size="large" type="primary">返回列表</Button>
-    <Button size="large">查看项目</Button>
-    <Button size="large">打 印</Button>
+    <Button type="primary">返回列表</Button>
+    <Button>查看项目</Button>
+    <Button>打 印</Button>
   </div>
 );
 

+ 1 - 1
src/components/Result/demo/error.md

@@ -25,7 +25,7 @@ const extra = (
   </div>
 );
 
-const actions = <Button size="large" type="primary">返回修改</Button>;
+const actions = <Button type="primary">返回修改</Button>;
 
 ReactDOM.render(
   <Result

+ 4 - 4
src/routes/Profile/AdvancedProfile.js

@@ -21,15 +21,15 @@ const menu = (
 const action = (
   <div>
     <ButtonGroup style={{ marginRight: 8 }}>
-      <Button size="large">操作</Button>
-      <Button size="large">操作</Button>
+      <Button>操作</Button>
+      <Button>操作</Button>
       <Dropdown overlay={menu}>
-        <Button size="large">
+        <Button>
           更多操作 <Icon type="down" />
         </Button>
       </Dropdown>
     </ButtonGroup>
-    <Button size="large" type="primary">主操作</Button>
+    <Button type="primary">主操作</Button>
   </div>
 );
 

+ 1 - 1
src/routes/Result/Error.js

@@ -19,7 +19,7 @@ const extra = (
   </div>
 );
 
-const actions = <Button size="large" type="primary">返回修改</Button>;
+const actions = <Button type="primary">返回修改</Button>;
 
 export default () => (
   <PageHeaderLayout>

+ 3 - 3
src/routes/Result/Success.js

@@ -44,9 +44,9 @@ const extra = (
 
 const actions = (
   <div>
-    <Button size="large" type="primary">返回列表</Button>
-    <Button size="large">查看项目</Button>
-    <Button size="large">打 印</Button>
+    <Button type="primary">返回列表</Button>
+    <Button>查看项目</Button>
+    <Button>打 印</Button>
   </div>
 );
 

+ 1 - 4
src/routes/User/Register.js

@@ -176,7 +176,6 @@ export default class Register extends Component {
                 }],
               })(
                 <Input
-                  size="large"
                   type="password"
                   placeholder="至少6位密码,区分大小写"
                 />
@@ -203,7 +202,7 @@ export default class Register extends Component {
                 {getFieldDecorator('prefix', {
                   initialValue: '86',
                 })(
-                  <Select size="large">
+                  <Select>
                     <Option value="86">+86</Option>
                     <Option value="87">+87</Option>
                   </Select>
@@ -231,7 +230,6 @@ export default class Register extends Component {
                   }],
                 })(
                   <Input
-                    size="large"
                     placeholder="验证码"
                   />
                 )}
@@ -240,7 +238,6 @@ export default class Register extends Component {
                 <Button
                   disabled={count}
                   className={styles.getCaptcha}
-                  size="large"
                   onClick={this.onGetCaptcha}
                 >
                   {count ? `${count} s` : '获取验证码'}

+ 2 - 2
src/routes/User/RegisterResult.js

@@ -5,8 +5,8 @@ import Result from '../../components/Result';
 
 const actions = (
   <div>
-    <Button size="large" type="primary"><a href="">查看邮箱</a></Button>
-    <Button size="large"><Link to="/">返回首页</Link></Button>
+    <Button type="primary"><a href="">查看邮箱</a></Button>
+    <Button><Link to="/">返回首页</Link></Button>
   </div>
 );