@js-preview/excel
Version:
支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库,支持vue2/3。也支持非Vue框架的预览。
17 lines (16 loc) • 539 B
TypeScript
export interface Options {
minColLength?: number;
minRowLength?: number;
showContextmenu?: boolean;
}
export interface JsExcelPreview {
preview: (src: string | ArrayBuffer | Blob) => Promise<any>;
save: (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;