@dazhicheng/ui 1.6.47 → 1.6.48

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 (39) 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 +44 -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 +129 -0
  22. package/dist/components/tt-table/index.js +5 -4
  23. package/dist/components/tt-table/src/TableForm.vue.d.ts +143 -0
  24. package/dist/components/tt-table/src/TableForm.vue.js +223 -198
  25. package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +11 -0
  26. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +33 -25
  27. package/dist/components/tt-table/src/hooks/useTableForm.js +13 -12
  28. package/dist/components/tt-table/src/props.d.ts +5 -0
  29. package/dist/components/tt-table/src/props.js +4 -0
  30. package/dist/components/tt-table/src/toolProps.d.ts +5 -0
  31. package/dist/components/tt-table/src/toolProps.js +5 -0
  32. package/dist/components/tt-table/src/types/table.d.ts +2 -0
  33. package/dist/components/tt-table/src/types/tableForm.d.ts +6 -0
  34. package/dist/components/tt-table/src/types/tableTools.d.ts +2 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +102 -99
  37. package/dist/packages/utils/src/calc.js +26 -8
  38. package/dist/style.css +1 -1
  39. 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": ""
@@ -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
  };
@@ -468,6 +468,7 @@ export declare const tableFormProps: {
468
468
  showIndex?: boolean;
469
469
  showAction?: boolean;
470
470
  showExport?: boolean;
471
+ showCustomExport?: boolean;
471
472
  actionWidth?: number;
472
473
  actionTitle?: string;
473
474
  isCellResize?: boolean;
@@ -529,6 +530,10 @@ export declare const tableFormProps: {
529
530
  tableFormApi: {
530
531
  type: PropType<TtTableExtendedTableFormApi>;
531
532
  };
533
+ /** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
534
+ customExportConfig: {
535
+ type: PropType<TtTableFormProps["customExportConfig"]>;
536
+ };
532
537
  };
533
538
  /** 表格的参数和vxe-table的参数相同需要重新定义 */
534
539
  export declare const tableOtherProps: {
@@ -284,6 +284,10 @@ const a = {
284
284
  /** 表格的api */
285
285
  tableFormApi: {
286
286
  type: Object
287
+ },
288
+ /** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
289
+ customExportConfig: {
290
+ type: Object
287
291
  }
288
292
  }, j = {
289
293
  /** 列配置 */
@@ -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,
@@ -36,6 +36,8 @@ export type TtTableColumnsProps<Row = any> = {
36
36
  showAction?: boolean;
37
37
  /** 是否显示导出按钮 */
38
38
  showExport?: boolean;
39
+ /** 是否显示公共自定义导出按钮,默认 false */
40
+ showCustomExport?: boolean;
39
41
  /** 操作列宽度 */
40
42
  actionWidth?: number;
41
43
  /** 操作列列名 */
@@ -3,6 +3,7 @@ import { TtSelectRowKeysType, TtTableMethods, TtTableProps } from '../types/tabl
3
3
  import { TableFormApi } from '../utils/table-form-api';
4
4
  import { TtTableToolsProps } from './tableTools';
5
5
  import { TtExtendedFormApi, TtFormProps } from '../../../tt-form';
6
+ import { TtCustomExportModalProps, ExportConfirmPayload } from '../../../tt-custom-export-modal';
6
7
  /**
7
8
  * 搜索表单配置。
8
9
  *
@@ -45,6 +46,11 @@ export type TtTableFormProps<Row = any, TValues extends Record<string, any> = Re
45
46
  handleSearchInfoFn?: Fn;
46
47
  /** tool配置 */
47
48
  toolConfig?: TtTableToolsProps;
49
+ /** 公共导出弹框配置;businessCode 默认取 GlobalConfig.table.columnsKey,支持覆盖。 */
50
+ customExportConfig?: TtCustomExportModalProps & {
51
+ /** 公共弹框 export 事件监听器;触发后关闭弹框,不等待异步请求。 */
52
+ onExport?: (payload: ExportConfirmPayload) => void;
53
+ };
48
54
  /** 刷新前的调用方法 */
49
55
  tableRefreshBefore?: (...arg: any[]) => Promise<any>;
50
56
  /**
@@ -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,支持函数动态获取 */
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';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TtButton as p } from "./components/tt-button/index.js";
2
- import { TtAddButton as so } from "./components/tt-button/index.js";
2
+ import { TtAddButton as lo } from "./components/tt-button/index.js";
3
3
  import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
4
4
  import { TtEmpty as f } from "./components/tt-empty/index.js";
5
5
  import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
@@ -8,7 +8,7 @@ import { TtIcon as d, TtAddIcon as u, TtSubIcon as x } from "./components/tt-ico
8
8
  import { TtImage as T } from "./components/tt-image/index.js";
9
9
  import { RenderDrawer as n } from "./components/tt-drawer/index.js";
10
10
  import { RenderModal as c } from "./components/tt-modal/index.js";
11
- import { TtModal as lo } from "./components/tt-modal/index.js";
11
+ import { TtModal as xo } from "./components/tt-modal/index.js";
12
12
  import { TtSelect as g } from "./components/tt-select/index.js";
13
13
  import { TtText as M } from "./components/tt-text/index.js";
14
14
  import { TtUpload as b } from "./components/tt-upload/index.js";
@@ -20,49 +20,51 @@ import { TtLog as R } from "./components/tt-log/index.js";
20
20
  import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
21
21
  import { TtRadioGroup as h } from "./components/tt-radio-group/index.js";
22
22
  import { TtInputTextarea as A } from "./components/tt-input-textarea/index.js";
23
- import { setXHR as xo } from "./utils/xhr.js";
23
+ import { setXHR as no } from "./utils/xhr.js";
24
+ import { TtCustomExportModal as F } from "./components/tt-custom-export-modal/index.js";
24
25
  /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
27
28
  /* empty css */
28
29
  /* empty css */
29
- import { default as no } from "./components/tt-area/TtArea.vue.js";
30
- import { useModalForm as go } from "./components/tt-modal-form/useModalForm.js";
31
- import { TtLoading as bo } from "./components/tt-loading/index.js";
32
- import { TtTable as Oo, TtTableAction as Po, TtTableButton as Ro } from "./components/tt-table/index.js";
33
- import { getFileUrlOss as ho, getPostSignatureForObsUploadHuaweiOss as Ao, getPostSignatureForOssUploadOss as Fo } from "./api/oss.js";
34
- import { TtKeepAlive as Co } from "./components/tt-keep-alive/index.js";
35
- import { useFormSchemasLink as Uo } from "./hooks/useFormSchemasLink.js";
36
- import { useDataPermissionOptions as Eo } from "./hooks/useDataPermissionOptions.js";
37
- import { useBasicDataOptions as Bo } from "./hooks/useBasicDataOptions.js";
38
- import { usePanelSelectSchemas as No } from "./hooks/usePanelSelectSchemas.js";
39
- import { CODES as ko, GROUP_BY as Ho } from "./hooks/basicDataCodes.js";
40
- import { useFormat as _o } from "./hooks/useFormat.js";
41
- import { useLoading as jo } from "./hooks/useLoading.js";
42
- import { useScreenshotOss as Ko } from "./hooks/useScreenshotOss.js";
43
- import { createUppercaseInputProps as Yo, toUppercaseInputValue as Zo, uppercaseInputProps as qo } from "./utils/uppercaseInput.js";
44
- import { setupDrawer as F } from "./components/tt-drawer/src/index.js";
45
- import { useShowDrawer as Qo } from "./components/tt-drawer/src/index.js";
30
+ import { default as go } from "./components/tt-area/TtArea.vue.js";
31
+ import { useModalForm as bo } from "./components/tt-modal-form/useModalForm.js";
32
+ import { TtLoading as Oo } from "./components/tt-loading/index.js";
33
+ import { TtTable as Ro, TtTableAction as So, TtTableButton as ho } from "./components/tt-table/index.js";
34
+ import { getFileUrlOss as Fo, getPostSignatureForObsUploadHuaweiOss as Co, getPostSignatureForOssUploadOss as Io } from "./api/oss.js";
35
+ import { TtKeepAlive as Uo } from "./components/tt-keep-alive/index.js";
36
+ import { useFormSchemasLink as Lo } from "./hooks/useFormSchemasLink.js";
37
+ import { useDataPermissionOptions as Bo } from "./hooks/useDataPermissionOptions.js";
38
+ import { useBasicDataOptions as No } from "./hooks/useBasicDataOptions.js";
39
+ import { usePanelSelectSchemas as ko } from "./hooks/usePanelSelectSchemas.js";
40
+ import { CODES as Vo, GROUP_BY as _o } from "./hooks/basicDataCodes.js";
41
+ import { useFormat as jo } from "./hooks/useFormat.js";
42
+ import { useLoading as Ko } from "./hooks/useLoading.js";
43
+ import { useScreenshotOss as Yo } from "./hooks/useScreenshotOss.js";
44
+ import { createUppercaseInputProps as qo, toUppercaseInputValue as Jo, uppercaseInputProps as Qo } from "./utils/uppercaseInput.js";
45
+ import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
46
+ import { useShowDrawer as or } from "./components/tt-drawer/src/index.js";
46
47
  import { setupModal as I } from "./components/tt-modal/src/index.js";
47
- import { useShowModal as or } from "./components/tt-modal/src/index.js";
48
- import { default as er } from "./directives/disabled-tip/index.js";
49
- import { default as mr } from "./directives/auto-tip/index.js";
50
- import { showTtDrawer as ar, useDrawerRender as fr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
51
- import { useDrawerResizable as ir } from "./components/tt-drawer/src/hooks/useResizable.js";
52
- import { showTtModal as dr, useModalRender as ur } from "./components/tt-modal/src/hooks/useModalRender.js";
53
- import { closeAllTtModal as Tr, closeTtModal as nr, openTtModal as cr, ttModal as gr } from "./components/tt-modal/src/utils/modal-service.js";
54
- import { default as br } from "./directives/dialog-resize/index.js";
55
- import * as to from "zod";
56
- import { useGroupForm as Or } from "./components/tt-form/src/group-form/useGroupForm.js";
57
- import { COMPONENT_MAP as Rr } from "./components/tt-form/src/config.js";
58
- import { useForm as hr } from "./components/tt-form/src/useForm.js";
59
- import { TtImageViewer as Fr } from "./components/tt-image/src/components/ImageViewer.js";
60
- import { vTtLoading as Cr } from "./components/tt-loading/src/directive.js";
61
- import { Loading as Ur } from "./components/tt-loading/src/service.js";
62
- import { useTableContext as Er, useTableFormContext as vr } from "./components/tt-table/src/hooks/useTableContext.js";
63
- import { useTableFormRender as zr, useTableRender as Nr } from "./components/tt-table/src/hooks/useTableRender.js";
64
- import { ttUploadProps as kr } from "./components/tt-upload/src/typing.js";
65
- const C = [
48
+ import { useShowModal as er } from "./components/tt-modal/src/index.js";
49
+ import { default as mr } from "./directives/disabled-tip/index.js";
50
+ import { default as ar } from "./directives/auto-tip/index.js";
51
+ import { showTtDrawer as sr, useDrawerRender as ir } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
52
+ import { useDrawerResizable as dr } from "./components/tt-drawer/src/hooks/useResizable.js";
53
+ import { showTtModal as xr, useModalRender as Tr } from "./components/tt-modal/src/hooks/useModalRender.js";
54
+ import { closeAllTtModal as cr, closeTtModal as gr, openTtModal as Mr, ttModal as br } from "./components/tt-modal/src/utils/modal-service.js";
55
+ import { default as Or } from "./directives/dialog-resize/index.js";
56
+ import * as po from "zod";
57
+ import { useGroupForm as Rr } from "./components/tt-form/src/group-form/useGroupForm.js";
58
+ import { COMPONENT_MAP as hr } from "./components/tt-form/src/config.js";
59
+ import { useForm as Fr } from "./components/tt-form/src/useForm.js";
60
+ import { TtImageViewer as Ir } from "./components/tt-image/src/components/ImageViewer.js";
61
+ import { vTtLoading as Ur } from "./components/tt-loading/src/directive.js";
62
+ import { Loading as Lr } from "./components/tt-loading/src/service.js";
63
+ import { useTableContext as Br, useTableFormContext as zr } from "./components/tt-table/src/hooks/useTableContext.js";
64
+ import { useTableFormRender as Gr, useTableRender as kr } from "./components/tt-table/src/hooks/useTableRender.js";
65
+ import { ttUploadProps as Vr } from "./components/tt-upload/src/typing.js";
66
+ const D = [
67
+ F,
66
68
  p,
67
69
  n,
68
70
  c,
@@ -82,21 +84,21 @@ const C = [
82
84
  S,
83
85
  h,
84
86
  A
85
- ], D = (o) => {
86
- C.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
87
+ ], U = (o) => {
88
+ D.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
87
89
  const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
88
90
  o.directive(m, t);
89
- }), F(o), I(o);
91
+ }), C(o), I(o);
90
92
  };
91
- function mo(o) {
93
+ function ao(o) {
92
94
  s(o == null ? void 0 : o.components), i(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
93
95
  }
94
- const po = {
96
+ const fo = {
95
97
  /**
96
98
  * 安装组件
97
99
  * @param app Vue 应用实例
98
100
  */
99
- install: D,
101
+ install: U,
100
102
  /**
101
103
  * 全局参数设置
102
104
  * @param options 全局参数
@@ -105,79 +107,80 @@ const po = {
105
107
  setup: P
106
108
  };
107
109
  export {
108
- ko as CODES,
109
- Rr as COMPONENT_MAP,
110
- Ho as GROUP_BY,
111
- Ur as Loading,
110
+ Vo as CODES,
111
+ hr as COMPONENT_MAP,
112
+ _o as GROUP_BY,
113
+ Lr as Loading,
112
114
  n as RenderDrawer,
113
115
  c as RenderModal,
114
- so as TtAddButton,
116
+ lo as TtAddButton,
115
117
  u as TtAddIcon,
116
118
  O as TtApiComponent,
117
- no as TtArea,
119
+ go as TtArea,
118
120
  p as TtButton,
119
121
  a as TtCheckbox,
122
+ F as TtCustomExportModal,
120
123
  f as TtEmpty,
121
124
  d as TtIcon,
122
125
  T as TtImage,
123
- Fr as TtImageViewer,
126
+ Ir as TtImageViewer,
124
127
  A as TtInputTextarea,
125
- Co as TtKeepAlive,
126
- bo as TtLoading,
128
+ Uo as TtKeepAlive,
129
+ Oo as TtLoading,
127
130
  R as TtLog,
128
- lo as TtModal,
131
+ xo as TtModal,
129
132
  w as TtNavAnchor,
130
133
  S as TtPanelSelect,
131
134
  h as TtRadioGroup,
132
135
  g as TtSelect,
133
136
  x as TtSubIcon,
134
- Oo as TtTable,
135
- Po as TtTableAction,
136
- Ro as TtTableButton,
137
+ Ro as TtTable,
138
+ So as TtTableAction,
139
+ ho as TtTableButton,
137
140
  M as TtText,
138
141
  b as TtUpload,
139
142
  s as addComponent,
140
- mr as autoTip,
141
- Tr as closeAllTtModal,
142
- nr as closeTtModal,
143
- Yo as createUppercaseInputProps,
144
- po as default,
145
- br as dialogResize,
146
- er as disabledTip,
147
- mo as formAdapter,
148
- ho as getFileUrlOss,
149
- Ao as getPostSignatureForObsUploadHuaweiOss,
150
- Fo as getPostSignatureForOssUploadOss,
151
- cr as openTtModal,
143
+ ar as autoTip,
144
+ cr as closeAllTtModal,
145
+ gr as closeTtModal,
146
+ qo as createUppercaseInputProps,
147
+ fo as default,
148
+ Or as dialogResize,
149
+ mr as disabledTip,
150
+ ao as formAdapter,
151
+ Fo as getFileUrlOss,
152
+ Co as getPostSignatureForObsUploadHuaweiOss,
153
+ Io as getPostSignatureForOssUploadOss,
154
+ Mr as openTtModal,
152
155
  i as setConfig,
153
- xo as setXHR,
154
- F as setupDrawer,
156
+ no as setXHR,
157
+ C as setupDrawer,
155
158
  I as setupModal,
156
- ar as showTtDrawer,
157
- dr as showTtModal,
158
- Zo as toUppercaseInputValue,
159
- gr as ttModal,
160
- kr as ttUploadProps,
161
- qo as uppercaseInputProps,
162
- Bo as useBasicDataOptions,
163
- Eo as useDataPermissionOptions,
164
- fr as useDrawerRender,
165
- ir as useDrawerResizable,
166
- hr as useForm,
167
- Uo as useFormSchemasLink,
168
- _o as useFormat,
169
- Or as useGroupForm,
170
- jo as useLoading,
171
- go as useModalForm,
172
- ur as useModalRender,
173
- No as usePanelSelectSchemas,
174
- Ko as useScreenshotOss,
175
- Qo as useShowDrawer,
176
- or as useShowModal,
177
- Er as useTableContext,
178
- vr as useTableFormContext,
179
- zr as useTableFormRender,
180
- Nr as useTableRender,
181
- Cr as vTtLoading,
182
- to as z
159
+ sr as showTtDrawer,
160
+ xr as showTtModal,
161
+ Jo as toUppercaseInputValue,
162
+ br as ttModal,
163
+ Vr as ttUploadProps,
164
+ Qo as uppercaseInputProps,
165
+ No as useBasicDataOptions,
166
+ Bo as useDataPermissionOptions,
167
+ ir as useDrawerRender,
168
+ dr as useDrawerResizable,
169
+ Fr as useForm,
170
+ Lo as useFormSchemasLink,
171
+ jo as useFormat,
172
+ Rr as useGroupForm,
173
+ Ko as useLoading,
174
+ bo as useModalForm,
175
+ Tr as useModalRender,
176
+ ko as usePanelSelectSchemas,
177
+ Yo as useScreenshotOss,
178
+ or as useShowDrawer,
179
+ er as useShowModal,
180
+ Br as useTableContext,
181
+ zr as useTableFormContext,
182
+ Gr as useTableFormRender,
183
+ kr as useTableRender,
184
+ Ur as vTtLoading,
185
+ po as z
183
186
  };
@@ -1,14 +1,32 @@
1
- import { Decimal as o } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
1
+ import { Decimal as l } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
2
2
  function i(...e) {
3
- let n = new o(e[0] ?? 0);
4
- for (let t = 1; t < e.length; t++) n = n.add(new o(e[t] ?? 0));
5
- return n.toNumber();
3
+ let t = new l(e[0] ?? 0);
4
+ for (let n = 1; n < e.length; n++) t = t.add(new l(e[n] ?? 0));
5
+ return t.toNumber();
6
6
  }
7
- function l(e) {
8
- const n = Number(e) || e === 0, t = Number.isNaN(Number(e)), r = new o(e);
9
- return n && !t ? r : new o(Number.NaN);
7
+ function c(...e) {
8
+ let t = new l(e[0] ?? 0);
9
+ for (let n = 1; n < e.length; n++) t = t.sub(new l(e[n] ?? 0));
10
+ return t.toNumber();
11
+ }
12
+ function m(...e) {
13
+ let t = new l(e[0] ?? 0);
14
+ for (let n = 1; n < e.length; n++) t = t.mul(new l(e[n] ?? 0));
15
+ return t.toNumber();
16
+ }
17
+ function b(...e) {
18
+ let t = new l(e[0] ?? 0);
19
+ for (let n = 1; n < e.length; n++) t = t.div(new l(e[n] ?? 0));
20
+ return t.toNumber();
21
+ }
22
+ function N(e) {
23
+ const t = Number(e) || e === 0, n = Number.isNaN(Number(e)), o = new l(e);
24
+ return t && !n ? o : new l(Number.NaN);
10
25
  }
11
26
  export {
12
27
  i as add,
13
- l as calc
28
+ N as calc,
29
+ b as divide,
30
+ m as multiply,
31
+ c as subtract
14
32
  };