修复因更改Upload默认listType导致的ImportFile中listType不对问题

master
LiuJiaNan 2025-10-30 14:36:08 +08:00
parent 6f426bc895
commit 2680d1ffc1
2 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ export interface CustomRenderProps {
/** 表单当前值 */ /** 表单当前值 */
formValues: FormValues; formValues: FormValues;
/** 字段值 */ /** 字段值 */
value: any; value?: any;
/** 值变化回调 */ /** 值变化回调 */
onChange: (value: any) => void; onChange?: (value: any) => void;
/** 其他属性 */ /** 其他属性 */
[key: string]: any; [key: string]: any;
} }

View File

@ -75,7 +75,7 @@ const ImportFile = (props) => {
> >
{children && typeof children === "function" ? children({ form }) : children} {children && typeof children === "function" ? children({ form }) : children}
<Form.Item label="附件" name="file" rules={[{ required: true, message: "附件不能为空" }]}> <Form.Item label="附件" name="file" rules={[{ required: true, message: "附件不能为空" }]}>
<Upload accept=".xls,.xlsx" /> <Upload accept=".xls,.xlsx" listType="text" />
</Form.Item> </Form.Item>
</Form> </Form>
</Modal> </Modal>