123456789101112131415161718192021222324252627282930313233343536 |
- declare type SaveCallback = (saveTemplate: string, callback: (result: boolean) => void) => void;
- export default class ReportApi {
- /**
- *设计模板
- *
- * @param {string} fileName 模板
- * @param {string} tempData 临时演示数据
- * @memberof ReportApi
- */
- static designerReport(template: string, tempData: string, saveCallback: SaveCallback): void;
- /**
- *打印预览
- *
- * @param {string} fileName 模板路径
- * @param {string} jsonData 数据
- * @memberof ReportApi
- */
- static reportShowPreview(fileName: string, jsonData: string): void;
- /**
- *打印
- *
- * @param {string} fileName 模板路径
- * @param {string} jsonData 数据
- * @memberof ReportApi
- */
- static reportPrinter(fileName: string, jsonData: string, isSelectPrinter: boolean): void;
- /**
- * 打印到图片(返回base64图片)
- *
- * @param {string} fileName 模板路径
- * @param {string} jsonData 数据
- * @memberof ReportApi
- */
- static reportToImage(fileName: string, jsonData: string): string;
- }
- export {};
|