2023-07-08 18:15:48 +08:00

16 lines
516 B
TypeScript

export interface Options {
minColLength?: number;
showContextmenu?: boolean;
}
export interface JsExcelPreview {
preview: (src: string | ArrayBuffer | Blob) => Promise<any>;
download: (fileName?: string) => void;
setOptions: (options: Options) => void;
setRequestOptions: (requestOptions?: any) => void;
destroy: ()=> void;
}
declare const jsPreviewExcel: {
init: (container: HTMLElement, options?: Options, requestOptions?: any) => JsExcelPreview;
};
export default jsPreviewExcel;