@borurio-print/print-designer 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { LocalPrintConnectionState } from './core/localPrintTypes';
1
+ import type { LocalPrintConnectionState, PrinterSetting } from './core/localPrintTypes';
2
2
  import type { TemplatePrintDialogOpenOptions, TemplatePrintOption } from './core/templatePrintTypes';
3
3
  import type { PrintDesignerTheme, PrintResult } from './core/types';
4
4
  type __VLS_Props = {
@@ -21,17 +21,21 @@ type __VLS_Props = {
21
21
  theme?: PrintDesignerTheme;
22
22
  };
23
23
  declare function open(options: TemplatePrintDialogOpenOptions): void;
24
+ declare function openSettings(): void;
24
25
  declare function close(): void;
25
26
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
26
27
  open: typeof open;
28
+ openSettings: typeof openSettings;
27
29
  close: typeof close;
28
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
31
  "print-result": (result: PrintResult) => any;
30
32
  "connection-change": (state: LocalPrintConnectionState) => any;
33
+ "settings-change": (setting: PrinterSetting) => any;
31
34
  "loading-change": (loading: boolean) => any;
32
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
36
  "onPrint-result"?: (result: PrintResult) => any;
34
37
  "onConnection-change"?: (state: LocalPrintConnectionState) => any;
38
+ "onSettings-change"?: (setting: PrinterSetting) => any;
35
39
  "onLoading-change"?: (loading: boolean) => any;
36
40
  }>, {
37
41
  endpoint: string;
@@ -1,4 +1,4 @@
1
- import type { PrintPluginProps } from './localPrintTypes';
1
+ import type { PrinterSetting, PrintPluginProps } from './localPrintTypes';
2
2
  import type { PrintDesignerTheme, PrintResult, PrintTemplate } from './types';
3
3
  /** 业务系统传给统一打印弹窗的模板选项。 */
4
4
  export interface TemplatePrintOption {
@@ -35,8 +35,10 @@ export interface TemplatePrintDialogProps {
35
35
  onPrintResult?: (result: PrintResult) => void;
36
36
  onLoadingChange?: (loading: boolean) => void;
37
37
  onConnectionChange?: PrintPluginProps['onConnectionChange'];
38
+ onSettingsChange?: (setting: PrinterSetting) => void;
38
39
  }
39
40
  export interface TemplatePrintDialogExpose {
40
41
  open: (options: TemplatePrintDialogOpenOptions) => void;
42
+ openSettings: () => void;
41
43
  close: () => void;
42
44
  }