@dazhicheng/ui 1.5.228 → 1.5.230

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.
@@ -1,190 +1,267 @@
1
- import { defineComponent as vt, useAttrs as St, useSlots as xt, ref as P, getCurrentInstance as wt, computed as v, provide as Ce, reactive as Ct, toValue as B, toRaw as _, unref as t, watch as M, nextTick as F, onMounted as Tt, onUnmounted as kt, createElementBlock as m, openBlock as d, normalizeClass as K, createVNode as O, mergeProps as ee, toHandlers as $t, createSlots as Rt, withCtx as u, renderSlot as g, createBlock as te, createCommentVNode as V, normalizeStyle as k, createElementVNode as w, normalizeProps as j, guardReactiveProps as J, Fragment as Te, toDisplayString as L, renderList as oe, withModifiers as Pt, createTextVNode as re } from "vue";
2
- import { useLoading as _t } from "../../../hooks/useLoading.js";
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 V, 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
+ 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
- import { useDesign as Et } from "../../../packages/hooks/src/useDesign.js";
5
- import { kebabToCamelCase as It } from "../../../packages/utils/src/string.js";
4
+ import { useDesign as Ft } from "../../../packages/hooks/src/useDesign.js";
5
+ import { kebabToCamelCase as Vt } from "../../../packages/utils/src/string.js";
6
6
  import "axios";
7
- import { ElScrollbar as ke } from "element-plus";
8
- import { isBoolean as zt, isString as Ot } from "../../../packages/utils/src/is.js";
9
- import { extractResourceFromApi as Vt, generateTestId as $e } from "../../../packages/utils/src/testid-helper.js";
10
- import { getDifference as Dt } from "../../../packages/utils/src/tool.js";
7
+ import { ElScrollbar as Oe } from "element-plus";
8
+ import { isBoolean as Ht, isString as Lt } from "../../../packages/utils/src/is.js";
9
+ import { extractResourceFromApi as Kt, generateTestId as _e } from "../../../packages/utils/src/testid-helper.js";
10
+ import { getDifference as At } from "../../../packages/utils/src/tool.js";
11
11
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
12
12
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
13
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
15
15
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
- import { checkVersion as Ht } from "../../../packages/utils/src/check.js";
17
- import { omit as N, cloneDeep as Bt } from "lodash-es";
18
- import { TtErrorTooltip as Ft } from "../../tt-form-item-error-tooltip/index.js";
19
- import { useStore as Kt } from "@tanstack/vue-store";
20
- import { VxeUI as jt, VxePager as Lt } from "vxe-pc-ui";
21
- import { VxeGrid as Nt } from "vxe-table";
22
- import { tableProps as Gt } from "vxe-table/es/table/src/props";
23
- import Wt from "xe-utils";
24
- import At from "../../../assets/svg/paixu-jiangxu.svg.js";
25
- import Ut from "../../../assets/svg/paixu-moren.svg.js";
26
- import Yt from "../../../assets/svg/paixu-shengxu.svg.js";
27
- import { TtImage as Re } from "../../tt-image/index.js";
28
- import { TtText as Mt } from "../../tt-text/index.js";
29
- import { RowContext as Jt } from "./components/RowContext.js";
30
- import { basicTableEmits as Pe } from "./emits.js";
31
- import { useCellArea as qt } from "./hooks/useCellArea.js";
32
- import { useColumns as Xt } from "./hooks/useColumns.js";
33
- import { useDataSource as Qt } from "./hooks/useDataSource.js";
34
- import { useLeftRightSlot as Zt } from "./hooks/useLeftRightSlot.js";
35
- import { usePagination as eo } from "./hooks/usePagination.js";
36
- import { useRowSelection as to } from "./hooks/useRowSelection.js";
37
- import { createTableContext as oo } from "./hooks/useTableContext.js";
38
- import { useTableEvents as ro } from "./hooks/useTableEvent.js";
39
- import { tableOtherProps as so, tableProps as _e } from "./props.js";
40
- import { TableApi as lo } from "./utils/table-api.js";
41
- const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
16
+ import { checkVersion as jt } from "../../../packages/utils/src/check.js";
17
+ import { omit as G, cloneDeep as Mt } from "lodash-es";
18
+ import { TtErrorTooltip as Gt } from "../../tt-form-item-error-tooltip/index.js";
19
+ import { useStore as Ut } from "@tanstack/vue-store";
20
+ import { VxeUI as Wt, VxePager as qt } from "vxe-pc-ui";
21
+ import { VxeGrid as Yt } from "vxe-table";
22
+ import { tableProps as Jt } from "vxe-table/es/table/src/props";
23
+ import Xt from "xe-utils";
24
+ import Qt from "../../../assets/svg/paixu-jiangxu.svg.js";
25
+ import Zt from "../../../assets/svg/paixu-moren.svg.js";
26
+ import eo from "../../../assets/svg/paixu-shengxu.svg.js";
27
+ import { TtImage as Ie } from "../../tt-image/index.js";
28
+ import { TtText as to } from "../../tt-text/index.js";
29
+ import { RowContext as oo } from "./components/RowContext.js";
30
+ import { basicTableEmits as De } from "./emits.js";
31
+ import { useCellArea as ro } from "./hooks/useCellArea.js";
32
+ import { useColumns as no } from "./hooks/useColumns.js";
33
+ import { useDataSource as so } from "./hooks/useDataSource.js";
34
+ import { useLeftRightSlot as lo } from "./hooks/useLeftRightSlot.js";
35
+ import { usePagination as ao } from "./hooks/usePagination.js";
36
+ import { useRowSelection as io } from "./hooks/useRowSelection.js";
37
+ import { createTableContext as co } from "./hooks/useTableContext.js";
38
+ import { useTableEvents as uo } from "./hooks/useTableEvent.js";
39
+ import { tableOtherProps as fo, tableProps as Ne } from "./props.js";
40
+ import { TableApi as po } from "./utils/table-api.js";
41
+ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
42
42
  class: "mr-4px flex-1 overflow-hidden"
43
- }, co = ["src"], uo = ["src"], fo = ["src"], po = {
43
+ }, ho = ["src"], yo = ["src"], So = ["src"], xo = {
44
44
  style: {
45
45
  color: "#009ffa"
46
46
  }
47
- }, mo = {
47
+ }, vo = {
48
48
  key: 0
49
- }, go = {
49
+ }, Co = {
50
50
  key: 0
51
- }, or = /* @__PURE__ */ vt({
51
+ }, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])', cr = /* @__PURE__ */ Pt({
52
52
  name: "TtTable",
53
53
  __name: "Table",
54
54
  props: {
55
- ...Gt,
56
- ..._e,
57
- ...so
55
+ ...Jt,
56
+ ...Ne,
57
+ ...fo
58
58
  },
59
- emits: ["register", "fetch-success", "fetch-error", "selection-change", "update:modelValue", ...Pe],
60
- setup(Ee, {
61
- expose: Ie,
62
- emit: ze
59
+ emits: ["register", "fetch-success", "fetch-error", "selection-change", "update:modelValue", ...De],
60
+ setup(ze, {
61
+ expose: Be,
62
+ emit: Fe
63
63
  }) {
64
- var we;
65
- const b = Ee, c = ze, se = St(), E = xt(), {
66
- prefixCls: $
67
- } = Et("table"), le = P(), Oe = P({}), G = P(null), p = P(), ne = P([]), ae = {}, ie = P({}), h = wt();
68
- let l = b.tableApi;
69
- if (!l) {
70
- l = new lo(b);
71
- const e = l;
72
- e.useStore = (o) => Kt(l.store, o), l = e;
64
+ var Re;
65
+ const v = ze, f = Fe, ae = Rt(), D = $t(), {
66
+ prefixCls: E
67
+ } = Ft("table"), ie = _(), Ve = _({}), k = _(null), b = _(), ce = _([]), ue = {};
68
+ function Q(e = k.value) {
69
+ const o = e == null ? void 0 : e.querySelector(".vxe-table");
70
+ return o ? Array.from(o.querySelectorAll(U)).filter((n) => {
71
+ const s = window.getComputedStyle(n);
72
+ return s.display !== "none" && s.visibility !== "hidden" && !!n.offsetParent;
73
+ }).filter((n, s, l) => {
74
+ const a = n.closest('[class*="table-action"]');
75
+ if (!a) return !0;
76
+ const c = a.getBoundingClientRect();
77
+ return !l.some((u) => {
78
+ const m = u.closest('[class*="table-action"]');
79
+ if (!m || m === a) return !1;
80
+ const w = m.getBoundingClientRect();
81
+ return Math.abs(w.top - c.top) <= 2 && w.left > c.left;
82
+ });
83
+ }).sort((n, s) => {
84
+ const l = n.closest(".vxe-body--column") || n, a = s.closest(".vxe-body--column") || s, c = l.getBoundingClientRect(), u = a.getBoundingClientRect();
85
+ return Math.abs(c.top - u.top) > 2 ? c.top - u.top : Math.abs(c.left - u.left) > 2 ? c.left - u.left : n.getBoundingClientRect().top - s.getBoundingClientRect().top;
86
+ }) : [];
87
+ }
88
+ function He(e) {
89
+ const o = k.value;
90
+ if (o)
91
+ return Array.from(document.querySelectorAll(U)).find((r) => {
92
+ const n = window.getComputedStyle(r);
93
+ if (n.display === "none" || n.visibility === "hidden" || !r.offsetParent || o.contains(r) || r.closest(".tt-table"))
94
+ return !1;
95
+ const s = o.compareDocumentPosition(r);
96
+ return e ? !!(s & Node.DOCUMENT_POSITION_FOLLOWING) : !!(s & Node.DOCUMENT_POSITION_PRECEDING);
97
+ });
98
+ }
99
+ function Le(e) {
100
+ const o = k.value;
101
+ if (!o) return;
102
+ const r = Array.from(document.querySelectorAll(".tt-table")), n = r.indexOf(o), s = r[n + (e ? 1 : -1)], l = s ? Q(s) : [];
103
+ if (!(!s || !l.length))
104
+ return e ? l[0] : l[l.length - 1];
105
+ }
106
+ function Ke() {
107
+ const e = k.value;
108
+ return e ? Array.from(e.querySelectorAll(U)).filter((o) => {
109
+ const r = window.getComputedStyle(o);
110
+ return !o.closest(".vxe-table") && r.display !== "none" && r.visibility !== "hidden" && !!o.offsetParent;
111
+ }) : [];
112
+ }
113
+ function de(e) {
114
+ if (e.key !== "Tab") return;
115
+ const o = e.target;
116
+ if (!(o instanceof HTMLElement)) return;
117
+ const r = Q(), n = o.closest(U), s = n ? r.indexOf(n) : -1;
118
+ if (s < 0) return;
119
+ const l = !e.shiftKey, a = He(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();
122
+ }));
123
+ }
124
+ function fe(e) {
125
+ if (e.key !== "Tab") return;
126
+ const o = e.target, r = k.value;
127
+ if (!(o instanceof HTMLElement) || !r) return;
128
+ const n = o.closest(".tt-table");
129
+ if (n && n !== r) return;
130
+ if (r.contains(o)) {
131
+ de(e);
132
+ return;
133
+ }
134
+ const s = Q(), l = Ke(), a = l.length ? l : s, c = e.shiftKey ? a[a.length - 1] : a[0];
135
+ if (!c) return;
136
+ const u = Array.from(document.querySelectorAll(U)).filter((h) => {
137
+ const Y = window.getComputedStyle(h);
138
+ 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)];
142
+ !w || !r.contains(w) || (e.preventDefault(), e.stopPropagation(), c.focus());
143
+ }
144
+ const pe = _({}), x = Et();
145
+ let i = v.tableApi;
146
+ if (!i) {
147
+ i = new po(v);
148
+ const e = i;
149
+ e.useStore = (o) => Ut(i.store, o), i = e;
73
150
  }
74
- const D = (we = l == null ? void 0 : l.useStore) == null ? void 0 : we.call(l), q = v(() => b.testId ? b.testId : b.api ? Vt(b.api) : "table"), Ve = v(() => $e(q.value, "table"));
75
- Ce("tableIdContext", q);
76
- const C = Ct({
77
- emptyText: B(D).emptyText,
78
- noSearchText: B(D).noSearchText,
151
+ const H = (Re = i == null ? void 0 : i.useStore) == null ? void 0 : Re.call(i), Z = T(() => v.testId ? v.testId : v.api ? Kt(v.api) : "table"), Ae = T(() => _e(Z.value, "table"));
152
+ $e("tableIdContext", Z);
153
+ const R = Ot({
154
+ emptyText: K(H).emptyText,
155
+ noSearchText: K(H).noSearchText,
79
156
  isFirstLoad: !0,
80
- emptyImageStatus: B(D).emptyImageStatus
81
- }), ce = P({}), a = v(() => {
157
+ emptyImageStatus: K(H).emptyImageStatus
158
+ }), ge = _({}), d = T(() => {
82
159
  const {
83
160
  toolTipErrorPlacement: e,
84
161
  ...o
85
- } = _(B(D)) || {};
162
+ } = I(K(H)) || {};
86
163
  return {
87
164
  ...o,
88
165
  toolTipErrorPlacement: e
89
166
  };
90
167
  });
91
- Ce(`${$}-props`, a);
168
+ $e(`${E}-props`, d);
92
169
  const {
93
170
  getLoading: W,
94
- setLoading: de
95
- } = _t(v(() => t(a).loading || !1)), {
96
- configRef: H,
97
- getPaginationInfo: I,
98
- getPagination: De,
99
- setPagination: X,
100
- handlePageChange: He
101
- } = eo(a, c), {
102
- selectedKeys: Q,
103
- selectedRows: ue,
104
- getCheckboxSelectedKeys: Be,
105
- onCheckboxChange: Fe,
106
- onCheckboxAll: Ke,
107
- getSelectRowKeys: je,
108
- getSelectRows: Le,
109
- clearSelectedRowKeys: Z,
110
- setSelectedRowKeys: Ne,
111
- onCellAreaSelectionEndSetCheckbox: Ge,
112
- onCheckboxRangeChange: fe,
113
- onRadioChange: We
114
- } = to(a, c, p), {
115
- handleLeftRightSlotInit: Ae,
116
- handleLeftRightSlotScroll: Ue,
117
- leftRightSlotRows: pe,
171
+ setLoading: me
172
+ } = Bt(T(() => t(d).loading || !1)), {
173
+ configRef: L,
174
+ getPaginationInfo: N,
175
+ getPagination: je,
176
+ setPagination: ee,
177
+ handlePageChange: Me
178
+ } = ao(d, f), {
179
+ selectedKeys: te,
180
+ selectedRows: be,
181
+ getCheckboxSelectedKeys: Ge,
182
+ onCheckboxChange: Ue,
183
+ onCheckboxAll: We,
184
+ getSelectRowKeys: qe,
185
+ getSelectRows: Ye,
186
+ clearSelectedRowKeys: oe,
187
+ setSelectedRowKeys: Je,
188
+ onCellAreaSelectionEndSetCheckbox: Xe,
189
+ onCheckboxRangeChange: he,
190
+ onRadioChange: Qe
191
+ } = io(d, f, b), {
192
+ handleLeftRightSlotInit: Ze,
193
+ handleLeftRightSlotScroll: et,
194
+ leftRightSlotRows: ye,
118
195
  tableBodyWrapHeight: z,
119
- tableHeaderHight: me,
120
- tableBodyScrollHeight: ge,
121
- tableBodyHeight: A,
122
- leftSlotScrollbarRef: Ye,
123
- rightSlotScrollbarRef: Me,
124
- tableBodyScrollTop: he
125
- } = Zt(a, p, ne), {
126
- reload: Je,
127
- reloadFilter: be,
128
- getDataSource: qe,
129
- dataSource: Xe,
130
- isloaded: Qe
131
- } = Qt(a, {
132
- xGrid: p,
133
- tableData: ne,
134
- paginationRef: H,
135
- getPaginationInfo: I,
136
- setLoading: de,
137
- setPagination: X,
138
- clearSelectedRowKeys: Z,
139
- getIsTableEvent: l.getIsTableEvent
140
- }, c), {
141
- titleSolts: Ze,
142
- validSolts: et,
196
+ tableHeaderHight: Se,
197
+ tableBodyScrollHeight: xe,
198
+ tableBodyHeight: q,
199
+ leftSlotScrollbarRef: tt,
200
+ rightSlotScrollbarRef: ot,
201
+ tableBodyScrollTop: ve
202
+ } = lo(d, b, ce), {
203
+ reload: rt,
204
+ reloadFilter: Ce,
205
+ getDataSource: nt,
206
+ dataSource: st,
207
+ isloaded: lt
208
+ } = so(d, {
209
+ xGrid: b,
210
+ tableData: ce,
211
+ paginationRef: L,
212
+ getPaginationInfo: N,
213
+ setLoading: me,
214
+ setPagination: ee,
215
+ clearSelectedRowKeys: oe,
216
+ getIsTableEvent: i.getIsTableEvent
217
+ }, f), {
218
+ titleSolts: at,
219
+ validSolts: it,
143
220
  // httpFieldSolts,
144
221
  // httpFieldEditSolts,
145
- setTableColumns: tt,
146
- getTableColumns: ye,
222
+ setTableColumns: ct,
223
+ getTableColumns: we,
147
224
  // setCacheColumns,
148
- onResizableChange: ot,
149
- onColumnDragend: rt
150
- } = Xt(a, {
151
- xGrid: p,
152
- tableWidth: v(() => t(G).offsetWidth)
153
- }, c), y = v(() => {
225
+ onResizableChange: ut,
226
+ onColumnDragend: dt
227
+ } = no(d, {
228
+ xGrid: b,
229
+ tableWidth: T(() => t(k).offsetWidth)
230
+ }, f), C = T(() => {
154
231
  const {
155
232
  tableRowId: e,
156
233
  checkboxConfig: o,
157
234
  rowConfig: r,
158
- columnConfig: s,
159
- scrollY: i = {},
160
- showToolbar: n,
161
- toolbarConfig: f = {},
162
- showPager: S,
163
- autoHeight: x,
164
- virtualYConfig: U = {},
165
- expandConfig: Y = {}
166
- } = t(a), T = {}, yt = N(t(a), ["data", "columns"]);
167
- return n && (T.toolbarConfig = {
168
- slots: E.toolbar_tools || E.toolbar_buttons ? {
169
- tools: E.toolbar_tools ? "toolbar_tools" : void 0,
170
- buttons: E.toolbar_buttons ? "toolbar_buttons" : void 0
235
+ columnConfig: n,
236
+ scrollY: s = {},
237
+ showToolbar: l,
238
+ toolbarConfig: a = {},
239
+ showPager: c,
240
+ autoHeight: u,
241
+ virtualYConfig: m = {},
242
+ expandConfig: w = {}
243
+ } = t(d), h = {}, Y = G(t(d), ["data", "columns"]);
244
+ return l && (h.toolbarConfig = {
245
+ slots: D.toolbar_tools || D.toolbar_buttons ? {
246
+ tools: D.toolbar_tools ? "toolbar_tools" : void 0,
247
+ buttons: D.toolbar_buttons ? "toolbar_buttons" : void 0
171
248
  } : void 0,
172
- ...f
173
- }), S || (T.pagerConfig = void 0), x && (T.height = "auto", T.autoResize = !0, T.syncResize = !0), Ht(jt.tableVersion, 4, 16) ? T.virtualYConfig = {
249
+ ...a
250
+ }), c || (h.pagerConfig = void 0), u && (h.height = "auto", h.autoResize = !0, h.syncResize = !0), jt(Wt.tableVersion, 4, 16) ? h.virtualYConfig = {
174
251
  enabled: !0,
175
252
  mode: "wheel",
176
- ...U
177
- } : T.scrollY = {
253
+ ...m
254
+ } : h.scrollY = {
178
255
  enabled: !0,
179
256
  mode: "wheel",
180
- ...i
257
+ ...s
181
258
  }, {
182
- ...yt,
183
- ...T,
259
+ ...Y,
260
+ ...h,
184
261
  columnConfig: {
185
262
  useKey: !0,
186
263
  resizable: !1,
187
- ...s
264
+ ...n
188
265
  },
189
266
  rowConfig: {
190
267
  useKey: !0,
@@ -205,7 +282,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
205
282
  padding: !0,
206
283
  iconClose: "vxe-icon-caret-down",
207
284
  iconOpen: "vxe-icon-caret-up",
208
- ...Y
285
+ ...w
209
286
  },
210
287
  // data: unref(dataSource),
211
288
  // height: unref(tableHeight),
@@ -213,85 +290,85 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
213
290
  round: !0,
214
291
  loading: !1
215
292
  };
216
- }), st = v(() => zt(t(y).showHeaderOverflow) ? t(y).showHeaderOverflow : Ot(t(y).showHeaderOverflow) ? t(y).showHeaderOverflow === "tooltip" : !1), {
217
- onCellAreaSelectionEnd: lt
218
- } = qt(y, c, p, {
219
- onCellAreaSelectionEndSetCheckbox: Ge,
220
- onCheckboxRangeChange: fe
221
- }), ve = ro(p, C, c, l, a, {
222
- clearSelectedRowKeys: Z
293
+ }), ft = T(() => Ht(t(C).showHeaderOverflow) ? t(C).showHeaderOverflow : Lt(t(C).showHeaderOverflow) ? t(C).showHeaderOverflow === "tooltip" : !1), {
294
+ onCellAreaSelectionEnd: pt
295
+ } = ro(C, f, b, {
296
+ onCellAreaSelectionEndSetCheckbox: Xe,
297
+ onCheckboxRangeChange: he
298
+ }), Te = uo(b, R, f, i, d, {
299
+ clearSelectedRowKeys: oe
223
300
  });
224
- M(() => y.value, (e, o) => {
225
- const r = Object.keys(_e), s = Dt(e, o || {}, {
301
+ J(() => C.value, (e, o) => {
302
+ const r = Object.keys(Ne), n = At(e, o || {}, {
226
303
  exclude: r
227
304
  });
228
- if (Object.keys(s).length) {
229
- const i = {
230
- ...se,
231
- ...t(y)
232
- }, n = N(i, [...r, "showFullscreen", "data", "columns"]);
233
- ie.value = n, ve.setEmptyText(e.emptyText || "");
305
+ if (Object.keys(n).length) {
306
+ const s = {
307
+ ...ae,
308
+ ...t(C)
309
+ }, l = G(s, [...r, "showFullscreen", "data", "columns"]);
310
+ pe.value = l, Te.setEmptyText(e.emptyText || "");
234
311
  }
235
312
  }, {
236
313
  deep: !0,
237
314
  immediate: !0
238
315
  });
239
- const Se = v(() => {
316
+ const ke = T(() => {
240
317
  const {
241
318
  emptyImageStyle: e
242
- } = B(D);
319
+ } = K(H);
243
320
  return {
244
321
  ...e
245
322
  };
246
323
  });
247
- Pe.forEach((e) => {
248
- const o = Wt.camelCase(e);
249
- ae[o] = (...r) => c(e, ...r);
324
+ De.forEach((e) => {
325
+ const o = Xt.camelCase(e);
326
+ ue[o] = (...r) => f(e, ...r);
250
327
  });
251
- const nt = v(() => ({
252
- ...ae,
253
- radioChange: We,
254
- checkboxChange: Fe,
255
- checkboxAll: Ke,
256
- resizableChange: ot,
257
- cellAreaSelectionEnd: lt,
258
- scroll: dt,
259
- toggleRowExpand: ft,
260
- checkboxRangeChange: fe,
261
- columnDragend: rt,
328
+ const gt = T(() => ({
329
+ ...ue,
330
+ radioChange: Qe,
331
+ checkboxChange: Ue,
332
+ checkboxAll: We,
333
+ resizableChange: ut,
334
+ cellAreaSelectionEnd: pt,
335
+ scroll: yt,
336
+ toggleRowExpand: xt,
337
+ checkboxRangeChange: he,
338
+ columnDragend: dt,
262
339
  // columnResizableChange: onColumnResizableChange,
263
- scrollBoundary: ut,
340
+ scrollBoundary: St,
264
341
  editClosed: (e) => {
265
342
  const {
266
343
  fullData: o = []
267
344
  } = e.$grid.getTableData(), {
268
345
  isDataCloneDeep: r
269
- } = t(a);
270
- c("update:modelValue", r ? Bt(o) : o), c("edit-closed", e);
346
+ } = t(d);
347
+ f("update:modelValue", r ? Mt(o) : o), f("edit-closed", e);
271
348
  }
272
349
  }));
273
- async function at(e) {
274
- l.setState(e);
350
+ async function mt(e) {
351
+ i.setState(e);
275
352
  }
276
- function xe() {
277
- F(() => {
353
+ function Pe() {
354
+ B(() => {
278
355
  var e;
279
- (e = t(p)) == null || e.recalculate(!0);
356
+ (e = t(b)) == null || e.recalculate(!0);
280
357
  });
281
358
  }
282
- function it(e, o) {
283
- e && (ce.value[o] = e);
359
+ function bt(e, o) {
360
+ e && (ge.value[o] = e);
284
361
  }
285
- async function ct(e) {
362
+ async function ht(e) {
286
363
  if (!e.sortable) {
287
- c("sort-change", {
288
- order: _(e).order || "desc",
289
- originOrder: _(e).order,
290
- ...N(_(e), ["order"])
364
+ f("sort-change", {
365
+ order: I(e).order || "desc",
366
+ originOrder: I(e).order,
367
+ ...G(I(e), ["order"])
291
368
  });
292
369
  return;
293
370
  }
294
- const o = p.value;
371
+ const o = b.value;
295
372
  switch (e.order) {
296
373
  case "desc":
297
374
  await (o == null ? void 0 : o.sort(e.field, "asc"));
@@ -302,333 +379,334 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
302
379
  default:
303
380
  await (o == null ? void 0 : o.sort(e.field, "desc"));
304
381
  }
305
- c("sort-change", {
306
- order: _(e).order || "desc",
307
- originOrder: _(e).order,
308
- ...N(_(e), ["order"])
309
- }), be();
382
+ f("sort-change", {
383
+ order: I(e).order || "desc",
384
+ originOrder: I(e).order,
385
+ ...G(I(e), ["order"])
386
+ }), Ce();
310
387
  }
311
- function dt(e) {
312
- c("scroll", e), ((e == null ? void 0 : e.type) === "body" || (e == null ? void 0 : e.type) === "table") && Ue(e == null ? void 0 : e.scrollTop);
388
+ function yt(e) {
389
+ f("scroll", e), ((e == null ? void 0 : e.type) === "body" || (e == null ? void 0 : e.type) === "table") && et(e == null ? void 0 : e.scrollTop);
313
390
  }
314
- function ut(e) {
315
- var f;
316
- c("scroll-boundary", e);
391
+ function St(e) {
392
+ var a;
393
+ f("scroll-boundary", e);
317
394
  const {
318
395
  isScrollFetch: o
319
- } = t(a), {
396
+ } = t(d), {
320
397
  isBottom: r
321
398
  } = e;
322
399
  if (!o || !r || W.value) return;
323
400
  const {
324
- currentPage: s = 0,
325
- total: i = 0
326
- } = t(I), {
327
- fullData: n = []
328
- } = ((f = t(p)) == null ? void 0 : f.getTableData()) || {};
329
- i <= n.length || X({
330
- currentPage: s + 1
401
+ currentPage: n = 0,
402
+ total: s = 0
403
+ } = t(N), {
404
+ fullData: l = []
405
+ } = ((a = t(b)) == null ? void 0 : a.getTableData()) || {};
406
+ s <= l.length || ee({
407
+ currentPage: n + 1
331
408
  });
332
409
  }
333
- function ft(e) {
334
- c("toggle-row-expand", e), setTimeout(() => {
335
- Ae(!1);
410
+ function xt(e) {
411
+ f("toggle-row-expand", e), setTimeout(() => {
412
+ Ze(!1);
336
413
  }, 30);
337
414
  }
338
- const pt = (e) => {
339
- var i;
415
+ const vt = (e) => {
416
+ var s;
340
417
  const {
341
418
  visible: o,
342
419
  column: r
343
420
  } = e, {
344
- filterExclude: s = []
421
+ filterExclude: n = []
345
422
  } = r.filterRender.props || {};
346
- o && ((i = t(le)) == null || i.hidePopper(), F(() => {
347
- var S, x, U, Y;
348
- const n = (S = e == null ? void 0 : e.$event) == null ? void 0 : S.target, f = (U = (x = n == null ? void 0 : n.parentNode) == null ? void 0 : x.parentNode) == null ? void 0 : U.parentNode;
349
- (Y = t(le)) == null || Y.showPopper(f), Object.assign(Oe.value, {
423
+ o && ((s = t(ie)) == null || s.hidePopper(), B(() => {
424
+ var c, u, m, w;
425
+ 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
+ (w = t(ie)) == null || w.showPopper(a), Object.assign(Ve.value, {
350
427
  column: e.column,
351
428
  $event: e.$event,
352
429
  $table: e.$table,
353
430
  $grid: e.$grid,
354
- filterExclude: s
431
+ filterExclude: n
355
432
  });
356
- })), c("filter-visible", e);
433
+ })), f("filter-visible", e);
357
434
  };
358
- F(() => {
435
+ B(() => {
359
436
  const {
360
437
  autoHeight: e
361
- } = t(a);
362
- e && xe();
438
+ } = t(d);
439
+ e && Pe();
363
440
  });
364
- const R = {
365
- reload: Je,
366
- setProps: at,
367
- setTableColumns: tt,
368
- setPagination: X,
369
- setLoading: de,
370
- redoHeight: xe,
371
- getDataSource: qe,
372
- getPagination: De,
373
- getSelectRowKeys: je,
374
- getSelectRows: Le,
375
- getTableInstance: () => t(p),
441
+ const O = {
442
+ reload: rt,
443
+ setProps: mt,
444
+ setTableColumns: ct,
445
+ setPagination: ee,
446
+ setLoading: me,
447
+ redoHeight: Pe,
448
+ getDataSource: nt,
449
+ getPagination: je,
450
+ getSelectRowKeys: qe,
451
+ getSelectRows: Ye,
452
+ getTableInstance: () => t(b),
376
453
  getLoading: W,
377
- getTableColumns: ye,
378
- setSelectedRowKeys: Ne,
379
- clearSelectedRowKeys: Z,
380
- selectedKeys: Q,
381
- selectedRows: ue,
382
- ...ve
454
+ getTableColumns: we,
455
+ setSelectedRowKeys: Je,
456
+ clearSelectedRowKeys: oe,
457
+ selectedKeys: te,
458
+ selectedRows: be,
459
+ ...Te
383
460
  };
384
- oo({
385
- ...R,
386
- wrapRef: G,
387
- getBindValues: y
388
- }), Ie({
389
- ...R,
390
- xGrid: p
391
- }), h && c("register", R, `${h == null ? void 0 : h.uid}`), M(() => W.value, (e) => {
392
- l.setProxyState({
461
+ co({
462
+ ...O,
463
+ wrapRef: k,
464
+ getBindValues: C
465
+ }), Be({
466
+ ...O,
467
+ xGrid: b
468
+ }), x && f("register", O, `${x == null ? void 0 : x.uid}`), J(() => W.value, (e) => {
469
+ i.setProxyState({
393
470
  loading: e
394
- }), F(() => {
471
+ }), B(() => {
395
472
  var o;
396
- h && ((o = R.emitLoading) == null || o.call(R, e, h == null ? void 0 : h.uid));
473
+ x && ((o = O.emitLoading) == null || o.call(O, e, x == null ? void 0 : x.uid));
397
474
  });
398
475
  });
399
- function mt(e) {
476
+ function Ct(e) {
400
477
  return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
401
478
  }
402
- function gt(e, o) {
479
+ function wt(e, o) {
403
480
  return Object.fromEntries(Object.keys(e).map((r) => [r, o[r]]));
404
481
  }
405
- function ht(e) {
482
+ function Tt(e) {
406
483
  return e.column.slots.title;
407
484
  }
408
- M(() => N(b, ["tableApi", "formApi"]), () => {
409
- var n;
410
- const e = {}, o = ((n = h == null ? void 0 : h.vnode) == null ? void 0 : n.props) || {}, r = new Set(Object.keys(b));
411
- for (const [f, S] of Object.entries(o)) {
412
- const x = It(f);
413
- r.has(x) && (e[x] = S);
485
+ J(() => G(v, ["tableApi", "formApi"]), () => {
486
+ var l;
487
+ const e = {}, o = ((l = x == null ? void 0 : x.vnode) == null ? void 0 : l.props) || {}, r = new Set(Object.keys(v));
488
+ for (const [a, c] of Object.entries(o)) {
489
+ const u = Vt(a);
490
+ r.has(u) && (e[u] = c);
414
491
  }
415
- const s = mt(e), i = gt(s, b);
416
- l.setState(i);
492
+ const n = Ct(e), s = wt(n, v);
493
+ i.setState(s);
417
494
  }, {
418
495
  deep: !0
419
- }), M(() => Q.value, (e) => {
420
- l.setProxyState({
496
+ }), J(() => te.value, (e) => {
497
+ i.setProxyState({
421
498
  selectedKeys: e,
422
- selectedRows: t(ue)
499
+ selectedRows: t(be)
423
500
  });
424
501
  });
425
- const bt = v(() => $e(q.value, "table-toolbar"));
426
- return Tt(() => {
502
+ const kt = T(() => _e(Z.value, "table-toolbar"));
503
+ return _t(() => {
427
504
  var e;
428
- l.setState({
429
- modelValue: b.modelValue
430
- }), (e = l.mount) == null || e.call(l, p.value, R), F(() => {
505
+ i.setState({
506
+ modelValue: v.modelValue
507
+ }), (e = i.mount) == null || e.call(i, b.value, O), document.addEventListener("keydown", fe, !0), B(() => {
431
508
  var r;
432
- const o = (r = G.value) == null ? void 0 : r.querySelector(".vxe-toolbar");
433
- o && o.setAttribute("data-testid", t(bt));
509
+ const o = (r = k.value) == null ? void 0 : r.querySelector(".vxe-toolbar");
510
+ o && o.setAttribute("data-testid", t(kt));
434
511
  });
435
- }), kt(() => {
512
+ }), It(() => {
436
513
  var e;
437
- (e = l == null ? void 0 : l.unmount) == null || e.call(l);
438
- }), (e, o) => (d(), m("div", {
514
+ document.removeEventListener("keydown", fe, !0), (e = i == null ? void 0 : i.unmount) == null || e.call(i);
515
+ }), (e, o) => (p(), y("div", {
439
516
  ref_key: "wrapRef",
440
- ref: G,
441
- class: K([t($), t(se).class]),
442
- "data-testid": Ve.value,
443
- "data-table-columns": JSON.stringify(t(ye)().map((r) => ({
517
+ ref: k,
518
+ class: A([t(E), t(ae).class]),
519
+ "data-testid": Ae.value,
520
+ "data-table-columns": JSON.stringify(t(we)().map((r) => ({
444
521
  title: r.title,
445
522
  field: r.field
446
- })))
447
- }, [O(t(Nt), ee({
523
+ }))),
524
+ onKeydownCapture: de
525
+ }, [F(t(Yt), re({
448
526
  ref_key: "xGrid",
449
- ref: p
450
- }, ie.value, {
451
- onFilterChange: o[2] || (o[2] = (r) => t(be)())
452
- }, $t(nt.value), {
453
- onFilterVisible: pt
454
- }), Rt({
455
- empty: u(() => [t(W) ? (d(), m("div", {
527
+ ref: b
528
+ }, pe.value, {
529
+ onFilterChange: o[2] || (o[2] = (r) => t(Ce)())
530
+ }, Dt(gt.value), {
531
+ onFilterVisible: vt
532
+ }), Nt({
533
+ empty: g(() => [t(W) ? (p(), y("div", {
456
534
  key: 1,
457
- class: K(`${t($)}-empty-image`)
458
- }, [w("span", null, L(C.emptyText || ""), 1)], 2)) : (d(), m("div", {
535
+ class: A(`${t(E)}-empty-image`)
536
+ }, [P("span", null, M(R.emptyText || ""), 1)], 2)) : (p(), y("div", {
459
537
  key: 0,
460
- class: K(`${t($)}-empty-image`)
461
- }, [t(Qe) || !a.value.api ? (d(), m(Te, {
538
+ class: A(`${t(E)}-empty-image`)
539
+ }, [t(lt) || !d.value.api ? (p(), y(Ee, {
462
540
  key: 0
463
- }, [O(t(Re), {
464
- style: k(Se.value),
465
- status: C.emptyImageStatus
466
- }, null, 8, ["style", "status"]), C.emptyText ? (d(), m("span", mo, L(C.emptyText), 1)) : V("", !0)], 64)) : (d(), m(Te, {
541
+ }, [F(t(Ie), {
542
+ style: $(ke.value),
543
+ status: R.emptyImageStatus
544
+ }, null, 8, ["style", "status"]), R.emptyText ? (p(), y("span", vo, M(R.emptyText), 1)) : V("", !0)], 64)) : (p(), y(Ee, {
467
545
  key: 1
468
- }, [O(t(Re), {
469
- style: k(Se.value),
470
- status: C.emptyImageStatus
471
- }, null, 8, ["style", "status"]), C.noSearchText ? (d(), m("span", go, L(C.noSearchText), 1)) : V("", !0)], 64))], 2))]),
472
- left: u(() => [g(e.$slots, "left", {}, () => [t(z) ? (d(), te(t(ke), {
546
+ }, [F(t(Ie), {
547
+ style: $(ke.value),
548
+ status: R.emptyImageStatus
549
+ }, null, 8, ["style", "status"]), R.noSearchText ? (p(), y("span", Co, M(R.noSearchText), 1)) : V("", !0)], 64))], 2))]),
550
+ left: g(() => [S(e.$slots, "left", {}, () => [t(z) ? (p(), ne(t(Oe), {
473
551
  key: 0,
474
552
  ref_key: "leftSlotScrollbarRef",
475
- ref: Ye,
553
+ ref: tt,
476
554
  "wrap-class": "overflow-hidden",
477
555
  class: "tt-table-left-right-scroll",
478
556
  height: `${t(z)}px`,
479
- style: k({
480
- width: `${a.value.leftSlotWidth}px`,
557
+ style: $({
558
+ width: `${d.value.leftSlotWidth}px`,
481
559
  height: `${t(z)}px`,
482
- marginTop: `${t(me)}px`
560
+ marginTop: `${t(Se)}px`
483
561
  })
484
562
  }, {
485
- default: u(() => [w("div", {
563
+ default: g(() => [P("div", {
486
564
  class: "float-left w-0",
487
- style: k({
488
- height: `${t(ge)}px`
565
+ style: $({
566
+ height: `${t(xe)}px`
489
567
  })
490
- }, null, 4), w("div", {
491
- style: k({
568
+ }, null, 4), P("div", {
569
+ style: $({
492
570
  width: "100%",
493
- height: `${t(A)}px`,
494
- marginTop: `${t(he)}`
571
+ height: `${t(q)}px`,
572
+ marginTop: `${t(ve)}`
495
573
  }),
496
574
  class: "relative"
497
- }, [g(e.$slots, "tableLeft", j(J({
498
- rowNodes: t(pe),
499
- height: t(A)
575
+ }, [S(e.$slots, "tableLeft", j(X({
576
+ rowNodes: t(ye),
577
+ height: t(q)
500
578
  })))], 4)]),
501
579
  _: 3
502
580
  }, 8, ["height", "style"])) : V("", !0)])]),
503
- right: u(() => [g(e.$slots, "right", {}, () => [t(z) ? (d(), te(t(ke), {
581
+ right: g(() => [S(e.$slots, "right", {}, () => [t(z) ? (p(), ne(t(Oe), {
504
582
  key: 0,
505
583
  ref_key: "rightSlotScrollbarRef",
506
- ref: Me,
584
+ ref: ot,
507
585
  "wrap-class": "overflow-hidden",
508
586
  class: "tt-table-left-right-scroll",
509
587
  always: "",
510
588
  height: `${t(z)}px`,
511
- style: k({
512
- width: `${a.value.rightSlotWidth}px`,
589
+ style: $({
590
+ width: `${d.value.rightSlotWidth}px`,
513
591
  height: `${t(z)}px`,
514
- marginTop: `${t(me)}px`
592
+ marginTop: `${t(Se)}px`
515
593
  })
516
594
  }, {
517
- default: u(() => [w("div", {
595
+ default: g(() => [P("div", {
518
596
  class: "float-left w-0",
519
- style: k({
520
- height: `${t(ge)}px`
597
+ style: $({
598
+ height: `${t(xe)}px`
521
599
  })
522
- }, null, 4), w("div", {
523
- style: k({
600
+ }, null, 4), P("div", {
601
+ style: $({
524
602
  width: "100%",
525
- height: `${t(A)}px`,
526
- marginTop: `${t(he)}`
603
+ height: `${t(q)}px`,
604
+ marginTop: `${t(ve)}`
527
605
  }),
528
606
  class: "relative"
529
- }, [g(e.$slots, "tableRight", j(J({
530
- rowNodes: t(pe),
531
- height: t(A)
607
+ }, [S(e.$slots, "tableRight", j(X({
608
+ rowNodes: t(ye),
609
+ height: t(q)
532
610
  })))], 4)]),
533
611
  _: 3
534
612
  }, 8, ["height", "style"])) : V("", !0)])]),
535
613
  _: 2
536
- }, [oe(t(Ze), (r) => ({
614
+ }, [se(t(at), (r) => ({
537
615
  name: r,
538
- fn: u((s) => [w("div", {
616
+ fn: g((n) => [P("div", {
539
617
  class: "flex items-center",
540
- onClick: Pt((i) => ct(s.column), ["stop"])
541
- }, [w("div", io, [g(e.$slots, ht(s), j(J(s)), () => [O(t(Mt), {
542
- "tool-tip": st.value
618
+ onClick: zt((s) => ht(n.column), ["stop"])
619
+ }, [P("div", bo, [S(e.$slots, Tt(n), j(X(n)), () => [F(t(to), {
620
+ "tool-tip": ft.value
543
621
  }, {
544
- default: u(() => [re(L(s.column.title), 1)]),
622
+ default: g(() => [le(M(n.column.title), 1)]),
545
623
  _: 2
546
- }, 1032, ["tool-tip"])])]), s.column.sortable ? (d(), m("div", {
624
+ }, 1032, ["tool-tip"])])]), n.column.sortable ? (p(), y("div", {
547
625
  key: 0,
548
- class: K(["flex-x", {
549
- "is-order": s.column.order,
550
- [`${t($)}-custom-sort`]: !0
626
+ class: A(["flex-x", {
627
+ "is-order": n.column.order,
628
+ [`${t(E)}-custom-sort`]: !0
551
629
  }])
552
- }, [s.column.order === "asc" ? (d(), m("img", {
630
+ }, [n.column.order === "asc" ? (p(), y("img", {
553
631
  key: 0,
554
- src: t(Yt)
555
- }, null, 8, co)) : s.column.order === "desc" ? (d(), m("img", {
632
+ src: t(eo)
633
+ }, null, 8, ho)) : n.column.order === "desc" ? (p(), y("img", {
556
634
  key: 1,
557
- src: t(At)
558
- }, null, 8, uo)) : (d(), m("img", {
635
+ src: t(Qt)
636
+ }, null, 8, yo)) : (p(), y("img", {
559
637
  key: 2,
560
- src: t(Ut)
561
- }, null, 8, fo))], 2)) : V("", !0)], 8, ao)])
562
- })), oe(Object.keys(e.$slots), (r) => ({
638
+ src: t(Zt)
639
+ }, null, 8, So))], 2)) : V("", !0)], 8, mo)])
640
+ })), se(Object.keys(e.$slots), (r) => ({
563
641
  name: r,
564
- fn: u((s) => [r.includes("action") ? (d(), te(t(Jt), {
642
+ fn: g((n) => [r.includes("action") ? (p(), ne(t(oo), {
565
643
  key: 0,
566
- "row-index": s.$rowIndex
644
+ "row-index": n.$rowIndex
567
645
  }, {
568
- default: u(() => [g(e.$slots, r, ee(s, {
569
- rowIndex: s.$rowIndex
646
+ default: g(() => [S(e.$slots, r, re(n, {
647
+ rowIndex: n.$rowIndex
570
648
  }))]),
571
649
  _: 2
572
- }, 1032, ["row-index"])) : g(e.$slots, r, j(ee({
650
+ }, 1032, ["row-index"])) : S(e.$slots, r, j(re({
573
651
  key: 1
574
- }, s)))])
575
- })), y.value.showTableAlert ? {
652
+ }, n)))])
653
+ })), C.value.showTableAlert ? {
576
654
  name: "top",
577
- fn: u(() => [w("div", {
578
- class: K(`${t($)}-top-alert`)
579
- }, [o[3] || (o[3] = re(" 已选中 ", -1)), w("span", po, L(t(Be).length), 1), o[4] || (o[4] = re(" 条 ", -1)), g(e.$slots, "top_title")], 2)]),
655
+ fn: g(() => [P("div", {
656
+ class: A(`${t(E)}-top-alert`)
657
+ }, [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)]),
580
658
  key: "0"
581
- } : void 0, t(E).toolbar_buttons ? {
659
+ } : void 0, t(D).toolbar_buttons ? {
582
660
  name: "toolbar_buttons",
583
- fn: u(() => [g(e.$slots, "toolbar_buttons")]),
661
+ fn: g(() => [S(e.$slots, "toolbar_buttons")]),
584
662
  key: "1"
585
- } : void 0, t(E).toolbar_tools ? {
663
+ } : void 0, t(D).toolbar_tools ? {
586
664
  name: "toolbar_tools",
587
- fn: u(() => [g(e.$slots, "toolbar_tools")]),
665
+ fn: g(() => [S(e.$slots, "toolbar_tools")]),
588
666
  key: "2"
589
- } : void 0, oe(t(et), (r) => ({
667
+ } : void 0, se(t(it), (r) => ({
590
668
  name: r,
591
- fn: u(({
592
- content: s,
593
- rowIndex: i,
594
- columnIndex: n,
595
- column: f,
596
- fixed: S
597
- }) => [!S || S === f.fixed ? (d(), m("div", {
669
+ fn: g(({
670
+ content: n,
671
+ rowIndex: s,
672
+ columnIndex: l,
673
+ column: a,
674
+ fixed: c
675
+ }) => [!c || c === a.fixed ? (p(), y("div", {
598
676
  key: 0,
599
- ref: (x) => it(x, `valid_${i}_${n}`),
677
+ ref: (u) => bt(u, `valid_${s}_${l}`),
600
678
  class: "h-full w-full"
601
- }, [O(t(Ft), {
602
- placement: a.value.toolTipErrorPlacement,
603
- "err-msg": s,
604
- "ref-dom": ce.value[`valid_${i}_${n}`]
679
+ }, [F(t(Gt), {
680
+ placement: d.value.toolTipErrorPlacement,
681
+ "err-msg": n,
682
+ "ref-dom": ge.value[`valid_${s}_${l}`]
605
683
  }, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : V("", !0)])
606
- })), y.value.showPager ? {
684
+ })), C.value.showPager ? {
607
685
  name: "pager",
608
- fn: u(() => {
609
- var r, s, i, n;
610
- return [O(t(Lt), {
611
- "current-page": t(H).currentPage,
612
- "onUpdate:currentPage": o[0] || (o[0] = (f) => t(H).currentPage = f),
613
- "page-size": t(H).pageSize,
614
- "onUpdate:pageSize": o[1] || (o[1] = (f) => t(H).pageSize = f),
615
- "page-sizes": (r = t(I)) == null ? void 0 : r.pageSizes,
616
- layouts: (s = t(I)) == null ? void 0 : s.layouts,
617
- total: ((i = t(I)) == null ? void 0 : i.total) || t(Xe).length,
618
- size: (n = t(I)) == null ? void 0 : n.size,
619
- "class-name": `${t($)}-vxe-pager`,
620
- onPageChange: t(He)
686
+ fn: g(() => {
687
+ var r, n, s, l;
688
+ return [F(t(qt), {
689
+ "current-page": t(L).currentPage,
690
+ "onUpdate:currentPage": o[0] || (o[0] = (a) => t(L).currentPage = a),
691
+ "page-size": t(L).pageSize,
692
+ "onUpdate:pageSize": o[1] || (o[1] = (a) => t(L).pageSize = a),
693
+ "page-sizes": (r = t(N)) == null ? void 0 : r.pageSizes,
694
+ layouts: (n = t(N)) == null ? void 0 : n.layouts,
695
+ total: ((s = t(N)) == null ? void 0 : s.total) || t(st).length,
696
+ size: (l = t(N)) == null ? void 0 : l.size,
697
+ "class-name": `${t(E)}-vxe-pager`,
698
+ onPageChange: t(Me)
621
699
  }, {
622
- left: u(() => [g(e.$slots, "pager_left", j(J({
623
- selectedKeys: t(Q)
624
- }))), g(e.$slots, "buttom_left")]),
700
+ left: g(() => [S(e.$slots, "pager_left", j(X({
701
+ selectedKeys: t(te)
702
+ }))), S(e.$slots, "buttom_left")]),
625
703
  _: 3
626
704
  }, 8, ["current-page", "page-size", "page-sizes", "layouts", "total", "size", "class-name", "onPageChange"])];
627
705
  }),
628
706
  key: "3"
629
- } : void 0]), 1040)], 10, no));
707
+ } : void 0]), 1040)], 42, go));
630
708
  }
631
709
  });
632
710
  export {
633
- or as default
711
+ cr as default
634
712
  };