@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
@@ -1,12 +1,13 @@
1
- import { defineComponent as vt, mergeModels as he, useModel as It, useAttrs as Vt, useSlots as Et, getCurrentInstance as _t, ref as q, shallowReactive as zt, onScopeDispose as ye, computed as m, provide as be, unref as e, toRaw as Se, nextTick as J, onMounted as Dt, createElementBlock as g, openBlock as c, normalizeClass as z, createVNode as D, mergeProps as Q, toHandlers as Mt, createSlots as Kt, withCtx as n, renderSlot as d, createBlock as X, createCommentVNode as M, normalizeStyle as y, createElementVNode as f, normalizeProps as P, guardReactiveProps as K, Fragment as At, toDisplayString as Y, renderList as Z, createTextVNode as Ce, toValue as Ft } from "vue";
2
- import { TtErrorTooltip as Lt } from "../../tt-form-item-error-tooltip/index.js";
3
- import { useLoading as Nt } from "../../../hooks/useLoading.js";
1
+ import { defineComponent as It, mergeModels as he, useModel as Vt, useAttrs as Et, useSlots as _t, getCurrentInstance as zt, ref as q, shallowReactive as Dt, onScopeDispose as ye, computed as m, provide as be, unref as e, toRaw as Se, nextTick as J, onMounted as Kt, createElementBlock as g, openBlock as c, normalizeClass as z, createVNode as D, mergeProps as Q, toHandlers as Mt, createSlots as At, withCtx as n, renderSlot as d, createBlock as X, createCommentVNode as K, normalizeStyle as y, createElementVNode as f, normalizeProps as P, guardReactiveProps as M, Fragment as Ft, toDisplayString as Y, renderList as Z, createTextVNode as we, toValue as Lt } from "vue";
2
+ import { TtErrorTooltip as Nt } from "../../tt-form-item-error-tooltip/index.js";
3
+ import { useLoading as Ot } from "../../../hooks/useLoading.js";
4
4
  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";
5
- import { useDesign as Ot } from "../../../packages/hooks/src/useDesign.js";
5
+ import { useDesign as Ht } from "../../../packages/hooks/src/useDesign.js";
6
6
  import "axios";
7
- import { ElScrollbar as we } from "element-plus";
7
+ import { ElScrollbar as Ce } from "element-plus";
8
8
  import "dayjs";
9
- import { extractResourceFromApi as Ht, generateTestId as xe } from "../../../packages/utils/src/testid-helper.js";
9
+ import "numeral";
10
+ import { extractResourceFromApi as Bt, generateTestId as xe } from "../../../packages/utils/src/testid-helper.js";
10
11
  import "xe-utils";
11
12
  import "dayjs/plugin/utc";
12
13
  import "dayjs/plugin/timezone";
@@ -17,173 +18,175 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
17
18
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
18
19
  import { omit as $e } from "lodash-es";
19
20
  import "vue-router";
20
- import { useStore as Bt } from "@tanstack/vue-store";
21
- import { VxePager as Gt } from "vxe-pc-ui";
22
- import { VxeGrid as jt } from "vxe-table";
23
- import { tableProps as Wt } from "vxe-table/es/table/src/props";
24
- import Ut from "../../../assets/svg/paixu-jiangxu.svg.js";
25
- import qt from "../../../assets/svg/paixu-moren.svg.js";
26
- import Jt from "../../../assets/svg/paixu-shengxu.svg.js";
27
- import { TtImage as Qt } from "../../tt-image/index.js";
28
- import { RowContext as Xt } from "./components/RowContext.js";
29
- import { basicTableEmits as Yt } from "./emits.js";
30
- import { useColumns as Zt } from "./hooks/useColumns.js";
31
- import { useGridProps as eo } from "./hooks/useGridProps.js";
32
- import { useKeyboardNav as to } from "./hooks/useKeyboardNav.js";
33
- import { usePagination as oo } from "./hooks/usePagination.js";
34
- import { useQuery as ro } from "./hooks/useQuery.js";
35
- import { useRowIdentity as so } from "./hooks/useRowIdentity.js";
36
- import { useRowSelection as lo } from "./hooks/useRowSelection.js";
37
- import { useSideSlot as ao } from "./hooks/useSideSlot.js";
38
- import { useSyncProps as no } from "./hooks/useSyncProps.js";
39
- import { createTableContext as io } from "./hooks/useTableContext.js";
40
- import { useTableData as co } from "./hooks/useTableData.js";
41
- import { useTableFooter as po } from "./hooks/useTableFooter.js";
42
- import { useTableMethods as mo } from "./hooks/useTableMethods.js";
43
- import { tableOtherProps as uo, tableProps as go } from "./props.js";
44
- import { forwardedEventEntries as fo, isDisplayOnlyEvent as ho, isRowDataMutationEvent as yo, getMutationCommitSource as bo } from "./table-mutation-events.js";
45
- import { TableApi as So } from "./utils/table-api.js";
46
- const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
21
+ import { useStore as Gt } from "@tanstack/vue-store";
22
+ import { VxePager as jt } from "vxe-pc-ui";
23
+ import { VxeGrid as Wt } from "vxe-table";
24
+ import { tableProps as Ut } from "vxe-table/es/table/src/props";
25
+ import qt from "../../../assets/svg/paixu-jiangxu.svg.js";
26
+ import Jt from "../../../assets/svg/paixu-moren.svg.js";
27
+ import Qt from "../../../assets/svg/paixu-shengxu.svg.js";
28
+ import { TtImage as Xt } from "../../tt-image/index.js";
29
+ import { RowContext as Yt } from "./components/RowContext.js";
30
+ import { basicTableEmits as Zt } from "./emits.js";
31
+ import { useColumns as eo } from "./hooks/useColumns.js";
32
+ import { useGridProps as to } from "./hooks/useGridProps.js";
33
+ import { useKeyboardNav as oo } from "./hooks/useKeyboardNav.js";
34
+ import { usePagination as ro } from "./hooks/usePagination.js";
35
+ import { useQuery as so } from "./hooks/useQuery.js";
36
+ import { useRowIdentity as lo } from "./hooks/useRowIdentity.js";
37
+ import { useRowSelection as ao } from "./hooks/useRowSelection.js";
38
+ import { useSideSlot as no } from "./hooks/useSideSlot.js";
39
+ import { useSyncProps as io } from "./hooks/useSyncProps.js";
40
+ import { createTableContext as co } from "./hooks/useTableContext.js";
41
+ import { useTableData as po } from "./hooks/useTableData.js";
42
+ import { useTableFooter as mo } from "./hooks/useTableFooter.js";
43
+ import { useTableMethods as uo } from "./hooks/useTableMethods.js";
44
+ import { tableOtherProps as go, tableProps as fo } from "./props.js";
45
+ import { forwardedEventEntries as ho, isDisplayOnlyEvent as yo, isRowDataMutationEvent as bo, getMutationCommitSource as So } from "./table-mutation-events.js";
46
+ import { TableApi as wo } from "./utils/table-api.js";
47
+ const Co = ["data-testid"], xo = ["src"], $o = ["src"], To = ["src"], Ro = {
47
48
  style: {
48
49
  color: "#009ffa"
49
50
  }
50
- }, Ro = {
51
- key: 0
52
51
  }, ko = {
52
+ key: 0
53
+ }, Po = {
53
54
  key: 1
54
- }, br = /* @__PURE__ */ vt({
55
+ }, wr = /* @__PURE__ */ It({
55
56
  name: "TtTable",
56
57
  __name: "Table",
57
58
  props: /* @__PURE__ */ he({
58
- ...Wt,
59
- ...go,
60
- ...uo
59
+ ...Ut,
60
+ ...fo,
61
+ ...go
61
62
  }, {
62
63
  modelValue: {},
63
64
  modelModifiers: {}
64
65
  }),
65
- emits: /* @__PURE__ */ he(["register", "fetch-success", "fetch-error", "selection-change", ...Yt], ["update:modelValue"]),
66
+ emits: /* @__PURE__ */ he(["register", "fetch-success", "fetch-error", "selection-change", ...Zt], ["update:modelValue"]),
66
67
  setup(ee, {
67
68
  expose: Te,
68
69
  emit: Re
69
70
  }) {
70
71
  var ue, ge;
71
- const h = ee, ke = It(ee, "modelValue"), i = Re, te = Vt(), A = Et(), w = _t(), {
72
+ const h = ee, ke = Vt(ee, "modelValue"), i = Re, te = Et(), A = _t(), C = zt(), {
72
73
  prefixCls: b
73
- } = Ot("table"), Pe = Object.hasOwn(((ue = w == null ? void 0 : w.vnode) == null ? void 0 : ue.props) || {}, "data"), v = q(null), p = q(), F = q({});
74
+ } = Ht("table"), Pe = Object.hasOwn(((ue = C == null ? void 0 : C.vnode) == null ? void 0 : ue.props) || {}, "data"), v = q(null), p = q(), F = q({});
74
75
  let s = h.tableApi;
75
- s || (s = new So($e(h, ["modelValue"])), s.useStore = (t) => Bt(s.store, t));
76
- const I = zt({});
76
+ s || (s = new wo($e(h, ["modelValue"])), s.useStore = (t) => Gt(s.store, t));
77
+ const I = Dt({});
77
78
  function oe() {
78
79
  Object.assign(I, Se(s.store.state) || {});
79
80
  }
80
81
  oe(), ye(s.store.subscribe(oe));
81
- const l = m(() => I), ve = Pe ? () => Ft(h.data) : () => I.data, Ie = () => I.api;
82
+ const l = m(() => I), ve = Pe ? () => Lt(h.data) : () => I.data, Ie = () => I.api;
82
83
  be(`${b}-props`, l);
83
- const L = m(() => h.testId || (h.api ? Ht(h.api) : "table")), Ve = m(() => xe(e(L), "table")), Ee = m(() => xe(e(L), "table-toolbar"));
84
+ const L = m(() => h.testId || (h.api ? Bt(h.api) : "table")), Ve = m(() => xe(e(L), "table")), Ee = m(() => xe(e(L), "table-toolbar"));
84
85
  be("tableIdContext", L);
85
86
  const {
86
87
  getLoading: x,
87
88
  setLoading: re
88
- } = Nt(m(() => e(l).loading || !1)), {
89
+ } = Ot(m(() => e(l).loading || !1)), {
89
90
  pagination: $,
90
91
  paginationInfo: S,
91
92
  getPagination: _e,
92
93
  setPagination: N,
93
94
  onPageChange: ze
94
- } = oo(l, i), {
95
+ } = ro(l, i), {
95
96
  getRowKey: De,
97
+ getRowKeys: Ke,
96
98
  prepareRows: O,
97
99
  toVxeRowConfig: Me
98
- } = so(l), {
100
+ } = lo(l), {
99
101
  selectedKeys: H,
100
102
  selectedRows: B,
101
- selectedKeyList: Ke,
102
- getSelectRowKeys: Ae,
103
- getSelectRows: Fe,
104
- syncSelection: Le,
105
- setSelectedRowKeys: Ne,
103
+ selectedKeyList: Ae,
104
+ getSelectRowKeys: Fe,
105
+ getSelectRows: Le,
106
+ syncSelection: Ne,
107
+ setSelectedRowKeys: Oe,
106
108
  clearSelectedRowKeys: se,
107
- resetSelectionAfterFetch: Oe,
108
- onCheckboxChange: He,
109
- onCheckboxAll: Be,
110
- onCheckboxRangeChange: Ge,
111
- onRadioChange: je,
112
- onCellAreaSelectionEnd: We
113
- } = lo(l, p, i, {
114
- getRowKey: De
109
+ resetSelectionAfterFetch: He,
110
+ onCheckboxChange: Be,
111
+ onCheckboxAll: Ge,
112
+ onCheckboxRangeChange: je,
113
+ onRadioChange: We,
114
+ onCellAreaSelectionEnd: Ue
115
+ } = ao(l, p, i, {
116
+ getRowKey: De,
117
+ getRowKeys: Ke
115
118
  }), {
116
119
  rows: V,
117
- applyRows: Ue,
118
- getDataSource: qe,
119
- runDataOperation: Je,
120
+ applyRows: qe,
121
+ getDataSource: Je,
122
+ runDataOperation: Qe,
120
123
  scheduleRowsCommit: G,
121
- cancelRowsCommit: Qe,
122
- onDataChange: Xe,
123
- createTableInstanceFacade: Ye,
124
- isActive: Ze
125
- } = co(l, p, ke, i, {
124
+ cancelRowsCommit: Xe,
125
+ onDataChange: Ye,
126
+ createTableInstanceFacade: Ze,
127
+ isActive: et
128
+ } = po(l, p, ke, i, {
126
129
  data: ve,
127
130
  api: Ie,
128
131
  prepareRows: O,
129
- onSelectionMutated: Le
132
+ onSelectionMutated: Ne
130
133
  }), {
131
- refresh: et,
132
- syncScroll: tt,
134
+ refresh: tt,
135
+ syncScroll: ot,
133
136
  rowNodes: le,
134
137
  headerHeight: ae,
135
138
  bodyHeight: E,
136
- bodyWrapperHeight: C,
139
+ bodyWrapperHeight: w,
137
140
  bodyOffsetTop: ne,
138
141
  bodyScrollHeight: ie,
139
- leftScrollbarRef: ot,
140
- rightScrollbarRef: rt
141
- } = ao(l, p, V), {
142
- reload: st,
142
+ leftScrollbarRef: rt,
143
+ rightScrollbarRef: st
144
+ } = no(l, p, V), {
145
+ reload: lt,
143
146
  reloadFilter: de,
144
147
  isLoaded: ce
145
- } = ro(l, {
148
+ } = so(l, {
146
149
  grid: p,
147
150
  pagination: $,
148
151
  paginationInfo: S,
149
152
  setPagination: N,
150
153
  setLoading: re,
151
- resetSelectionAfterFetch: Oe,
154
+ resetSelectionAfterFetch: He,
152
155
  rows: V,
153
- applyRows: Ue
156
+ applyRows: qe
154
157
  }, i), {
155
- gridColumns: lt,
156
- hasExpandColumn: at,
157
- sortIconSlots: nt,
158
- validSlots: it,
159
- setTableColumns: dt,
160
- getTableColumns: ct,
161
- onColumnDragend: pt
162
- } = Zt(l, p, i), {
163
- footerSummaryMethod: mt
164
- } = po(lt), {
158
+ gridColumns: at,
159
+ hasExpandColumn: nt,
160
+ sortIconSlots: it,
161
+ validSlots: dt,
162
+ setTableColumns: ct,
163
+ getTableColumns: pt,
164
+ onColumnDragend: mt
165
+ } = eo(l, p, i), {
166
+ footerSummaryMethod: ut
167
+ } = mo(at), {
165
168
  bindValues: j,
166
- gridProps: ut
167
- } = eo(l, {
169
+ gridProps: gt
170
+ } = to(l, {
168
171
  attrs: te,
169
172
  slots: A
170
173
  }, {
171
- hasExpandColumn: at,
172
- footerSummaryMethod: mt,
174
+ hasExpandColumn: nt,
175
+ footerSummaryMethod: ut,
173
176
  onTreeLoadResolved: G,
174
177
  prepareRows: O,
175
178
  toVxeRowConfig: Me
176
179
  }), {
177
180
  onTableKeydown: pe
178
- } = to(v), gt = m(U), ft = mo(l, p, s, {
179
- runDataOperation: Je,
181
+ } = oo(v), ft = m(U), ht = uo(l, p, s, {
182
+ runDataOperation: Qe,
180
183
  clearSelectedRowKeys: se,
181
184
  getTableInstance: U,
182
- isActive: Ze,
185
+ isActive: et,
183
186
  prepareRows: O
184
187
  });
185
- no(h, s.setState, ["tableApi", "formApi", "modelValue"]);
186
- const ht = m(() => ({
188
+ io(h, s.setState, ["tableApi", "formApi", "modelValue"]);
189
+ const yt = m(() => ({
187
190
  ...e(l).emptyImageStyle
188
191
  })), W = m(() => {
189
192
  const {
@@ -193,27 +196,27 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
193
196
  } = e(l);
194
197
  return e(ce) || !t ? o : r;
195
198
  }), u = {};
196
- fo.forEach(([t, o]) => {
199
+ ho.forEach(([t, o]) => {
197
200
  u[o] = (...r) => {
198
- t === "data-change" && Xe(), ho(t) && Qe(), yo(t, r, () => e(B)) && G(bo(t)), i(t, ...r);
201
+ t === "data-change" && Ye(), yo(t) && Xe(), bo(t, r, () => e(B)) && G(So(t)), i(t, ...r);
199
202
  };
200
203
  });
201
- const yt = m(() => ({
204
+ const bt = m(() => ({
202
205
  ...u,
203
206
  headerCellClick: Ct,
204
- sortChange: wt,
205
- radioChange: je,
206
- checkboxChange: He,
207
- checkboxAll: Be,
208
- checkboxRangeChange: Ge,
209
- cellAreaSelectionEnd: We,
210
- columnDragend: pt,
211
- scroll: xt,
212
- scrollBoundary: $t,
213
- toggleRowExpand: Tt,
214
- editClosed: Rt
207
+ sortChange: xt,
208
+ radioChange: We,
209
+ checkboxChange: Be,
210
+ checkboxAll: Ge,
211
+ checkboxRangeChange: je,
212
+ cellAreaSelectionEnd: Ue,
213
+ columnDragend: mt,
214
+ scroll: $t,
215
+ scrollBoundary: Tt,
216
+ toggleRowExpand: Rt,
217
+ editClosed: kt
215
218
  }));
216
- async function bt(t) {
219
+ async function St(t) {
217
220
  s.setState(t);
218
221
  }
219
222
  function me() {
@@ -222,7 +225,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
222
225
  return (t = e(p)) == null ? void 0 : t.recalculate(!0);
223
226
  });
224
227
  }
225
- function St(t, o) {
228
+ function wt(t, o) {
226
229
  if (t) {
227
230
  F.value[o] = t;
228
231
  return;
@@ -243,14 +246,14 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
243
246
  ...$e(r, ["order"])
244
247
  });
245
248
  }
246
- function wt(t) {
249
+ function xt(t) {
247
250
  var o;
248
251
  (o = u.sortChange) == null || o.call(u, t), de("sort");
249
252
  }
250
- function xt(t) {
251
- i("scroll", t), ((t == null ? void 0 : t.type) === "body" || (t == null ? void 0 : t.type) === "table") && tt(t == null ? void 0 : t.scrollTop);
252
- }
253
253
  function $t(t) {
254
+ i("scroll", t), ((t == null ? void 0 : t.type) === "body" || (t == null ? void 0 : t.type) === "table") && ot(t == null ? void 0 : t.scrollTop);
255
+ }
256
+ function Tt(t) {
254
257
  i("scroll-boundary", t);
255
258
  const {
256
259
  isScrollFetch: o
@@ -264,52 +267,52 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
264
267
  currentPage: r + 1
265
268
  });
266
269
  }
267
- function Tt(t) {
268
- i("toggle-row-expand", t), et(!1);
269
- }
270
270
  function Rt(t) {
271
+ i("toggle-row-expand", t), tt(!1);
272
+ }
273
+ function kt(t) {
271
274
  G(), i("edit-closed", t);
272
275
  }
273
276
  function U() {
274
- return Ye(e(p));
277
+ return Ze(e(p));
275
278
  }
276
- function kt(t) {
279
+ function Pt(t) {
277
280
  return Object.keys(t).filter((o) => o !== "empty");
278
281
  }
279
282
  const _ = {
280
- reload: st,
281
- setProps: bt,
282
- setTableColumns: dt,
283
+ reload: lt,
284
+ setProps: St,
285
+ setTableColumns: ct,
283
286
  setPagination: N,
284
287
  setLoading: re,
285
288
  redoHeight: me,
286
- getDataSource: qe,
289
+ getDataSource: Je,
287
290
  getPagination: _e,
288
- getSelectRowKeys: Ae,
289
- getSelectRows: Fe,
291
+ getSelectRowKeys: Fe,
292
+ getSelectRows: Le,
290
293
  getTableInstance: U,
291
294
  getLoading: x,
292
- getTableColumns: ct,
293
- setSelectedRowKeys: Ne,
295
+ getTableColumns: pt,
296
+ setSelectedRowKeys: Oe,
294
297
  clearSelectedRowKeys: se,
295
298
  selectedKeys: H,
296
299
  selectedRows: B,
297
- ...ft
300
+ ...ht
298
301
  };
299
- return io({
302
+ return co({
300
303
  ..._,
301
304
  wrapRef: v,
302
305
  getBindValues: j
303
306
  }), Te({
304
307
  ..._,
305
- xGrid: gt
308
+ xGrid: ft
306
309
  }), (ge = s.bindState) == null || ge.call(s, {
307
310
  loading: x,
308
311
  selectedKeys: H,
309
312
  selectedRows: B
310
- }), w && i("register", _, `${w.uid}`), J(() => {
313
+ }), C && i("register", _, `${C.uid}`), J(() => {
311
314
  e(l).autoHeight && me();
312
- }), Dt(() => {
315
+ }), Kt(() => {
313
316
  var t;
314
317
  (t = s.mount) == null || t.call(s, e(p), _), J(() => {
315
318
  var o, r;
@@ -325,34 +328,34 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
325
328
  "data-testid": Ve.value,
326
329
  onKeydownCapture: o[3] || (o[3] = //@ts-ignore
327
330
  (...r) => e(pe) && e(pe)(...r))
328
- }, [D(e(jt), Q({
331
+ }, [D(e(Wt), Q({
329
332
  ref_key: "xGrid",
330
333
  ref: p
331
- }, e(ut), Mt(yt.value), {
334
+ }, e(gt), Mt(bt.value), {
332
335
  onFilterChange: o[2] || (o[2] = (r) => e(de)())
333
- }), Kt({
334
- empty: n(() => [d(t.$slots, "empty", P(K({
336
+ }), At({
337
+ empty: n(() => [d(t.$slots, "empty", P(M({
335
338
  isLoaded: e(ce),
336
339
  loading: e(x),
337
340
  emptyTip: W.value
338
341
  })), () => [f("div", {
339
342
  class: z(`${e(b)}-empty-image`)
340
- }, [e(x) ? (c(), g("span", ko, Y(l.value.emptyText || ""), 1)) : (c(), g(At, {
343
+ }, [e(x) ? (c(), g("span", Po, Y(l.value.emptyText || ""), 1)) : (c(), g(Ft, {
341
344
  key: 0
342
- }, [D(e(Qt), {
343
- style: y(ht.value),
345
+ }, [D(e(Xt), {
346
+ style: y(yt.value),
344
347
  status: l.value.emptyImageStatus
345
- }, null, 8, ["style", "status"]), W.value ? (c(), g("span", Ro, Y(W.value), 1)) : M("", !0)], 64))], 2)])]),
346
- left: n(() => [d(t.$slots, "left", {}, () => [e(C) ? (c(), X(e(we), {
348
+ }, null, 8, ["style", "status"]), W.value ? (c(), g("span", ko, Y(W.value), 1)) : K("", !0)], 64))], 2)])]),
349
+ left: n(() => [d(t.$slots, "left", {}, () => [e(w) ? (c(), X(e(Ce), {
347
350
  key: 0,
348
351
  ref_key: "leftScrollbarRef",
349
- ref: ot,
352
+ ref: rt,
350
353
  "wrap-class": "overflow-hidden",
351
354
  class: "tt-table-left-right-scroll",
352
- height: `${e(C)}px`,
355
+ height: `${e(w)}px`,
353
356
  style: y({
354
357
  width: `${l.value.leftSlotWidth}px`,
355
- height: `${e(C)}px`,
358
+ height: `${e(w)}px`,
356
359
  marginTop: `${e(ae)}px`
357
360
  })
358
361
  }, {
@@ -368,23 +371,23 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
368
371
  height: `${e(E)}px`,
369
372
  marginTop: `${e(ne)}px`
370
373
  })
371
- }, [d(t.$slots, "tableLeft", P(K({
374
+ }, [d(t.$slots, "tableLeft", P(M({
372
375
  rowNodes: e(le),
373
376
  height: e(E)
374
377
  })))], 4)]),
375
378
  _: 3
376
- }, 8, ["height", "style"])) : M("", !0)])]),
377
- right: n(() => [d(t.$slots, "right", {}, () => [e(C) ? (c(), X(e(we), {
379
+ }, 8, ["height", "style"])) : K("", !0)])]),
380
+ right: n(() => [d(t.$slots, "right", {}, () => [e(w) ? (c(), X(e(Ce), {
378
381
  key: 0,
379
382
  ref_key: "rightScrollbarRef",
380
- ref: rt,
383
+ ref: st,
381
384
  "wrap-class": "overflow-hidden",
382
385
  class: "tt-table-left-right-scroll",
383
386
  always: "",
384
- height: `${e(C)}px`,
387
+ height: `${e(w)}px`,
385
388
  style: y({
386
389
  width: `${l.value.rightSlotWidth}px`,
387
- height: `${e(C)}px`,
390
+ height: `${e(w)}px`,
388
391
  marginTop: `${e(ae)}px`
389
392
  })
390
393
  }, {
@@ -400,14 +403,14 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
400
403
  height: `${e(E)}px`,
401
404
  marginTop: `${e(ne)}px`
402
405
  })
403
- }, [d(t.$slots, "tableRight", P(K({
406
+ }, [d(t.$slots, "tableRight", P(M({
404
407
  rowNodes: e(le),
405
408
  height: e(E)
406
409
  })))], 4)]),
407
410
  _: 3
408
- }, 8, ["height", "style"])) : M("", !0)])]),
411
+ }, 8, ["height", "style"])) : K("", !0)])]),
409
412
  _: 2
410
- }, [Z(e(nt), (r) => ({
413
+ }, [Z(e(it), (r) => ({
411
414
  name: r,
412
415
  fn: n(({
413
416
  column: a
@@ -418,17 +421,17 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
418
421
  }])
419
422
  }, [a.order === "asc" ? (c(), g("img", {
420
423
  key: 0,
421
- src: e(Jt)
422
- }, null, 8, wo)) : a.order === "desc" ? (c(), g("img", {
424
+ src: e(Qt)
425
+ }, null, 8, xo)) : a.order === "desc" ? (c(), g("img", {
423
426
  key: 1,
424
- src: e(Ut)
425
- }, null, 8, xo)) : (c(), g("img", {
426
- key: 2,
427
427
  src: e(qt)
428
- }, null, 8, $o))], 2)])
429
- })), Z(kt(t.$slots), (r) => ({
428
+ }, null, 8, $o)) : (c(), g("img", {
429
+ key: 2,
430
+ src: e(Jt)
431
+ }, null, 8, To))], 2)])
432
+ })), Z(Pt(t.$slots), (r) => ({
430
433
  name: r,
431
- fn: n((a) => [r.includes("action") ? (c(), X(e(Xt), {
434
+ fn: n((a) => [r.includes("action") ? (c(), X(e(Yt), {
432
435
  key: 0,
433
436
  "row-index": a.$rowIndex
434
437
  }, {
@@ -443,7 +446,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
443
446
  name: "top",
444
447
  fn: n(() => [f("div", {
445
448
  class: z(`${e(b)}-top-alert`)
446
- }, [o[4] || (o[4] = Ce(" 已选中 ", -1)), f("span", To, Y(e(Ke).length), 1), o[5] || (o[5] = Ce(" 条 ", -1)), d(t.$slots, "top_title")], 2)]),
449
+ }, [o[4] || (o[4] = we(" 已选中 ", -1)), f("span", Ro, Y(e(Ae).length), 1), o[5] || (o[5] = we(" 条 ", -1)), d(t.$slots, "top_title")], 2)]),
447
450
  key: "0"
448
451
  } : void 0, e(A).toolbar_buttons ? {
449
452
  name: "toolbar_buttons",
@@ -453,7 +456,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
453
456
  name: "toolbar_tools",
454
457
  fn: n(() => [d(t.$slots, "toolbar_tools")]),
455
458
  key: "2"
456
- } : void 0, Z(e(it), (r) => ({
459
+ } : void 0, Z(e(dt), (r) => ({
457
460
  name: r,
458
461
  fn: n(({
459
462
  content: a,
@@ -463,18 +466,18 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
463
466
  fixed: fe
464
467
  }) => [!fe || fe === k.fixed ? (c(), g("div", {
465
468
  key: 0,
466
- ref: (Pt) => St(Pt, `valid_${T}_${R}`),
469
+ ref: (vt) => wt(vt, `valid_${T}_${R}`),
467
470
  class: "h-full w-full"
468
- }, [D(e(Lt), {
471
+ }, [D(e(Nt), {
469
472
  placement: l.value.toolTipErrorPlacement,
470
473
  "err-msg": a,
471
474
  "ref-dom": F.value[`valid_${T}_${R}`]
472
- }, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : M("", !0)])
475
+ }, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : K("", !0)])
473
476
  })), e(j).showPager ? {
474
477
  name: "pager",
475
478
  fn: n(() => {
476
479
  var r, a, T, R;
477
- return [D(e(Gt), {
480
+ return [D(e(jt), {
478
481
  "current-page": e($).currentPage,
479
482
  "onUpdate:currentPage": o[0] || (o[0] = (k) => e($).currentPage = k),
480
483
  "page-size": e($).pageSize,
@@ -486,7 +489,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
486
489
  "class-name": `${e(b)}-vxe-pager`,
487
490
  onPageChange: e(ze)
488
491
  }, {
489
- left: n(() => [d(t.$slots, "pager_left", P(K({
492
+ left: n(() => [d(t.$slots, "pager_left", P(M({
490
493
  selectedKeys: e(H)
491
494
  }))), d(t.$slots, "buttom_left")]),
492
495
  _: 3
@@ -497,5 +500,5 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
497
500
  }
498
501
  });
499
502
  export {
500
- br as default
503
+ wr as default
501
504
  };
@@ -272,9 +272,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
272
272
  headerTooltipConfig?: import("vxe-table").VxeTablePropTypes.HeaderTooltipConfig<any> | undefined;
273
273
  tooltipConfig?: import("vxe-table").VxeTablePropTypes.TooltipConfig<any> | undefined;
274
274
  footerTooltipConfig?: import("vxe-table").VxeTablePropTypes.FooterTooltipConfig<any> | undefined;
275
- exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig | undefined;
276
- importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig | undefined;
277
- printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig | undefined;
275
+ exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig<any> | undefined;
276
+ importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig<any> | undefined;
277
+ printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig<any> | undefined;
278
278
  expandConfig?: import("vxe-table").VxeTablePropTypes.ExpandConfig<any> | undefined;
279
279
  treeConfig?: import("vxe-table").VxeTablePropTypes.TreeConfig<any> | undefined;
280
280
  mouseConfig?: import("vxe-table").VxeTablePropTypes.MouseConfig | undefined;
@@ -499,9 +499,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
499
499
  headerTooltipConfig?: import("vxe-table").VxeTablePropTypes.HeaderTooltipConfig<any> | undefined;
500
500
  tooltipConfig?: import("vxe-table").VxeTablePropTypes.TooltipConfig<any> | undefined;
501
501
  footerTooltipConfig?: import("vxe-table").VxeTablePropTypes.FooterTooltipConfig<any> | undefined;
502
- exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig | undefined;
503
- importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig | undefined;
504
- printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig | undefined;
502
+ exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig<any> | undefined;
503
+ importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig<any> | undefined;
504
+ printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig<any> | undefined;
505
505
  expandConfig?: import("vxe-table").VxeTablePropTypes.ExpandConfig<any> | undefined;
506
506
  treeConfig?: import("vxe-table").VxeTablePropTypes.TreeConfig<any> | undefined;
507
507
  mouseConfig?: import("vxe-table").VxeTablePropTypes.MouseConfig | undefined;
@@ -5,9 +5,10 @@ import "../../tt-empty/index.js";
5
5
  import "axios";
6
6
  import "element-plus";
7
7
  import { isFunction as xe } from "../../../packages/utils/src/is.js";
8
+ import "dayjs";
9
+ import "numeral";
8
10
  import { extractResourceFromApi as Ne, generateTestId as M } from "../../../packages/utils/src/testid-helper.js";
9
11
  import "xe-utils";
10
- import "dayjs";
11
12
  import "dayjs/plugin/utc";
12
13
  import "dayjs/plugin/timezone";
13
14
  import { mergeWithArrayOverride as He } from "../../../packages/utils/src/merge.js";
@@ -59,7 +60,6 @@ import "../../tt-log/index.js";
59
60
  import "../../tt-loading/index.js";
60
61
  import "../index.js";
61
62
  import "../../../hooks/basicDataCodes.js";
62
- import "numeral";
63
63
  import { useTemplateSlot as ae } from "../../../hooks/useTemplateSlot.js";
64
64
  import Qe from "./components/TableColumnModal.vue2.js";
65
65
  /* empty css */