@sparta-utils/excel-validate-helper
Version:
Excel 读取、校验、错误标注和导出工具库
16 lines (15 loc) • 426 B
TypeScript
type ExportFormat = 'xlsx' | 'csv' | 'pdf';
interface ExportOptions {
fileName?: string;
format?: ExportFormat;
onSuccess?: () => void;
onError?: (error: any) => void;
onProgress?: (progress: number) => void;
}
export declare class ExcelExporter {
/**
* 导出文件,支持xlsx/csv/pdf,返回 Promise
*/
static export(blob: Blob, options?: ExportOptions): Promise<void>;
}
export {};