Commit 5ed3843d authored by XieZhiXiong's avatar XieZhiXiong

chore: 完善样式

parent 4d3e7a61
......@@ -358,12 +358,3 @@ a {
}
}
}
.mega-layout-container-content {
overflow: hidden;
}
.ant-form-item-label > label {
font-size: 12px !important;
color: #909399 !important;
}
......@@ -217,3 +217,16 @@
}
}
.ant-descriptions-item-label {
color: #909399 !important;
}
.mega-layout-container-content {
overflow: hidden;
}
.ant-form-item-label > label {
font-size: 12px !important;
color: #909399 !important;
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-29 15:04:46
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-24 10:55:51
* @LastEditTime: 2021-01-22 11:45:59
* @Description: 外部流转记录
*/
import React from 'react';
......@@ -77,7 +77,7 @@ const OuterCirculationRecord: React.FC<OuterCirculationRecordProps> = ({
title="外部流转记录"
>
<PolymericTable
rowKey="operateTime"
rowKey="step"
dataSource={dataSource}
columns={columns}
loading={false}
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-18 17:50:38
* @LastEditTime: 2021-01-22 10:33:27
* @Description: 退款明细
*/
import React, { useState } from 'react';
......@@ -44,7 +44,7 @@ interface ReturnDetailInfoProps {
/**
* 退款事件
*/
onRefund?: (id: number) => Promise<any>;
onRefund?: (value: { [key: string]: any }) => Promise<any>;
/**
* 确认事件
*/
......@@ -220,8 +220,10 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
title: '提示',
icon: <ExclamationCircleOutlined />,
content: `是否确认退款?`,
okText: '确认',
cancelText: '取消',
onOk() {
return onRefund(id);
return onRefund({ id });
},
});
}
......
/*
* @Author: XieZhiXiong
* @Date: 2020-12-18 17:44:26
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-22 11:32:06
* @Description:
*/
import React from 'react';
import { SchemaForm, SchemaField, FormPath } from '@formily/antd';
import styled from 'styled-components';
import { toArr } from '@formily/shared';
import { ArrayList } from '@formily/react-shared-components';
import Stamp from '../../../Stamp';
const SteamerWrap = styled(props => <div {...props} />)`
.ant-form-item {
margin-bottom: 0;
}
.mega-layout-container-content {
&.grid {
grid-row-gap: 0 !important;
}
}
`
const ArrayCustom = props => {
const { value, schema, className, editable, path, mutators } = props;
const {
......@@ -17,30 +36,32 @@ const ArrayCustom = props => {
} = schema.getExtendsComponentProps() || {};
return (
<ArrayList
value={value}
minItems={schema.minItems}
maxItems={schema.maxItems}
editable={editable}
components={{}}
renders={{
renderAddition,
renderRemove,
renderMoveDown,
renderMoveUp,
renderEmpty // 允许开发者覆盖默认
}}
>
{toArr(value).map((item, index) => {
return (
<div {...componentProps} key={index}>
<Stamp imprinted>
<SchemaField path={FormPath.parse(path).concat(index)} />
</Stamp>
</div>
)
})}
</ArrayList>
<SteamerWrap>
<ArrayList
value={value}
minItems={schema.minItems}
maxItems={schema.maxItems}
editable={editable}
components={{}}
renders={{
renderAddition,
renderRemove,
renderMoveDown,
renderMoveUp,
renderEmpty // 允许开发者覆盖默认
}}
>
{toArr(value).map((item, index) => {
return (
<div {...componentProps} key={index}>
<Stamp imprinted>
<SchemaField path={FormPath.parse(path).concat(index)} />
</Stamp>
</div>
)
})}
</ArrayList>
</SteamerWrap>
)
}
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-06 14:30:16
* @LastEditTime: 2021-01-22 11:07:42
* @Description: 查看退货数量与退款金额 抽屉
*/
import React from 'react';
......@@ -187,6 +187,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
onSubmit={handleSubmit}
actions={schemaAction}
schema={schema}
colon
/>
</Drawer>
);
......
.stamp {
padding: 25px 20px;
margin: 10px;
background: #FFFFFF;
padding: 16px 20px;
margin: 16px 10px;
background: #FAFBFC;
box-shadow: 0px 4px 6px 0px rgba(23, 43, 77, 0.08), 0px 0px 1px 0px rgba(23, 43, 77, 0.12);
border-radius: 4px;
border-left: 2px solid #606266;
......
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