刘光辉
3 小时以前 cf11e63b659afcc9792ab3e395f1b45d844431a8
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;
}