From fa71559c92ce8f7429971370ca4bd1139c903621 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 27 May 2020 11:16:05 +0800
Subject: [PATCH] oa+用户中心

---
 src/components/common/SearchFormView/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/common/SearchFormView/index.jsx b/src/components/common/SearchFormView/index.jsx
index 398649e..bbc7bc1 100644
--- a/src/components/common/SearchFormView/index.jsx
+++ b/src/components/common/SearchFormView/index.jsx
@@ -107,7 +107,7 @@
     };
 
     render() {
-        const { formData = {}, data = [], children } = this.props;
+        const { formData = {}, data = [], children, width = "25%" } = this.props;
         let size = 'default';
 
         return (
@@ -117,7 +117,7 @@
 
                         {data.length > 0 &&
                             data.map((item, idx) => (
-                                <Card.Grid key={idx} style={{ width: '20%' }} hoverable={false} >
+                                <Card.Grid key={idx} style={{ width }} hoverable={false} >
                                     {(() => {
                                         switch (item.type) {
                                             case 'select':
@@ -171,7 +171,7 @@
                                                 return (
                                                     <Form.Item label={item.label}>
                                                         <RangePicker
-                                                            style={{ width: '100%'}}
+                                                            style={{ width: '100%' }}
                                                             size={size}
                                                             ranges={{
                                                                 Today: [moment(), moment()],
@@ -211,7 +211,7 @@
                                     })()}
                                 </Card.Grid>
                             ))}
-                        <Card.Grid style={{ width: '20%' }}>
+                        <Card.Grid style={{ width }}>
                             <Row type="flex" gutter={20} align="middle" align="middle" style={{ height: 40 }}>
                                 <Col>
                                     <Button

--
Gitblit v1.8.0