2025-10-22 17:54:38 +08:00
|
|
|
import type { FC } from "react";
|
|
|
|
|
|
|
|
|
|
export interface PreviewPdfProps {
|
|
|
|
|
/** 文件列表,和 name、url 冲突 */
|
2025-10-23 16:52:53 +08:00
|
|
|
files?: Record<string, any>[];
|
2025-10-22 17:54:38 +08:00
|
|
|
/** 文件名字段名,传入 files 时会优先查找是否存在 name、fileName */
|
|
|
|
|
nameKey?: string;
|
|
|
|
|
/** 文件路径字段名,传入 files 时会优先查找是否存在 filePath */
|
|
|
|
|
urlKey?: string;
|
|
|
|
|
/** 单个文件名,和 files 冲突 */
|
|
|
|
|
name?: string;
|
|
|
|
|
/** 单个文件路径,和 files 冲突 */
|
|
|
|
|
url?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare const PreviewPdf: FC<PreviewPdfProps>;
|
|
|
|
|
|
|
|
|
|
export default PreviewPdf;
|