@dazhicheng/ui 1.6.47 → 1.6.49

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.
Files changed (53) hide show
  1. package/dist/components/tt-custom-export-modal/index.d.ts +8 -0
  2. package/dist/components/tt-custom-export-modal/index.js +21 -0
  3. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.d.ts +37 -0
  4. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.js +322 -0
  5. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue2.js +4 -0
  6. package/dist/components/tt-custom-export-modal/src/api.d.ts +57 -0
  7. package/dist/components/tt-custom-export-modal/src/api.js +38 -0
  8. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +8 -0
  9. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +7 -0
  10. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +11 -0
  11. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.d.ts +275 -0
  12. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +7 -0
  13. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +321 -0
  14. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.d.ts +28 -0
  15. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.js +65 -0
  16. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue2.js +4 -0
  17. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.d.ts +31 -0
  18. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.js +152 -0
  19. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue2.js +4 -0
  20. package/dist/components/tt-custom-export-modal/src/types/index.d.ts +74 -0
  21. package/dist/components/tt-custom-export-modal/src/types/report.d.ts +118 -0
  22. package/dist/components/tt-drawer/index.d.ts +3 -3
  23. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +1 -1
  24. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -2
  25. package/dist/components/tt-modal/index.d.ts +32 -32
  26. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +22 -22
  27. package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +2 -2
  28. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
  29. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -1
  30. package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
  31. package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
  32. package/dist/components/tt-table/index.d.ts +17 -8
  33. package/dist/components/tt-table/index.js +5 -4
  34. package/dist/components/tt-table/src/Table.vue.d.ts +12 -6
  35. package/dist/components/tt-table/src/TableForm.vue.d.ts +146 -3
  36. package/dist/components/tt-table/src/TableForm.vue.js +241 -216
  37. package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +11 -0
  38. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +33 -25
  39. package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +4 -4
  40. package/dist/components/tt-table/src/hooks/useTableForm.js +13 -12
  41. package/dist/components/tt-table/src/props.d.ts +8 -0
  42. package/dist/components/tt-table/src/props.js +4 -0
  43. package/dist/components/tt-table/src/toolProps.d.ts +5 -0
  44. package/dist/components/tt-table/src/toolProps.js +5 -0
  45. package/dist/components/tt-table/src/types/table.d.ts +8 -0
  46. package/dist/components/tt-table/src/types/tableTools.d.ts +2 -0
  47. package/dist/components/tt-upload/index.d.ts +11 -11
  48. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +4 -4
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +102 -99
  51. package/dist/packages/utils/src/calc.js +26 -8
  52. package/dist/style.css +1 -1
  53. package/package.json +1 -1
@@ -366,7 +366,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
366
366
  scrollLeft: number;
367
367
  }) => any) | undefined;
368
368
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
369
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
369
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
370
370
  wrapRef: HTMLDivElement | undefined;
371
371
  update: () => void;
372
372
  scrollTo: {
@@ -306,6 +306,9 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
306
306
  type: StringConstructor;
307
307
  default: () => string | undefined;
308
308
  };
309
+ customExportConfig: {
310
+ type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
311
+ };
309
312
  autoHeight: any;
310
313
  leftSlotWidth: {
311
314
  type: NumberConstructor;
@@ -482,6 +485,8 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
482
485
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
483
486
  emptyText: string;
484
487
  clearTreeExpand: boolean;
488
+ testId: string;
489
+ api: (...arg: any[]) => Promise<any>;
485
490
  currentPageField: string;
486
491
  pageSizeField: string;
487
492
  totalField: string;
@@ -522,9 +527,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
522
527
  rightSlotWidth: number;
523
528
  defaultDisplayFields: string[];
524
529
  useSearchForm: any;
525
- testId: string;
526
530
  toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
527
- api: (...arg: any[]) => Promise<any>;
528
531
  afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
529
532
  beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
530
533
  beforePageChange: ((page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>) | undefined;
@@ -646,7 +649,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
646
649
  scrollLeft: number;
647
650
  }) => any) | undefined;
648
651
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
649
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
652
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
650
653
  wrapRef: HTMLDivElement | undefined;
651
654
  update: () => void;
652
655
  scrollTo: {
@@ -773,7 +776,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
773
776
  scrollLeft: number;
774
777
  }) => any) | undefined;
775
778
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
776
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
779
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
777
780
  wrapRef: HTMLDivElement | undefined;
778
781
  update: () => void;
779
782
  scrollTo: {
@@ -994,6 +997,9 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
994
997
  type: StringConstructor;
995
998
  default: () => string | undefined;
996
999
  };
1000
+ customExportConfig: {
1001
+ type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
1002
+ };
997
1003
  autoHeight: any;
998
1004
  leftSlotWidth: {
999
1005
  type: NumberConstructor;
@@ -1168,6 +1174,8 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1168
1174
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
1169
1175
  emptyText: string;
1170
1176
  clearTreeExpand: boolean;
1177
+ testId: string;
1178
+ api: (...arg: any[]) => Promise<any>;
1171
1179
  currentPageField: string;
1172
1180
  pageSizeField: string;
1173
1181
  totalField: string;
@@ -1208,9 +1216,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1208
1216
  rightSlotWidth: number;
1209
1217
  defaultDisplayFields: string[];
1210
1218
  useSearchForm: any;
1211
- testId: string;
1212
1219
  toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
1213
- api: (...arg: any[]) => Promise<any>;
1214
1220
  afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
1215
1221
  beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
1216
1222
  beforePageChange: ((page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>) | undefined;
@@ -1417,6 +1423,9 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1417
1423
  type: StringConstructor;
1418
1424
  default: () => string | undefined;
1419
1425
  };
1426
+ customExportConfig: {
1427
+ type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
1428
+ };
1420
1429
  autoHeight: any;
1421
1430
  leftSlotWidth: {
1422
1431
  type: NumberConstructor;
@@ -1593,6 +1602,8 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1593
1602
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
1594
1603
  emptyText: string;
1595
1604
  clearTreeExpand: boolean;
1605
+ testId: string;
1606
+ api: (...arg: any[]) => Promise<any>;
1596
1607
  currentPageField: string;
1597
1608
  pageSizeField: string;
1598
1609
  totalField: string;
@@ -1633,9 +1644,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1633
1644
  rightSlotWidth: number;
1634
1645
  defaultDisplayFields: string[];
1635
1646
  useSearchForm: any;
1636
- testId: string;
1637
1647
  toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
1638
- api: (...arg: any[]) => Promise<any>;
1639
1648
  afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
1640
1649
  beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
1641
1650
  beforePageChange: ((page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>) | undefined;
@@ -55,6 +55,7 @@ import "../tt-drawer/index.js";
55
55
  import "../tt-modal/index.js";
56
56
  import "../../directives/disabled-tip/index.js";
57
57
  import "../tt-log/index.js";
58
+ import "../tt-custom-export-modal/index.js";
58
59
  /* empty css */
59
60
  /* empty css */
60
61
  /* empty css */
@@ -69,9 +70,9 @@ import "./src/emits.js";
69
70
  import "./src/props.js";
70
71
  import "./src/table-mutation-events.js";
71
72
  import "./src/utils/context.js";
72
- const At = t(o), Ct = t(r), It = t(m);
73
+ const Ct = t(o), It = t(r), $t = t(m);
73
74
  export {
74
- It as TtTable,
75
- At as TtTableAction,
76
- Ct as TtTableButton
75
+ $t as TtTable,
76
+ Ct as TtTableAction,
77
+ It as TtTableButton
77
78
  };
@@ -143,7 +143,7 @@ declare function __VLS_template(): {
143
143
  scrollLeft: number;
144
144
  }) => any) | undefined;
145
145
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
146
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
146
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
147
147
  wrapRef: HTMLDivElement | undefined;
148
148
  update: () => void;
149
149
  scrollTo: {
@@ -270,7 +270,7 @@ declare function __VLS_template(): {
270
270
  scrollLeft: number;
271
271
  }) => any) | undefined;
272
272
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
273
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
273
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
274
274
  wrapRef: HTMLDivElement | undefined;
275
275
  update: () => void;
276
276
  scrollTo: {
@@ -488,6 +488,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
488
488
  type: StringConstructor;
489
489
  default: () => string | undefined;
490
490
  };
491
+ customExportConfig: {
492
+ type: import('vue').PropType<TtTableProps["customExportConfig"]>;
493
+ };
491
494
  autoHeight: any;
492
495
  leftSlotWidth: {
493
496
  type: NumberConstructor;
@@ -843,6 +846,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
843
846
  type: StringConstructor;
844
847
  default: () => string | undefined;
845
848
  };
849
+ customExportConfig: {
850
+ type: import('vue').PropType<TtTableProps["customExportConfig"]>;
851
+ };
846
852
  autoHeight: any;
847
853
  leftSlotWidth: {
848
854
  type: NumberConstructor;
@@ -926,6 +932,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
926
932
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
927
933
  emptyText: string;
928
934
  clearTreeExpand: boolean;
935
+ testId: string;
936
+ api: (...arg: any[]) => Promise<any>;
929
937
  currentPageField: string;
930
938
  pageSizeField: string;
931
939
  totalField: string;
@@ -966,9 +974,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
966
974
  rightSlotWidth: number;
967
975
  defaultDisplayFields: string[];
968
976
  useSearchForm: any;
969
- testId: string;
970
977
  toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
971
- api: (...arg: any[]) => Promise<any>;
972
978
  afterFetch: ((data: any[], res: globalThis.Recordable | globalThis.Recordable[]) => Promise<any[]>) | undefined;
973
979
  beforeFetch: ((params: globalThis.Recordable) => Promise<globalThis.Recordable>) | undefined;
974
980
  beforePageChange: ((page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>) | undefined;
@@ -1090,7 +1096,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1090
1096
  scrollLeft: number;
1091
1097
  }) => any) | undefined;
1092
1098
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
1093
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
1099
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
1094
1100
  wrapRef: HTMLDivElement | undefined;
1095
1101
  update: () => void;
1096
1102
  scrollTo: {
@@ -1217,7 +1223,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1217
1223
  scrollLeft: number;
1218
1224
  }) => any) | undefined;
1219
1225
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
1220
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
1226
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
1221
1227
  wrapRef: HTMLDivElement | undefined;
1222
1228
  update: () => void;
1223
1229
  scrollTo: {
@@ -1,4 +1,5 @@
1
1
  import { Slot, nextTick } from 'vue';
2
+ import { VxeTableDefines } from 'vxe-table';
2
3
  import { TtModalExtendedModalApi } from '../../tt-modal';
3
4
  import { Recordable } from '../../../../../utils/src';
4
5
  import { TtTableProps } from './types/table';
@@ -57,6 +58,73 @@ declare function __VLS_template(): {
57
58
  "t-column-modal-before-footer"?: Slot<Recordable>;
58
59
  };
59
60
  refs: {
61
+ customExportModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../index').TtCustomExportModalProps> & Readonly<{
62
+ onExport?: ((payload: import('../../../index').ExportConfirmPayload) => any) | undefined;
63
+ onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
64
+ }>, {
65
+ open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
66
+ close: () => void;
67
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
68
+ export: (payload: import('../../../index').ExportConfirmPayload) => any;
69
+ templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
70
+ }, import('vue').PublicProps, {
71
+ title: string;
72
+ listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
73
+ businessCode: string;
74
+ availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
75
+ fetchFieldsApi: (params?: {
76
+ businessCode?: string;
77
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
78
+ fetchTemplatesApi: (params?: {
79
+ businessCode?: string;
80
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
81
+ saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
82
+ businessCode: string;
83
+ }) => Promise<unknown>;
84
+ deleteTemplateApi: (params: {
85
+ businessCode: string;
86
+ templateId: number;
87
+ }) => Promise<unknown>;
88
+ setDefaultTemplateApi: (params: {
89
+ businessCode: string;
90
+ templateId: number;
91
+ }) => Promise<unknown>;
92
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
93
+ P: {};
94
+ B: {};
95
+ D: {};
96
+ C: {};
97
+ M: {};
98
+ Defaults: {};
99
+ }, Readonly<import('../../../index').TtCustomExportModalProps> & Readonly<{
100
+ onExport?: ((payload: import('../../../index').ExportConfirmPayload) => any) | undefined;
101
+ onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
102
+ }>, {
103
+ open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
104
+ close: () => void;
105
+ }, {}, {}, {}, {
106
+ title: string;
107
+ listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
108
+ businessCode: string;
109
+ availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
110
+ fetchFieldsApi: (params?: {
111
+ businessCode?: string;
112
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
113
+ fetchTemplatesApi: (params?: {
114
+ businessCode?: string;
115
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
116
+ saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
117
+ businessCode: string;
118
+ }) => Promise<unknown>;
119
+ deleteTemplateApi: (params: {
120
+ businessCode: string;
121
+ templateId: number;
122
+ }) => Promise<unknown>;
123
+ setDefaultTemplateApi: (params: {
124
+ businessCode: string;
125
+ templateId: number;
126
+ }) => Promise<unknown>;
127
+ }> | null;
60
128
  columnModalRef: ({
61
129
  $: import('vue').ComponentInternalInstance;
62
130
  $data: {};
@@ -133,7 +201,7 @@ declare function __VLS_template(): {
133
201
  modalApi: TtModalExtendedModalApi;
134
202
  isExport: boolean;
135
203
  }) => any) | undefined;
136
- }>, "setModalProps" | "openModal" | "handleSubmit"> & {
204
+ }>, "openModal" | "setModalProps" | "handleSubmit"> & {
137
205
  handleSubmit: () => void;
138
206
  openModal: ({ columns: source, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
139
207
  setModalProps: (modalProps: import('../../../index').ModalRenderState) => void;
@@ -154,6 +222,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
154
222
  autoHeight: boolean;
155
223
  columnsKey: string;
156
224
  useSearchForm: boolean;
225
+ customExportConfig?: import('../../../index').TtCustomExportModalProps & {
226
+ onExport?: (payload: import('../../../index').ExportConfirmPayload) => void;
227
+ };
157
228
  loading?: boolean;
158
229
  emptyText?: string;
159
230
  noSearchText?: string;
@@ -313,6 +384,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
313
384
  showIndex?: boolean;
314
385
  showAction?: boolean;
315
386
  showExport?: boolean;
387
+ showCustomExport?: boolean;
316
388
  actionWidth?: number;
317
389
  actionTitle?: string;
318
390
  isCellResize?: boolean;
@@ -382,6 +454,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
382
454
  autoHeight: boolean;
383
455
  columnsKey: string;
384
456
  useSearchForm: boolean;
457
+ customExportConfig?: import('../../../index').TtCustomExportModalProps & {
458
+ onExport?: (payload: import('../../../index').ExportConfirmPayload) => void;
459
+ };
385
460
  loading?: boolean;
386
461
  emptyText?: string;
387
462
  noSearchText?: string;
@@ -541,6 +616,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
541
616
  showIndex?: boolean;
542
617
  showAction?: boolean;
543
618
  showExport?: boolean;
619
+ showCustomExport?: boolean;
544
620
  actionWidth?: number;
545
621
  actionTitle?: string;
546
622
  isCellResize?: boolean;
@@ -597,13 +673,80 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
597
673
  }>> & Readonly<{}>, {
598
674
  form: Partial<import('../../../index').TtFormProps<Record<string, any>>>;
599
675
  table: Partial<TtTableProps>;
600
- useSearchForm: any;
601
676
  testId: string;
677
+ useSearchForm: any;
602
678
  handleSearchInfoFn: Fn<any, any>;
603
679
  toolConfig: import('../../../index').TtTableToolsProps;
604
680
  tableRefreshBefore: Fn<any, any>;
605
681
  tableSearchBefore: (values: Record<string, any>, trigger: TtTableSearchTrigger) => TtTableSearchBeforeResult | Promise<TtTableSearchBeforeResult>;
606
682
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
683
+ customExportModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../index').TtCustomExportModalProps> & Readonly<{
684
+ onExport?: ((payload: import('../../../index').ExportConfirmPayload) => any) | undefined;
685
+ onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
686
+ }>, {
687
+ open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
688
+ close: () => void;
689
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
690
+ export: (payload: import('../../../index').ExportConfirmPayload) => any;
691
+ templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
692
+ }, import('vue').PublicProps, {
693
+ title: string;
694
+ listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
695
+ businessCode: string;
696
+ availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
697
+ fetchFieldsApi: (params?: {
698
+ businessCode?: string;
699
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
700
+ fetchTemplatesApi: (params?: {
701
+ businessCode?: string;
702
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
703
+ saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
704
+ businessCode: string;
705
+ }) => Promise<unknown>;
706
+ deleteTemplateApi: (params: {
707
+ businessCode: string;
708
+ templateId: number;
709
+ }) => Promise<unknown>;
710
+ setDefaultTemplateApi: (params: {
711
+ businessCode: string;
712
+ templateId: number;
713
+ }) => Promise<unknown>;
714
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
715
+ P: {};
716
+ B: {};
717
+ D: {};
718
+ C: {};
719
+ M: {};
720
+ Defaults: {};
721
+ }, Readonly<import('../../../index').TtCustomExportModalProps> & Readonly<{
722
+ onExport?: ((payload: import('../../../index').ExportConfirmPayload) => any) | undefined;
723
+ onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
724
+ }>, {
725
+ open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
726
+ close: () => void;
727
+ }, {}, {}, {}, {
728
+ title: string;
729
+ listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
730
+ businessCode: string;
731
+ availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
732
+ fetchFieldsApi: (params?: {
733
+ businessCode?: string;
734
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
735
+ fetchTemplatesApi: (params?: {
736
+ businessCode?: string;
737
+ }) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
738
+ saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
739
+ businessCode: string;
740
+ }) => Promise<unknown>;
741
+ deleteTemplateApi: (params: {
742
+ businessCode: string;
743
+ templateId: number;
744
+ }) => Promise<unknown>;
745
+ setDefaultTemplateApi: (params: {
746
+ businessCode: string;
747
+ templateId: number;
748
+ }) => Promise<unknown>;
749
+ }> | null;
607
750
  columnModalRef: ({
608
751
  $: import('vue').ComponentInternalInstance;
609
752
  $data: {};
@@ -680,7 +823,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
680
823
  modalApi: TtModalExtendedModalApi;
681
824
  isExport: boolean;
682
825
  }) => any) | undefined;
683
- }>, "setModalProps" | "openModal" | "handleSubmit"> & {
826
+ }>, "openModal" | "setModalProps" | "handleSubmit"> & {
684
827
  handleSubmit: () => void;
685
828
  openModal: ({ columns: source, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
686
829
  setModalProps: (modalProps: import('../../../index').ModalRenderState) => void;