zy-react-library/components/Upload/index.d.ts

29 lines
845 B
TypeScript
Raw Normal View History

2025-10-22 14:43:42 +08:00
import type { UploadProps as AntUploadProps, UploadFile } from "antd/es/upload";
import type { FC, ReactNode } from "react";
/**
* Upload
*/
export interface UploadProps extends Omit<AntUploadProps, "fileList"> {
/** 文件列表 */
value?: UploadFile[];
/** 图片分辨率限制,如 "1920*1080" */
ratio?: `${number}*${number}`;
/** 是否显示提示,默认 true */
showTip?: boolean;
/** 文件大小限制单位MB默认 0不限制 */
size?: number;
/** 自定义提示内容 */
tipContent?: ReactNode;
/** listType 为 text 时上传按钮文本,默认 "点击选择文件上传" */
uploadButtonText?: string;
}
/**
*
*
*/
declare const Upload: FC<UploadProps>;
export default Upload;