隐藏上传文件入口,交叉评查的文件查看添加防抖点击,升级pdf加载组件版本优化清晰度

This commit is contained in:
jiangao
2025-09-30 14:32:00 +08:00
parent 25c8c75aa5
commit 9ec6d30573
14 changed files with 2872 additions and 3735 deletions
+44 -44
View File
@@ -1,44 +1,44 @@
declare module 'react-pdf' {
import * as React from 'react';
interface TextItem {
str: string;
transform: number[];
width: number;
height: number;
fontName: string;
}
export interface DocumentProps {
file: string | Uint8Array | ArrayBuffer;
onLoadSuccess?: ({ numPages }: { numPages: number }) => void;
onLoadError?: (error: Error) => void;
className?: string;
error?: React.ReactNode;
noData?: React.ReactNode;
loading?: React.ReactNode;
children?: React.ReactNode;
}
export interface PageProps {
pageNumber: number;
renderTextLayer?: boolean;
renderAnnotationLayer?: boolean;
className?: string;
customTextRenderer?: (textItem: TextItem) => string;
}
export const Document: React.FC<DocumentProps>;
export const Page: React.FC<PageProps>;
export const pdfjs: {
GlobalWorkerOptions: {
workerSrc: string;
};
version: string;
};
}
declare module '*.css' {
const content: Record<string, string>;
export default content;
}
// declare module 'react-pdf' {
// import * as React from 'react';
//
// interface TextItem {
// str: string;
// transform: number[];
// width: number;
// height: number;
// fontName: string;
// }
//
// export interface DocumentProps {
// file: string | Uint8Array | ArrayBuffer;
// onLoadSuccess?: ({ numPages }: { numPages: number }) => void;
// onLoadError?: (error: Error) => void;
// className?: string;
// error?: React.ReactNode;
// noData?: React.ReactNode;
// loading?: React.ReactNode;
// children?: React.ReactNode;
// }
//
// export interface PageProps {
// pageNumber: number;
// renderTextLayer?: boolean;
// renderAnnotationLayer?: boolean;
// className?: string;
// customTextRenderer?: (textItem: TextItem) => string;
// }
//
// export const Document: React.FC<DocumentProps>;
// export const Page: React.FC<PageProps>;
// export const pdfjs: {
// GlobalWorkerOptions: {
// workerSrc: string;
// };
// version: string;
// };
// }
//
// declare module '*.css' {
// const content: Record<string, string>;
// export default content;
// }