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

19 lines
436 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import type { CSSProperties, FC } from "react";
export interface PdfProps {
/** pdf 文件地址 */
file: string;
/** 是否显示弹窗 */
visible?: boolean;
/** 关闭弹窗的方法 */
onCancel?: () => void;
/** 是否使用内联模式true为不使用弹窗默认为false */
inline?: boolean;
/** 内联模式下的样式 */
style?: CSSProperties;
}
declare const Pdf: FC<PdfProps>;
export default Pdf;