@dazhicheng/ui 1.6.0 → 1.6.2

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 (125) hide show
  1. package/dist/components/tt-api-component/index.js +4 -3
  2. package/dist/components/tt-api-component/index.vue2.js +4 -3
  3. package/dist/components/tt-area/TtArea.vue3.js +8 -7
  4. package/dist/components/tt-button/index.js +5 -4
  5. package/dist/components/tt-button/index.vue2.js +4 -3
  6. package/dist/components/tt-checkbox/index.js +4 -3
  7. package/dist/components/tt-checkbox/index.vue.js +4 -3
  8. package/dist/components/tt-drawer/index.js +4 -3
  9. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +4 -3
  10. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +8 -7
  11. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
  12. package/dist/components/tt-drawer/src/props.js +3 -2
  13. package/dist/components/tt-drawer/src/utils/drawer-api.js +4 -2
  14. package/dist/components/tt-empty/index.js +9 -8
  15. package/dist/components/tt-form/index.js +10 -9
  16. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +3 -2
  17. package/dist/components/tt-form/src/components/FormActions.vue2.js +4 -2
  18. package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
  19. package/dist/components/tt-form/src/form/FormItem.vue.js +6 -5
  20. package/dist/components/tt-form/src/form/FormLabel.vue.js +8 -7
  21. package/dist/components/tt-form/src/form/RenderContent.vue.js +4 -3
  22. package/dist/components/tt-form/src/form-render/FormField.vue2.js +30 -28
  23. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +4 -2
  24. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
  25. package/dist/components/tt-form/src/form-render/array-register/utils.js +6 -4
  26. package/dist/components/tt-form/src/form-render/dependencies.js +19 -18
  27. package/dist/components/tt-form/src/form-render/form.vue2.js +4 -2
  28. package/dist/components/tt-form/src/form-render/helper.js +15 -14
  29. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
  30. package/dist/components/tt-form/src/formApi.js +3 -2
  31. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +4 -3
  32. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +2 -0
  33. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +4 -2
  34. package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -3
  35. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +3 -2
  36. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +28 -27
  37. package/dist/components/tt-form/src/index.vue2.js +3 -2
  38. package/dist/components/tt-form/src/useFormContext.js +11 -10
  39. package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
  40. package/dist/components/tt-form-item-error-tooltip/index.vue.js +4 -3
  41. package/dist/components/tt-icon/index.js +6 -5
  42. package/dist/components/tt-image/index.js +6 -5
  43. package/dist/components/tt-image/src/components/ImageViewer.js +7 -6
  44. package/dist/components/tt-loading/index.js +4 -3
  45. package/dist/components/tt-loading/src/directive.js +24 -23
  46. package/dist/components/tt-log/index.js +4 -3
  47. package/dist/components/tt-log/index.vue.js +3 -2
  48. package/dist/components/tt-modal/index.js +3 -2
  49. package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
  50. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
  51. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
  52. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +15 -14
  53. package/dist/components/tt-modal/src/props.js +3 -2
  54. package/dist/components/tt-modal/src/utils/modal-api.js +4 -2
  55. package/dist/components/tt-modal-form/index.vue.js +4 -3
  56. package/dist/components/tt-nav-anchor/index.js +4 -3
  57. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +15 -14
  58. package/dist/components/tt-panel-select/index.js +4 -3
  59. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +4 -3
  60. package/dist/components/tt-panel-select/src/index.vue.js +3 -2
  61. package/dist/components/tt-radio-group/index.js +4 -3
  62. package/dist/components/tt-radio-group/index.vue.js +7 -6
  63. package/dist/components/tt-select/index.js +4 -3
  64. package/dist/components/tt-select/src/Select.vue.d.ts +8 -8
  65. package/dist/components/tt-select/src/Select.vue.js +4 -3
  66. package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +116 -7
  67. package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
  68. package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
  69. package/dist/components/tt-select/src/components/Table.vue.js +3 -2
  70. package/dist/components/tt-select/src/hooks/useDataSource.js +4 -3
  71. package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +7 -1
  72. package/dist/components/tt-select/src/hooks/useSelect.js +3 -2
  73. package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
  74. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +28 -27
  75. package/dist/components/tt-select/src/props.d.ts +2 -2
  76. package/dist/components/tt-table/index.d.ts +6 -6
  77. package/dist/components/tt-table/index.js +1 -1
  78. package/dist/components/tt-table/src/Table.vue.d.ts +4 -4
  79. package/dist/components/tt-table/src/Table.vue.js +178 -175
  80. package/dist/components/tt-table/src/TableForm.vue.d.ts +6 -6
  81. package/dist/components/tt-table/src/TableForm.vue.js +2 -2
  82. package/dist/components/tt-table/src/components/TableAction.vue.js +19 -17
  83. package/dist/components/tt-table/src/components/TableButtons.js +10 -9
  84. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +4 -3
  85. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +18 -17
  86. package/dist/components/tt-table/src/emits.d.ts +10 -1
  87. package/dist/components/tt-table/src/hooks/useColumnPersistence.js +17 -16
  88. package/dist/components/tt-table/src/hooks/useColumns.js +4 -3
  89. package/dist/components/tt-table/src/hooks/useKeyboardNav.js +34 -33
  90. package/dist/components/tt-table/src/hooks/usePagination.js +12 -11
  91. package/dist/components/tt-table/src/hooks/useQuery.js +6 -5
  92. package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +1 -0
  93. package/dist/components/tt-table/src/hooks/useRowIdentity.js +68 -54
  94. package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +5 -7
  95. package/dist/components/tt-table/src/hooks/useRowSelection.js +70 -68
  96. package/dist/components/tt-table/src/hooks/useSideSlot.js +4 -3
  97. package/dist/components/tt-table/src/hooks/useSyncProps.js +4 -3
  98. package/dist/components/tt-table/src/hooks/useTableData.js +6 -5
  99. package/dist/components/tt-table/src/hooks/useTableFooter.js +9 -8
  100. package/dist/components/tt-table/src/hooks/useTableForm.js +4 -3
  101. package/dist/components/tt-table/src/hooks/useTableRender.d.ts +37 -4
  102. package/dist/components/tt-table/src/props.d.ts +12 -6
  103. package/dist/components/tt-table/src/props.js +14 -7
  104. package/dist/components/tt-table/src/table-mutation-events.js +10 -9
  105. package/dist/components/tt-table/src/types/table.d.ts +16 -0
  106. package/dist/components/tt-table/src/utils/action-tab-index.js +15 -14
  107. package/dist/components/tt-table/src/utils/context.js +5 -4
  108. package/dist/components/tt-table/src/utils/table-api.js +4 -2
  109. package/dist/components/tt-table/src/utils/table-form-api.js +22 -20
  110. package/dist/components/tt-text/index.js +4 -3
  111. package/dist/components/tt-upload/index.js +6 -5
  112. package/dist/components/tt-upload/src/TtUpload.vue.js +4 -3
  113. package/dist/directives/disabled-tip/index.js +9 -8
  114. package/dist/hooks/useFormSchemasLink.js +4 -3
  115. package/dist/hooks/useFormat.d.ts +35 -71
  116. package/dist/hooks/useFormat.js +28 -39
  117. package/dist/hooks/usePanelSelectSchemas.js +4 -3
  118. package/dist/hooks/useScreenshotOss.js +16 -15
  119. package/dist/packages/hooks/src/useDebounce.js +5 -4
  120. package/dist/packages/hooks/src/useElementScreenshot.js +4 -3
  121. package/dist/packages/hooks/src/usePriorityValue.js +5 -4
  122. package/dist/packages/utils/src/format.js +48 -0
  123. package/dist/plugins/default/renderCellContent.js +4 -3
  124. package/dist/plugins/vxeTable/switchStatus.js +14 -13
  125. package/package.json +3 -3
@@ -2,8 +2,9 @@ import "axios";
2
2
  import { MINIMUM_INPUT_WIDTH as N } from "element-plus";
3
3
  import { isString as V } from "../../../../packages/utils/src/is.js";
4
4
  import { ref as z, shallowRef as K, computed as d, toValue as O, onScopeDispose as X, watch as H, nextTick as j } from "vue";
5
- import "xe-utils";
6
5
  import "dayjs";
6
+ import "numeral";
7
+ import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
9
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
@@ -25,19 +26,19 @@ function q(l) {
25
26
  return l ? l.getBoundingClientRect().width : 0;
26
27
  }
27
28
  function I(l, c) {
28
- const i = q(l) - q(l == null ? void 0 : l.querySelector(".el-select__tags-text"));
29
- return i > 0 ? i : c;
29
+ const s = q(l) - q(l == null ? void 0 : l.querySelector(".el-select__tags-text"));
30
+ return s > 0 ? s : c;
30
31
  }
31
- function Te(l) {
32
- const c = z(1), i = K(null), S = ["ElSelect", "ElSelectV2", "TtPanelSelect"], T = () => l.value.component, f = () => O(l.value.componentProps), v = () => l.value.selectWrapRef, M = () => l.value.selectRef, _ = d(() => {
32
+ function ve(l) {
33
+ const c = z(1), s = K(null), S = ["ElSelect", "ElSelectV2", "TtPanelSelect"], T = () => l.value.component, m = () => O(l.value.componentProps), v = () => l.value.selectWrapRef, M = () => l.value.selectRef, _ = d(() => {
33
34
  const e = T();
34
35
  return V(e) && S.includes(e);
35
36
  }), h = d(() => {
36
- var o;
37
- const e = T(), t = f();
38
- return e === "TtApiComponent" && S.includes((o = t == null ? void 0 : t.component) == null ? void 0 : o.name);
37
+ var n;
38
+ const e = T(), t = m();
39
+ return e === "TtApiComponent" && S.includes((n = t == null ? void 0 : t.component) == null ? void 0 : n.name);
39
40
  }), $ = d(() => {
40
- const e = f();
41
+ const e = m();
41
42
  if (_.value || h.value) {
42
43
  const t = {
43
44
  clearable: (e == null ? void 0 : e.clearable) ?? !0,
@@ -48,40 +49,40 @@ function Te(l) {
48
49
  return {};
49
50
  });
50
51
  function C() {
51
- var t, o, r, s;
52
+ var t, n, r, i;
52
53
  const e = M();
53
54
  if (h.value)
54
- return (r = (o = (t = e.value) == null ? void 0 : t.getComponentRef) == null ? void 0 : o.call(t)) == null ? void 0 : r.selectedLabel;
55
+ return (r = (n = (t = e.value) == null ? void 0 : t.getComponentRef) == null ? void 0 : n.call(t)) == null ? void 0 : r.selectedLabel;
55
56
  if (_.value)
56
- return (s = e.value) == null ? void 0 : s.selectedLabel;
57
+ return (i = e.value) == null ? void 0 : i.selectedLabel;
57
58
  }
58
59
  function G(e, t) {
59
60
  var E, L;
60
- const o = window.getComputedStyle(t), r = Number.parseFloat(o.columnGap || o.gap) || Q, s = Array.from(t.querySelectorAll(".el-select__selected-item > .el-tag")).filter(
61
- (n) => !n.classList.contains("in-tooltip")
62
- ), b = s.find((n) => n.querySelector(".el-tag__close")), x = s.find((n) => !n.querySelector(".el-tag__close")), R = (E = b ?? x) == null ? void 0 : E.querySelector(".el-select__tags-text"), y = ee(R ? window.getComputedStyle(R) : o), k = I(b, Y), B = I(x, Z), F = !!((L = t.closest(".el-select__wrapper")) != null && L.classList.contains("is-filterable")) ? r + N : 0, w = t.clientWidth - P, p = e.length;
63
- let m = 0, g = 0;
64
- for (let n = 0; n < p; n++) {
65
- if (m += (n > 0 ? r : 0) + k + W(e[n] ?? "", y), n === p - 1 && m + F <= w) {
61
+ const n = window.getComputedStyle(t), r = Number.parseFloat(n.columnGap || n.gap) || Q, i = Array.from(t.querySelectorAll(".el-select__selected-item > .el-tag")).filter(
62
+ (o) => !o.classList.contains("in-tooltip")
63
+ ), b = i.find((o) => o.querySelector(".el-tag__close")), x = i.find((o) => !o.querySelector(".el-tag__close")), R = (E = b ?? x) == null ? void 0 : E.querySelector(".el-select__tags-text"), y = ee(R ? window.getComputedStyle(R) : n), k = I(b, Y), B = I(x, Z), F = !!((L = t.closest(".el-select__wrapper")) != null && L.classList.contains("is-filterable")) ? r + N : 0, w = t.clientWidth - P, p = e.length;
64
+ let f = 0, g = 0;
65
+ for (let o = 0; o < p; o++) {
66
+ if (f += (o > 0 ? r : 0) + k + W(e[o] ?? "", y), o === p - 1 && f + F <= w) {
66
67
  g = p;
67
68
  break;
68
69
  }
69
- const D = r + B + W(` + ${p - n - 1}`, y);
70
- if (m + D + F > w)
70
+ const D = r + B + W(` + ${p - o - 1}`, y);
71
+ if (f + D + F > w)
71
72
  break;
72
- g = n + 1;
73
+ g = o + 1;
73
74
  }
74
75
  return Math.max(1, g);
75
76
  }
76
77
  function U() {
77
- var o, r;
78
- const e = C(), t = ((o = v().value) == null ? void 0 : o.querySelector(".el-select__selection")) ?? null;
79
- if (i.value = t, !((r = f()) != null && r.multiple) || !Array.isArray(e) || !e.length || !t) {
78
+ var n, r;
79
+ const e = C(), t = ((n = v().value) == null ? void 0 : n.querySelector(".el-select__selection")) ?? null;
80
+ if (s.value = t, !((r = m()) != null && r.multiple) || !Array.isArray(e) || !e.length || !t) {
80
81
  c.value = 1;
81
82
  return;
82
83
  }
83
84
  c.value = G(
84
- e.map((s) => String(s ?? "")),
85
+ e.map((i) => String(i ?? "")),
85
86
  t
86
87
  );
87
88
  }
@@ -99,10 +100,10 @@ function Te(l) {
99
100
  await j(), A();
100
101
  },
101
102
  { flush: "post", deep: !0 }
102
- ), J([v(), i], () => A()), {
103
+ ), J([v(), s], () => A()), {
103
104
  selectComponentProps: $
104
105
  };
105
106
  }
106
107
  export {
107
- Te as useSelectCollapseOptions
108
+ ve as useSelectCollapseOptions
108
109
  };
@@ -4,6 +4,7 @@ import { useDesign as z } from "../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
5
  import "element-plus";
6
6
  import "dayjs";
7
+ import "numeral";
7
8
  import { cloneDeep as H } from "../../../packages/utils/src/tool.js";
8
9
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
9
10
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
@@ -29,7 +30,7 @@ import "es-toolkit/compat";
29
30
  import "../../tt-text/index.js";
30
31
  import te from "./form-render/form.vue2.js";
31
32
  /* empty css */
32
- const Ne = /* @__PURE__ */ P({
33
+ const Se = /* @__PURE__ */ P({
33
34
  name: "TtForm",
34
35
  __name: "index",
35
36
  props: {
@@ -155,5 +156,5 @@ const Ne = /* @__PURE__ */ P({
155
156
  }
156
157
  });
157
158
  export {
158
- Ne as default
159
+ Se as default
159
160
  };
@@ -2,8 +2,9 @@ import { useSlots as O, computed as j, unref as L, toRaw as P } from "vue";
2
2
  import "axios";
3
3
  import "element-plus";
4
4
  import { isFunction as $, isString as A, isObject as k } from "../../../packages/utils/src/is.js";
5
- import "xe-utils";
6
5
  import "dayjs";
6
+ import "numeral";
7
+ import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
9
10
  import { mergeWithArrayOverride as S } from "../../../packages/utils/src/merge.js";
@@ -25,7 +26,7 @@ function K(e) {
25
26
  const r = e;
26
27
  return A(r.fieldName) && "component" in r;
27
28
  }
28
- const [ge, pe] = x("TtFormProps"), [Ie, Ne] = x("ComponentRefMap");
29
+ const [pe, Ie] = x("TtFormProps"), [Ne, Ve] = x("ComponentRefMap");
29
30
  function T(e) {
30
31
  if (Reflect.has(e, "defaultValue"))
31
32
  return e.defaultValue;
@@ -247,7 +248,7 @@ function Q(e) {
247
248
  }
248
249
  }
249
250
  }
250
- function Ve(e, r) {
251
+ function Se(e, r) {
251
252
  if (!r.fieldName)
252
253
  return !1;
253
254
  const t = Q(r);
@@ -275,7 +276,7 @@ function m(e) {
275
276
  } else
276
277
  return;
277
278
  }
278
- function Se(e) {
279
+ function Re(e) {
279
280
  var f;
280
281
  const r = O(), t = n(), a = H({
281
282
  ...(f = Object.keys(t)) != null && f.length ? { initialValues: t } : {}
@@ -316,17 +317,17 @@ function Se(e) {
316
317
  }
317
318
  export {
318
319
  q as createArraySchemaContext,
319
- Ie as injectComponentRefMap,
320
- ge as injectFormProps,
320
+ Ne as injectComponentRefMap,
321
+ pe as injectFormProps,
321
322
  K as isFormSchema,
322
- Ne as provideComponentRefMap,
323
- pe as provideFormProps,
323
+ Ve as provideComponentRefMap,
324
+ Ie as provideFormProps,
324
325
  J as resolveArrayFieldInitialValue,
325
326
  M as resolveArrayFieldInitialValueWithRuntime,
326
327
  D as resolveArraySchemasForRuntime,
327
328
  F as resolveParentItemPathFromArrayPath,
328
329
  Q as resolveSchemaFieldInitialValue,
329
330
  T as resolveSchemaItemDefaultValue,
330
- Ve as shouldSeedAppendedFieldValue,
331
- Se as useFormInitial
331
+ Se as shouldSeedAppendedFieldValue,
332
+ Re as useFormInitial
332
333
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as o } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -14,9 +15,9 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs
14
15
  import "lodash-es";
15
16
  import t from "./index.vue.js";
16
17
  /* empty css */
17
- const h = o(t), u = o(t);
18
+ const u = o(t), w = o(t);
18
19
  export {
19
- u as TtErrorTooltip,
20
- h as TtFormItemErrorTooltip,
21
- h as default
20
+ w as TtErrorTooltip,
21
+ u as TtFormItemErrorTooltip,
22
+ u as default
22
23
  };
@@ -2,8 +2,9 @@ import { defineComponent as B, computed as S, ref as p, watch as m, nextTick as
2
2
  import { ElTooltip as I } from "element-plus";
3
3
  import "axios";
4
4
  import { isEmpty as x } from "../../packages/utils/src/is.js";
5
- import "xe-utils";
6
5
  import "dayjs";
6
+ import "numeral";
7
+ import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
9
10
  import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
@@ -21,7 +22,7 @@ const O = ["data-field-name"], z = {
21
22
  }, F = {
22
23
  key: 1,
23
24
  class: "c-#fff"
24
- }, re = /* @__PURE__ */ B({
25
+ }, oe = /* @__PURE__ */ B({
25
26
  name: "TtFormItemErrorTooltip",
26
27
  __name: "index",
27
28
  props: {
@@ -190,5 +191,5 @@ const O = ["data-field-name"], z = {
190
191
  }
191
192
  });
192
193
  export {
193
- re as default
194
+ oe as default
194
195
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as o } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -15,10 +16,10 @@ import "lodash-es";
15
16
  import t from "./index.vue.js";
16
17
  import m from "./components/AddIcon.vue.js";
17
18
  import r from "./components/SubIcon.vue.js";
18
- const w = o(t), x = o(m), A = o(r);
19
+ const x = o(t), A = o(m), S = o(r);
19
20
  export {
20
- x as TtAddIcon,
21
- w as TtIcon,
22
- A as TtSubIcon,
23
- w as default
21
+ A as TtAddIcon,
22
+ x as TtIcon,
23
+ S as TtSubIcon,
24
+ x as default
24
25
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as t } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -13,10 +14,10 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
13
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
15
  import "lodash-es";
15
16
  import o from "./tt-image.js";
16
- import { TtImageViewer as h } from "./src/components/ImageViewer.js";
17
- const x = t(o);
17
+ import { TtImageViewer as C } from "./src/components/ImageViewer.js";
18
+ const T = t(o);
18
19
  export {
19
- x as TtImage,
20
- h as TtImageViewer,
21
- x as default
20
+ T as TtImage,
21
+ C as TtImageViewer,
22
+ T as default
22
23
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as p, ref as n, computed as u, createVNode as o, Fragment as m, mergeProps as f } from "vue";
1
+ import { defineComponent as a, ref as n, computed as u, createVNode as o, Fragment as m, mergeProps as f } from "vue";
2
2
  import "axios";
3
3
  import { imageViewerEmits as w, imageViewerProps as c, ElImageViewer as g } from "element-plus";
4
4
  import "dayjs";
5
5
  import { withInstall as d } from "../../../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import v from "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -12,7 +13,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
15
  import "lodash-es";
15
- const S = d(/* @__PURE__ */ p({
16
+ const U = d(/* @__PURE__ */ a({
16
17
  name: "TtImageViewer",
17
18
  props: {
18
19
  ...c,
@@ -34,10 +35,10 @@ const S = d(/* @__PURE__ */ p({
34
35
  }) {
35
36
  const r = n(), s = () => {
36
37
  i("update:visible", !e.visible), i("close");
37
- }, a = u(() => v.omit(e, ["visible"]));
38
+ }, p = u(() => v.omit(e, ["visible"]));
38
39
  return l({
39
40
  elImageViewerRef: r
40
- }), () => o(m, null, [e.visible ? o(g, f(a.value, {
41
+ }), () => o(m, null, [e.visible ? o(g, f(p.value, {
41
42
  ref: r,
42
43
  onClose: s,
43
44
  onSwitch: (t) => i("switch", t),
@@ -46,6 +47,6 @@ const S = d(/* @__PURE__ */ p({
46
47
  }
47
48
  }));
48
49
  export {
49
- S as TtImageViewer,
50
- S as default
50
+ U as TtImageViewer,
51
+ U as default
51
52
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as o } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -13,8 +14,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
13
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
15
  import "lodash-es";
15
16
  import t from "./src/loading.vue.js";
16
- const u = o(t);
17
+ const w = o(t);
17
18
  export {
18
- u as TtLoading,
19
- u as default
19
+ w as TtLoading,
20
+ w as default
20
21
  };
@@ -2,8 +2,9 @@ import "axios";
2
2
  import "element-plus";
3
3
  import { isBoolean as r, isObject as p, isNull as n } from "../../../packages/utils/src/is.js";
4
4
  import { createApp as u } from "vue";
5
- import "xe-utils";
6
5
  import "dayjs";
6
+ import "numeral";
7
+ import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
9
10
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
@@ -12,45 +13,45 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
12
13
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
15
  import "lodash-es";
15
- import f from "./loading.vue.js";
16
- const s = /* @__PURE__ */ new WeakMap(), m = ["relative", "absolute", "fixed", "sticky"];
16
+ import m from "./loading.vue.js";
17
+ const s = /* @__PURE__ */ new WeakMap(), f = ["relative", "absolute", "fixed", "sticky"];
17
18
  function v(t, e = {}) {
18
- const i = document.createElement("div"), o = { ...e };
19
+ const l = document.createElement("div"), o = { ...e };
19
20
  delete o.visible;
20
- const l = u(f, {
21
+ const i = u(m, {
21
22
  ...o,
22
23
  visible: !0,
23
24
  // 组件始终可见,通过DOM操作控制显示隐藏
24
25
  fullscreen: !1
25
26
  });
26
- return l.mount(i), {
27
+ return i.mount(l), {
27
28
  targetEl: t,
28
- loadingEl: i.firstElementChild,
29
- app: l,
29
+ loadingEl: l.firstElementChild,
30
+ app: i,
30
31
  visible: !1,
31
32
  // 初始状态为不可见
32
33
  originalPosition: getComputedStyle(t).position,
33
34
  options: e
34
35
  };
35
36
  }
36
- function a(t, e, i) {
37
- if (e === t.visible && !i)
37
+ function a(t, e, l) {
38
+ if (e === t.visible && !l)
38
39
  return;
39
- const { targetEl: o, loadingEl: l } = t;
40
- e ? (m.includes(getComputedStyle(o).position) || (o.style.position = "relative"), o.appendChild(l), t.visible = !0) : (l.parentNode && l.parentNode.removeChild(l), o.style.position === "relative" && t.originalPosition !== "relative" && (o.style.position = t.originalPosition), t.visible = !1), i && Object.assign(t.options, i);
40
+ const { targetEl: o, loadingEl: i } = t;
41
+ e ? (f.includes(getComputedStyle(o).position) || (o.style.position = "relative"), o.appendChild(i), t.visible = !0) : (i.parentNode && i.parentNode.removeChild(i), o.style.position === "relative" && t.originalPosition !== "relative" && (o.style.position = t.originalPosition), t.visible = !1), l && Object.assign(t.options, l);
41
42
  }
42
- const j = {
43
+ const k = {
43
44
  mounted(t, e) {
44
- let i = {}, o = !1;
45
- r(e.value) ? o = e.value : p(e.value) && !n(e.value) ? (i = { ...e.value }, o = i.visible ?? !1, delete i.visible) : o = !!e.value;
46
- const l = v(t, i);
47
- s.set(t, l), o && a(l, !0);
45
+ let l = {}, o = !1;
46
+ r(e.value) ? o = e.value : p(e.value) && !n(e.value) ? (l = { ...e.value }, o = l.visible ?? !1, delete l.visible) : o = !!e.value;
47
+ const i = v(t, l);
48
+ s.set(t, i), o && a(i, !0);
48
49
  },
49
50
  updated(t, e) {
50
- const i = s.get(t);
51
- if (!i) return;
52
- let o = {}, l = !1;
53
- r(e.value) ? l = e.value : p(e.value) && !n(e.value) ? (o = { ...e.value }, l = o.visible ?? !1, delete o.visible) : l = !!e.value, a(i, l, o);
51
+ const l = s.get(t);
52
+ if (!l) return;
53
+ let o = {}, i = !1;
54
+ r(e.value) ? i = e.value : p(e.value) && !n(e.value) ? (o = { ...e.value }, i = o.visible ?? !1, delete o.visible) : i = !!e.value, a(l, i, o);
54
55
  },
55
56
  unmounted(t) {
56
57
  const e = s.get(t);
@@ -58,6 +59,6 @@ const j = {
58
59
  }
59
60
  };
60
61
  export {
61
- j as default,
62
- j as vTtLoading
62
+ k as default,
63
+ k as vTtLoading
63
64
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as t } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -13,8 +14,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
13
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
15
  import "lodash-es";
15
16
  import o from "./index.vue.js";
16
- const u = t(o);
17
+ const w = t(o);
17
18
  export {
18
- u as TtLog,
19
- u as default
19
+ w as TtLog,
20
+ w as default
20
21
  };
@@ -4,6 +4,7 @@ import { useDesign as a } from "../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
5
  import "element-plus";
6
6
  import "dayjs";
7
+ import "numeral";
7
8
  import "xe-utils";
8
9
  import "dayjs/plugin/utc";
9
10
  import "dayjs/plugin/timezone";
@@ -16,7 +17,7 @@ import "lodash-es";
16
17
  import "vue-router";
17
18
  import "../tt-table/index.js";
18
19
  import { useTableRender as c } from "../tt-table/src/hooks/useTableRender.js";
19
- const L = /* @__PURE__ */ l({
20
+ const R = /* @__PURE__ */ l({
20
21
  name: "TtLog",
21
22
  __name: "index",
22
23
  props: {
@@ -41,5 +42,5 @@ const L = /* @__PURE__ */ l({
41
42
  }
42
43
  });
43
44
  export {
44
- L as default
45
+ R as default
45
46
  };
@@ -3,6 +3,7 @@ import "element-plus";
3
3
  import "dayjs";
4
4
  import "vue";
5
5
  import { withInstall as o } from "../../packages/utils/src/install.js";
6
+ import "numeral";
6
7
  import "xe-utils";
7
8
  import "dayjs/plugin/utc";
8
9
  import "dayjs/plugin/timezone";
@@ -17,9 +18,9 @@ import t from "./src/RenderModal.vue.js";
17
18
  import "@tanstack/vue-store";
18
19
  import "vue-router";
19
20
  import "@vueuse/core";
20
- const r = o(t), T = r;
21
+ const r = o(t), b = r;
21
22
  export {
22
23
  r as RenderModal,
23
- T as TtModal,
24
+ b as TtModal,
24
25
  r as default
25
26
  };
@@ -6,6 +6,7 @@ import { usePriorityValues as Ao, getPriorityValues as Lo } from "../../../packa
6
6
  import "axios";
7
7
  import { dialogProps as E, ElDialog as _o } from "element-plus";
8
8
  import "dayjs";
9
+ import "numeral";
9
10
  import { generateTestId as I, toKebabCase as xo } from "../../../packages/utils/src/testid-helper.js";
10
11
  import "xe-utils";
11
12
  import "dayjs/plugin/utc";
@@ -26,7 +27,7 @@ import { basicProps as No } from "./props.js";
26
27
  import { ModalApi as qo } from "./utils/modal-api.js";
27
28
  import { pushModal as Ko, removeModal as W } from "./utils/modal-stack.js";
28
29
  import Uo from "../../../assets/svg/close.svg.js";
29
- const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"], Pe = /* @__PURE__ */ ko({
30
+ const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"], $e = /* @__PURE__ */ ko({
30
31
  name: "TtModal",
31
32
  __name: "RenderModal",
32
33
  props: {
@@ -319,5 +320,5 @@ const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"], Pe = /* @__PURE_
319
320
  }
320
321
  });
321
322
  export {
322
- Pe as default
323
+ $e as default
323
324
  };
@@ -3,6 +3,7 @@ import { TtButton as u } from "../../../tt-button/index.js";
3
3
  import "axios";
4
4
  import { ElSpace as w } from "element-plus";
5
5
  import "dayjs";
6
+ import "numeral";
6
7
  import { generateTestId as f } from "../../../../packages/utils/src/testid-helper.js";
7
8
  import "xe-utils";
8
9
  import "dayjs/plugin/utc";
@@ -14,7 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mo
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import { pick as y } from "lodash-es";
16
17
  import { basicProps as I } from "../props.js";
17
- const $ = { class: "flex" }, L = { class: "flex-1" }, W = /* @__PURE__ */ h({
18
+ const $ = { class: "flex" }, L = { class: "flex-1" }, X = /* @__PURE__ */ h({
18
19
  name: "TtModalFooter",
19
20
  __name: "ModalFooter",
20
21
  props: y(I, [
@@ -80,5 +81,5 @@ const $ = { class: "flex" }, L = { class: "flex-1" }, W = /* @__PURE__ */ h({
80
81
  }
81
82
  });
82
83
  export {
83
- W as default
84
+ X as default
84
85
  };
@@ -4,6 +4,7 @@ import { useDesign as c } from "../../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
5
  import "element-plus";
6
6
  import "dayjs";
7
+ import "numeral";
7
8
  import "xe-utils";
8
9
  import "dayjs/plugin/utc";
9
10
  import "dayjs/plugin/timezone";
@@ -14,7 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mo
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import "lodash-es";
16
17
  import "vue-router";
17
- const z = /* @__PURE__ */ i({
18
+ const E = /* @__PURE__ */ i({
18
19
  __name: "ModalHeader",
19
20
  props: {
20
21
  /** 标题 */
@@ -32,5 +33,5 @@ const z = /* @__PURE__ */ i({
32
33
  }
33
34
  });
34
35
  export {
35
- z as default
36
+ E as default
36
37
  };
@@ -1,9 +1,10 @@
1
- import { defineComponent as d, ref as i, computed as g, watch as x, unref as e, onMounted as w, nextTick as v, withDirectives as S, createElementBlock as _, openBlock as k, normalizeClass as y, normalizeStyle as B, renderSlot as C } from "vue";
1
+ import { defineComponent as d, ref as i, computed as g, watch as x, unref as r, onMounted as w, nextTick as v, withDirectives as S, createElementBlock as _, openBlock as k, normalizeClass as y, normalizeStyle as B, renderSlot as C } from "vue";
2
2
  import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
3
  import { useDesign as H } from "../../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
5
  import { vLoading as T } from "element-plus";
6
6
  import "dayjs";
7
+ import "numeral";
7
8
  import "xe-utils";
8
9
  import "dayjs/plugin/utc";
9
10
  import "dayjs/plugin/timezone";
@@ -16,27 +17,27 @@ import "lodash-es";
16
17
  import { useIsScroll as $ } from "../../../../packages/hooks/src/useIsScroll.js";
17
18
  import "vue-router";
18
19
  import { basicProps as b } from "../props.js";
19
- const U = /* @__PURE__ */ d({
20
+ const V = /* @__PURE__ */ d({
20
21
  name: "TtWrapper",
21
22
  __name: "ModalWrapper",
22
23
  props: b,
23
24
  emits: ["is-scroll"],
24
25
  setup(p, { expose: m, emit: s }) {
25
- const r = p, n = s, l = i(window.innerHeight * 0.7), { prefixCls: a } = H("modal-wrapper"), o = i(), c = g(() => ({
26
+ const t = p, n = s, l = i(window.innerHeight * 0.7), { prefixCls: a } = H("modal-wrapper"), o = i(), c = g(() => ({
26
27
  // minHeight: `${props.minHeight}px`,
27
- maxHeight: r.isBottom ? "calc(100vh - 60px - 44px - 33px)" : `${r.height || l.value}px`,
28
- height: r.height > 0 ? `${r.height}px !important` : "auto"
28
+ maxHeight: t.isBottom ? "calc(100vh - 60px - 44px - 33px)" : `${t.height || l.value}px`,
29
+ height: t.height > 0 ? `${t.height}px !important` : "auto"
29
30
  // overflow: 'auto',
30
31
  // padding: '12px 16px',
31
32
  }));
32
33
  function f() {
33
- e(o) && e(o).scrollTo(0, 1e6);
34
+ r(o) && r(o).scrollTo(0, 1e6);
34
35
  }
35
36
  const { hasScrollbar: h, update: u } = $();
36
37
  return x(
37
- () => e(h),
38
- (t) => {
39
- n("is-scroll", t);
38
+ () => r(h),
39
+ (e) => {
40
+ n("is-scroll", e);
40
41
  }
41
42
  ), w(() => {
42
43
  v(() => {
@@ -45,18 +46,18 @@ const U = /* @__PURE__ */ d({
45
46
  }), m({
46
47
  onScrollBottom: f,
47
48
  elm: o
48
- }), (t, z) => S((k(), _("div", {
49
+ }), (e, z) => S((k(), _("div", {
49
50
  ref_key: "wrapperRef",
50
51
  ref: o,
51
52
  style: B(c.value),
52
- class: y([e(a)])
53
+ class: y([r(a)])
53
54
  }, [
54
- C(t.$slots, "default")
55
+ C(e.$slots, "default")
55
56
  ], 6)), [
56
- [e(T), t.loading]
57
+ [r(T), e.loading]
57
58
  ]);
58
59
  }
59
60
  });
60
61
  export {
61
- U as default
62
+ V as default
62
63
  };