feat:【antd】文件上传组件增加 modelValue 参数适配,同时支持 modelValue 和 value 参数(适配 FormCreate)

This commit is contained in:
puhui999
2025-09-25 11:16:56 +08:00
parent 9bd1252dd6
commit fbeeb151ff
2 changed files with 165 additions and 15 deletions

View File

@@ -21,10 +21,12 @@ export interface FileUploadProps {
// 上传的目录
directory?: string;
disabled?: boolean;
drag?: boolean; // 是否支持拖拽上传
helpText?: string;
listType?: UploadListType;
// 最大数量的文件Infinity不限制
maxNumber?: number;
modelValue?: string | string[]; // v-model 支持
// 文件最大多少MB
maxSize?: number;
// 是否支持多选