From 77a2a090ff1b9d1b03795d696954a28ba0e0871f Mon Sep 17 00:00:00 2001 From: Mr Ke <kelq@hugeinfo.com.cn> Date: Wed, 27 May 2020 14:41:27 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/huge/frontEnd/hugeOA --- 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