Commit c5a63823 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复第一次打开弹窗信息不显示的问题

parent 914f6565
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-13 13:46:08
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-22 14:42:09
* @LastEditTime: 2021-01-22 15:24:39
* @Description: 上传凭证弹窗
*/
import React, { useState, useEffect } from 'react';
......@@ -18,7 +18,7 @@ const uploadVoucherFormActions = createFormActions();
const Wrap = styled(props => <div {...props} />)`
.ant-form-item {
margin-bottom: 2;
margin-bottom: 2px;
}
`
......@@ -134,7 +134,7 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc
<Wrap>
<NiceForm
previewPlaceholder=""
initialValues={bankAccount}
value={bankAccount}
effects={($, { setFieldState }) => {
}}
......@@ -144,6 +144,7 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc
actions={uploadVoucherFormActions}
schema={uploadVoucherModalSchema}
onSubmit={handleUploadVoucherSubmit}
colon
/>
</Wrap>
</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