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
......
...@@ -20,3 +20,11 @@ ...@@ -20,3 +20,11 @@
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,6 +105,7 @@ const QualitiesUploadFormItem = (props) => { ...@@ -105,6 +105,7 @@ const QualitiesUploadFormItem = (props) => {
}; };
return ( return (
<div style={{ width: '100%' }}>
<ArrayList value={value}> <ArrayList value={value}>
<Row <Row
gutter={{ sm: 44, md: 88, lg: 88 }} gutter={{ sm: 44, md: 88, lg: 88 }}
...@@ -115,12 +116,13 @@ const QualitiesUploadFormItem = (props) => { ...@@ -115,12 +116,13 @@ const QualitiesUploadFormItem = (props) => {
gutter={50} gutter={50}
align="middle" align="middle"
> >
<Col flex={1}> <Col flex={1} className={styles['lineage-cell']}>
<SchemaField <SchemaField
path={FormPath.parse(path).concat(index)} path={FormPath.parse(path).concat(index)}
schema={schema} schema={schema}
/> />
</Col> </Col>
{editable && (
<Col> <Col>
<Button <Button
onClick={() => onRemove(index)} onClick={() => onRemove(index)}
...@@ -129,6 +131,7 @@ const QualitiesUploadFormItem = (props) => { ...@@ -129,6 +131,7 @@ const QualitiesUploadFormItem = (props) => {
className={styles['del-btn']} className={styles['del-btn']}
/> />
</Col> </Col>
)}
</Row> </Row>
</Col> </Col>
))} ))}
...@@ -145,6 +148,7 @@ const QualitiesUploadFormItem = (props) => { ...@@ -145,6 +148,7 @@ const QualitiesUploadFormItem = (props) => {
)} )}
</Row> </Row>
</ArrayList> </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