import { type UploadProps } from 'antd'; import React from 'react'; import type { Attachment } from '..'; export interface FileListProps { /** * @description 自定义CSS类名前缀,用于样式隔离和主题定制 * @descriptionEn Custom CSS class name prefix for style isolation and theme customization */ prefixCls: string; /** * @description 文件附件数据数组,包含所有要显示的文件信息 * @descriptionEn File attachment data array containing all file information to display */ items: Attachment[]; /** * @description 文件移除时的回调函数,用于处理文件删除操作 * @descriptionEn Callback function when file is removed for handling file deletion operations */ onRemove: (item: Attachment) => void; /** * @description 替换图片文件的回调,传入原始附件和新选择的文件 * @descriptionEn Callback to replace an image file, receives the original attachment and newly selected file */ onReplace?: (oldItem: Attachment, file: File) => void; /** * @description 文件列表的溢出处理方式,影响滚动和布局行为 * @descriptionEn Overflow handling method for file list, affects scrolling and layout behavior */ overflow?: 'scrollX' | 'scrollY' | 'wrap'; /** * @description 上传组件的属性配置,用于控制上传行为 * @descriptionEn Upload component props configuration for controlling upload behavior */ upload: UploadProps; /** * @description 文件列表容器的CSS类名 * @descriptionEn CSS class name for the file list container */ listClassName?: string; /** * @description 文件列表容器的内联样式对象 * @descriptionEn Inline style object for the file list container */ listStyle?: React.CSSProperties; /** * @description 文件列表项的CSS类名 * @descriptionEn CSS class name for file list items */ itemClassName?: string; /** * @description 文件列表项的内联样式对象 * @descriptionEn Inline style object for file list items */ itemStyle?: React.CSSProperties; /** * @description 渲染类型,目前仅支持默认渲染模式 * @descriptionEn Render type, currently only supports default render mode */ renderType?: 'default'; } export default function FileList(props: FileListProps): import("react/jsx-runtime").JSX.Element;