Commit 4fd8c3ba authored by XieZhiXiong's avatar XieZhiXiong

chore: 调整样式

parent 53118461
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-04 17:26:51 * @Date: 2021-06-04 17:26:51
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-17 10:37:59 * @LastEditTime: 2021-06-18 17:31:07
* @Description: 资质上传组件 * @Description: 资质上传组件
*/ */
import React, { useState } from 'react'; import React, { useState } from 'react';
...@@ -77,6 +77,7 @@ const QualitiesUpload = (props) => { ...@@ -77,6 +77,7 @@ const QualitiesUpload = (props) => {
maxCount={1} maxCount={1}
fileList={arrValue} fileList={arrValue}
onChange={handleChange} onChange={handleChange}
disabled={!editable}
> >
{!loading ? ( {!loading ? (
arrValue.length ? renderFile() : uploadButton arrValue.length ? renderFile() : uploadButton
......
...@@ -19,4 +19,12 @@ ...@@ -19,4 +19,12 @@
.del-btn { .del-btn {
position: relative; position: relative;
top: -10px; top: -10px;
}
.lineage-cell {
:global {
.ant-form-item {
margin-bottom: 0;
}
}
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-01 16:13:35 * @Date: 2021-06-01 16:13:35
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-17 10:50:41 * @LastEditTime: 2021-06-18 17:50:57
* @Description: 资质证明上传组件 * @Description: 资质证明上传组件
*/ */
import React from 'react'; import React from 'react';
...@@ -105,46 +105,50 @@ const QualitiesUploadFormItem = (props) => { ...@@ -105,46 +105,50 @@ const QualitiesUploadFormItem = (props) => {
}; };
return ( return (
<ArrayList value={value}> <div style={{ width: '100%' }}>
<Row <ArrayList value={value}>
gutter={{ sm: 44, md: 88, lg: 88 }} <Row
> gutter={{ sm: 44, md: 88, lg: 88 }}
{toArr(value).map((item, index) => ( >
<Col key={index} {...span}> {toArr(value).map((item, index) => (
<Row <Col key={index} {...span}>
gutter={50} <Row
align="middle" gutter={50}
> align="middle"
<Col flex={1}> >
<SchemaField <Col flex={1} className={styles['lineage-cell']}>
path={FormPath.parse(path).concat(index)} <SchemaField
schema={schema} path={FormPath.parse(path).concat(index)}
/> schema={schema}
</Col> />
<Col> </Col>
<Button {editable && (
onClick={() => onRemove(index)} <Col>
type="link" <Button
icon={<CloseCircleOutlined style={{ fontSize: 20 }} />} onClick={() => onRemove(index)}
className={styles['del-btn']} type="link"
/> icon={<CloseCircleOutlined style={{ fontSize: 20 }} />}
</Col> className={styles['del-btn']}
</Row> />
</Col> </Col>
))} )}
{editable && ( </Row>
<Col {...span}> </Col>
<Button ))}
onClick={onAdd} {editable && (
type="dashed" <Col {...span}>
className={styles['add-btn']} <Button
> onClick={onAdd}
<PlusOutlined /> type="dashed"
</Button> className={styles['add-btn']}
</Col> >
)} <PlusOutlined />
</Row> </Button>
</ArrayList> </Col>
)}
</Row>
</ArrayList>
</div>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment