forked from huge/frontEnd/hugeOA

Mr Ke
2020-05-27 fa71559c92ce8f7429971370ca4bd1139c903621
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