@rhino-design/vue 0.2.6 → 0.2.8

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 (36) hide show
  1. package/README.md +95 -18
  2. package/README.zh-CN.md +115 -0
  3. package/dist/arco.less +95 -76
  4. package/dist/components/XButton.vue.js +2 -2
  5. package/dist/components/XConfigProvider.vue.js +1 -1
  6. package/dist/components/XMenuOverflowWrap.vue.js +66 -59
  7. package/dist/components/XScrollbar.vue.js +1 -1
  8. package/dist/components/XSubMenuPop.vue.js +1 -1
  9. package/dist/components/XTable.vue.d.ts +1 -0
  10. package/dist/components/XTable.vue.js +3 -3
  11. package/dist/components/XTable.vue2.js +774 -614
  12. package/dist/components/XToast.vue.d.ts +25 -0
  13. package/dist/components/XToast.vue.js +7 -0
  14. package/dist/components/XToast.vue2.js +27 -0
  15. package/dist/components/XTour.vue.d.ts +2 -0
  16. package/dist/components/XTour.vue.js +69 -61
  17. package/dist/components/XTree.vue.d.ts +2 -0
  18. package/dist/components/XTree.vue.js +1 -1
  19. package/dist/components/XTree.vue2.js +124 -121
  20. package/dist/components/XTreeNode.vue.d.ts +1 -0
  21. package/dist/components/XTreeNode.vue.js +2 -2
  22. package/dist/components/XTreeNode.vue2.js +21 -20
  23. package/dist/components/XTreeSelect.vue.js +4 -4
  24. package/dist/components/XTreeSelect.vue2.js +314 -291
  25. package/dist/components/XWatermark.vue.js +4 -4
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +55 -53
  28. package/dist/index.cjs +9 -9
  29. package/dist/index.css +95 -76
  30. package/dist/index.js +62 -60
  31. package/dist/index.less +95 -76
  32. package/dist/index.scss +14853 -0
  33. package/dist/style.css +95 -76
  34. package/dist/style.less +95 -76
  35. package/dist/style.scss +14853 -0
  36. package/package.json +14 -6
@@ -1,38 +1,43 @@
1
- import { defineComponent as Lt, computed as y, ref as $, watch as se, onMounted as Mt, nextTick as Pt, openBlock as u, createElementBlock as c, normalizeClass as L, createElementVNode as w, normalizeStyle as m, Fragment as S, renderList as F, createCommentVNode as g, renderSlot as k, createTextVNode as M, toDisplayString as C, withModifiers as oe, createBlock as G, mergeProps as zt, withCtx as Et, unref as we, resolveDynamicComponent as Kt, createVNode as Nt } from "vue";
2
- import _t from "./XPagination.vue.js";
3
- import Bt from "./XEmpty.vue.js";
4
- import Ht from "./XTooltip.vue.js";
5
- import Je from "./XTableFilter.vue.js";
6
- import { useXConfig as At } from "../composables/config.js";
7
- import { useXConfigProviderSlotRender as Ft } from "../composables/config-provider.js";
8
- import { useXI18n as Ot } from "../composables/i18n.js";
9
- const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It = { key: 1 }, Gt = ["colspan", "rowspan", "onClick"], Jt = ["data-order", "onClick"], Ut = ["onMousedown"], qt = { key: 1 }, Qt = ["checked"], Yt = { key: 1 }, Zt = ["onClick"], el = ["data-order", "onClick"], tl = ["onMousedown"], ll = { key: 1 }, al = ["colspan"], nl = ["draggable", "onClick", "onDragstart", "onDragover", "onDrop"], rl = ["onClick"], il = {
1
+ import { defineComponent as jt, computed as p, useSlots as Wt, ref as C, watch as W, onUnmounted as Xt, onMounted as It, nextTick as Gt, openBlock as u, createElementBlock as d, normalizeClass as D, createElementVNode as h, normalizeStyle as k, Fragment as x, renderList as A, createCommentVNode as g, renderSlot as w, createTextVNode as L, toDisplayString as $, withModifiers as ye, createBlock as q, createVNode as Q, withCtx as Y, mergeProps as Ut, unref as Re, resolveDynamicComponent as Jt } from "vue";
2
+ import qt from "./XPagination.vue.js";
3
+ import Qt from "./XEmpty.vue.js";
4
+ import Yt from "./XTooltip.vue.js";
5
+ import lt from "./XTableFilter.vue.js";
6
+ import pe from "./XSkeleton.vue.js";
7
+ import { useXConfig as Zt } from "../composables/config.js";
8
+ import { useXConfigProviderSlotRender as el } from "../composables/config-provider.js";
9
+ import { useXI18n as tl } from "../composables/i18n.js";
10
+ const ll = ["rowspan"], nl = ["rowspan"], al = ["rowspan"], sl = ["checked"], ol = { key: 1 }, il = ["colspan", "rowspan", "onClick"], rl = ["data-order", "onClick"], ul = ["onMousedown"], dl = { key: 1 }, cl = ["checked"], fl = { key: 1 }, yl = ["onClick"], pl = ["data-order", "onClick"], gl = ["onMousedown"], vl = {
11
+ key: 1,
12
+ class: "x-table__skeleton-body"
13
+ }, hl = { class: "x-table__skeleton-shell" }, kl = { key: 2 }, bl = ["colspan"], ml = ["draggable", "onClick", "onDragstart", "onDragover", "onDrop"], xl = ["onClick"], wl = {
10
14
  key: 0,
11
15
  class: "x-table__loading-icon"
12
- }, sl = { key: 1 }, ol = ["type", "checked", "disabled", "onChange"], ul = ["onClick"], dl = { class: "x-table__cell-content is-ellipsis" }, cl = {
16
+ }, Sl = { key: 1 }, Cl = ["type", "checked", "disabled", "onChange"], $l = ["onClick"], _l = { class: "x-table__cell-content is-ellipsis" }, Rl = {
13
17
  key: 0,
14
18
  class: "x-table__expanded-row"
15
- }, fl = ["colspan"], pl = ["colspan"], yl = { key: 2 }, hl = ["colspan"], gl = { key: 3 }, vl = {
19
+ }, Dl = ["colspan"], Ml = ["colspan"], Ll = { key: 3 }, Tl = ["colspan"], Pl = { key: 4 }, zl = {
16
20
  key: 0,
17
21
  class: "x-table__drag-col"
18
- }, kl = {
22
+ }, El = {
19
23
  key: 1,
20
24
  class: "x-table__expand-col"
21
- }, bl = {
25
+ }, Kl = {
22
26
  key: 2,
23
27
  class: "x-table__selection-col"
24
- }, xl = {
28
+ }, Nl = {
25
29
  key: 0,
26
30
  class: "x-table__loading"
27
- }, wl = {
31
+ }, Al = {
28
32
  key: 1,
29
33
  class: "x-table__pagination"
30
- }, Ml = /* @__PURE__ */ Lt({
34
+ }, Bl = 5, Hl = 1e3, Jl = /* @__PURE__ */ jt({
31
35
  __name: "XTable",
32
36
  props: {
33
37
  columns: {},
34
38
  data: {},
35
39
  loading: { type: Boolean, default: !1 },
40
+ loadingAnimation: { type: Boolean, default: !0 },
36
41
  pagination: { type: [Boolean, Object], default: !1 },
37
42
  rowSelection: { default: void 0 },
38
43
  expandable: { default: void 0 },
@@ -62,13 +67,13 @@ const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It
62
67
  filterIconAlignLeft: { type: Boolean, default: !1 }
63
68
  },
64
69
  emits: ["update:selectedRowKeys", "update:expandedRowKeys", "select", "selectAll", "sort", "filter", "expand", "pageChange", "pageSizeChange", "rowClick", "cellClick", "headerClick", "resizeColumn", "change", "drag"],
65
- setup(f, { emit: Ue }) {
66
- var Xe, Ie;
67
- function O(e) {
70
+ setup(c, { emit: nt }) {
71
+ var Ze, et;
72
+ function V(e) {
68
73
  if (!(e == null || e === ""))
69
74
  return typeof e == "number" ? `${e}px` : e;
70
75
  }
71
- function ue(e) {
76
+ function ge(e) {
72
77
  if (typeof e == "number") return e;
73
78
  if (typeof e == "string") {
74
79
  const l = Number.parseFloat(e);
@@ -76,160 +81,198 @@ const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It
76
81
  }
77
82
  return 160;
78
83
  }
79
- function me(e, l) {
84
+ function De(e, l) {
80
85
  return e === l || e == null && l == null ? !0 : e == null || l == null ? !1 : String(e) === String(l);
81
86
  }
82
- function qe(e, l) {
87
+ function at(e, l) {
83
88
  const t = e.key == null ? "" : String(e.key).trim();
84
89
  if (t) return t;
85
- const a = e.dataIndex == null ? "" : String(e.dataIndex).trim();
86
- return a || `col-${l.join("-")}`;
90
+ const n = e.dataIndex == null ? "" : String(e.dataIndex).trim();
91
+ return n || `col-${l.join("-")}`;
87
92
  }
88
- function J(e, l = []) {
89
- return e.map((t, a) => {
90
- var o;
91
- const r = [...l, a], i = (o = t.children) != null && o.length ? J(t.children, r) : void 0;
93
+ function Z(e, l = []) {
94
+ return e.map((t, n) => {
95
+ var i;
96
+ const s = [...l, n], o = (i = t.children) != null && i.length ? Z(t.children, s) : void 0;
92
97
  return {
93
98
  ...t,
94
- key: qe(t, r),
95
- children: i
99
+ key: at(t, s),
100
+ children: o
96
101
  };
97
102
  });
98
103
  }
99
- const n = f, de = y(() => J(n.columns)), Qe = At(), { t: ce } = Ot(), fe = y(() => n.size ?? Qe.size.value), Ye = y(() => n.summaryText === "合计" ? ce("table.summaryText", void 0, "合计") : n.summaryText), Ze = y(() => n.emptyText === "暂无数据" ? ce("table.emptyText", void 0, "暂无数据") : n.emptyText), Se = Ft(
104
+ const a = c, ve = p(() => Z(a.columns)), st = Zt(), ot = Wt(), { t: he } = tl(), ke = p(() => a.size ?? st.size.value), it = p(() => a.summaryText === "合计" ? he("table.summaryText", void 0, "合计") : a.summaryText), rt = p(() => a.emptyText === "暂无数据" ? he("table.emptyText", void 0, "暂无数据") : a.emptyText), Me = el(
100
105
  "empty",
101
- y(() => ({ component: "table" }))
102
- ), b = Ue;
103
- function et() {
104
- const e = J(n.columns), l = (a) => {
105
- var r;
106
- for (const i of a) {
107
- if ((r = i.children) != null && r.length) {
108
- const o = l(i.children);
109
- if (o) return o;
106
+ p(() => ({ component: "table" }))
107
+ ), S = nt;
108
+ function ut() {
109
+ const e = Z(a.columns), l = (n) => {
110
+ var s;
111
+ for (const o of n) {
112
+ if ((s = o.children) != null && s.length) {
113
+ const i = l(o.children);
114
+ if (i) return i;
110
115
  }
111
- if (i.defaultSortOrder)
112
- return { key: i.key, order: i.defaultSortOrder };
113
- if (i.sortOrder)
114
- return { key: i.key, order: i.sortOrder };
116
+ if (o.defaultSortOrder)
117
+ return { key: o.key, order: o.defaultSortOrder };
118
+ if (o.sortOrder)
119
+ return { key: o.key, order: o.sortOrder };
115
120
  }
116
121
  return null;
117
122
  }, t = l(e);
118
123
  return t || { key: "", order: null };
119
124
  }
120
- function tt() {
121
- const e = {}, l = J(n.columns), t = (a) => {
122
- var r;
123
- for (const i of a)
124
- (r = i.children) != null && r.length && t(i.children), i.defaultFilteredValue ? e[i.key] = i.defaultFilteredValue.map(String) : i.filteredValue && (e[i.key] = i.filteredValue.map(String));
125
+ function dt() {
126
+ const e = {}, l = Z(a.columns), t = (n) => {
127
+ var s;
128
+ for (const o of n)
129
+ (s = o.children) != null && s.length && t(o.children), o.defaultFilteredValue ? e[o.key] = o.defaultFilteredValue.map(String) : o.filteredValue && (e[o.key] = o.filteredValue.map(String));
125
130
  };
126
131
  return t(l), e;
127
132
  }
128
- const D = $(et()), E = $(tt()), V = $(1), U = $(10), pe = $((Xe = n.rowSelection) != null && Xe.defaultSelectedRowKeys ? [...n.rowSelection.defaultSelectedRowKeys] : []), q = $((Ie = n.expandable) != null && Ie.defaultExpandedRowKeys ? [...n.expandable.defaultExpandedRowKeys] : []), Q = $(null), H = $({}), ye = $(/* @__PURE__ */ new Set()), j = $(), Ce = $(), Y = $(!1), K = $({ isDragging: !1, dragIndex: -1, dropIndex: -1 }), Z = $(0), Re = $(0), $e = $(0);
129
- se(
130
- () => n.pagination,
133
+ const R = C(ut()), E = C(dt()), X = C(1), ee = C(10), be = C((Ze = a.rowSelection) != null && Ze.defaultSelectedRowKeys ? [...a.rowSelection.defaultSelectedRowKeys] : []), te = C((et = a.expandable) != null && et.defaultExpandedRowKeys ? [...a.expandable.defaultExpandedRowKeys] : []), le = C(null), B = C({}), me = C(/* @__PURE__ */ new Set()), j = C(), Le = C(), ne = C(!1), K = C({ isDragging: !1, dragIndex: -1, dropIndex: -1 }), F = C(a.loading), Te = C(a.loading ? Date.now() : 0);
134
+ let I;
135
+ function Pe() {
136
+ I !== void 0 && (clearTimeout(I), I = void 0);
137
+ }
138
+ function ct() {
139
+ const e = Date.now() - Te.value;
140
+ return Math.max(0, Hl - e);
141
+ }
142
+ function ze(e) {
143
+ if (Pe(), e) {
144
+ Te.value = Date.now(), F.value = !0;
145
+ return;
146
+ }
147
+ if (!F.value) return;
148
+ const l = ct();
149
+ if (l === 0) {
150
+ F.value = !1;
151
+ return;
152
+ }
153
+ I = setTimeout(() => {
154
+ F.value = !1, I = void 0;
155
+ }, l);
156
+ }
157
+ W(
158
+ () => a.loading,
159
+ (e) => {
160
+ ze(e);
161
+ },
162
+ { immediate: !0 }
163
+ ), W(
164
+ () => a.loadingAnimation,
165
+ () => {
166
+ a.loading || ze(!1);
167
+ }
168
+ ), Xt(() => {
169
+ Pe();
170
+ });
171
+ const ae = C(0), Ee = C(0), Ke = C(0);
172
+ W(
173
+ () => a.pagination,
131
174
  (e) => {
132
- e && typeof e == "object" && (V.value = e.current ?? V.value, U.value = e.pageSize ?? U.value);
175
+ e && typeof e == "object" && (X.value = e.current ?? X.value, ee.value = e.pageSize ?? ee.value);
133
176
  },
134
177
  { immediate: !0 }
135
- ), se(
178
+ ), W(
136
179
  () => {
137
180
  var e;
138
- return (e = n.rowSelection) == null ? void 0 : e.selectedRowKeys;
181
+ return (e = a.rowSelection) == null ? void 0 : e.selectedRowKeys;
139
182
  },
140
183
  (e) => {
141
- e !== void 0 && (pe.value = [...e]);
184
+ e !== void 0 && (be.value = [...e]);
142
185
  },
143
186
  { immediate: !0 }
144
- ), se(
187
+ ), W(
145
188
  () => {
146
189
  var e;
147
- return (e = n.expandable) == null ? void 0 : e.expandedRowKeys;
190
+ return (e = a.expandable) == null ? void 0 : e.expandedRowKeys;
148
191
  },
149
192
  (e) => {
150
- e !== void 0 && (q.value = [...e]);
193
+ e !== void 0 && (te.value = [...e]);
151
194
  },
152
195
  { immediate: !0 }
153
- ), Mt(() => {
154
- if (n.virtualListProps && j.value && xe(), n.defaultExpandAllRows && n.treeData) {
196
+ ), It(() => {
197
+ if (a.virtualListProps && j.value && _e(), a.defaultExpandAllRows && a.treeData) {
155
198
  const e = [], l = (t) => {
156
- t.forEach((a, r) => {
157
- const i = P(a, r);
158
- e.push(i);
159
- const o = a[n.childrenColumnName] || [];
160
- o.length > 0 && l(o);
199
+ t.forEach((n, s) => {
200
+ const o = P(n, s);
201
+ e.push(o);
202
+ const i = n[a.childrenColumnName] || [];
203
+ i.length > 0 && l(i);
161
204
  });
162
205
  };
163
- l(n.data), q.value = e;
206
+ l(a.data), te.value = e;
164
207
  }
165
208
  });
166
209
  function P(e, l) {
167
- return typeof n.rowKey == "function" ? n.rowKey(e, l) : e[n.rowKey] ?? l;
210
+ return typeof a.rowKey == "function" ? a.rowKey(e, l) : e[a.rowKey] ?? l;
168
211
  }
169
- function R(e, l) {
170
- return l.dataIndex ? typeof l.dataIndex == "string" && l.dataIndex.includes(".") ? l.dataIndex.split(".").reduce((t, a) => t == null ? void 0 : t[a], e) : e[l.dataIndex] : "";
212
+ function _(e, l) {
213
+ return l.dataIndex ? typeof l.dataIndex == "string" && l.dataIndex.includes(".") ? l.dataIndex.split(".").reduce((t, n) => t == null ? void 0 : t[n], e) : e[l.dataIndex] : "";
171
214
  }
172
- const B = y(() => n.pagination === !1 ? null : n.pagination === !0 ? {} : n.pagination ?? null), N = y(() => {
215
+ const H = p(() => a.pagination === !1 ? null : a.pagination === !0 ? {} : a.pagination ?? null), N = p(() => {
173
216
  var e;
174
- return ((e = n.rowSelection) == null ? void 0 : e.selectedRowKeys) ?? pe.value;
175
- }), ee = y(() => {
217
+ return ((e = a.rowSelection) == null ? void 0 : e.selectedRowKeys) ?? be.value;
218
+ }), se = p(() => {
176
219
  var e;
177
- return ((e = n.expandable) == null ? void 0 : e.expandedRowKeys) ?? q.value;
178
- }), lt = y(() => {
220
+ return ((e = a.expandable) == null ? void 0 : e.expandedRowKeys) ?? te.value;
221
+ }), ft = p(() => {
179
222
  var e;
180
- return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.wrapper) ?? !1;
181
- }), De = y(() => {
223
+ return typeof a.bordered == "boolean" ? a.bordered : ((e = a.bordered) == null ? void 0 : e.wrapper) ?? !1;
224
+ }), xe = p(() => {
182
225
  var e;
183
- return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.cell) ?? !1;
184
- }), Te = y(() => {
226
+ return typeof a.bordered == "boolean" ? a.bordered : ((e = a.bordered) == null ? void 0 : e.cell) ?? !1;
227
+ }), Ne = p(() => {
185
228
  var e;
186
- return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.headerCell) ?? !1;
187
- }), x = y(() => {
229
+ return typeof a.bordered == "boolean" ? a.bordered : ((e = a.bordered) == null ? void 0 : e.headerCell) ?? !1;
230
+ }), b = p(() => {
188
231
  const e = [], l = (t) => {
189
- t.forEach((a) => {
190
- a.children && a.children.length > 0 ? l(a.children) : e.push(a);
232
+ t.forEach((n) => {
233
+ n.children && n.children.length > 0 ? l(n.children) : e.push(n);
191
234
  });
192
235
  };
193
- return l(de.value), e;
194
- }), at = y(() => {
195
- let e = [...n.data];
236
+ return l(ve.value), e;
237
+ }), yt = p(() => {
238
+ let e = [...a.data];
196
239
  return Object.entries(E.value).forEach(([l, t]) => {
197
240
  if (t.length > 0) {
198
- const a = x.value.find((r) => r.key === l);
199
- a && (e = e.filter((r) => {
200
- const i = String(R(r, a));
201
- return t.some((o) => i.includes(String(o)));
241
+ const n = b.value.find((s) => s.key === l);
242
+ n && (e = e.filter((s) => {
243
+ const o = String(_(s, n));
244
+ return t.some((i) => o.includes(String(i)));
202
245
  }));
203
246
  }
204
247
  }), e;
205
- }), A = y(() => {
206
- const e = [...at.value], l = x.value.find((a) => a.key === D.value.key);
207
- if (!l || !D.value.order) return e;
208
- const t = D.value.order === "ascend" ? 1 : -1;
209
- return e.sort((a, r) => {
248
+ }), O = p(() => {
249
+ const e = [...yt.value], l = b.value.find((n) => n.key === R.value.key);
250
+ if (!l || !R.value.order) return e;
251
+ const t = R.value.order === "ascend" ? 1 : -1;
252
+ return e.sort((n, s) => {
210
253
  if (typeof l.sorter == "function")
211
- return l.sorter(a, r) * t;
212
- const i = R(a, l), o = R(r, l);
213
- return i === o ? 0 : (String(i) > String(o) ? 1 : -1) * t;
254
+ return l.sorter(n, s) * t;
255
+ const o = _(n, l), i = _(s, l);
256
+ return o === i ? 0 : (String(o) > String(i) ? 1 : -1) * t;
214
257
  });
215
258
  });
216
- function Le(e, l) {
259
+ function Ae(e, l) {
217
260
  const t = [];
218
- return e.forEach((a, r) => {
219
- const i = P(a, r), o = a[n.childrenColumnName] || [], p = a.isLeaf === !0, d = o.length > 0 || !p && !!n.loadMore, h = ee.value.includes(i), s = l ? l.level + 1 : 0, v = {
220
- record: a,
221
- index: r,
222
- key: i,
223
- level: s,
224
- hasChildren: d,
225
- expanded: h,
261
+ return e.forEach((n, s) => {
262
+ const o = P(n, s), i = n[a.childrenColumnName] || [], y = n.isLeaf === !0, f = i.length > 0 || !y && !!a.loadMore, v = se.value.includes(o), r = l ? l.level + 1 : 0, m = {
263
+ record: n,
264
+ index: s,
265
+ key: o,
266
+ level: r,
267
+ hasChildren: f,
268
+ expanded: v,
226
269
  parent: l,
227
- loading: ye.value.has(i)
270
+ loading: me.value.has(o)
228
271
  };
229
- t.push(v), h && o.length > 0 && t.push(...Le(o, v));
272
+ t.push(m), v && i.length > 0 && t.push(...Ae(i, m));
230
273
  }), t;
231
274
  }
232
- const T = y(() => n.treeData ? Le(A.value) : A.value.map((e, l) => ({
275
+ const M = p(() => a.treeData ? Ae(O.value) : O.value.map((e, l) => ({
233
276
  record: e,
234
277
  index: l,
235
278
  key: P(e, l),
@@ -237,626 +280,743 @@ const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It
237
280
  hasChildren: !1,
238
281
  expanded: !1
239
282
  })));
240
- se(
241
- () => T.value.length,
283
+ W(
284
+ () => M.value.length,
242
285
  () => {
243
- n.virtualListProps && Pt(() => xe());
286
+ a.virtualListProps && Gt(() => _e());
244
287
  }
245
288
  );
246
- const W = y(() => fe.value === "small" ? 40 : fe.value === "large" ? 56 : 48), nt = y(() => n.virtualListProps ? typeof n.virtualListProps.height == "number" ? n.virtualListProps.height : parseInt(n.virtualListProps.height) : 0);
247
- y(() => T.value.length * W.value);
248
- const Me = y(() => {
249
- if (!n.virtualListProps)
250
- return T.value;
251
- const e = n.virtualListProps.buffer ?? 5, l = Math.max(0, Z.value - e), t = Math.min(T.value.length, Re.value + e);
252
- return T.value.slice(l, t).map((a, r) => ({
253
- ...a,
254
- _virtualIndex: l + r
289
+ const G = p(() => ke.value === "small" ? 40 : ke.value === "large" ? 56 : 48), pt = p(() => a.virtualListProps ? typeof a.virtualListProps.height == "number" ? a.virtualListProps.height : parseInt(a.virtualListProps.height) : 0);
290
+ p(() => M.value.length * G.value);
291
+ const Be = p(() => {
292
+ if (!a.virtualListProps)
293
+ return M.value;
294
+ const e = a.virtualListProps.buffer ?? 5, l = Math.max(0, ae.value - e), t = Math.min(M.value.length, Ee.value + e);
295
+ return M.value.slice(l, t).map((n, s) => ({
296
+ ...n,
297
+ _virtualIndex: l + s
255
298
  }));
256
- }), Pe = y(() => {
257
- if (!n.virtualListProps) return 0;
258
- const e = n.virtualListProps.buffer ?? 5;
259
- return Math.max(0, Z.value - e) * W.value;
260
- }), ze = y(() => {
261
- if (!n.virtualListProps) return 0;
262
- const e = n.virtualListProps.buffer ?? 5, l = Math.max(0, Z.value - e);
263
- return (T.value.length - Me.value.length - l) * W.value;
264
- }), te = y(() => V.value), X = y(() => U.value), z = y(() => {
265
- if (n.virtualListProps) return Me.value;
266
- if (!B.value) return T.value;
267
- const e = (te.value - 1) * X.value;
268
- return T.value.slice(e, e + X.value);
269
- }), le = y(() => {
270
- let e = x.value.length;
271
- return n.rowSelection && e++, (n.expandable || n.treeData) && e++, n.draggable && e++, e;
272
- }), rt = y(() => {
299
+ }), He = p(() => {
300
+ if (!a.virtualListProps) return 0;
301
+ const e = a.virtualListProps.buffer ?? 5;
302
+ return Math.max(0, ae.value - e) * G.value;
303
+ }), Fe = p(() => {
304
+ if (!a.virtualListProps) return 0;
305
+ const e = a.virtualListProps.buffer ?? 5, l = Math.max(0, ae.value - e);
306
+ return (M.value.length - Be.value.length - l) * G.value;
307
+ }), oe = p(() => X.value), U = p(() => ee.value), z = p(() => {
308
+ if (a.virtualListProps) return Be.value;
309
+ if (!H.value) return M.value;
310
+ const e = (oe.value - 1) * U.value;
311
+ return M.value.slice(e, e + U.value);
312
+ }), gt = p(() => F.value), vt = p(() => typeof ot.loading == "function"), ht = p(() => F.value && vt.value);
313
+ function kt(e, l) {
314
+ const t = B.value[e.key] || e.width;
315
+ if (typeof t == "number")
316
+ return `${Math.round(Math.max(36, Math.min(180, t * 0.6)))}px`;
317
+ if (typeof t == "string") {
318
+ const o = Number.parseFloat(t);
319
+ if (Number.isFinite(o))
320
+ return t.trim().endsWith("%") ? `${Math.max(28, Math.min(82, Math.round(o * 0.6)))}%` : `${Math.round(Math.max(36, Math.min(180, o * 0.6)))}px`;
321
+ }
322
+ const n = `${e.key}-${l}`;
323
+ let s = 0;
324
+ for (let o = 0; o < n.length; o += 1)
325
+ s = (s + n.charCodeAt(o)) % 997;
326
+ return `${34 + s % 28}%`;
327
+ }
328
+ const ie = p(() => {
329
+ let e = b.value.length;
330
+ return a.rowSelection && e++, (a.expandable || a.treeData) && e++, a.draggable && e++, e;
331
+ }), bt = p(() => {
273
332
  var e;
274
- return { minWidth: O((e = n.scroll) == null ? void 0 : e.x) };
275
- }), it = y(() => {
333
+ return { minWidth: V((e = a.scroll) == null ? void 0 : e.x) };
334
+ }), mt = p(() => {
276
335
  var l, t;
277
336
  const e = {};
278
- return (l = n.scroll) != null && l.y && (e.maxHeight = O((t = n.scroll) == null ? void 0 : t.y)), n.virtualListProps && (e.height = O(n.virtualListProps.height), e.overflow = "auto"), e;
279
- }), he = y(() => x.value.some((e) => e.fixed === "left")), st = y(() => x.value.some((e) => e.fixed === "right")), Ee = y(() => {
337
+ return (l = a.scroll) != null && l.y && (e.maxHeight = V((t = a.scroll) == null ? void 0 : t.y)), a.virtualListProps && (e.height = V(a.virtualListProps.height), e.overflow = "auto"), e;
338
+ }), we = p(() => b.value.some((e) => e.fixed === "left")), xt = p(() => b.value.some((e) => e.fixed === "right")), Oe = p(() => {
280
339
  const e = {}, l = {};
281
340
  let t = 0;
282
- he.value && (n.draggable && (t += 40), (n.expandable || n.treeData) && (t += 52), n.rowSelection && (t += 52));
283
- let a = 0;
284
- return x.value.forEach((r) => {
285
- r.fixed === "left" && (e[r.key] = t, t += ue(H.value[r.key] || r.width));
286
- }), [...x.value].reverse().forEach((r) => {
287
- r.fixed === "right" && (l[r.key] = a, a += ue(H.value[r.key] || r.width));
341
+ we.value && (a.draggable && (t += 40), (a.expandable || a.treeData) && (t += 52), a.rowSelection && (t += 52));
342
+ let n = 0;
343
+ return b.value.forEach((s) => {
344
+ s.fixed === "left" && (e[s.key] = t, t += ge(B.value[s.key] || s.width));
345
+ }), [...b.value].reverse().forEach((s) => {
346
+ s.fixed === "right" && (l[s.key] = n, n += ge(B.value[s.key] || s.width));
288
347
  }), { left: e, right: l };
289
- }), ae = y(() => {
290
- if (n.virtualListProps) return T.value.map((l) => l.key);
291
- if (!B.value) return T.value.map((l) => l.key);
292
- const e = (te.value - 1) * X.value;
293
- return T.value.slice(e, e + X.value).map((l) => l.key);
294
- }), ge = y(
295
- () => !!(n.rowSelection && n.rowSelection.type !== "radio" && ae.value.length && ae.value.every((e) => N.value.includes(e)))
296
- ), ot = y(
297
- () => ae.value.some((e) => N.value.includes(e)) && !ge.value
348
+ }), re = p(() => {
349
+ if (a.virtualListProps) return M.value.map((l) => l.key);
350
+ if (!H.value) return M.value.map((l) => l.key);
351
+ const e = (oe.value - 1) * U.value;
352
+ return M.value.slice(e, e + U.value).map((l) => l.key);
353
+ }), Se = p(
354
+ () => !!(a.rowSelection && a.rowSelection.type !== "radio" && re.value.length && re.value.every((e) => N.value.includes(e)))
355
+ ), wt = p(
356
+ () => re.value.some((e) => N.value.includes(e)) && !Se.value
298
357
  );
299
- function ut(e, l) {
300
- return typeof n.rowClass == "function" ? n.rowClass(e, l) : n.rowClass;
358
+ function St(e, l) {
359
+ return typeof a.rowClass == "function" ? a.rowClass(e, l) : a.rowClass;
301
360
  }
302
- function ve(e, l = !1) {
303
- const t = H.value[e.key] || e.width, a = {
361
+ function ue(e, l = !1) {
362
+ const t = B.value[e.key] || e.width, n = {
304
363
  textAlign: e.align || "left",
305
- width: O(t),
306
- minWidth: O(e.minWidth || t),
307
- maxWidth: O(e.maxWidth)
364
+ width: V(t),
365
+ minWidth: V(e.minWidth || t),
366
+ maxWidth: V(e.maxWidth)
308
367
  };
309
- return e.fixed === "left" && (a.position = "sticky", a.left = `${Ee.value.left[e.key] ?? 0}px`, a.zIndex = l ? "5" : "3"), e.fixed === "right" && (a.position = "sticky", a.right = `${Ee.value.right[e.key] ?? 0}px`, a.zIndex = l ? "5" : "3"), a;
368
+ return e.fixed === "left" && (n.position = "sticky", n.left = `${Oe.value.left[e.key] ?? 0}px`, n.zIndex = l ? "5" : "3"), e.fixed === "right" && (n.position = "sticky", n.right = `${Oe.value.right[e.key] ?? 0}px`, n.zIndex = l ? "5" : "3"), n;
310
369
  }
311
- function _(e, l = !1) {
312
- if (!he.value && e !== "drag") return;
370
+ function T(e, l = !1) {
371
+ if (!we.value && e !== "drag") return;
313
372
  let t = 0;
314
- return e === "drag" && n.draggable ? t = 0 : e === "expand" ? t = n.draggable ? 40 : 0 : e === "selection" && (t = (n.draggable ? 40 : 0) + (n.expandable || n.treeData ? 52 : 0)), {
373
+ return e === "drag" && a.draggable ? t = 0 : e === "expand" ? t = a.draggable ? 40 : 0 : e === "selection" && (t = (a.draggable ? 40 : 0) + (a.expandable || a.treeData ? 52 : 0)), {
315
374
  position: "sticky",
316
375
  left: `${t}px`,
317
376
  zIndex: l ? "6" : "4"
318
377
  };
319
378
  }
320
- function Ke(e) {
379
+ function Ve(e) {
321
380
  if (!e.sorter) return;
322
- const l = D.value.key !== e.key ? "ascend" : D.value.order === "ascend" ? "descend" : D.value.order === "descend" ? null : "ascend";
323
- D.value = { key: e.key, order: l }, b("sort", e.key, l), b("change", A.value, { type: "sort", sorter: { field: e.key, order: l } });
381
+ const l = R.value.key !== e.key ? "ascend" : R.value.order === "ascend" ? "descend" : R.value.order === "descend" ? null : "ascend";
382
+ R.value = { key: e.key, order: l }, S("sort", e.key, l), S("change", O.value, { type: "sort", sorter: { field: e.key, order: l } });
324
383
  }
325
- function ne(e, l) {
384
+ function de(e, l) {
326
385
  E.value = {
327
386
  ...E.value,
328
387
  [l]: e
329
- }, V.value = 1, b("filter", E.value), b("change", A.value, { type: "filter", filters: E.value });
388
+ }, X.value = 1, S("filter", E.value), S("change", O.value, { type: "filter", filters: E.value });
330
389
  }
331
- function re(e) {
332
- var t, a, r;
333
- ((t = n.rowSelection) == null ? void 0 : t.selectedRowKeys) === void 0 && (pe.value = e), b("update:selectedRowKeys", e);
334
- const l = n.data.filter((i, o) => e.includes(P(i, o)));
335
- b("select", e, l), (r = (a = n.rowSelection) == null ? void 0 : a.onChange) == null || r.call(a, e, l);
390
+ function ce(e) {
391
+ var t, n, s;
392
+ ((t = a.rowSelection) == null ? void 0 : t.selectedRowKeys) === void 0 && (be.value = e), S("update:selectedRowKeys", e);
393
+ const l = a.data.filter((o, i) => e.includes(P(o, i)));
394
+ S("select", e, l), (s = (n = a.rowSelection) == null ? void 0 : n.onChange) == null || s.call(n, e, l);
336
395
  }
337
- function ke(e) {
396
+ function Ce(e) {
338
397
  const l = [];
339
- return (e[n.childrenColumnName] || []).forEach((a, r) => {
340
- const i = P(a, r);
341
- l.push(i), l.push(...ke(a));
398
+ return (e[a.childrenColumnName] || []).forEach((n, s) => {
399
+ const o = P(n, s);
400
+ l.push(o), l.push(...Ce(n));
342
401
  }), l;
343
402
  }
344
- function Ne(e) {
345
- if (!n.treeData) return;
346
- const l = (t, a) => {
347
- for (const r of t) {
348
- const i = r[n.childrenColumnName] || [];
349
- if (i.includes(a)) return r;
350
- const o = l(i, a);
351
- if (o) return o;
403
+ function je(e) {
404
+ if (!a.treeData) return;
405
+ const l = (t, n) => {
406
+ for (const s of t) {
407
+ const o = s[a.childrenColumnName] || [];
408
+ if (o.includes(n)) return s;
409
+ const i = l(o, n);
410
+ if (i) return i;
352
411
  }
353
412
  };
354
- return l(n.data, e);
413
+ return l(a.data, e);
355
414
  }
356
- function dt(e, l, t) {
357
- var i, o, p;
358
- const a = P(e, l);
359
- if ((i = n.rowSelection) != null && i.getCheckboxProps && n.rowSelection.getCheckboxProps(e).disabled)
415
+ function Ct(e, l, t) {
416
+ var o, i, y;
417
+ const n = P(e, l);
418
+ if ((o = a.rowSelection) != null && o.getCheckboxProps && a.rowSelection.getCheckboxProps(e).disabled)
360
419
  return;
361
- if (((o = n.rowSelection) == null ? void 0 : o.type) === "radio") {
362
- re(t ? [a] : []);
420
+ if (((i = a.rowSelection) == null ? void 0 : i.type) === "radio") {
421
+ ce(t ? [n] : []);
363
422
  return;
364
423
  }
365
- const r = ((p = n.rowSelection) == null ? void 0 : p.checkStrictly) !== !1;
366
- if (n.treeData && r) {
367
- let d = new Set(N.value);
368
- t ? (d.add(a), ke(e).forEach((v) => d.add(v))) : (d.delete(a), ke(e).forEach((v) => d.delete(v)));
369
- let h = Ne(e);
370
- for (; h; ) {
371
- const s = P(h, n.data.indexOf(h));
372
- (h[n.childrenColumnName] || []).every((Ge) => {
373
- const Tt = P(Ge, n.data.indexOf(Ge));
374
- return d.has(Tt);
375
- }) ? d.add(s) : d.delete(s), h = Ne(h);
424
+ const s = ((y = a.rowSelection) == null ? void 0 : y.checkStrictly) !== !1;
425
+ if (a.treeData && s) {
426
+ let f = new Set(N.value);
427
+ t ? (f.add(n), Ce(e).forEach((m) => f.add(m))) : (f.delete(n), Ce(e).forEach((m) => f.delete(m)));
428
+ let v = je(e);
429
+ for (; v; ) {
430
+ const r = P(v, a.data.indexOf(v));
431
+ (v[a.childrenColumnName] || []).every((tt) => {
432
+ const Vt = P(tt, a.data.indexOf(tt));
433
+ return f.has(Vt);
434
+ }) ? f.add(r) : f.delete(r), v = je(v);
376
435
  }
377
- re([...d]);
436
+ ce([...f]);
378
437
  } else {
379
- const d = t ? [.../* @__PURE__ */ new Set([...N.value, a])] : N.value.filter((h) => h !== a);
380
- re(d);
438
+ const f = t ? [.../* @__PURE__ */ new Set([...N.value, n])] : N.value.filter((v) => v !== n);
439
+ ce(f);
381
440
  }
382
441
  }
383
- function _e(e) {
384
- const l = ae.value, t = e ? [.../* @__PURE__ */ new Set([...N.value, ...l])] : N.value.filter((a) => !l.includes(a));
385
- re(t), b("selectAll", t, z.value.map((a) => a.record));
442
+ function We(e) {
443
+ const l = re.value, t = e ? [.../* @__PURE__ */ new Set([...N.value, ...l])] : N.value.filter((n) => !l.includes(n));
444
+ ce(t), S("selectAll", t, z.value.map((n) => n.record));
386
445
  }
387
- function Be(e) {
388
- e instanceof HTMLInputElement && (e.indeterminate = ot.value);
446
+ function Xe(e) {
447
+ e instanceof HTMLInputElement && (e.indeterminate = wt.value);
389
448
  }
390
- function I(e, l) {
391
- return ee.value.includes(P(e, l));
449
+ function J(e, l) {
450
+ return se.value.includes(P(e, l));
392
451
  }
393
- function He(e) {
394
- if (n.treeData) {
395
- const l = e[n.childrenColumnName] || [], t = e.isLeaf === !0;
396
- return l.length > 0 || n.loadMore && !t;
452
+ function Ie(e) {
453
+ if (a.treeData) {
454
+ const l = e[a.childrenColumnName] || [], t = e.isLeaf === !0;
455
+ return l.length > 0 || a.loadMore && !t;
397
456
  }
398
- return n.expandable ? n.expandable.rowExpandable ? n.expandable.rowExpandable(e) : !!(n.expandable.expandedRowRender || !0) : !1;
457
+ return a.expandable ? a.expandable.rowExpandable ? a.expandable.rowExpandable(e) : !!(a.expandable.expandedRowRender || !0) : !1;
399
458
  }
400
- function ct(e, l) {
401
- var o;
402
- if (!He(e)) return;
403
- const t = P(e, l), a = e[n.childrenColumnName] || [], r = e.isLeaf === !0;
404
- n.loadMore && a.length === 0 && !r && !I(e, l) && (ye.value.add(t), n.loadMore(e, (p) => {
405
- ye.value.delete(t), p && p.length > 0 && (e[n.childrenColumnName] = p);
459
+ function $t(e, l) {
460
+ var i;
461
+ if (!Ie(e)) return;
462
+ const t = P(e, l), n = e[a.childrenColumnName] || [], s = e.isLeaf === !0;
463
+ a.loadMore && n.length === 0 && !s && !J(e, l) && (me.value.add(t), a.loadMore(e, (y) => {
464
+ me.value.delete(t), y && y.length > 0 && (e[a.childrenColumnName] = y);
406
465
  }));
407
- const i = I(e, l) ? ee.value.filter((p) => p !== t) : [...ee.value, t];
408
- ((o = n.expandable) == null ? void 0 : o.expandedRowKeys) === void 0 && (q.value = i), b("update:expandedRowKeys", i), b("expand", i, t);
466
+ const o = J(e, l) ? se.value.filter((y) => y !== t) : [...se.value, t];
467
+ ((i = a.expandable) == null ? void 0 : i.expandedRowKeys) === void 0 && (te.value = o), S("update:expandedRowKeys", o), S("expand", o, t);
409
468
  }
410
- function Ae(e, l) {
411
- V.value = e, U.value = l, b("pageChange", e, l), b("pageSizeChange", l), b("change", A.value, { type: "pagination" });
469
+ function Ge(e, l) {
470
+ X.value = e, ee.value = l, S("pageChange", e, l), S("pageSizeChange", l), S("change", O.value, { type: "pagination" });
412
471
  }
413
- function Fe(e, l) {
414
- l.preventDefault(), l.stopPropagation(), Q.value = e;
415
- const t = l.clientX, a = x.value.find((p) => p.key === e), r = H.value[e] || ue(a == null ? void 0 : a.width), i = (p) => {
416
- const d = p.clientX - t, h = Math.max(60, r + d);
417
- H.value = { ...H.value, [e]: h };
418
- }, o = () => {
419
- Q.value = null, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", o), b("resizeColumn", e, H.value[e]);
472
+ function Ue(e, l) {
473
+ l.preventDefault(), l.stopPropagation(), le.value = e;
474
+ const t = l.clientX, n = b.value.find((y) => y.key === e), s = B.value[e] || ge(n == null ? void 0 : n.width), o = (y) => {
475
+ const f = y.clientX - t, v = Math.max(60, s + f);
476
+ B.value = { ...B.value, [e]: v };
477
+ }, i = () => {
478
+ le.value = null, document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", i), S("resizeColumn", e, B.value[e]);
420
479
  };
421
- document.addEventListener("mousemove", i), document.addEventListener("mouseup", o);
480
+ document.addEventListener("mousemove", o), document.addEventListener("mouseup", i);
422
481
  }
423
- function be(e, l, t, a) {
424
- if (n.spanMethod) {
425
- const p = n.spanMethod({ record: t, column: a, rowIndex: e, columnIndex: l });
426
- if (p)
482
+ function $e(e, l, t, n) {
483
+ if (a.spanMethod) {
484
+ const y = a.spanMethod({ record: t, column: n, rowIndex: e, columnIndex: l });
485
+ if (y)
427
486
  return {
428
- rowspan: p.rowspan ?? 1,
429
- colspan: p.colspan ?? 1,
487
+ rowspan: y.rowspan ?? 1,
488
+ colspan: y.colspan ?? 1,
430
489
  skip: !1
431
490
  };
432
491
  }
433
- const r = `${e}-${a.key}`, i = pt.value.get(r), o = je.value.get(r);
434
- return !i && !o ? { rowspan: 1, colspan: 1, skip: !1 } : {
435
- rowspan: (i == null ? void 0 : i.rowspan) ?? (o == null ? void 0 : o.rowspan) ?? 1,
436
- colspan: (o == null ? void 0 : o.colspan) ?? (i == null ? void 0 : i.colspan) ?? 1,
437
- skip: ((i == null ? void 0 : i.skip) ?? !1) || ((o == null ? void 0 : o.skip) ?? !1)
492
+ const s = `${e}-${n.key}`, o = Rt.value.get(s), i = qe.value.get(s);
493
+ return !o && !i ? { rowspan: 1, colspan: 1, skip: !1 } : {
494
+ rowspan: (o == null ? void 0 : o.rowspan) ?? (i == null ? void 0 : i.rowspan) ?? 1,
495
+ colspan: (i == null ? void 0 : i.colspan) ?? (o == null ? void 0 : o.colspan) ?? 1,
496
+ skip: ((o == null ? void 0 : o.skip) ?? !1) || ((i == null ? void 0 : i.skip) ?? !1)
438
497
  };
439
498
  }
440
- function Oe(e, l) {
441
- const t = je.value.get(`${e}-${l.key}`);
499
+ function Je(e, l) {
500
+ const t = qe.value.get(`${e}-${l.key}`);
442
501
  return !!(t && !t.skip && t.colspan > 1);
443
502
  }
444
- function ft(e, l) {
445
- if (Oe(e, l))
503
+ function _t(e, l) {
504
+ if (Je(e, l))
446
505
  return { textAlign: "center" };
447
506
  }
448
- const pt = y(() => {
507
+ const Rt = p(() => {
449
508
  var t;
450
509
  const e = /* @__PURE__ */ new Map();
451
- return !((t = n.autoMergeColumns) != null && t.length) || !z.value.length || n.autoMergeColumns.filter(
452
- (a) => x.value.some((r) => r.key === a)
453
- ).forEach((a) => {
454
- const r = x.value.find((d) => d.key === a);
455
- if (!r) return;
456
- let i = 0, o = R(z.value[0].record, r), p = 1;
457
- for (let d = 1; d <= z.value.length; d++) {
458
- const h = d < z.value.length ? R(z.value[d].record, r) : void 0;
459
- if (me(o, h))
460
- p++;
510
+ return !((t = a.autoMergeColumns) != null && t.length) || !z.value.length || a.autoMergeColumns.filter(
511
+ (n) => b.value.some((s) => s.key === n)
512
+ ).forEach((n) => {
513
+ const s = b.value.find((f) => f.key === n);
514
+ if (!s) return;
515
+ let o = 0, i = _(z.value[0].record, s), y = 1;
516
+ for (let f = 1; f <= z.value.length; f++) {
517
+ const v = f < z.value.length ? _(z.value[f].record, s) : void 0;
518
+ if (De(i, v))
519
+ y++;
461
520
  else {
462
- for (let s = 0; s < p; s++) {
463
- const v = i + s;
464
- e.set(`${v}-${a}`, {
465
- rowspan: s === 0 ? p : 0,
521
+ for (let r = 0; r < y; r++) {
522
+ const m = o + r;
523
+ e.set(`${m}-${n}`, {
524
+ rowspan: r === 0 ? y : 0,
466
525
  colspan: 1,
467
- skip: s !== 0
526
+ skip: r !== 0
468
527
  });
469
528
  }
470
- i = d, o = h, p = 1;
529
+ o = f, i = v, y = 1;
471
530
  }
472
531
  }
473
532
  }), e;
474
- }), je = y(() => {
533
+ }), qe = p(() => {
475
534
  const e = /* @__PURE__ */ new Map();
476
- return !n.autoMergeRows || !z.value.length || z.value.forEach((l, t) => {
477
- let a;
478
- if (n.autoMergeRows === !0)
479
- a = x.value;
480
- else if (Array.isArray(n.autoMergeRows)) {
481
- const p = n.autoMergeRows;
482
- a = x.value.filter((d) => p.includes(d.key));
535
+ return !a.autoMergeRows || !z.value.length || z.value.forEach((l, t) => {
536
+ let n;
537
+ if (a.autoMergeRows === !0)
538
+ n = b.value;
539
+ else if (Array.isArray(a.autoMergeRows)) {
540
+ const y = a.autoMergeRows;
541
+ n = b.value.filter((f) => y.includes(f.key));
483
542
  } else
484
543
  return;
485
- if (a.length < 2) return;
486
- let r = 0, i = R(l.record, a[0]), o = 1;
487
- for (let p = 1; p <= a.length; p++) {
488
- const d = a[p], h = d ? R(l.record, d) : void 0;
489
- if (me(i, h))
490
- o++;
544
+ if (n.length < 2) return;
545
+ let s = 0, o = _(l.record, n[0]), i = 1;
546
+ for (let y = 1; y <= n.length; y++) {
547
+ const f = n[y], v = f ? _(l.record, f) : void 0;
548
+ if (De(o, v))
549
+ i++;
491
550
  else {
492
- for (let s = 0; s < o; s++) {
493
- const v = a[r + s].key;
494
- e.set(`${t}-${v}`, {
551
+ for (let r = 0; r < i; r++) {
552
+ const m = n[s + r].key;
553
+ e.set(`${t}-${m}`, {
495
554
  rowspan: 1,
496
- colspan: s === 0 ? o : 0,
497
- skip: s !== 0
555
+ colspan: r === 0 ? i : 0,
556
+ skip: r !== 0
498
557
  });
499
558
  }
500
- r = p, i = h, o = 1;
559
+ s = y, o = v, i = 1;
501
560
  }
502
561
  }
503
562
  }), e;
504
563
  });
505
- function yt() {
506
- if (n.stickyHeader === !1 || n.stickyHeader === void 0 || n.stickyHeader === null || !j.value || !Ce.value)
564
+ function Dt() {
565
+ if (a.stickyHeader === !1 || a.stickyHeader === void 0 || a.stickyHeader === null || !j.value || !Le.value)
507
566
  return;
508
- const l = j.value.scrollTop, t = typeof n.stickyHeader == "number" ? n.stickyHeader : 0;
509
- Y.value = l > t;
567
+ const l = j.value.scrollTop, t = typeof a.stickyHeader == "number" ? a.stickyHeader : 0;
568
+ ne.value = l > t;
510
569
  }
511
- function xe() {
512
- if (!n.virtualListProps || !j.value) return;
570
+ function _e() {
571
+ if (!a.virtualListProps || !j.value) return;
513
572
  const e = j.value;
514
- $e.value = e.scrollTop;
515
- const l = Math.floor($e.value / W.value), t = Math.ceil(nt.value / W.value);
516
- Z.value = l, Re.value = Math.min(l + t, T.value.length);
573
+ Ke.value = e.scrollTop;
574
+ const l = Math.floor(Ke.value / G.value), t = Math.ceil(pt.value / G.value);
575
+ ae.value = l, Ee.value = Math.min(l + t, M.value.length);
517
576
  }
518
- function ht() {
519
- yt(), xe();
577
+ function Mt() {
578
+ Dt(), _e();
520
579
  }
521
- function gt(e, l) {
522
- n.draggable && (K.value.isDragging = !0, K.value.dragIndex = e, l.dataTransfer && (l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData("text/plain", String(e))));
580
+ function Lt(e, l) {
581
+ a.draggable && (K.value.isDragging = !0, K.value.dragIndex = e, l.dataTransfer && (l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData("text/plain", String(e))));
523
582
  }
524
- function vt(e, l) {
525
- !n.draggable || !K.value.isDragging || (l.preventDefault(), K.value.dropIndex = e);
583
+ function Tt(e, l) {
584
+ !a.draggable || !K.value.isDragging || (l.preventDefault(), K.value.dropIndex = e);
526
585
  }
527
- function kt(e, l) {
528
- if (!n.draggable) return;
586
+ function Pt(e, l) {
587
+ if (!a.draggable) return;
529
588
  l.preventDefault();
530
- const t = K.value.dragIndex, a = e;
531
- if (t !== a && t >= 0) {
532
- const r = [...n.data], [i] = r.splice(t, 1);
533
- r.splice(a, 0, i), b("drag", t, a, r);
589
+ const t = K.value.dragIndex, n = e;
590
+ if (t !== n && t >= 0) {
591
+ const s = [...a.data], [o] = s.splice(t, 1);
592
+ s.splice(n, 0, o), S("drag", t, n, s);
534
593
  }
535
594
  K.value = { isDragging: !1, dragIndex: -1, dropIndex: -1 };
536
595
  }
537
- function bt() {
596
+ function zt() {
538
597
  K.value = { isDragging: !1, dragIndex: -1, dropIndex: -1 };
539
598
  }
540
- function xt(e, l) {
599
+ function Et(e, l) {
541
600
  if (e.ellipsis && !(typeof e.ellipsis == "object" && e.ellipsis.tooltip === !1))
542
- return String(R(l, e) ?? "");
601
+ return String(_(l, e) ?? "");
543
602
  }
544
- function wt(e) {
603
+ function Kt(e) {
545
604
  return e.some((l) => l.children && l.children.length > 0);
546
605
  }
547
- function mt(e) {
606
+ function Nt(e) {
548
607
  const l = [];
549
- function t(i) {
550
- let o = 0;
551
- return i.forEach((p) => {
552
- p.children && p.children.length > 0 && (o = Math.max(o, 1 + t(p.children)));
553
- }), o;
608
+ function t(o) {
609
+ let i = 0;
610
+ return o.forEach((y) => {
611
+ y.children && y.children.length > 0 && (i = Math.max(i, 1 + t(y.children)));
612
+ }), i;
554
613
  }
555
- const a = t(e);
556
- function r(i, o) {
557
- l[o] || (l[o] = []), i.forEach((p) => {
558
- if (p.children && p.children.length > 0) {
559
- const d = Ve(p.children);
560
- l[o].push({ columns: [p], rowSpan: 1, colSpan: d }), r(p.children, o + 1);
614
+ const n = t(e);
615
+ function s(o, i) {
616
+ l[i] || (l[i] = []), o.forEach((y) => {
617
+ if (y.children && y.children.length > 0) {
618
+ const f = Qe(y.children);
619
+ l[i].push({ columns: [y], rowSpan: 1, colSpan: f }), s(y.children, i + 1);
561
620
  } else
562
- l[o].push({ columns: [p], rowSpan: a - o + 1, colSpan: 1 });
621
+ l[i].push({ columns: [y], rowSpan: n - i + 1, colSpan: 1 });
563
622
  });
564
623
  }
565
- return r(e, 0), l;
624
+ return s(e, 0), l;
566
625
  }
567
- function Ve(e) {
626
+ function Qe(e) {
568
627
  let l = 0;
569
628
  return e.forEach((t) => {
570
- t.children && t.children.length > 0 ? l += Ve(t.children) : l++;
629
+ t.children && t.children.length > 0 ? l += Qe(t.children) : l++;
571
630
  }), l;
572
631
  }
573
- const St = y(() => wt(de.value)), ie = y(() => mt(de.value));
574
- function Ct() {
632
+ const At = p(() => Kt(ve.value)), fe = p(() => Nt(ve.value));
633
+ function Bt() {
575
634
  var e;
576
- if (!n.summary) return [];
577
- if (n.summary === !0) {
578
- const l = { [n.rowKey]: "summary" };
579
- return x.value.forEach((t) => {
635
+ if (!a.summary) return [];
636
+ if (a.summary === !0) {
637
+ const l = { [a.rowKey]: "summary" };
638
+ return b.value.forEach((t) => {
580
639
  if (t.dataIndex) {
581
- const a = A.value.reduce((r, i) => {
582
- const o = Number(R(i, t));
583
- return r + (isNaN(o) ? 0 : o);
640
+ const n = O.value.reduce((s, o) => {
641
+ const i = Number(_(o, t));
642
+ return s + (isNaN(i) ? 0 : i);
584
643
  }, 0);
585
- l[t.dataIndex] = a;
644
+ l[t.dataIndex] = n;
586
645
  }
587
- }), l[(e = x.value[0]) == null ? void 0 : e.dataIndex] = n.summaryText, [l];
646
+ }), l[(e = b.value[0]) == null ? void 0 : e.dataIndex] = a.summaryText, [l];
588
647
  }
589
- return n.summary({ columns: x.value, data: A.value });
648
+ return a.summary({ columns: b.value, data: O.value });
590
649
  }
591
- function Rt(e) {
650
+ function Ht(e) {
592
651
  return !!(e.tooltip || typeof e.ellipsis == "object" && e.ellipsis.tooltip);
593
652
  }
594
- function $t(e) {
653
+ function Ft(e) {
595
654
  return typeof e.tooltip == "object" ? e.tooltip.position || "top" : typeof e.ellipsis == "object" && typeof e.ellipsis.tooltip == "object" && e.ellipsis.tooltip.position || "top";
596
655
  }
597
- function We(e) {
656
+ function Ye(e) {
598
657
  var l;
599
- return (l = n.rowSelection) != null && l.getCheckboxProps ? n.rowSelection.getCheckboxProps(e).disabled ?? !1 : !1;
658
+ return (l = a.rowSelection) != null && l.getCheckboxProps ? a.rowSelection.getCheckboxProps(e).disabled ?? !1 : !1;
600
659
  }
601
- return (e, l) => (u(), c("div", {
602
- class: L(["x-table", [
603
- `x-table--${fe.value}`,
660
+ return (e, l) => (u(), d("div", {
661
+ class: D(["x-table", [
662
+ `x-table--${ke.value}`,
604
663
  {
605
- "is-bordered": lt.value,
606
- "is-bordered-cell": De.value,
607
- "is-stripe": f.stripe,
608
- "is-loading": f.loading,
609
- "is-hoverable": f.hoverable,
610
- "has-fixed-column": he.value || st.value,
611
- "is-sticky-header": Y.value
664
+ "is-bordered": ft.value,
665
+ "is-bordered-cell": xe.value,
666
+ "is-stripe": c.stripe,
667
+ "is-loading": F.value,
668
+ "is-hoverable": c.hoverable,
669
+ "has-fixed-column": we.value || xt.value,
670
+ "is-sticky-header": ne.value
612
671
  }
613
672
  ]])
614
673
  }, [
615
- w("div", {
674
+ h("div", {
616
675
  ref_key: "tableContainerRef",
617
676
  ref: j,
618
677
  class: "x-table__container",
619
- style: m(it.value),
620
- onScroll: ht
678
+ style: k(mt.value),
679
+ onScroll: Mt
621
680
  }, [
622
- w("table", {
623
- style: m(rt.value)
681
+ h("table", {
682
+ style: k(bt.value)
624
683
  }, [
625
- f.showHeader ? (u(), c("thead", {
684
+ c.showHeader ? (u(), d("thead", {
626
685
  key: 0,
627
686
  ref_key: "tableHeaderRef",
628
- ref: Ce,
629
- class: L({ "is-sticky": Y.value }),
630
- style: m(Y.value ? { top: f.stickyOffsetTop + "px" } : {})
687
+ ref: Le,
688
+ class: D({ "is-sticky": ne.value }),
689
+ style: k(ne.value ? { top: c.stickyOffsetTop + "px" } : {})
631
690
  }, [
632
- St.value ? (u(!0), c(S, { key: 0 }, F(ie.value, (t, a) => (u(), c("tr", { key: a }, [
633
- a === 0 && f.draggable ? (u(), c("th", {
691
+ At.value ? (u(!0), d(x, { key: 0 }, A(fe.value, (t, n) => (u(), d("tr", { key: n }, [
692
+ n === 0 && c.draggable ? (u(), d("th", {
634
693
  key: 0,
635
- rowspan: ie.value.length,
694
+ rowspan: fe.value.length,
636
695
  class: "x-table__drag-col x-table__sticky-helper",
637
- style: m(_("drag", !0))
638
- }, null, 12, jt)) : g("", !0),
639
- a === 0 && (f.expandable || f.treeData) ? (u(), c("th", {
696
+ style: k(T("drag", !0))
697
+ }, null, 12, ll)) : g("", !0),
698
+ n === 0 && (c.expandable || c.treeData) ? (u(), d("th", {
640
699
  key: 1,
641
- rowspan: ie.value.length,
700
+ rowspan: fe.value.length,
642
701
  class: "x-table__expand-col x-table__sticky-helper",
643
- style: m(_("expand", !0))
702
+ style: k(T("expand", !0))
644
703
  }, [
645
- k(e.$slots, "expand-title", {}, () => {
646
- var r;
704
+ w(e.$slots, "expand-title", {}, () => {
705
+ var s;
647
706
  return [
648
- M(C((r = f.expandable) == null ? void 0 : r.columnTitle), 1)
707
+ L($((s = c.expandable) == null ? void 0 : s.columnTitle), 1)
649
708
  ];
650
709
  }, !0)
651
- ], 12, Vt)) : g("", !0),
652
- a === 0 && f.rowSelection ? (u(), c("th", {
710
+ ], 12, nl)) : g("", !0),
711
+ n === 0 && c.rowSelection ? (u(), d("th", {
653
712
  key: 2,
654
- rowspan: ie.value.length,
713
+ rowspan: fe.value.length,
655
714
  class: "x-table__selection-col x-table__sticky-helper",
656
- style: m(_("selection", !0))
715
+ style: k(T("selection", !0))
657
716
  }, [
658
- f.rowSelection.type !== "radio" && f.rowSelection.showCheckedAll !== !1 ? (u(), c("input", {
717
+ c.rowSelection.type !== "radio" && c.rowSelection.showCheckedAll !== !1 ? (u(), d("input", {
659
718
  key: 0,
660
719
  ref_for: !0,
661
- ref: Be,
720
+ ref: Xe,
662
721
  type: "checkbox",
663
- checked: ge.value,
664
- onChange: l[0] || (l[0] = (r) => _e(r.target.checked))
665
- }, null, 40, Xt)) : f.rowSelection.columnTitle ? (u(), c("span", It, C(f.rowSelection.columnTitle), 1)) : g("", !0)
666
- ], 12, Wt)) : g("", !0),
667
- (u(!0), c(S, null, F(t, ({ columns: r, rowSpan: i, colSpan: o }, p) => (u(), c("th", {
668
- key: `${a}-${p}`,
669
- class: L(["x-table__cell", [r[0].headerClassName, { "is-fixed-left": r[0].fixed === "left", "is-fixed-right": r[0].fixed === "right", "is-bordered": Te.value }]]),
670
- style: m(ve(r[0], !0)),
671
- colspan: o,
672
- rowspan: i,
673
- onClick: (d) => b("headerClick", r[0])
722
+ checked: Se.value,
723
+ onChange: l[0] || (l[0] = (s) => We(s.target.checked))
724
+ }, null, 40, sl)) : c.rowSelection.columnTitle ? (u(), d("span", ol, $(c.rowSelection.columnTitle), 1)) : g("", !0)
725
+ ], 12, al)) : g("", !0),
726
+ (u(!0), d(x, null, A(t, (s, o) => (u(), d("th", {
727
+ key: `${n}-${o}`,
728
+ class: D(["x-table__cell", [s.columns[0].headerClassName, { "is-fixed-left": s.columns[0].fixed === "left", "is-fixed-right": s.columns[0].fixed === "right", "is-bordered": Ne.value }]]),
729
+ style: k(ue(s.columns[0], !0)),
730
+ colspan: s.colSpan,
731
+ rowspan: s.rowSpan,
732
+ onClick: (i) => S("headerClick", s.columns[0])
674
733
  }, [
675
- w("div", {
676
- class: L(["x-table__header-cell", { "filter-left": f.filterIconAlignLeft }])
734
+ h("div", {
735
+ class: D(["x-table__header-cell", { "filter-left": c.filterIconAlignLeft }])
677
736
  }, [
678
- k(e.$slots, `header-${r[0].titleSlotName || r[0].key}`, {
679
- column: r[0],
680
- title: r[0].title
737
+ w(e.$slots, `header-${s.columns[0].titleSlotName || s.columns[0].key}`, {
738
+ column: s.columns[0],
739
+ title: s.columns[0].title
681
740
  }, () => [
682
- r[0].headerCellRender ? (u(), c(S, { key: 0 }, [
683
- M(C(r[0].headerCellRender({ column: r[0], title: r[0].title })), 1)
684
- ], 64)) : (u(), c(S, { key: 1 }, [
685
- M(C(r[0].title), 1)
741
+ s.columns[0].headerCellRender ? (u(), d(x, { key: 0 }, [
742
+ L($(s.columns[0].headerCellRender({ column: s.columns[0], title: s.columns[0].title })), 1)
743
+ ], 64)) : (u(), d(x, { key: 1 }, [
744
+ L($(s.columns[0].title), 1)
686
745
  ], 64))
687
746
  ], !0),
688
- r[0].sorter ? (u(), c("button", {
747
+ s.columns[0].sorter ? (u(), d("button", {
689
748
  key: 0,
690
749
  type: "button",
691
- class: L(["x-table__sorter", { "is-active": D.value.key === r[0].key && D.value.order }]),
692
- "data-order": D.value.key === r[0].key ? D.value.order : null,
693
- onClick: oe((d) => Ke(r[0]), ["stop"])
750
+ class: D(["x-table__sorter", { "is-active": R.value.key === s.columns[0].key && R.value.order }]),
751
+ "data-order": R.value.key === s.columns[0].key ? R.value.order : null,
752
+ onClick: ye((i) => Ve(s.columns[0]), ["stop"])
694
753
  }, [...l[4] || (l[4] = [
695
- w("span", { class: "x-table__sort-indicator" }, null, -1)
696
- ])], 10, Jt)) : g("", !0),
697
- k(e.$slots, `filter-${r[0].key}`, {
698
- column: r[0],
699
- filterState: E.value[r[0].key],
700
- setFilter: (d) => ne(d, r[0].key)
754
+ h("span", { class: "x-table__sort-indicator" }, null, -1)
755
+ ])], 10, rl)) : g("", !0),
756
+ w(e.$slots, `filter-${s.columns[0].key}`, {
757
+ column: s.columns[0],
758
+ filterState: E.value[s.columns[0].key],
759
+ setFilter: (i) => de(i, s.columns[0].key)
701
760
  }, () => {
702
- var d;
761
+ var i;
703
762
  return [
704
- (d = r[0].filters) != null && d.length ? (u(), G(Je, {
763
+ (i = s.columns[0].filters) != null && i.length ? (u(), q(lt, {
705
764
  key: 0,
706
- options: r[0].filters,
707
- value: E.value[r[0].key] || [],
708
- multiple: r[0].filterMultiple !== !1,
709
- "column-key": r[0].key,
710
- "align-left": f.filterIconAlignLeft,
711
- onChange: ne
765
+ options: s.columns[0].filters,
766
+ value: E.value[s.columns[0].key] || [],
767
+ multiple: s.columns[0].filterMultiple !== !1,
768
+ "column-key": s.columns[0].key,
769
+ "align-left": c.filterIconAlignLeft,
770
+ onChange: de
712
771
  }, null, 8, ["options", "value", "multiple", "column-key", "align-left"])) : g("", !0)
713
772
  ];
714
773
  }, !0)
715
774
  ], 2),
716
- i > 1 || !r[0].children ? (u(), c("div", {
775
+ s.rowSpan > 1 || !s.columns[0].children ? (u(), d("div", {
717
776
  key: 0,
718
- class: L(["x-table__resize-handle", { "is-resizing": Q.value === r[0].key }]),
719
- onMousedown: (d) => Fe(r[0].key, d)
720
- }, null, 42, Ut)) : g("", !0)
721
- ], 14, Gt))), 128))
722
- ]))), 128)) : (u(), c("tr", qt, [
723
- f.draggable ? (u(), c("th", {
777
+ class: D(["x-table__resize-handle", { "is-resizing": le.value === s.columns[0].key }]),
778
+ onMousedown: (i) => Ue(s.columns[0].key, i)
779
+ }, null, 42, ul)) : g("", !0)
780
+ ], 14, il))), 128))
781
+ ]))), 128)) : (u(), d("tr", dl, [
782
+ c.draggable ? (u(), d("th", {
724
783
  key: 0,
725
784
  class: "x-table__drag-col x-table__sticky-helper",
726
- style: m(_("drag", !0))
785
+ style: k(T("drag", !0))
727
786
  }, null, 4)) : g("", !0),
728
- f.expandable || f.treeData ? (u(), c("th", {
787
+ c.expandable || c.treeData ? (u(), d("th", {
729
788
  key: 1,
730
789
  class: "x-table__expand-col x-table__sticky-helper",
731
- style: m(_("expand", !0))
790
+ style: k(T("expand", !0))
732
791
  }, [
733
- k(e.$slots, "expand-title", {}, () => {
792
+ w(e.$slots, "expand-title", {}, () => {
734
793
  var t;
735
794
  return [
736
- M(C((t = f.expandable) == null ? void 0 : t.columnTitle), 1)
795
+ L($((t = c.expandable) == null ? void 0 : t.columnTitle), 1)
737
796
  ];
738
797
  }, !0)
739
798
  ], 4)) : g("", !0),
740
- f.rowSelection ? (u(), c("th", {
799
+ c.rowSelection ? (u(), d("th", {
741
800
  key: 2,
742
801
  class: "x-table__selection-col x-table__sticky-helper",
743
- style: m(_("selection", !0))
802
+ style: k(T("selection", !0))
744
803
  }, [
745
- f.rowSelection.type !== "radio" && f.rowSelection.showCheckedAll !== !1 ? (u(), c("input", {
804
+ c.rowSelection.type !== "radio" && c.rowSelection.showCheckedAll !== !1 ? (u(), d("input", {
746
805
  key: 0,
747
- ref: Be,
806
+ ref: Xe,
748
807
  type: "checkbox",
749
- checked: ge.value,
750
- onChange: l[1] || (l[1] = (t) => _e(t.target.checked))
751
- }, null, 40, Qt)) : f.rowSelection.columnTitle ? (u(), c("span", Yt, C(f.rowSelection.columnTitle), 1)) : g("", !0)
808
+ checked: Se.value,
809
+ onChange: l[1] || (l[1] = (t) => We(t.target.checked))
810
+ }, null, 40, cl)) : c.rowSelection.columnTitle ? (u(), d("span", fl, $(c.rowSelection.columnTitle), 1)) : g("", !0)
752
811
  ], 4)) : g("", !0),
753
- (u(!0), c(S, null, F(x.value, (t) => (u(), c("th", {
812
+ (u(!0), d(x, null, A(b.value, (t) => (u(), d("th", {
754
813
  key: t.key,
755
- class: L(["x-table__cell", [t.headerClassName, { "is-fixed-left": t.fixed === "left", "is-fixed-right": t.fixed === "right", "is-bordered": Te.value }]]),
756
- style: m(ve(t, !0)),
757
- onClick: (a) => b("headerClick", t)
814
+ class: D(["x-table__cell", [t.headerClassName, { "is-fixed-left": t.fixed === "left", "is-fixed-right": t.fixed === "right", "is-bordered": Ne.value }]]),
815
+ style: k(ue(t, !0)),
816
+ onClick: (n) => S("headerClick", t)
758
817
  }, [
759
- w("div", {
760
- class: L(["x-table__header-cell", { "filter-left": f.filterIconAlignLeft }])
818
+ h("div", {
819
+ class: D(["x-table__header-cell", { "filter-left": c.filterIconAlignLeft }])
761
820
  }, [
762
- k(e.$slots, `header-${t.titleSlotName || t.key}`, {
821
+ w(e.$slots, `header-${t.titleSlotName || t.key}`, {
763
822
  column: t,
764
823
  title: t.title
765
824
  }, () => [
766
- t.headerCellRender ? (u(), c(S, { key: 0 }, [
767
- M(C(t.headerCellRender({ column: t, title: t.title })), 1)
768
- ], 64)) : (u(), c(S, { key: 1 }, [
769
- M(C(t.title), 1)
825
+ t.headerCellRender ? (u(), d(x, { key: 0 }, [
826
+ L($(t.headerCellRender({ column: t, title: t.title })), 1)
827
+ ], 64)) : (u(), d(x, { key: 1 }, [
828
+ L($(t.title), 1)
770
829
  ], 64))
771
830
  ], !0),
772
- t.sorter ? (u(), c("button", {
831
+ t.sorter ? (u(), d("button", {
773
832
  key: 0,
774
833
  type: "button",
775
- class: L(["x-table__sorter", { "is-active": D.value.key === t.key && D.value.order }]),
776
- "data-order": D.value.key === t.key ? D.value.order : null,
777
- onClick: oe((a) => Ke(t), ["stop"])
834
+ class: D(["x-table__sorter", { "is-active": R.value.key === t.key && R.value.order }]),
835
+ "data-order": R.value.key === t.key ? R.value.order : null,
836
+ onClick: ye((n) => Ve(t), ["stop"])
778
837
  }, [...l[5] || (l[5] = [
779
- w("span", { class: "x-table__sort-indicator" }, null, -1)
780
- ])], 10, el)) : g("", !0),
781
- k(e.$slots, `filter-${t.key}`, {
838
+ h("span", { class: "x-table__sort-indicator" }, null, -1)
839
+ ])], 10, pl)) : g("", !0),
840
+ w(e.$slots, `filter-${t.key}`, {
782
841
  column: t,
783
842
  filterState: E.value[t.key],
784
- setFilter: (a) => ne(a, t.key)
843
+ setFilter: (n) => de(n, t.key)
785
844
  }, () => {
786
- var a;
845
+ var n;
787
846
  return [
788
- (a = t.filters) != null && a.length ? (u(), G(Je, {
847
+ (n = t.filters) != null && n.length ? (u(), q(lt, {
789
848
  key: 0,
790
849
  options: t.filters,
791
850
  value: E.value[t.key] || [],
792
851
  multiple: t.filterMultiple !== !1,
793
852
  "column-key": t.key,
794
- "align-left": f.filterIconAlignLeft,
795
- onChange: ne
853
+ "align-left": c.filterIconAlignLeft,
854
+ onChange: de
796
855
  }, null, 8, ["options", "value", "multiple", "column-key", "align-left"])) : g("", !0)
797
856
  ];
798
857
  }, !0)
799
858
  ], 2),
800
- w("div", {
801
- class: L(["x-table__resize-handle", { "is-resizing": Q.value === t.key }]),
802
- onMousedown: (a) => Fe(t.key, a)
803
- }, null, 42, tl)
804
- ], 14, Zt))), 128))
859
+ h("div", {
860
+ class: D(["x-table__resize-handle", { "is-resizing": le.value === t.key }]),
861
+ onMousedown: (n) => Ue(t.key, n)
862
+ }, null, 42, gl)
863
+ ], 14, yl))), 128))
805
864
  ]))
806
865
  ], 6)) : g("", !0),
807
- z.value.length ? (u(), c("tbody", ll, [
808
- f.virtualListProps && Pe.value > 0 ? (u(), c("tr", {
866
+ gt.value ? (u(), d("tbody", vl, [
867
+ (u(), d(x, null, A(Bl, (t) => h("tr", {
868
+ key: `skeleton-row-${t}`,
869
+ class: "x-table__row x-table__skeleton-row"
870
+ }, [
871
+ c.draggable ? (u(), d("td", {
872
+ key: 0,
873
+ class: "x-table__drag-col x-table__sticky-helper x-table__skeleton-side",
874
+ style: k(T("drag"))
875
+ }, [
876
+ Q(pe, {
877
+ loading: !0,
878
+ animation: c.loadingAnimation,
879
+ title: !1,
880
+ rows: 1
881
+ }, {
882
+ default: Y(() => [...l[6] || (l[6] = [
883
+ h("div", { class: "x-table__skeleton-shell" }, [
884
+ h("div", {
885
+ class: "x-table__skeleton-block",
886
+ style: { width: "24px" }
887
+ })
888
+ ], -1)
889
+ ])]),
890
+ _: 1
891
+ }, 8, ["animation"])
892
+ ], 4)) : g("", !0),
893
+ c.expandable || c.treeData ? (u(), d("td", {
894
+ key: 1,
895
+ class: "x-table__expand-col x-table__sticky-helper x-table__skeleton-side",
896
+ style: k(T("expand"))
897
+ }, [
898
+ Q(pe, {
899
+ loading: !0,
900
+ animation: c.loadingAnimation,
901
+ title: !1,
902
+ rows: 1
903
+ }, {
904
+ default: Y(() => [...l[7] || (l[7] = [
905
+ h("div", { class: "x-table__skeleton-shell" }, [
906
+ h("div", {
907
+ class: "x-table__skeleton-block",
908
+ style: { width: "24px" }
909
+ })
910
+ ], -1)
911
+ ])]),
912
+ _: 1
913
+ }, 8, ["animation"])
914
+ ], 4)) : g("", !0),
915
+ c.rowSelection ? (u(), d("td", {
916
+ key: 2,
917
+ class: "x-table__selection-col x-table__sticky-helper x-table__skeleton-side",
918
+ style: k(T("selection"))
919
+ }, [
920
+ Q(pe, {
921
+ loading: !0,
922
+ animation: c.loadingAnimation,
923
+ title: !1,
924
+ rows: 1
925
+ }, {
926
+ default: Y(() => [...l[8] || (l[8] = [
927
+ h("div", { class: "x-table__skeleton-shell" }, [
928
+ h("div", {
929
+ class: "x-table__skeleton-block",
930
+ style: { width: "24px" }
931
+ })
932
+ ], -1)
933
+ ])]),
934
+ _: 1
935
+ }, 8, ["animation"])
936
+ ], 4)) : g("", !0),
937
+ (u(!0), d(x, null, A(b.value, (n, s) => (u(), d("td", {
938
+ key: `skeleton-cell-${t}-${n.key}`,
939
+ class: D(["x-table__cell x-table__skeleton-cell", [
940
+ n.className,
941
+ {
942
+ "is-fixed-left": n.fixed === "left",
943
+ "is-fixed-right": n.fixed === "right",
944
+ "is-bordered": xe.value
945
+ }
946
+ ]]),
947
+ style: k(ue(n))
948
+ }, [
949
+ Q(pe, {
950
+ loading: !0,
951
+ animation: c.loadingAnimation,
952
+ title: !1,
953
+ rows: 1
954
+ }, {
955
+ default: Y(() => [
956
+ h("div", hl, [
957
+ h("div", {
958
+ class: "x-table__skeleton-block",
959
+ style: k({ width: kt(n, s) })
960
+ }, null, 4)
961
+ ])
962
+ ]),
963
+ _: 2
964
+ }, 1032, ["animation"])
965
+ ], 6))), 128))
966
+ ])), 64))
967
+ ])) : z.value.length ? (u(), d("tbody", kl, [
968
+ c.virtualListProps && He.value > 0 ? (u(), d("tr", {
809
969
  key: 0,
810
- style: m({ height: `${Pe.value}px` })
970
+ style: k({ height: `${He.value}px` })
811
971
  }, [
812
- w("td", {
813
- colspan: le.value,
972
+ h("td", {
973
+ colspan: ie.value,
814
974
  style: { padding: 0, border: "none" }
815
- }, null, 8, al)
975
+ }, null, 8, bl)
816
976
  ], 4)) : g("", !0),
817
- (u(!0), c(S, null, F(z.value, ({ record: t, index: a, key: r, level: i, hasChildren: o, loading: p, _virtualIndex: d }, h) => (u(), c(S, {
818
- key: String(r)
977
+ (u(!0), d(x, null, A(z.value, ({ record: t, index: n, key: s, level: o, hasChildren: i, loading: y, _virtualIndex: f }, v) => (u(), d(x, {
978
+ key: String(s)
819
979
  }, [
820
- k(e.$slots, "tr", {
980
+ w(e.$slots, "tr", {
821
981
  record: t,
822
- index: a
982
+ index: n
823
983
  }, () => [
824
- w("tr", {
825
- class: L(["x-table__row", [ut(t, a), { "is-striped": f.stripe && (typeof d == "number" ? d : h) % 2 === 1, "is-dragging": K.value.isDragging && K.value.dragIndex === (typeof d == "number" ? d : h) }]]),
826
- draggable: !!f.draggable,
827
- onClick: (s) => b("rowClick", t, a),
828
- onDragstart: (s) => gt(typeof d == "number" ? d : h, s),
829
- onDragover: (s) => vt(typeof d == "number" ? d : h, s),
830
- onDrop: (s) => kt(typeof d == "number" ? d : h, s),
831
- onDragend: bt
984
+ h("tr", {
985
+ class: D(["x-table__row", [St(t, n), { "is-striped": c.stripe && (typeof f == "number" ? f : v) % 2 === 1, "is-dragging": K.value.isDragging && K.value.dragIndex === (typeof f == "number" ? f : v) }]]),
986
+ draggable: !!c.draggable,
987
+ onClick: (r) => S("rowClick", t, n),
988
+ onDragstart: (r) => Lt(typeof f == "number" ? f : v, r),
989
+ onDragover: (r) => Tt(typeof f == "number" ? f : v, r),
990
+ onDrop: (r) => Pt(typeof f == "number" ? f : v, r),
991
+ onDragend: zt
832
992
  }, [
833
- f.draggable ? (u(), c("td", {
993
+ c.draggable ? (u(), d("td", {
834
994
  key: 0,
835
995
  class: "x-table__drag-col x-table__sticky-helper",
836
- style: m(_("drag"))
996
+ style: k(T("drag"))
837
997
  }, [
838
- k(e.$slots, "drag-handle", {}, () => [
839
- l[6] || (l[6] = w("span", { class: "x-table__drag-icon" }, "⋮⋮", -1))
998
+ w(e.$slots, "drag-handle", {}, () => [
999
+ l[9] || (l[9] = h("span", { class: "x-table__drag-icon" }, "⋮⋮", -1))
840
1000
  ], !0)
841
1001
  ], 4)) : g("", !0),
842
- f.expandable || f.treeData ? (u(), c("td", {
1002
+ c.expandable || c.treeData ? (u(), d("td", {
843
1003
  key: 1,
844
1004
  class: "x-table__expand-col x-table__sticky-helper",
845
- style: m(_("expand"))
1005
+ style: k(T("expand"))
846
1006
  }, [
847
- k(e.$slots, "expand-icon", {
1007
+ w(e.$slots, "expand-icon", {
848
1008
  record: t,
849
- expanded: I(t, a),
850
- hasChildren: o
1009
+ expanded: J(t, n),
1010
+ hasChildren: i
851
1011
  }, () => [
852
- He(t) ? (u(), c("button", {
1012
+ Ie(t) ? (u(), d("button", {
853
1013
  key: 0,
854
1014
  type: "button",
855
- class: L(["x-table__expand", { "is-loading": p }]),
856
- onClick: oe((s) => ct(t, a), ["stop"])
1015
+ class: D(["x-table__expand", { "is-loading": y }]),
1016
+ onClick: ye((r) => $t(t, n), ["stop"])
857
1017
  }, [
858
- p ? (u(), c("span", il, [...l[7] || (l[7] = [
859
- w("svg", {
1018
+ y ? (u(), d("span", wl, [...l[10] || (l[10] = [
1019
+ h("svg", {
860
1020
  viewBox: "0 0 48 48",
861
1021
  fill: "none",
862
1022
  xmlns: "http://www.w3.org/2000/svg",
@@ -865,195 +1025,195 @@ const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It
865
1025
  "stroke-linecap": "butt",
866
1026
  "stroke-linejoin": "miter"
867
1027
  }, [
868
- w("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" })
1028
+ h("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" })
869
1029
  ], -1)
870
- ])])) : (u(), c("span", sl, C(I(t, a) ? "▾" : "▸"), 1))
871
- ], 10, rl)) : g("", !0)
1030
+ ])])) : (u(), d("span", Sl, $(J(t, n) ? "▾" : "▸"), 1))
1031
+ ], 10, xl)) : g("", !0)
872
1032
  ], !0)
873
1033
  ], 4)) : g("", !0),
874
- f.rowSelection ? (u(), c("td", {
1034
+ c.rowSelection ? (u(), d("td", {
875
1035
  key: 2,
876
1036
  class: "x-table__selection-col x-table__sticky-helper",
877
- style: m(_("selection"))
1037
+ style: k(T("selection"))
878
1038
  }, [
879
- k(e.$slots, "checkbox", {
1039
+ w(e.$slots, "checkbox", {
880
1040
  record: t,
881
- checked: N.value.includes(r),
882
- disabled: We(t)
1041
+ checked: N.value.includes(s),
1042
+ disabled: Ye(t)
883
1043
  }, () => [
884
- w("input", {
885
- type: f.rowSelection.type === "radio" ? "radio" : "checkbox",
886
- checked: N.value.includes(r),
887
- disabled: We(t),
888
- onClick: l[2] || (l[2] = oe(() => {
1044
+ h("input", {
1045
+ type: c.rowSelection.type === "radio" ? "radio" : "checkbox",
1046
+ checked: N.value.includes(s),
1047
+ disabled: Ye(t),
1048
+ onClick: l[2] || (l[2] = ye(() => {
889
1049
  }, ["stop"])),
890
- onChange: (s) => dt(t, a, s.target.checked)
891
- }, null, 40, ol)
1050
+ onChange: (r) => Ct(t, n, r.target.checked)
1051
+ }, null, 40, Cl)
892
1052
  ], !0)
893
1053
  ], 4)) : g("", !0),
894
- k(e.$slots, "td", {
1054
+ w(e.$slots, "td", {
895
1055
  record: t,
896
- index: a
1056
+ index: n
897
1057
  }, () => [
898
- (u(!0), c(S, null, F(x.value, (s, v) => (u(), c(S, {
899
- key: s.key
1058
+ (u(!0), d(x, null, A(b.value, (r, m) => (u(), d(x, {
1059
+ key: r.key
900
1060
  }, [
901
- be(typeof d == "number" ? d : h, v, t, s).skip ? g("", !0) : (u(), c("td", zt({
1061
+ $e(typeof f == "number" ? f : v, m, t, r).skip ? g("", !0) : (u(), d("td", Ut({
902
1062
  key: 0,
903
1063
  class: ["x-table__cell", [
904
- s.className,
905
- typeof s.cellClassName == "function" ? s.cellClassName(t) : s.cellClassName,
1064
+ r.className,
1065
+ typeof r.cellClassName == "function" ? r.cellClassName(t) : r.cellClassName,
906
1066
  {
907
- "is-fixed-left": s.fixed === "left",
908
- "is-fixed-right": s.fixed === "right",
909
- "is-ellipsis": s.ellipsis,
910
- "is-bordered": De.value,
911
- "is-auto-merged-row": Oe(typeof d == "number" ? d : h, s)
1067
+ "is-fixed-left": r.fixed === "left",
1068
+ "is-fixed-right": r.fixed === "right",
1069
+ "is-ellipsis": r.ellipsis,
1070
+ "is-bordered": xe.value,
1071
+ "is-auto-merged-row": Je(typeof f == "number" ? f : v, r)
912
1072
  }
913
1073
  ]],
914
1074
  style: [
915
- ve(s),
916
- typeof s.cellStyle == "function" ? s.cellStyle(t) : s.cellStyle,
917
- ft(typeof d == "number" ? d : h, s)
1075
+ ue(r),
1076
+ typeof r.cellStyle == "function" ? r.cellStyle(t) : r.cellStyle,
1077
+ _t(typeof f == "number" ? f : v, r)
918
1078
  ]
919
- }, { ref_for: !0 }, { rowspan: be(typeof d == "number" ? d : h, v, t, s).rowspan, colspan: be(typeof d == "number" ? d : h, v, t, s).colspan }, {
920
- onClick: (Dt) => b("cellClick", t, s, a)
1079
+ }, { ref_for: !0 }, { rowspan: $e(typeof f == "number" ? f : v, m, t, r).rowspan, colspan: $e(typeof f == "number" ? f : v, m, t, r).colspan }, {
1080
+ onClick: (Ot) => S("cellClick", t, r, n)
921
1081
  }), [
922
- f.treeData && v === 0 ? (u(), c("span", {
1082
+ c.treeData && m === 0 ? (u(), d("span", {
923
1083
  key: 0,
924
1084
  class: "x-table__indent",
925
- style: m({ paddingLeft: `${i * f.indentSize}px` })
1085
+ style: k({ paddingLeft: `${o * c.indentSize}px` })
926
1086
  }, null, 4)) : g("", !0),
927
- Rt(s) ? (u(), G(Ht, {
1087
+ Ht(r) ? (u(), q(Yt, {
928
1088
  key: 1,
929
- content: xt(s, t),
930
- position: $t(s)
1089
+ content: Et(r, t),
1090
+ position: Ft(r)
931
1091
  }, {
932
- default: Et(() => [
933
- w("span", dl, [
934
- k(e.$slots, s.slotName || `cell-${s.key}`, {
1092
+ default: Y(() => [
1093
+ h("span", _l, [
1094
+ w(e.$slots, r.slotName || `cell-${r.key}`, {
935
1095
  record: t,
936
- column: s,
937
- value: R(t, s),
938
- index: a
1096
+ column: r,
1097
+ value: _(t, r),
1098
+ index: n
939
1099
  }, () => [
940
- s.cellRender ? (u(), c(S, { key: 0 }, [
941
- M(C(s.cellRender({ record: t, column: s, value: R(t, s), index: a })), 1)
942
- ], 64)) : (u(), c(S, { key: 1 }, [
943
- M(C(R(t, s)), 1)
1100
+ r.cellRender ? (u(), d(x, { key: 0 }, [
1101
+ L($(r.cellRender({ record: t, column: r, value: _(t, r), index: n })), 1)
1102
+ ], 64)) : (u(), d(x, { key: 1 }, [
1103
+ L($(_(t, r)), 1)
944
1104
  ], 64))
945
1105
  ], !0)
946
1106
  ])
947
1107
  ]),
948
1108
  _: 2
949
- }, 1032, ["content", "position"])) : k(e.$slots, s.slotName || `cell-${s.key}`, {
1109
+ }, 1032, ["content", "position"])) : w(e.$slots, r.slotName || `cell-${r.key}`, {
950
1110
  key: 2,
951
1111
  record: t,
952
- column: s,
953
- value: R(t, s),
954
- index: a
1112
+ column: r,
1113
+ value: _(t, r),
1114
+ index: n
955
1115
  }, () => [
956
- s.cellRender ? (u(), c(S, { key: 0 }, [
957
- M(C(s.cellRender({ record: t, column: s, value: R(t, s), index: a })), 1)
958
- ], 64)) : (u(), c(S, { key: 1 }, [
959
- M(C(R(t, s)), 1)
1116
+ r.cellRender ? (u(), d(x, { key: 0 }, [
1117
+ L($(r.cellRender({ record: t, column: r, value: _(t, r), index: n })), 1)
1118
+ ], 64)) : (u(), d(x, { key: 1 }, [
1119
+ L($(_(t, r)), 1)
960
1120
  ], 64))
961
1121
  ], !0)
962
- ], 16, ul))
1122
+ ], 16, $l))
963
1123
  ], 64))), 128))
964
1124
  ], !0)
965
- ], 42, nl)
1125
+ ], 42, ml)
966
1126
  ], !0),
967
- f.expandable && I(t, a) ? (u(), c("tr", cl, [
968
- w("td", {
969
- colspan: le.value,
970
- style: m({ paddingLeft: `${(f.expandable.indentSize || 16) + 16}px` })
1127
+ c.expandable && J(t, n) ? (u(), d("tr", Rl, [
1128
+ h("td", {
1129
+ colspan: ie.value,
1130
+ style: k({ paddingLeft: `${(c.expandable.indentSize || 16) + 16}px` })
971
1131
  }, [
972
- k(e.$slots, "expand-row", {
1132
+ w(e.$slots, "expand-row", {
973
1133
  record: t,
974
- index: a
1134
+ index: n
975
1135
  }, () => {
976
- var s, v;
1136
+ var r, m;
977
1137
  return [
978
- M(C((v = (s = f.expandable) == null ? void 0 : s.expandedRowRender) == null ? void 0 : v.call(s, t, a)), 1)
1138
+ L($((m = (r = c.expandable) == null ? void 0 : r.expandedRowRender) == null ? void 0 : m.call(r, t, n)), 1)
979
1139
  ];
980
1140
  }, !0)
981
- ], 12, fl)
1141
+ ], 12, Dl)
982
1142
  ])) : g("", !0)
983
1143
  ], 64))), 128)),
984
- f.virtualListProps && ze.value > 0 ? (u(), c("tr", {
1144
+ c.virtualListProps && Fe.value > 0 ? (u(), d("tr", {
985
1145
  key: 1,
986
- style: m({ height: `${ze.value}px` })
1146
+ style: k({ height: `${Fe.value}px` })
987
1147
  }, [
988
- w("td", {
989
- colspan: le.value,
1148
+ h("td", {
1149
+ colspan: ie.value,
990
1150
  style: { padding: 0, border: "none" }
991
- }, null, 8, pl)
1151
+ }, null, 8, Ml)
992
1152
  ], 4)) : g("", !0)
993
- ])) : (u(), c("tbody", yl, [
994
- w("tr", null, [
995
- w("td", {
996
- colspan: le.value,
1153
+ ])) : (u(), d("tbody", Ll, [
1154
+ h("tr", null, [
1155
+ h("td", {
1156
+ colspan: ie.value,
997
1157
  class: "x-table__empty"
998
1158
  }, [
999
- k(e.$slots, "empty", {}, () => [
1000
- we(Se) ? (u(), G(Kt(we(Se)), { key: 0 })) : (u(), G(Bt, {
1159
+ w(e.$slots, "empty", {}, () => [
1160
+ Re(Me) ? (u(), q(Jt(Re(Me)), { key: 0 })) : (u(), q(Qt, {
1001
1161
  key: 1,
1002
1162
  "in-config-provider": "",
1003
- description: Ze.value
1163
+ description: rt.value
1004
1164
  }, null, 8, ["description"]))
1005
1165
  ], !0)
1006
- ], 8, hl)
1166
+ ], 8, Tl)
1007
1167
  ])
1008
1168
  ])),
1009
- f.summary ? (u(), c("tfoot", gl, [
1010
- (u(!0), c(S, null, F(Ct(), (t, a) => (u(), c("tr", {
1011
- key: a,
1169
+ c.summary ? (u(), d("tfoot", Pl, [
1170
+ (u(!0), d(x, null, A(Bt(), (t, n) => (u(), d("tr", {
1171
+ key: n,
1012
1172
  class: "x-table__summary-row"
1013
1173
  }, [
1014
- f.draggable ? (u(), c("td", vl)) : g("", !0),
1015
- f.expandable || f.treeData ? (u(), c("td", kl)) : g("", !0),
1016
- f.rowSelection ? (u(), c("td", bl, C(a === 0 ? Ye.value : ""), 1)) : g("", !0),
1017
- (u(!0), c(S, null, F(x.value, (r) => (u(), c("td", {
1018
- key: r.key,
1019
- class: L(["x-table__cell", r.className])
1174
+ c.draggable ? (u(), d("td", zl)) : g("", !0),
1175
+ c.expandable || c.treeData ? (u(), d("td", El)) : g("", !0),
1176
+ c.rowSelection ? (u(), d("td", Kl, $(n === 0 ? it.value : ""), 1)) : g("", !0),
1177
+ (u(!0), d(x, null, A(b.value, (s) => (u(), d("td", {
1178
+ key: s.key,
1179
+ class: D(["x-table__cell", s.className])
1020
1180
  }, [
1021
- k(e.$slots, "summary-cell", {
1022
- column: r,
1181
+ w(e.$slots, "summary-cell", {
1182
+ column: s,
1023
1183
  record: t,
1024
- rowIndex: a
1184
+ rowIndex: n
1025
1185
  }, () => [
1026
- M(C(R(t, r)), 1)
1186
+ L($(_(t, s)), 1)
1027
1187
  ], !0)
1028
1188
  ], 2))), 128))
1029
1189
  ]))), 128))
1030
1190
  ])) : g("", !0)
1031
1191
  ], 4)
1032
1192
  ], 36),
1033
- f.loading ? (u(), c("div", xl, [
1034
- k(e.$slots, "loading", {}, () => [
1035
- M(C(we(ce)("table.loadingText", void 0, "加载中...")), 1)
1193
+ ht.value ? (u(), d("div", Nl, [
1194
+ w(e.$slots, "loading", {}, () => [
1195
+ L($(Re(he)("table.loadingText", void 0, "加载中...")), 1)
1036
1196
  ], !0)
1037
1197
  ])) : g("", !0),
1038
- B.value ? (u(), c("div", wl, [
1039
- k(e.$slots, "pagination-left", {}, void 0, !0),
1040
- Nt(_t, {
1041
- current: te.value,
1042
- total: T.value.length,
1043
- "page-size": X.value,
1044
- "show-total": B.value.showTotal,
1045
- "show-jumper": B.value.showJumper,
1046
- "show-page-size": B.value.showPageSize,
1047
- "page-size-options": B.value.pageSizeOptions,
1048
- simple: B.value.simple,
1049
- onChange: Ae,
1050
- onPageSizeChange: l[3] || (l[3] = (t) => Ae(te.value, t))
1198
+ H.value ? (u(), d("div", Al, [
1199
+ w(e.$slots, "pagination-left", {}, void 0, !0),
1200
+ Q(qt, {
1201
+ current: oe.value,
1202
+ total: M.value.length,
1203
+ "page-size": U.value,
1204
+ "show-total": H.value.showTotal,
1205
+ "show-jumper": H.value.showJumper,
1206
+ "show-page-size": H.value.showPageSize,
1207
+ "page-size-options": H.value.pageSizeOptions,
1208
+ simple: H.value.simple,
1209
+ onChange: Ge,
1210
+ onPageSizeChange: l[3] || (l[3] = (t) => Ge(oe.value, t))
1051
1211
  }, null, 8, ["current", "total", "page-size", "show-total", "show-jumper", "show-page-size", "page-size-options", "simple"]),
1052
- k(e.$slots, "pagination-right", {}, void 0, !0)
1212
+ w(e.$slots, "pagination-right", {}, void 0, !0)
1053
1213
  ])) : g("", !0)
1054
1214
  ], 2));
1055
1215
  }
1056
1216
  });
1057
1217
  export {
1058
- Ml as default
1218
+ Jl as default
1059
1219
  };