Commit a384ea47 authored by XieZhiXiong's avatar XieZhiXiong

chore: 调整样式

parent 5ed3843d
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Button, Space, message, Spin } from 'antd'; import { Button, Space, message, Spin } from 'antd';
import styled from 'styled-components';
import { createFormActions } from '@formily/antd'; import { createFormActions } from '@formily/antd';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
...@@ -7,6 +8,12 @@ import { uploadVoucherModalSchema } from './schema'; ...@@ -7,6 +8,12 @@ import { uploadVoucherModalSchema } from './schema';
const uploadVoucherFormActions = createFormActions(); const uploadVoucherFormActions = createFormActions();
const Wrap = styled(props => <div {...props} />)`
.ant-form-item {
margin-bottom: 2;
}
`
interface BankAccount { interface BankAccount {
name: string, name: string,
bankAccount: string, bankAccount: string,
...@@ -109,20 +116,22 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({ ...@@ -109,20 +116,22 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({
return ( return (
<Spin spinning={loading}> <Spin spinning={loading}>
<NiceForm <Wrap>
previewPlaceholder="" <NiceForm
value={bankAccount} previewPlaceholder=""
effects={($, { setFieldState }) => { value={bankAccount}
effects={($, { setFieldState }) => {
}}
expressionScope={{ }}
beforeUpload: beforeUploadVoucher, expressionScope={{
}} beforeUpload: beforeUploadVoucher,
actions={uploadVoucherFormActions} }}
schema={uploadVoucherModalSchema} actions={uploadVoucherFormActions}
onSubmit={handleUploadVoucherSubmit} schema={uploadVoucherModalSchema}
colon onSubmit={handleUploadVoucherSubmit}
/> colon
/>
</Wrap>
<div style={{ marginTop: 20, textAlign: 'center' }}> <div style={{ marginTop: 20, textAlign: 'center' }}>
<Space> <Space>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34 * @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-07 13:57:30 * @LastEditTime: 2021-01-22 14:36:52
* @Description: * @Description:
*/ */
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
...@@ -23,7 +23,7 @@ export const uploadVoucherModalSchema: ISchema = { ...@@ -23,7 +23,7 @@ export const uploadVoucherModalSchema: ISchema = {
properties: { properties: {
name: { name: {
type: 'string', type: 'string',
title: '账户名称', title: '还款账户名称',
'x-component': 'Text', 'x-component': 'Text',
}, },
bankAccount: { bankAccount: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18 * @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-22 10:33:27 * @LastEditTime: 2021-01-22 14:34:27
* @Description: 退款明细 * @Description: 退款明细
*/ */
import React, { useState } from 'react'; import React, { useState } from 'react';
...@@ -318,7 +318,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({ ...@@ -318,7 +318,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
) && ( ) && (
<div <div
className={styles['deliver-item-return']} className={styles['deliver-item-return']}
onClick={() => handleRefund(item.refundId, item.channel, item.refundAmount)} onClick={() => handleRefund(item.refundId, PAY_CHANNEL_OFFLINE, item.refundAmount)}
> >
退款 退款
</div> </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