@dazhicheng/ui 1.5.261 → 1.5.263

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 (48) hide show
  1. package/dist/components/tt-api-component/index.vue2.js +41 -40
  2. package/dist/components/tt-button/index.vue2.js +10 -9
  3. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
  4. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
  5. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
  6. package/dist/components/tt-drawer/src/props.js +3 -2
  7. package/dist/components/tt-form/index.js +7 -6
  8. package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
  9. package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
  10. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
  11. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +26 -25
  12. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
  13. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +82 -64
  14. package/dist/components/tt-form/src/index.vue2.js +3 -2
  15. package/dist/components/tt-log/index.vue.js +5 -4
  16. package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
  17. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
  18. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
  19. package/dist/components/tt-modal/src/props.js +3 -2
  20. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
  21. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +29 -23
  22. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +89 -81
  23. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +49 -43
  24. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +56 -49
  25. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +3 -0
  26. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +94 -61
  27. package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
  28. package/dist/components/tt-panel-select/src/index.vue.js +205 -190
  29. package/dist/components/tt-radio-group/index.vue.js +11 -10
  30. package/dist/components/tt-select/src/Select.vue.js +3 -2
  31. package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
  32. package/dist/components/tt-select/src/components/Table.vue.js +3 -2
  33. package/dist/components/tt-table/index.js +1 -1
  34. package/dist/components/tt-table/src/Table.vue.js +45 -44
  35. package/dist/components/tt-table/src/TableForm.vue.js +1 -1
  36. package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
  37. package/dist/components/tt-table/src/components/TableButtons.js +3 -2
  38. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
  39. package/dist/components/tt-table/src/props.js +5 -4
  40. package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
  41. package/dist/hooks/basicDataCodes.d.ts +4 -1
  42. package/dist/hooks/basicDataCodes.js +35 -33
  43. package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
  44. package/dist/hooks/usePanelSelectSchemas.js +62 -62
  45. package/dist/hooks/useScreenshotOss.js +3 -2
  46. package/dist/plugins/vxeTable/switchStatus.js +3 -2
  47. package/dist/style.css +1 -1
  48. package/package.json +3 -3
@@ -13,13 +13,14 @@ 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 "lodash-es";
16
+ import "vue-router";
16
17
  import { TtEmpty as M } from "../../../tt-empty/index.js";
17
18
  import { VxeGrid as X } from "vxe-table";
18
19
  import { tableEmits as c } from "vxe-table/es/table/src/emits";
19
20
  import { GRID_MIN_HEIGHT as A, GRID_MAX_HEIGHT as U } from "../const.js";
20
21
  import { useGrid as Y } from "../hooks/useGrid.js";
21
22
  import { selectTableProps as $ } from "../props.js";
22
- const q = { class: "flex flex-col items-center justify-center" }, ge = /* @__PURE__ */ C({
23
+ const q = { class: "flex flex-col items-center justify-center" }, he = /* @__PURE__ */ C({
23
24
  __name: "SelectTable",
24
25
  props: $,
25
26
  emits: c,
@@ -93,5 +94,5 @@ const q = { class: "flex flex-col items-center justify-center" }, ge = /* @__PUR
93
94
  }
94
95
  });
95
96
  export {
96
- ge as default
97
+ he as default
97
98
  };
@@ -13,6 +13,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pa
13
13
  import { debounce as Pe, cloneDeep as Se } from "lodash-es";
14
14
  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";
15
15
  import { useDesign as Ee } from "../../../../packages/hooks/src/useDesign.js";
16
+ import "vue-router";
16
17
  import { TtEmpty as Ne } from "../../../tt-empty/index.js";
17
18
  import { TtText as ee } from "../../../tt-text/index.js";
18
19
  import { VxeList as $e } from "vxe-pc-ui";
@@ -24,7 +25,7 @@ const Ge = { class: "vxe-table--render-default size--mini border--default" }, Xe
24
25
  }, je = ["onClick", "onMouseenter"], Je = { class: "vxe-cell" }, Ke = {
25
26
  key: 1,
26
27
  class: "vxe-body--column is--padding col--ellipsis"
27
- }, Qe = { class: "vxe-cell" }, xt = /* @__PURE__ */ We({
28
+ }, Qe = { class: "vxe-cell" }, kt = /* @__PURE__ */ We({
28
29
  name: "TtSelectTable",
29
30
  __name: "Table",
30
31
  props: Ae,
@@ -313,5 +314,5 @@ const Ge = { class: "vxe-table--render-default size--mini border--default" }, Xe
313
314
  }
314
315
  });
315
316
  export {
316
- xt as default
317
+ kt as default
317
318
  };
@@ -30,6 +30,7 @@ import "es-toolkit/compat";
30
30
  import "zod";
31
31
  import "../tt-form/src/shared/zod-defaults.js";
32
32
  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";
33
+ import "vue-router";
33
34
  import "@vueuse/core";
34
35
  import "../tt-icon/index.js";
35
36
  /* empty css */
@@ -57,7 +58,6 @@ import "../tt-log/index.js";
57
58
  /* empty css */
58
59
  /* empty css */
59
60
  import "../tt-loading/index.js";
60
- import "vue-router";
61
61
  import "../../hooks/basicDataCodes.js";
62
62
  import "numeral";
63
63
  import "sortablejs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as Pt, useAttrs as Rt, useSlots as $t, ref as _, getCurrentInstance as Et, computed as T, provide as $e, reactive as Ot, toValue as K, toRaw as I, unref as t, watch as J, nextTick as B, onMounted as _t, onUnmounted as It, createElementBlock as y, openBlock as p, normalizeClass as A, createVNode as F, mergeProps as re, toHandlers as Dt, createSlots as Nt, withCtx as g, renderSlot as S, createBlock as ne, createCommentVNode as H, normalizeStyle as $, createElementVNode as P, normalizeProps as j, guardReactiveProps as X, Fragment as Ee, toDisplayString as M, renderList as se, withModifiers as zt, createTextVNode as le } from "vue";
1
+ import { defineComponent as Pt, useAttrs as Rt, useSlots as $t, ref as _, getCurrentInstance as Et, computed as T, provide as $e, reactive as Ot, toValue as K, toRaw as I, unref as t, watch as J, nextTick as B, onMounted as _t, onUnmounted as It, createElementBlock as y, openBlock as p, normalizeClass as A, createVNode as F, mergeProps as re, toHandlers as Dt, createSlots as Nt, withCtx as m, renderSlot as S, createBlock as ne, createCommentVNode as H, normalizeStyle as $, createElementVNode as P, normalizeProps as j, guardReactiveProps as X, Fragment as Ee, toDisplayString as M, renderList as se, withModifiers as zt, createTextVNode as le } from "vue";
2
2
  import { useLoading as Bt } from "../../../hooks/useLoading.js";
3
3
  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";
4
4
  import { useDesign as Ft } from "../../../packages/hooks/src/useDesign.js";
@@ -15,6 +15,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
15
15
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
16
  import { checkVersion as jt } from "../../../packages/utils/src/check.js";
17
17
  import { omit as G, cloneDeep as Mt } from "lodash-es";
18
+ import "vue-router";
18
19
  import { TtErrorTooltip as Gt } from "../../tt-form-item-error-tooltip/index.js";
19
20
  import { useStore as Ut } from "@tanstack/vue-store";
20
21
  import { VxeUI as Wt, VxePager as qt } from "vxe-pc-ui";
@@ -38,7 +39,7 @@ import { createTableContext as co } from "./hooks/useTableContext.js";
38
39
  import { useTableEvents as uo } from "./hooks/useTableEvent.js";
39
40
  import { tableOtherProps as fo, tableProps as Ne } from "./props.js";
40
41
  import { TableApi as po } from "./utils/table-api.js";
41
- const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
42
+ const mo = ["data-testid", "data-table-columns"], go = ["onClick"], bo = {
42
43
  class: "mr-4px flex-1 overflow-hidden"
43
44
  }, ho = ["src"], yo = ["src"], So = ["src"], xo = {
44
45
  style: {
@@ -48,7 +49,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
48
49
  key: 0
49
50
  }, Co = {
50
51
  key: 0
51
- }, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])', cr = /* @__PURE__ */ Pt({
52
+ }, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])', ur = /* @__PURE__ */ Pt({
52
53
  name: "TtTable",
53
54
  __name: "Table",
54
55
  props: {
@@ -75,9 +76,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
75
76
  if (!a) return !0;
76
77
  const c = a.getBoundingClientRect();
77
78
  return !l.some((u) => {
78
- const m = u.closest('[class*="table-action"]');
79
- if (!m || m === a) return !1;
80
- const w = m.getBoundingClientRect();
79
+ const g = u.closest('[class*="table-action"]');
80
+ if (!g || g === a) return !1;
81
+ const w = g.getBoundingClientRect();
81
82
  return Math.abs(w.top - c.top) <= 2 && w.left > c.left;
82
83
  });
83
84
  }).sort((n, s) => {
@@ -116,9 +117,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
116
117
  if (!(o instanceof HTMLElement)) return;
117
118
  const r = Q(), n = o.closest(U), s = n ? r.indexOf(n) : -1;
118
119
  if (s < 0) return;
119
- const l = !e.shiftKey, a = Ve(l), c = Le(l), u = a && c ? a.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a : c : a || c, m = r[s + (e.shiftKey ? -1 : 1)] || u;
120
- m && (e.preventDefault(), e.stopPropagation(), B(() => {
121
- m.focus();
120
+ const l = !e.shiftKey, a = Ve(l), c = Le(l), u = a && c ? a.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a : c : a || c, g = r[s + (e.shiftKey ? -1 : 1)] || u;
121
+ g && (e.preventDefault(), e.stopPropagation(), B(() => {
122
+ g.focus();
122
123
  }));
123
124
  }
124
125
  function fe(e) {
@@ -136,9 +137,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
136
137
  const u = Array.from(document.querySelectorAll(U)).filter((h) => {
137
138
  const Y = window.getComputedStyle(h);
138
139
  return !h.closest('[class*="table-action"]') && Y.display !== "none" && Y.visibility !== "hidden" && !!h.offsetParent;
139
- }), m = u.indexOf(o);
140
- if (m < 0) return;
141
- const w = u[m + (e.shiftKey ? -1 : 1)];
140
+ }), g = u.indexOf(o);
141
+ if (g < 0) return;
142
+ const w = u[g + (e.shiftKey ? -1 : 1)];
142
143
  !w || !r.contains(w) || (e.preventDefault(), e.stopPropagation(), c.focus());
143
144
  }
144
145
  const pe = _({}), x = Et();
@@ -155,7 +156,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
155
156
  noSearchText: K(V).noSearchText,
156
157
  isFirstLoad: !0,
157
158
  emptyImageStatus: K(V).emptyImageStatus
158
- }), ge = _({}), d = T(() => {
159
+ }), me = _({}), d = T(() => {
159
160
  const {
160
161
  toolTipErrorPlacement: e,
161
162
  ...o
@@ -168,7 +169,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
168
169
  $e(`${E}-props`, d);
169
170
  const {
170
171
  getLoading: W,
171
- setLoading: me
172
+ setLoading: ge
172
173
  } = Bt(T(() => t(d).loading || !1)), {
173
174
  configRef: L,
174
175
  getPaginationInfo: N,
@@ -210,7 +211,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
210
211
  tableData: ce,
211
212
  paginationRef: L,
212
213
  getPaginationInfo: N,
213
- setLoading: me,
214
+ setLoading: ge,
214
215
  setPagination: ee,
215
216
  clearSelectedRowKeys: oe,
216
217
  getIsTableEvent: i.getIsTableEvent
@@ -238,7 +239,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
238
239
  toolbarConfig: a = {},
239
240
  showPager: c,
240
241
  autoHeight: u,
241
- virtualYConfig: m = {},
242
+ virtualYConfig: g = {},
242
243
  expandConfig: w = {}
243
244
  } = t(d), h = {}, Y = G(t(d), ["data", "columns"]);
244
245
  return l && (h.toolbarConfig = {
@@ -250,7 +251,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
250
251
  }), c || (h.pagerConfig = void 0), u && (h.height = "auto", h.autoResize = !0, h.syncResize = !0), jt(Wt.tableVersion, 4, 16) ? h.virtualYConfig = {
251
252
  enabled: !0,
252
253
  mode: "wheel",
253
- ...m
254
+ ...g
254
255
  } : h.scrollY = {
255
256
  enabled: !0,
256
257
  mode: "wheel",
@@ -326,7 +327,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
326
327
  const o = Xt.camelCase(e);
327
328
  ue[o] = (...r) => f(e, ...r);
328
329
  });
329
- const gt = T(() => ({
330
+ const mt = T(() => ({
330
331
  ...ue,
331
332
  radioChange: Qe,
332
333
  checkboxChange: Ue,
@@ -348,7 +349,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
348
349
  f("update:modelValue", r ? Mt(o) : o), f("edit-closed", e);
349
350
  }
350
351
  }));
351
- async function mt(e) {
352
+ async function gt(e) {
352
353
  i.setState(e);
353
354
  }
354
355
  function Pe() {
@@ -358,7 +359,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
358
359
  });
359
360
  }
360
361
  function bt(e, o) {
361
- e && (ge.value[o] = e);
362
+ e && (me.value[o] = e);
362
363
  }
363
364
  async function ht(e) {
364
365
  if (!e.sortable) {
@@ -422,8 +423,8 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
422
423
  filterExclude: n = []
423
424
  } = r.filterRender.props || {};
424
425
  o && ((s = t(ie)) == null || s.hidePopper(), B(() => {
425
- var c, u, m, w;
426
- const l = (c = e == null ? void 0 : e.$event) == null ? void 0 : c.target, a = (m = (u = l == null ? void 0 : l.parentNode) == null ? void 0 : u.parentNode) == null ? void 0 : m.parentNode;
426
+ var c, u, g, w;
427
+ const l = (c = e == null ? void 0 : e.$event) == null ? void 0 : c.target, a = (g = (u = l == null ? void 0 : l.parentNode) == null ? void 0 : u.parentNode) == null ? void 0 : g.parentNode;
427
428
  (w = t(ie)) == null || w.showPopper(a), Object.assign(He.value, {
428
429
  column: e.column,
429
430
  $event: e.$event,
@@ -441,10 +442,10 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
441
442
  });
442
443
  const O = {
443
444
  reload: rt,
444
- setProps: mt,
445
+ setProps: gt,
445
446
  setTableColumns: ct,
446
447
  setPagination: ee,
447
- setLoading: me,
448
+ setLoading: ge,
448
449
  redoHeight: Pe,
449
450
  getDataSource: nt,
450
451
  getPagination: je,
@@ -528,10 +529,10 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
528
529
  ref: b
529
530
  }, pe.value, {
530
531
  onFilterChange: o[2] || (o[2] = (r) => t(Ce)())
531
- }, Dt(gt.value), {
532
+ }, Dt(mt.value), {
532
533
  onFilterVisible: vt
533
534
  }), Nt({
534
- empty: g(() => [t(W) ? (p(), y("div", {
535
+ empty: m(() => [t(W) ? (p(), y("div", {
535
536
  key: 1,
536
537
  class: A(`${t(E)}-empty-image`)
537
538
  }, [P("span", null, M(R.emptyText || ""), 1)], 2)) : (p(), y("div", {
@@ -548,7 +549,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
548
549
  style: $(ke.value),
549
550
  status: R.emptyImageStatus
550
551
  }, null, 8, ["style", "status"]), R.noSearchText ? (p(), y("span", Co, M(R.noSearchText), 1)) : H("", !0)], 64))], 2))]),
551
- left: g(() => [S(e.$slots, "left", {}, () => [t(z) ? (p(), ne(t(Oe), {
552
+ left: m(() => [S(e.$slots, "left", {}, () => [t(z) ? (p(), ne(t(Oe), {
552
553
  key: 0,
553
554
  ref_key: "leftSlotScrollbarRef",
554
555
  ref: tt,
@@ -561,7 +562,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
561
562
  marginTop: `${t(Se)}px`
562
563
  })
563
564
  }, {
564
- default: g(() => [P("div", {
565
+ default: m(() => [P("div", {
565
566
  class: "float-left w-0",
566
567
  style: $({
567
568
  height: `${t(xe)}px`
@@ -579,7 +580,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
579
580
  })))], 4)]),
580
581
  _: 3
581
582
  }, 8, ["height", "style"])) : H("", !0)])]),
582
- right: g(() => [S(e.$slots, "right", {}, () => [t(z) ? (p(), ne(t(Oe), {
583
+ right: m(() => [S(e.$slots, "right", {}, () => [t(z) ? (p(), ne(t(Oe), {
583
584
  key: 0,
584
585
  ref_key: "rightSlotScrollbarRef",
585
586
  ref: ot,
@@ -593,7 +594,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
593
594
  marginTop: `${t(Se)}px`
594
595
  })
595
596
  }, {
596
- default: g(() => [P("div", {
597
+ default: m(() => [P("div", {
597
598
  class: "float-left w-0",
598
599
  style: $({
599
600
  height: `${t(xe)}px`
@@ -614,13 +615,13 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
614
615
  _: 2
615
616
  }, [se(t(at), (r) => ({
616
617
  name: r,
617
- fn: g((n) => [P("div", {
618
+ fn: m((n) => [P("div", {
618
619
  class: "flex items-center",
619
620
  onClick: zt((s) => ht(n.column), ["stop"])
620
621
  }, [P("div", bo, [S(e.$slots, Tt(n), j(X(n)), () => [F(t(to), {
621
622
  "tool-tip": ft.value
622
623
  }, {
623
- default: g(() => [le(M(n.column.title), 1)]),
624
+ default: m(() => [le(M(n.column.title), 1)]),
624
625
  _: 2
625
626
  }, 1032, ["tool-tip"])])]), n.column.sortable ? (p(), y("div", {
626
627
  key: 0,
@@ -637,14 +638,14 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
637
638
  }, null, 8, yo)) : (p(), y("img", {
638
639
  key: 2,
639
640
  src: t(Zt)
640
- }, null, 8, So))], 2)) : H("", !0)], 8, mo)])
641
+ }, null, 8, So))], 2)) : H("", !0)], 8, go)])
641
642
  })), se(Object.keys(e.$slots), (r) => ({
642
643
  name: r,
643
- fn: g((n) => [r.includes("action") ? (p(), ne(t(oo), {
644
+ fn: m((n) => [r.includes("action") ? (p(), ne(t(oo), {
644
645
  key: 0,
645
646
  "row-index": n.$rowIndex
646
647
  }, {
647
- default: g(() => [S(e.$slots, r, re(n, {
648
+ default: m(() => [S(e.$slots, r, re(n, {
648
649
  rowIndex: n.$rowIndex
649
650
  }))]),
650
651
  _: 2
@@ -653,21 +654,21 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
653
654
  }, n)))])
654
655
  })), C.value.showTableAlert ? {
655
656
  name: "top",
656
- fn: g(() => [P("div", {
657
+ fn: m(() => [P("div", {
657
658
  class: A(`${t(E)}-top-alert`)
658
659
  }, [o[3] || (o[3] = le(" 已选中 ", -1)), P("span", xo, M(t(Ge).length), 1), o[4] || (o[4] = le(" 条 ", -1)), S(e.$slots, "top_title")], 2)]),
659
660
  key: "0"
660
661
  } : void 0, t(D).toolbar_buttons ? {
661
662
  name: "toolbar_buttons",
662
- fn: g(() => [S(e.$slots, "toolbar_buttons")]),
663
+ fn: m(() => [S(e.$slots, "toolbar_buttons")]),
663
664
  key: "1"
664
665
  } : void 0, t(D).toolbar_tools ? {
665
666
  name: "toolbar_tools",
666
- fn: g(() => [S(e.$slots, "toolbar_tools")]),
667
+ fn: m(() => [S(e.$slots, "toolbar_tools")]),
667
668
  key: "2"
668
669
  } : void 0, se(t(it), (r) => ({
669
670
  name: r,
670
- fn: g(({
671
+ fn: m(({
671
672
  content: n,
672
673
  rowIndex: s,
673
674
  columnIndex: l,
@@ -680,11 +681,11 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
680
681
  }, [F(t(Gt), {
681
682
  placement: d.value.toolTipErrorPlacement,
682
683
  "err-msg": n,
683
- "ref-dom": ge.value[`valid_${s}_${l}`]
684
+ "ref-dom": me.value[`valid_${s}_${l}`]
684
685
  }, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : H("", !0)])
685
686
  })), C.value.showPager ? {
686
687
  name: "pager",
687
- fn: g(() => {
688
+ fn: m(() => {
688
689
  var r, n, s, l;
689
690
  return [F(t(qt), {
690
691
  "current-page": t(L).currentPage,
@@ -698,16 +699,16 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
698
699
  "class-name": `${t(E)}-vxe-pager`,
699
700
  onPageChange: t(Me)
700
701
  }, {
701
- left: g(() => [S(e.$slots, "pager_left", j(X({
702
+ left: m(() => [S(e.$slots, "pager_left", j(X({
702
703
  selectedKeys: t(te)
703
704
  }))), S(e.$slots, "buttom_left")]),
704
705
  _: 3
705
706
  }, 8, ["current-page", "page-size", "page-sizes", "layouts", "total", "size", "class-name", "onPageChange"])];
706
707
  }),
707
708
  key: "3"
708
- } : void 0]), 1040)], 42, go));
709
+ } : void 0]), 1040)], 42, mo));
709
710
  }
710
711
  });
711
712
  export {
712
- cr as default
713
+ ur as default
713
714
  };
@@ -34,6 +34,7 @@ import "../../tt-nav-anchor/index.js";
34
34
  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";
35
35
  import { useDesign as Ue } from "../../../packages/hooks/src/useDesign.js";
36
36
  import { useDebounceFn as _ } from "../../../packages/hooks/src/useDebounce.js";
37
+ import "vue-router";
37
38
  import "../../tt-icon/index.js";
38
39
  import "../../tt-form/src/components/Slot.js";
39
40
  import "../../tt-form-item-error-tooltip/index.js";
@@ -57,7 +58,6 @@ import "../../tt-log/index.js";
57
58
  /* empty css */
58
59
  import "../../tt-loading/index.js";
59
60
  import "../index.js";
60
- import "vue-router";
61
61
  import "../../../hooks/basicDataCodes.js";
62
62
  import "numeral";
63
63
  import Ge from "./components/TableColumnModal.vue2.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as c, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as ce, createTextVNode as pe } from "vue";
1
+ import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as p, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as pe, createTextVNode as ce } from "vue";
2
2
  import { propTypes as y } from "../../../../packages/hooks/src/propTypes.js";
3
3
  import { useDesign as fe } from "../../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
@@ -12,12 +12,13 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
12
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
14
  import "lodash-es";
15
+ import "vue-router";
15
16
  import { TtButton as A } from "../../../tt-button/index.js";
16
17
  import { TtIcon as E } from "../../../tt-icon/index.js";
17
18
  import K from "../../../../directives/disabled-tip/index.js";
18
19
  import Ce from "../../../../assets/svg/action_more.svg.js";
19
20
  import { ROW_INDEX_KEY as ke } from "./RowContext.js";
20
- const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
21
+ const Ie = { key: 1 }, Be = ["onClick"], qe = /* @__PURE__ */ oe({
21
22
  name: "TtTableAction",
22
23
  __name: "TableAction",
23
24
  props: {
@@ -50,8 +51,8 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
50
51
  setup(S) {
51
52
  const i = S, x = ne(), { prefixCls: $ } = fe("table-action"), g = I(!1), L = M(
52
53
  "tableIdContext",
53
- c(() => "")
54
- ), U = M(ke, void 0), q = c(() => {
54
+ p(() => "")
55
+ ), U = M(ke, void 0), q = p(() => {
55
56
  if (i.rowIndex !== void 0 && i.rowIndex !== null)
56
57
  return i.rowIndex;
57
58
  const t = r(U);
@@ -71,7 +72,7 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
71
72
  let e = !0;
72
73
  return ge(o) && (e = o), ye(o) && (e = o(t)), e;
73
74
  }
74
- const G = c(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = c(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = c(() => r(w).length > 0), X = c(() => "left flex items-center"), Y = c(() => {
75
+ const G = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = p(() => r(w).length > 0), X = p(() => "left flex items-center"), Y = p(() => {
75
76
  const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e = w.value.map((s) => we(s.label, "12px", o) + 22), n = Math.max(...e);
76
77
  return n > i.popoverWidth ? n : i.popoverWidth;
77
78
  });
@@ -104,12 +105,12 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
104
105
  t.forEach((e) => {
105
106
  const n = e.closest(".vxe-table");
106
107
  if (!n) return;
107
- const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), p = d.get(a) || [];
108
- p.push(e), d.set(a, p), o.set(n, d);
108
+ const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), c = d.get(a) || [];
109
+ c.push(e), d.set(a, c), o.set(n, d);
109
110
  }), o.forEach((e) => {
110
111
  e.forEach((n) => {
111
112
  const s = n.sort((a, d) => {
112
- const p = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = p != null && p.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
113
+ const c = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = c != null && c.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
113
114
  return R !== _ ? _ - R : d.getBoundingClientRect().left - a.getBoundingClientRect().left;
114
115
  })[0];
115
116
  n.forEach((a) => {
@@ -228,10 +229,10 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
228
229
  type: e.type || "primary",
229
230
  style: D({ color: e.color }),
230
231
  "data-testid": h(e.label || "")
231
- }, ce({
232
+ }, pe({
232
233
  default: m(() => [
233
234
  e.label ? (l(), u(v, { key: 0 }, [
234
- pe(j(e.label), 1)
235
+ ce(j(e.label), 1)
235
236
  ], 64)) : f("", !0)
236
237
  ]),
237
238
  _: 2
@@ -257,5 +258,5 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
257
258
  }
258
259
  });
259
260
  export {
260
- Ue as default
261
+ qe as default
261
262
  };
@@ -15,6 +15,7 @@ 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 "vue-router";
18
19
  import { TtButton as U } from "../../../tt-button/index.js";
19
20
  import { TtIcon as b } from "../../../tt-icon/index.js";
20
21
  import V from "../../../../directives/disabled-tip/index.js";
@@ -23,7 +24,7 @@ import { componentMap as _ } from "../componentMap.js";
23
24
  function E(i) {
24
25
  return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !j(i);
25
26
  }
26
- const ft = /* @__PURE__ */ I({
27
+ const dt = /* @__PURE__ */ I({
27
28
  name: "TtTableButton",
28
29
  directives: {
29
30
  disabledTip: V
@@ -126,5 +127,5 @@ const ft = /* @__PURE__ */ I({
126
127
  }
127
128
  });
128
129
  export {
129
- ft as default
130
+ dt as default
130
131
  };