@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
@@ -27,6 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ showCustomExport: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
30
34
  showSetColumn: {
31
35
  type: BooleanConstructor;
32
36
  default: boolean;
@@ -39,6 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
39
43
  "on-refresh": () => any;
40
44
  "on-columns-setting": () => any;
41
45
  "on-export": () => any;
46
+ "on-custom-export": () => any;
42
47
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
43
48
  showSetting: {
44
49
  type: BooleanConstructor;
@@ -52,6 +57,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
52
57
  type: BooleanConstructor;
53
58
  default: boolean;
54
59
  };
60
+ showCustomExport: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
55
64
  showSetColumn: {
56
65
  type: BooleanConstructor;
57
66
  default: boolean;
@@ -64,12 +73,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
64
73
  "onOn-refresh"?: (() => any) | undefined;
65
74
  "onOn-columns-setting"?: (() => any) | undefined;
66
75
  "onOn-export"?: (() => any) | undefined;
76
+ "onOn-custom-export"?: (() => any) | undefined;
67
77
  }>, {
68
78
  showSetting: boolean;
69
79
  showRefresh: boolean;
70
80
  showExport: boolean;
71
81
  columnsKey: string | (() => string);
72
82
  showSetColumn: boolean;
83
+ showCustomExport: boolean;
73
84
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
74
85
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
75
86
  export default _default;
@@ -1,11 +1,11 @@
1
- import { defineComponent as E, inject as I, computed as a, unref as e, ref as x, createElementBlock as s, openBlock as n, createBlock as d, createCommentVNode as f, withCtx as m, renderSlot as u, Fragment as b, renderList as B, createVNode as h } from "vue";
2
- import { TtIcon as $ } from "../../../tt-icon/index.js";
3
- import { TtButton as y } from "../../../tt-button/index.js";
1
+ import { defineComponent as E, inject as I, computed as a, unref as e, ref as B, createElementBlock as s, openBlock as n, createBlock as d, createCommentVNode as f, withCtx as m, renderSlot as u, Fragment as h, renderList as $, createVNode as b } from "vue";
2
+ import { TtIcon as y } from "../../../tt-icon/index.js";
3
+ import { TtButton as A } from "../../../tt-button/index.js";
4
4
  import "axios";
5
- import { ElSpace as A, ElTooltip as z } from "element-plus";
5
+ import { ElSpace as z, ElTooltip as N } from "element-plus";
6
6
  import "dayjs";
7
7
  import "numeral";
8
- import { generateTestId as N } from "../../../../packages/utils/src/testid-helper.js";
8
+ import { generateTestId as V } from "../../../../packages/utils/src/testid-helper.js";
9
9
  import "xe-utils";
10
10
  import "dayjs/plugin/utc";
11
11
  import "dayjs/plugin/timezone";
@@ -15,35 +15,43 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
15
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
16
16
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
17
17
  import "lodash-es";
18
- import { toolProps as V } from "../toolProps.js";
19
- import j from "../../../../assets/svg/RiRefreshLine.svg.js";
20
- import F from "../../../../assets/svg/download.svg.js";
18
+ import { toolProps as j } from "../toolProps.js";
19
+ import F from "../../../../assets/svg/RiRefreshLine.svg.js";
20
+ import k from "../../../../assets/svg/download.svg.js";
21
21
  import L from "../../../../assets/svg/columnSet.svg.js";
22
22
  const P = ["data-testid"], io = /* @__PURE__ */ E({
23
23
  __name: "TableToolbarTools",
24
- props: V,
25
- emits: ["on-refresh", "on-columns-setting", "on-export"],
26
- setup(k, { emit: g }) {
27
- const r = k, l = g, v = I(
24
+ props: j,
25
+ emits: ["on-refresh", "on-columns-setting", "on-export", "on-custom-export"],
26
+ setup(C, { emit: g }) {
27
+ const r = C, l = g, v = I(
28
28
  "tableIdContext",
29
29
  a(() => "")
30
- ), C = a(() => N(e(v), "table-toolbar-tools")), c = x(/* @__PURE__ */ new Set());
30
+ ), w = a(() => V(e(v), "table-toolbar-tools")), c = B(/* @__PURE__ */ new Set());
31
31
  function T(o, p) {
32
32
  c.value.add(o), p();
33
33
  }
34
- function w(o) {
34
+ function S(o) {
35
35
  c.value.delete(o);
36
36
  }
37
- const S = a(() => [
37
+ const _ = a(() => [
38
38
  {
39
39
  label: "自定义导出",
40
- icon: F,
40
+ icon: k,
41
+ handler: () => {
42
+ l("on-custom-export");
43
+ },
44
+ if: r.showCustomExport
45
+ },
46
+ {
47
+ label: "自定义导出",
48
+ icon: k,
41
49
  handler: () => l("on-export"),
42
50
  if: r.showExport
43
51
  },
44
52
  {
45
53
  label: "刷新",
46
- icon: j,
54
+ icon: F,
47
55
  handler: () => l("on-refresh"),
48
56
  if: r.showRefresh
49
57
  },
@@ -54,15 +62,15 @@ const P = ["data-testid"], io = /* @__PURE__ */ E({
54
62
  if: r.showSetColumn
55
63
  }
56
64
  ]);
57
- return (o, p) => (n(), s("div", { "data-testid": C.value }, [
58
- o.showSetting ? (n(), d(e(A), {
65
+ return (o, p) => (n(), s("div", { "data-testid": w.value }, [
66
+ o.showSetting ? (n(), d(e(z), {
59
67
  key: 0,
60
68
  size: 12
61
69
  }, {
62
70
  default: m(() => [
63
71
  u(o.$slots, "toolbar-left"),
64
- (n(!0), s(b, null, B(S.value, (t, i) => (n(), s(b, { key: i }, [
65
- t.if ? (n(), d(e(z), {
72
+ (n(!0), s(h, null, $(_.value, (t, i) => (n(), s(h, { key: i }, [
73
+ t.if ? (n(), d(e(N), {
66
74
  key: 0,
67
75
  class: "box-item",
68
76
  effect: "dark",
@@ -71,14 +79,14 @@ const P = ["data-testid"], io = /* @__PURE__ */ E({
71
79
  "show-after": 200
72
80
  }, {
73
81
  default: m(() => [
74
- h(e(y), {
82
+ b(e(A), {
75
83
  class: "icon-table-btn",
76
84
  "aria-label": t.label,
77
- onClick: (_) => T(i, t.handler),
78
- onAnimationend: (_) => w(i)
85
+ onClick: (x) => T(i, t.handler),
86
+ onAnimationend: (x) => S(i)
79
87
  }, {
80
88
  default: m(() => [
81
- h(e($), {
89
+ b(e(y), {
82
90
  icon: t.icon,
83
91
  size: 16,
84
92
  "is-custom-svg": ""
@@ -145,7 +145,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
145
145
  scrollLeft: number;
146
146
  }) => any) | undefined;
147
147
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
148
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
148
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
149
149
  wrapRef: HTMLDivElement | undefined;
150
150
  update: () => void;
151
151
  scrollTo: {
@@ -271,7 +271,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
271
271
  scrollLeft: number;
272
272
  }) => any) | undefined;
273
273
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
274
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
274
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
275
275
  wrapRef: HTMLDivElement | undefined;
276
276
  update: () => void;
277
277
  scrollTo: {
@@ -398,7 +398,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
398
398
  scrollLeft: number;
399
399
  }) => any) | undefined;
400
400
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
401
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
401
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
402
402
  wrapRef: HTMLDivElement | undefined;
403
403
  update: () => void;
404
404
  scrollTo: {
@@ -524,7 +524,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
524
524
  scrollLeft: number;
525
525
  }) => any) | undefined;
526
526
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
527
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
527
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
528
528
  wrapRef: HTMLDivElement | undefined;
529
529
  update: () => void;
530
530
  scrollTo: {
@@ -1,7 +1,7 @@
1
1
  import "axios";
2
2
  import "element-plus";
3
3
  import { isFunction as m } from "../../../../packages/utils/src/is.js";
4
- import { computed as s, unref as i, toValue as a } from "vue";
4
+ import { computed as i, unref as s, toValue as a } from "vue";
5
5
  import "dayjs";
6
6
  import "numeral";
7
7
  import "xe-utils";
@@ -13,11 +13,11 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
13
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
15
  import { omit as u } from "lodash-es";
16
- function k(n, p, h, l) {
17
- const f = s(() => {
18
- const { form: t } = i(n), o = {
16
+ function q(n, p, h, l) {
17
+ const f = i(() => {
18
+ const { form: t } = s(n), o = {
19
19
  ...t == null ? void 0 : t.submitButtonOptions,
20
- loading: i(h)
20
+ loading: s(h)
21
21
  };
22
22
  return {
23
23
  ...t,
@@ -33,18 +33,19 @@ function k(n, p, h, l) {
33
33
  let e = t;
34
34
  return m(o) && (e = await o(e) || e), m(r == null ? void 0 : r.beforeFetch) && (e = await r.beforeFetch(e) || e), e;
35
35
  }
36
- const c = s(() => {
37
- const { columnsKey: t, showSetting: o, showSetColumn: r, showRefresh: e, showExport: F } = i(n).table || {}, { toolConfig: w } = i(n);
36
+ const c = i(() => {
37
+ const { columnsKey: t, showSetting: o, showSetColumn: r, showRefresh: e, showExport: w, showCustomExport: F } = s(n).table || {}, { toolConfig: S } = s(n);
38
38
  return {
39
39
  columnsKey: t,
40
40
  showSetting: o,
41
41
  showRefresh: e,
42
42
  showSetColumn: r,
43
- showExport: F,
44
- ...w
43
+ showExport: w,
44
+ showCustomExport: F,
45
+ ...S
45
46
  };
46
- }), g = s(() => {
47
- const { table: t = {}, useSearchForm: o, testId: r } = a(n), e = u(i(c), ["tableRowId"]);
47
+ }), g = i(() => {
48
+ const { table: t = {}, useSearchForm: o, testId: r } = a(n), e = u(s(c), ["tableRowId"]);
48
49
  return {
49
50
  useSearchForm: o || !1,
50
51
  // 数据由 TableForm 单独绑定,不进入表格配置。
@@ -63,5 +64,5 @@ function k(n, p, h, l) {
63
64
  };
64
65
  }
65
66
  export {
66
- k as useTableForm
67
+ q as useTableForm
67
68
  };
@@ -201,6 +201,10 @@ export declare const tableProps: {
201
201
  type: StringConstructor;
202
202
  default: () => string | undefined;
203
203
  };
204
+ /** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
205
+ customExportConfig: {
206
+ type: PropType<TtTableProps["customExportConfig"]>;
207
+ };
204
208
  /**
205
209
  * 是否自适应高度
206
210
  *
@@ -309,6 +313,9 @@ export declare const tableFormProps: {
309
313
  autoHeight: boolean;
310
314
  columnsKey: string;
311
315
  useSearchForm: boolean;
316
+ customExportConfig?: import('../../tt-custom-export-modal').TtCustomExportModalProps & {
317
+ onExport?: (payload: import('../../tt-custom-export-modal').ExportConfirmPayload) => void;
318
+ };
312
319
  loading?: boolean;
313
320
  emptyText?: string;
314
321
  noSearchText?: string;
@@ -468,6 +475,7 @@ export declare const tableFormProps: {
468
475
  showIndex?: boolean;
469
476
  showAction?: boolean;
470
477
  showExport?: boolean;
478
+ showCustomExport?: boolean;
471
479
  actionWidth?: number;
472
480
  actionTitle?: string;
473
481
  isCellResize?: boolean;
@@ -147,6 +147,10 @@ const a = {
147
147
  /** 是否显示表格上方 alert */
148
148
  showTableAlert: { type: Boolean, default: () => e("showTableAlert") }
149
149
  }, x = {
150
+ /** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
151
+ customExportConfig: {
152
+ type: Object
153
+ },
150
154
  /**
151
155
  * 是否自适应高度
152
156
  *
@@ -15,6 +15,11 @@ export declare const toolProps: {
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
+ /** 是否显示公共自定义导出按钮 */
19
+ showCustomExport: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
18
23
  /** 是否显示列设置按钮 */
19
24
  showSetColumn: {
20
25
  type: BooleanConstructor;
@@ -14,6 +14,11 @@ const e = {
14
14
  type: Boolean,
15
15
  default: !1
16
16
  },
17
+ /** 是否显示公共自定义导出按钮 */
18
+ showCustomExport: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
17
22
  /** 是否显示列设置按钮 */
18
23
  showSetColumn: {
19
24
  type: Boolean,
@@ -1,3 +1,4 @@
1
+ import { TtCustomExportModalProps, ExportConfirmPayload } from '../../../tt-custom-export-modal';
1
2
  import { ComputedRef, CSSProperties, MaybeRef, Ref } from 'vue';
2
3
  import { VxeGridMethods, VxeGridProps, VxeGridPropTypes, VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
3
4
  import { TableApi } from '../utils/table-api';
@@ -36,6 +37,8 @@ export type TtTableColumnsProps<Row = any> = {
36
37
  showAction?: boolean;
37
38
  /** 是否显示导出按钮 */
38
39
  showExport?: boolean;
40
+ /** 是否显示公共自定义导出按钮,默认 false */
41
+ showCustomExport?: boolean;
39
42
  /** 操作列宽度 */
40
43
  actionWidth?: number;
41
44
  /** 操作列列名 */
@@ -138,6 +141,11 @@ export type TtColumnOptions<Row = any> = VxeTableDefines.ColumnOptions<Row> & {
138
141
  * 不传时退化为 `any`,与改动前完全一致。
139
142
  */
140
143
  export type TtTableProps<Row = any> = {
144
+ /** 公共导出弹框配置;businessCode 默认原样取全局 columnsKey,支持覆盖。 */
145
+ customExportConfig?: TtCustomExportModalProps & {
146
+ /** 公共弹框 export 事件监听器;触发后关闭弹框,不等待异步请求。 */
147
+ onExport?: (payload: ExportConfirmPayload) => void;
148
+ };
141
149
  /** 是否自适应高度 */
142
150
  autoHeight?: boolean;
143
151
  loading?: boolean;
@@ -5,6 +5,8 @@ export type TtTableToolsProps = {
5
5
  showRefresh?: boolean;
6
6
  /** 是否显示导出按钮 */
7
7
  showExport?: boolean;
8
+ /** 是否显示公共自定义导出按钮,默认 false */
9
+ showCustomExport?: boolean;
8
10
  /** 是否显示列设置按钮 */
9
11
  showSetColumn?: boolean;
10
12
  /** 储存的key,支持函数动态获取 */
@@ -210,11 +210,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
210
210
  onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
211
211
  onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
212
212
  "onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
213
+ onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
213
214
  onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
214
215
  onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
215
216
  onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
216
217
  onTemplateDownload?: (() => any) | undefined;
217
- onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
218
218
  }>, {
219
219
  getFileList: () => import('.').TtUploadFileItem[];
220
220
  openModal: () => void;
@@ -225,11 +225,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
225
225
  error: (err: unknown, file: import('element-plus').UploadRawFile) => any;
226
226
  delete: (file: import('.').TtUploadFileItem) => any;
227
227
  "update:modelValue": (value: import('.').TtUploadFileItem[]) => any;
228
+ ok: (fileList: import('.').TtUploadFileItem[]) => any;
228
229
  afterUpload: (file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any;
229
230
  preview: (file: import('.').TtUploadFileItem) => any;
230
231
  download: (file: import('.').TtUploadFileItem) => any;
231
232
  templateDownload: () => any;
232
- ok: (fileList: import('.').TtUploadFileItem[]) => any;
233
233
  }, import('vue').PublicProps, {
234
234
  data: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | ((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | null)[], unknown, unknown>;
235
235
  drag: boolean;
@@ -242,10 +242,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
242
242
  multiple: boolean;
243
243
  method: string;
244
244
  withCredentials: boolean;
245
+ onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
246
+ modal: boolean;
245
247
  action: string;
246
248
  accept: string;
247
249
  beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
248
- modal: boolean;
249
250
  uploadOssApi: (file?: any) => Promise<any>;
250
251
  uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
251
252
  uploadTip: string;
@@ -262,7 +263,6 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
262
263
  ossType: import('.').OssType;
263
264
  ossDir: string;
264
265
  beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
265
- onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
266
266
  onPreview: (uploadFile: import('element-plus').UploadFile) => void;
267
267
  onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
268
268
  onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
@@ -487,11 +487,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
487
487
  onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
488
488
  onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
489
489
  "onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
490
+ onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
490
491
  onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
491
492
  onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
492
493
  onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
493
494
  onTemplateDownload?: (() => any) | undefined;
494
- onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
495
495
  }>, {
496
496
  getFileList: () => import('.').TtUploadFileItem[];
497
497
  openModal: () => void;
@@ -509,10 +509,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
509
509
  multiple: boolean;
510
510
  method: string;
511
511
  withCredentials: boolean;
512
+ onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
513
+ modal: boolean;
512
514
  action: string;
513
515
  accept: string;
514
516
  beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
515
- modal: boolean;
516
517
  uploadOssApi: (file?: any) => Promise<any>;
517
518
  uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
518
519
  uploadTip: string;
@@ -529,7 +530,6 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
529
530
  ossType: import('.').OssType;
530
531
  ossDir: string;
531
532
  beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
532
- onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
533
533
  onPreview: (uploadFile: import('element-plus').UploadFile) => void;
534
534
  onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
535
535
  onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
@@ -751,11 +751,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
751
751
  onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
752
752
  onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
753
753
  "onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
754
+ onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
754
755
  onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
755
756
  onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
756
757
  onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
757
758
  onTemplateDownload?: (() => any) | undefined;
758
- onOk?: ((fileList: import('.').TtUploadFileItem[]) => any) | undefined;
759
759
  }>, {
760
760
  getFileList: () => import('.').TtUploadFileItem[];
761
761
  openModal: () => void;
@@ -766,11 +766,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
766
766
  error: (err: unknown, file: import('element-plus').UploadRawFile) => any;
767
767
  delete: (file: import('.').TtUploadFileItem) => any;
768
768
  "update:modelValue": (value: import('.').TtUploadFileItem[]) => any;
769
+ ok: (fileList: import('.').TtUploadFileItem[]) => any;
769
770
  afterUpload: (file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any;
770
771
  preview: (file: import('.').TtUploadFileItem) => any;
771
772
  download: (file: import('.').TtUploadFileItem) => any;
772
773
  templateDownload: () => any;
773
- ok: (fileList: import('.').TtUploadFileItem[]) => any;
774
774
  }, string, {
775
775
  data: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | ((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | null)[], unknown, unknown>;
776
776
  drag: boolean;
@@ -783,10 +783,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
783
783
  multiple: boolean;
784
784
  method: string;
785
785
  withCredentials: boolean;
786
+ onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
787
+ modal: boolean;
786
788
  action: string;
787
789
  accept: string;
788
790
  beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
789
- modal: boolean;
790
791
  uploadOssApi: (file?: any) => Promise<any>;
791
792
  uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
792
793
  uploadTip: string;
@@ -803,7 +804,6 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
803
804
  ossType: import('.').OssType;
804
805
  ossDir: string;
805
806
  beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
806
- onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
807
807
  onPreview: (uploadFile: import('element-plus').UploadFile) => void;
808
808
  onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
809
809
  onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
@@ -256,11 +256,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
256
256
  error: (err: unknown, file: UploadRawFile) => any;
257
257
  delete: (file: TtUploadFileItem) => any;
258
258
  "update:modelValue": (value: TtUploadFileItem[]) => any;
259
+ ok: (fileList: TtUploadFileItem[]) => any;
259
260
  afterUpload: (file: TtUploadFileItem, ossKey?: string | undefined) => any;
260
261
  preview: (file: TtUploadFileItem) => any;
261
262
  download: (file: TtUploadFileItem) => any;
262
263
  templateDownload: () => any;
263
- ok: (fileList: TtUploadFileItem[]) => any;
264
264
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
265
265
  action: {
266
266
  readonly type: import('vue').PropType<string>;
@@ -470,11 +470,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
470
470
  onError?: ((err: unknown, file: UploadRawFile) => any) | undefined;
471
471
  onDelete?: ((file: TtUploadFileItem) => any) | undefined;
472
472
  "onUpdate:modelValue"?: ((value: TtUploadFileItem[]) => any) | undefined;
473
+ onOk?: ((fileList: TtUploadFileItem[]) => any) | undefined;
473
474
  onAfterUpload?: ((file: TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
474
475
  onPreview?: ((file: TtUploadFileItem) => any) | undefined;
475
476
  onDownload?: ((file: TtUploadFileItem) => any) | undefined;
476
477
  onTemplateDownload?: (() => any) | undefined;
477
- onOk?: ((fileList: TtUploadFileItem[]) => any) | undefined;
478
478
  }>, {
479
479
  data: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | ((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | null)[], unknown, unknown>;
480
480
  drag: boolean;
@@ -487,10 +487,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
487
487
  multiple: boolean;
488
488
  method: string;
489
489
  withCredentials: boolean;
490
+ onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
491
+ modal: boolean;
490
492
  action: string;
491
493
  accept: string;
492
494
  beforeUpload: (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
493
- modal: boolean;
494
495
  uploadOssApi: (file?: any) => Promise<any>;
495
496
  uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
496
497
  uploadTip: string;
@@ -507,7 +508,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
507
508
  ossType: import('./typing').OssType;
508
509
  ossDir: string;
509
510
  beforeDownload: boolean | ((file: TtUploadFileItem) => PromiseLike<boolean>);
510
- onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
511
511
  onPreview: (uploadFile: UploadFile) => void;
512
512
  onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
513
513
  onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { BaseFormComponentType } from './components/tt-form';
3
3
  import { setXHR } from './utils/xhr';
4
4
  export * from './components/tt-area';
5
5
  export * from './components/tt-button';
6
+ export * from './components/tt-custom-export-modal';
6
7
  export * from './components/tt-checkbox';
7
8
  export * from './components/tt-drawer';
8
9
  export * from './components/tt-empty';