Commit 914f6565 authored by XieZhiXiong's avatar XieZhiXiong

chore: 晚上样式

parent f75d1be5
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-01-13 13:46:08 * @Date: 2021-01-13 13:46:08
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-13 13:46:22 * @LastEditTime: 2021-01-22 14:42:09
* @Description: 上传凭证弹窗 * @Description: 上传凭证弹窗
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Modal, message } from 'antd'; import { Modal, message } from 'antd';
import styled from 'styled-components';
import { createFormActions } from '@formily/antd'; import { createFormActions } from '@formily/antd';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
...@@ -15,6 +16,12 @@ import styles from './index.less'; ...@@ -15,6 +16,12 @@ import styles from './index.less';
const uploadVoucherFormActions = createFormActions(); const uploadVoucherFormActions = createFormActions();
const Wrap = styled(props => <div {...props} />)`
.ant-form-item {
margin-bottom: 2;
}
`
interface UploadVoucherModalProps { interface UploadVoucherModalProps {
/** /**
* 是否可见 * 是否可见
...@@ -124,19 +131,21 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc ...@@ -124,19 +131,21 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc
onCancel={onCancel} onCancel={onCancel}
destroyOnClose destroyOnClose
> >
<NiceForm <Wrap>
previewPlaceholder="" <NiceForm
initialValues={bankAccount} previewPlaceholder=""
effects={($, { setFieldState }) => { initialValues={bankAccount}
effects={($, { setFieldState }) => {
}}
expressionScope={{ }}
beforeUpload: beforeUploadVoucher, expressionScope={{
}} beforeUpload: beforeUploadVoucher,
actions={uploadVoucherFormActions} }}
schema={uploadVoucherModalSchema} actions={uploadVoucherFormActions}
onSubmit={handleUploadVoucherSubmit} schema={uploadVoucherModalSchema}
/> onSubmit={handleUploadVoucherSubmit}
/>
</Wrap>
</Modal> </Modal>
); );
}; };
......
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