@borurio-print/print-designer 1.0.28 → 1.0.30

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.
package/README.md CHANGED
@@ -209,7 +209,7 @@ const fieldGroups: BusinessFieldGroup[] = [
209
209
  - 从业务字段添加的页码在没有显式页码字段值时,自动显示当前业务记录内部的 `1/N`;基础组件中的页码仍显示整个打印任务的全局页码。
210
210
 
211
211
  调用时一条原始面单对应一条根记录:
212
-
212
+ 办事处里面其他动物的元素应该替换成猫咪的元素,然后办事处这个场景图是否应该把这两个人物放上去,因为后续他们可能是各种各样的姿态出现的,有可能趴在桌子上睡觉,有可能两个人在说悄悄话
213
213
  ```ts
214
214
  const requestId = crypto.randomUUID()
215
215
 
@@ -1,4 +1,4 @@
1
- import type { BusinessFieldGroup, PrintRequest, PrintResult, PrintTemplate, PrintDesignerTheme } from '@/core/types';
1
+ import type { BusinessFieldGroup, PrintRequest, PrintResult, PrintTemplate, PrintDesignerTheme, TemplateInfo } from '@/core/types';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * 由业务系统提供的可打印字段目录。
@@ -7,6 +7,8 @@ type __VLS_Props = {
7
7
  fieldGroups?: readonly BusinessFieldGroup[];
8
8
  /** 当前设计器实例使用的主色主题。 */
9
9
  theme?: PrintDesignerTheme;
10
+ allowCustomTable?: boolean;
11
+ beforeTemplateInfoConfirm?: () => boolean | Promise<boolean>;
10
12
  };
11
13
  declare function getTemplate(): PrintTemplate;
12
14
  declare function loadTemplate(template: PrintTemplate): void;
@@ -14,17 +16,33 @@ declare function loadTemplate(template: PrintTemplate): void;
14
16
  declare function generatePdf(request: PrintRequest): Promise<void>;
15
17
  /** 供业务系统打开 PDF 预览,结果统一通过 print-result 事件通知。 */
16
18
  declare function previewPdf(request: PrintRequest): Promise<void>;
17
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
19
+ declare var __VLS_13: {};
20
+ type __VLS_Slots = {} & {
21
+ 'template-info-extra'?: (props: typeof __VLS_13) => any;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
18
24
  getTemplate: typeof getTemplate;
19
25
  loadTemplate: typeof loadTemplate;
20
26
  generatePdf: typeof generatePdf;
21
27
  previewPdf: typeof previewPdf;
28
+ openTemplateInfo: () => void | undefined;
22
29
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
30
  "print-result": (result: PrintResult) => any;
31
+ "template-info-open": (value: TemplateInfo) => any;
32
+ "template-info-confirm": (value: TemplateInfo) => any;
24
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
34
  "onPrint-result"?: (result: PrintResult) => any;
35
+ "onTemplate-info-open"?: (value: TemplateInfo) => any;
36
+ "onTemplate-info-confirm"?: (value: TemplateInfo) => any;
26
37
  }>, {
27
38
  fieldGroups: readonly BusinessFieldGroup[];
39
+ allowCustomTable: boolean;
28
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
42
  declare const _default: typeof __VLS_export;
30
43
  export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };