@flatbiz/antd
Version:
25 lines (23 loc) • 745 B
TypeScript
export type PdfPreviewProps = {
pdfUrl: string;
/** 缩放比例,默认值:1 */
scale?: number;
className?: string;
/** 导航pdf,缩放比例,默认值:0.2 */
navigationScale?: number;
/** 隐藏导航栏 */
hiddenNavigation?: boolean;
/** 导航栏宽度,默认值:200 */
navigationWidth?: number;
};
/**
* pdf预览方式1
* ```
* 使用方式:在cdn.ts中引入 '//file.40017.cn/tcsk/react/pdf@3.2.146/pdf.min.js'
* Git: https://github.com/mozilla/pdfjs-dist/tree/master
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal
* ```
*/
export declare const PdfPreview: (props: PdfPreviewProps) => import("react").JSX.Element;
export {};