1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| import type { HiprintPrintConfig, HiprintPrintResult } from '#/utils/jnpf';
|
| export interface CustomPrintConfig {
| data?: any;
| showPdfBtn?: boolean;
| template: string;
| title?: string;
| type?: 'html' | 'html-file' | 'vue';
| }
|
| export interface CustomPrintPreviewExpose {
| browserPrint: () => void;
| downloadPdf: (fileName: string) => Promise<boolean>;
| hiprint: (options?: Omit<HiprintPrintConfig, 'html' | 'template'>) => Promise<HiprintPrintResult | undefined>;
| reload: () => void;
| }
|
|