st-comp 0.0.149 → 0.0.150
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.
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +24 -22
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +52 -50
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +18 -16
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +26 -24
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +16 -14
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +58 -56
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +105 -103
- package/es/User.cjs +1 -1
- package/es/User.js +400 -378
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +230 -228
- package/es/VirtualTable.cjs +3 -3
- package/es/VirtualTable.js +196 -194
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-14b53c6f.js → _initCloneObject-e3d8a9ab.js} +21 -21
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-4251bbe4.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-55482a43.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-7cdfca4d.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-ac30be50.js → debounce-6cb0781f.js} +19 -19
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-634b5e27.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-d7c59a21.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/{el-button-e1665717.js → el-button-0bf1d532.js} +17 -16
- package/es/el-button-62966947.cjs +1 -0
- package/es/{el-checkbox-group-492b95cc.cjs → el-checkbox-group-45247bbf.cjs} +1 -1
- package/es/{el-checkbox-group-e8fece80.js → el-checkbox-group-d53bc316.js} +5 -5
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-bacc6613.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-af1855f0.js → el-form-item-05c0e335.js} +52 -51
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-4961b99f.js → el-input-1e309239.js} +79 -78
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-610fc8ba.js → el-input-number-60ebc58f.js} +57 -55
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/{el-menu-item-7d04c11a.js → el-menu-item-6c6236a1.js} +84 -83
- package/es/{el-message-c3b3ac96.js → el-message-7d927756.js} +55 -54
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/{el-overlay-12dd9b35.js → el-overlay-26bf0945.js} +73 -71
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/{el-popover-0aa071f2.js → el-popover-17e2e66c.js} +26 -24
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-50100766.js → el-popper-b6527ae2.js} +194 -193
- package/es/{el-scrollbar-562d0595.js → el-scrollbar-29bcab5f.js} +28 -28
- package/es/{el-scrollbar-d1c3e7f7.cjs → el-scrollbar-ac525239.cjs} +1 -1
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-9381b156.js → el-select-7395562b.js} +42 -40
- package/es/{el-table-column-55bffba5.js → el-table-column-47d80736.js} +329 -327
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-985d9aff.js → el-tag-7414e0c7.js} +78 -77
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-deb8de52.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-39ec9741.js → index-273822d1.js} +21 -20
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-0cb48e01.js → index-621b092b.js} +1 -1
- package/es/{index-3bf8d597.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-f377e500.js → index-72151b24.js} +150 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/{index-09e01b1d.js → index-c066fe0d.js} +32 -31
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-a902a0d9.js → index-dc22ffe4.js} +2 -2
- package/es/{raf-b128c7b7.js → raf-a532c514.js} +1 -1
- package/es/{raf-8fc301fd.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-41224831.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-387fcfdb.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/{vnode-7dfd4ed5.js → vnode-6a0c7411.js} +1 -1
- package/es/{vnode-7fbc61e1.cjs → vnode-b15eb11b.cjs} +1 -1
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-eb9c2820.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +136 -136
- package/lib/{index-d2de454d.js → index-d0cb2fa2.js} +14674 -14502
- package/lib/{python-22975586.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +2 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-441db749.cjs +0 -1
- package/es/base-437d17f3.js +0 -816
- package/es/base-ec05f348.cjs +0 -9
- package/es/castArray-a45823fe.cjs +0 -1
- package/es/debounce-b2ff12bd.cjs +0 -1
- package/es/el-button-196807af.cjs +0 -1
- package/es/el-empty-19ea04f4.cjs +0 -1
- package/es/el-form-item-5bdffd07.cjs +0 -12
- package/es/el-input-23e2bac3.cjs +0 -1
- package/es/el-input-number-40a81eb5.cjs +0 -1
- package/es/el-menu-item-78b858f2.cjs +0 -1
- package/es/el-message-d4df8136.cjs +0 -1
- package/es/el-overlay-bc0790a2.cjs +0 -1
- package/es/el-popover-8a77e015.cjs +0 -1
- package/es/el-popper-746070ba.cjs +0 -1
- package/es/el-select-b162dffc.cjs +0 -1
- package/es/el-table-column-6d761fce.cjs +0 -14
- package/es/el-tag-c51a6490.cjs +0 -1
- package/es/index-8a0b1c53.cjs +0 -3
- package/es/index-a387515d.cjs +0 -1
- package/es/use-form-common-props-1b84d8f4.cjs +0 -2
package/es/VirtualTable.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { b as ne, d as I, u as be, _ as Vl, w as
|
|
2
|
-
import { E as rl } from "./el-empty-
|
|
3
|
-
import { B as
|
|
4
|
-
import { E as
|
|
5
|
-
import { defineComponent as ie, computed as T, openBlock as De, createElementBlock as ht, normalizeClass as Wt, unref as o, normalizeStyle as
|
|
6
|
-
import { d as
|
|
1
|
+
import { b as ne, d as I, u as be, _ as Vl, w as pt, I as He, f as Ct, a as Y, q as We, v as et, g as qe, h as kl, i as $t, j as Kl, t as nt, k as jl } from "./base-19787dfb.js";
|
|
2
|
+
import { E as rl } from "./el-empty-bd5343a7.js";
|
|
3
|
+
import { B as Bl, b as Ul, a as ql } from "./el-scrollbar-29bcab5f.js";
|
|
4
|
+
import { E as Yl } from "./el-button-0bf1d532.js";
|
|
5
|
+
import { defineComponent as ie, computed as T, openBlock as De, createElementBlock as ht, normalizeClass as Wt, unref as o, normalizeStyle as Zl, renderSlot as Fe, createCommentVNode as ft, getCurrentInstance as at, ref as V, reactive as Xl, watch as Me, onBeforeUnmount as al, h as fe, withModifiers as Jl, shallowRef as Le, isVNode as Ie, toRef as Ft, inject as Ht, onUpdated as Ql, createVNode as p, nextTick as $e, onMounted as st, resolveDynamicComponent as Gt, Fragment as en, provide as sl, mergeProps as Z, mergeModels as Vt, useModel as tn, onUnmounted as ln, createBlock as dt, withCtx as Ne, createTextVNode as kt } from "vue";
|
|
6
|
+
import { d as nn } from "./debounce-6cb0781f.js";
|
|
7
7
|
import { m as il } from "./typescript-7ae59c4c.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import { c as cl, r as dl } from "./raf-
|
|
10
|
-
import { g as
|
|
11
|
-
import {
|
|
8
|
+
import { c as on } from "./castArray-8405000b.js";
|
|
9
|
+
import { c as cl, r as dl } from "./raf-a532c514.js";
|
|
10
|
+
import { s as rn, g as an } from "./index-70372cdb.js";
|
|
11
|
+
import { g as sn } from "./scroll-d787d648.js";
|
|
12
|
+
import { E as ul, b as cn, t as dn, w as un } from "./index-72151b24.js";
|
|
12
13
|
import { _ as hn } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
-
import "./index-
|
|
14
|
+
import "./index-c066fe0d.js";
|
|
15
|
+
import "./use-form-common-props-5ff2f51b.js";
|
|
14
16
|
import "./index-657047bb.js";
|
|
15
17
|
const fn = ne({
|
|
16
18
|
direction: {
|
|
@@ -38,7 +40,7 @@ const fn = ne({
|
|
|
38
40
|
}));
|
|
39
41
|
return (r, a) => (De(), ht("div", {
|
|
40
42
|
class: Wt([o(l).b(), o(l).m(r.direction)]),
|
|
41
|
-
style:
|
|
43
|
+
style: Zl(o(n)),
|
|
42
44
|
role: "separator"
|
|
43
45
|
}, [
|
|
44
46
|
r.$slots.default && r.direction !== "vertical" ? (De(), ht("div", {
|
|
@@ -51,7 +53,7 @@ const fn = ne({
|
|
|
51
53
|
}
|
|
52
54
|
});
|
|
53
55
|
var gn = /* @__PURE__ */ Vl(vn, [["__file", "divider.vue"]]);
|
|
54
|
-
const yn =
|
|
56
|
+
const yn = pt(gn);
|
|
55
57
|
var Kt = Number.isNaN || function(t) {
|
|
56
58
|
return typeof t == "number" && t !== t;
|
|
57
59
|
};
|
|
@@ -89,7 +91,7 @@ const Rn = () => {
|
|
|
89
91
|
const t = at().proxy.$props;
|
|
90
92
|
return T(() => {
|
|
91
93
|
const l = (n, r, a) => ({});
|
|
92
|
-
return t.perfMode ?
|
|
94
|
+
return t.perfMode ? rn(l) : Sn(l);
|
|
93
95
|
});
|
|
94
96
|
}, jt = 50, Bt = "itemRendered", Ut = "scroll", Ue = "forward", mt = "backward", Ee = "auto", hl = "smart", vt = "start", Pe = "center", gt = "end", yt = "horizontal", fl = "vertical", ml = "rtl", wt = "negative", vl = "positive-ascending", gl = "positive-descending", xn = {
|
|
95
97
|
[yt]: "left",
|
|
@@ -168,7 +170,7 @@ const Rn = () => {
|
|
|
168
170
|
}), Tt = {
|
|
169
171
|
type: Number,
|
|
170
172
|
default: 6
|
|
171
|
-
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 },
|
|
173
|
+
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 }, pe = ne({
|
|
172
174
|
columnCache: Rt,
|
|
173
175
|
columnWidth: bt,
|
|
174
176
|
estimatedColumnWidth: St,
|
|
@@ -213,7 +215,7 @@ const Rn = () => {
|
|
|
213
215
|
startGap: bl,
|
|
214
216
|
endGap: Sl,
|
|
215
217
|
visible: Boolean
|
|
216
|
-
}),
|
|
218
|
+
}), Qe = (e, t) => e < t ? Ue : mt, qt = (e) => e === ml;
|
|
217
219
|
let ze = null;
|
|
218
220
|
function Yt(e = !1) {
|
|
219
221
|
if (ze === null || e) {
|
|
@@ -224,7 +226,7 @@ function Yt(e = !1) {
|
|
|
224
226
|
}
|
|
225
227
|
return ze;
|
|
226
228
|
}
|
|
227
|
-
function
|
|
229
|
+
function pn({ move: e, size: t, bar: l }, n) {
|
|
228
230
|
const r = {}, a = `translate${l.axis}(${e}px)`;
|
|
229
231
|
return r[l.size] = t, r.transform = a, r.msTransform = a, r.webkitTransform = a, n === "horizontal" ? r.height = "100%" : r.width = "100%", r;
|
|
230
232
|
}
|
|
@@ -235,10 +237,10 @@ const Zt = ie({
|
|
|
235
237
|
setup(e, { emit: t }) {
|
|
236
238
|
const l = T(() => e.startGap + e.endGap), n = be("virtual-scrollbar"), r = be("scrollbar"), a = V(), s = V();
|
|
237
239
|
let i = null, v = null;
|
|
238
|
-
const f =
|
|
240
|
+
const f = Xl({
|
|
239
241
|
isDragging: !1,
|
|
240
242
|
traveled: 0
|
|
241
|
-
}), d = T(() =>
|
|
243
|
+
}), d = T(() => Bl[e.layout]), w = T(() => e.clientSize - o(l)), b = T(() => ({
|
|
242
244
|
position: "absolute",
|
|
243
245
|
width: `${yt === e.layout ? w.value : e.scrollbarSize}px`,
|
|
244
246
|
height: `${yt === e.layout ? e.scrollbarSize : w.value}px`,
|
|
@@ -260,24 +262,24 @@ const Zt = ie({
|
|
|
260
262
|
display: "none"
|
|
261
263
|
};
|
|
262
264
|
const R = `${g.value}px`;
|
|
263
|
-
return
|
|
265
|
+
return pn({
|
|
264
266
|
bar: d.value,
|
|
265
267
|
size: R,
|
|
266
268
|
move: f.traveled
|
|
267
269
|
}, e.layout);
|
|
268
270
|
}), u = T(() => Math.floor(e.clientSize - g.value - o(l))), c = () => {
|
|
269
|
-
window.addEventListener("mousemove",
|
|
271
|
+
window.addEventListener("mousemove", C), window.addEventListener("mouseup", S);
|
|
270
272
|
const R = o(s);
|
|
271
|
-
R && (v = document.onselectstart, document.onselectstart = () => !1, R.addEventListener("touchmove",
|
|
273
|
+
R && (v = document.onselectstart, document.onselectstart = () => !1, R.addEventListener("touchmove", C, { passive: !0 }), R.addEventListener("touchend", S));
|
|
272
274
|
}, h = () => {
|
|
273
|
-
window.removeEventListener("mousemove",
|
|
275
|
+
window.removeEventListener("mousemove", C), window.removeEventListener("mouseup", S), document.onselectstart = v, v = null;
|
|
274
276
|
const R = o(s);
|
|
275
|
-
R && (R.removeEventListener("touchmove",
|
|
277
|
+
R && (R.removeEventListener("touchmove", C), R.removeEventListener("touchend", S));
|
|
276
278
|
}, m = (R) => {
|
|
277
279
|
R.stopImmediatePropagation(), !(R.ctrlKey || [1, 2].includes(R.button)) && (f.isDragging = !0, f[d.value.axis] = R.currentTarget[d.value.offset] - (R[d.value.client] - R.currentTarget.getBoundingClientRect()[d.value.direction]), t("start-move"), c());
|
|
278
280
|
}, S = () => {
|
|
279
281
|
f.isDragging = !1, f[d.value.axis] = 0, t("stop-move"), h();
|
|
280
|
-
},
|
|
282
|
+
}, C = (R) => {
|
|
281
283
|
const { isDragging: O } = f;
|
|
282
284
|
if (!O || !s.value || !a.value)
|
|
283
285
|
return;
|
|
@@ -306,7 +308,7 @@ const Zt = ie({
|
|
|
306
308
|
(e.alwaysOn || f.isDragging) && "always-on"
|
|
307
309
|
],
|
|
308
310
|
style: b.value,
|
|
309
|
-
onMousedown:
|
|
311
|
+
onMousedown: Jl(M, ["stop", "prevent"]),
|
|
310
312
|
onTouchstartPrevent: m
|
|
311
313
|
}, fe("div", {
|
|
312
314
|
ref: s,
|
|
@@ -321,7 +323,7 @@ const Et = {
|
|
|
321
323
|
asc: "desc",
|
|
322
324
|
desc: "asc"
|
|
323
325
|
/* ASC */
|
|
324
|
-
}, Xe = Symbol("placeholder"),
|
|
326
|
+
}, Xe = Symbol("placeholder"), Cn = (e, t, l) => {
|
|
325
327
|
var n;
|
|
326
328
|
const r = {
|
|
327
329
|
flexGrow: 0,
|
|
@@ -362,7 +364,7 @@ function Hn(e, t, l) {
|
|
|
362
364
|
placeholderSign: Xe
|
|
363
365
|
});
|
|
364
366
|
}), c;
|
|
365
|
-
}), f = T(() => o(a).length || o(s).length), d = T(() => o(n).reduce((c, h) => (c[h.key] =
|
|
367
|
+
}), f = T(() => o(a).length || o(s).length), d = T(() => o(n).reduce((c, h) => (c[h.key] = Cn(h, o(l), e.fixed), c), {})), w = T(() => o(r).reduce((c, h) => c + h.width, 0)), b = (c) => o(n).find((h) => h.key === c), g = (c) => o(d)[c], y = (c, h) => {
|
|
366
368
|
c.width = h;
|
|
367
369
|
};
|
|
368
370
|
function u(c) {
|
|
@@ -370,9 +372,9 @@ function Hn(e, t, l) {
|
|
|
370
372
|
const { key: m } = c.currentTarget.dataset;
|
|
371
373
|
if (!m)
|
|
372
374
|
return;
|
|
373
|
-
const { sortState: S, sortBy:
|
|
375
|
+
const { sortState: S, sortBy: C } = e;
|
|
374
376
|
let M = Ye.ASC;
|
|
375
|
-
|
|
377
|
+
Ct(S) ? M = Et[S[m]] : M = Et[C.order], (h = e.onColumnSort) == null || h.call(e, { column: b(m), key: m, order: M });
|
|
376
378
|
}
|
|
377
379
|
return {
|
|
378
380
|
columns: n,
|
|
@@ -448,7 +450,7 @@ const Mn = (e, {
|
|
|
448
450
|
var A;
|
|
449
451
|
(A = e.onRowsRendered) == null || A.call(e, x), x.rowCacheEnd > o(w) && (w.value = x.rowCacheEnd);
|
|
450
452
|
}
|
|
451
|
-
function
|
|
453
|
+
function C({ hovered: x, rowKey: A }) {
|
|
452
454
|
if (s.value)
|
|
453
455
|
return;
|
|
454
456
|
r.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((K) => {
|
|
@@ -470,7 +472,7 @@ const Mn = (e, {
|
|
|
470
472
|
rowKey: P
|
|
471
473
|
}), (B = e.onExpandedRowsChange) == null || B.call(e, k);
|
|
472
474
|
}
|
|
473
|
-
const R =
|
|
475
|
+
const R = nn(() => {
|
|
474
476
|
var x, A, G, P;
|
|
475
477
|
f.value = !0, g.value = { ...o(g), ...o(y) }, O(o(b), !1), y.value = {}, b.value = null, (x = t.value) == null || x.forceUpdate(), (A = l.value) == null || A.forceUpdate(), (G = n.value) == null || G.forceUpdate(), (P = i.proxy) == null || P.$forceUpdate(), f.value = !1;
|
|
476
478
|
}, 0);
|
|
@@ -497,7 +499,7 @@ const Mn = (e, {
|
|
|
497
499
|
rowHeights: g,
|
|
498
500
|
resetAfterIndex: O,
|
|
499
501
|
onRowExpanded: M,
|
|
500
|
-
onRowHovered:
|
|
502
|
+
onRowHovered: C,
|
|
501
503
|
onRowsRendered: S,
|
|
502
504
|
onRowHeightChange: F
|
|
503
505
|
};
|
|
@@ -524,7 +526,7 @@ const Mn = (e, {
|
|
|
524
526
|
data: s,
|
|
525
527
|
depthMap: r
|
|
526
528
|
};
|
|
527
|
-
}, On = (e, t) => e + t, tt = (e) => We(e) ? e.reduce(On, 0) : e,
|
|
529
|
+
}, On = (e, t) => e + t, tt = (e) => We(e) ? e.reduce(On, 0) : e, Ce = (e, t, l = {}) => qe(e) ? e(t) : e ?? l, we = (e) => (["width", "maxWidth", "minWidth", "height"].forEach((t) => {
|
|
528
530
|
e[t] = et(e[t]);
|
|
529
531
|
}), e), Tl = (e) => Ie(e) ? (t) => fe(e, t) : e, Nn = (e, {
|
|
530
532
|
columnsTotalWidth: t,
|
|
@@ -533,30 +535,30 @@ const Mn = (e, {
|
|
|
533
535
|
fixedColumnsOnRight: r
|
|
534
536
|
}) => {
|
|
535
537
|
const a = T(() => {
|
|
536
|
-
const { fixed: m, width: S, vScrollbarSize:
|
|
538
|
+
const { fixed: m, width: S, vScrollbarSize: C } = e, M = S - C;
|
|
537
539
|
return m ? Math.max(Math.round(o(t)), M) : M;
|
|
538
540
|
}), s = T(() => o(a) + e.vScrollbarSize), i = T(() => {
|
|
539
|
-
const { height: m = 0, maxHeight: S = 0, footerHeight:
|
|
541
|
+
const { height: m = 0, maxHeight: S = 0, footerHeight: C, hScrollbarSize: M } = e;
|
|
540
542
|
if (S > 0) {
|
|
541
543
|
const R = o(g), O = o(l), F = o(b) + R + O + M;
|
|
542
|
-
return Math.min(F, S -
|
|
544
|
+
return Math.min(F, S - C);
|
|
543
545
|
}
|
|
544
|
-
return m -
|
|
546
|
+
return m - C;
|
|
545
547
|
}), v = T(() => {
|
|
546
548
|
const { maxHeight: m } = e, S = o(i);
|
|
547
549
|
if (Y(m) && m > 0)
|
|
548
550
|
return S;
|
|
549
|
-
const
|
|
550
|
-
return Math.min(S,
|
|
551
|
+
const C = o(l) + o(b) + o(g);
|
|
552
|
+
return Math.min(S, C);
|
|
551
553
|
}), f = (m) => m.width, d = T(() => tt(o(n).map(f))), w = T(() => tt(o(r).map(f))), b = T(() => tt(e.headerHeight)), g = T(() => {
|
|
552
554
|
var m;
|
|
553
555
|
return (((m = e.fixedData) == null ? void 0 : m.length) || 0) * e.rowHeight;
|
|
554
556
|
}), y = T(() => o(i) - o(b) - o(g)), u = T(() => {
|
|
555
|
-
const { style: m = {}, height: S, width:
|
|
557
|
+
const { style: m = {}, height: S, width: C } = e;
|
|
556
558
|
return we({
|
|
557
559
|
...m,
|
|
558
560
|
height: S,
|
|
559
|
-
width:
|
|
561
|
+
width: C
|
|
560
562
|
});
|
|
561
563
|
}), c = T(() => we({ height: e.footerHeight })), h = T(() => ({
|
|
562
564
|
top: et(o(b)),
|
|
@@ -600,7 +602,7 @@ function zn(e) {
|
|
|
600
602
|
leftTableRef: l,
|
|
601
603
|
rightTableRef: n,
|
|
602
604
|
onMaybeEndReached: Ke
|
|
603
|
-
}), S = be("table-v2"),
|
|
605
|
+
}), S = be("table-v2"), C = at(), M = Le(!1), {
|
|
604
606
|
expandedRowKeys: R,
|
|
605
607
|
lastRenderedRowIndex: O,
|
|
606
608
|
isDynamic: D,
|
|
@@ -615,7 +617,7 @@ function zn(e) {
|
|
|
615
617
|
mainTableRef: t,
|
|
616
618
|
leftTableRef: l,
|
|
617
619
|
rightTableRef: n,
|
|
618
|
-
tableInstance:
|
|
620
|
+
tableInstance: C,
|
|
619
621
|
ns: S,
|
|
620
622
|
isScrolling: M
|
|
621
623
|
}), { data: k, depthMap: U } = An(e, {
|
|
@@ -701,7 +703,7 @@ function zn(e) {
|
|
|
701
703
|
onVerticalScroll: h
|
|
702
704
|
};
|
|
703
705
|
}
|
|
704
|
-
const Mt = Symbol("tableV2"), El = String,
|
|
706
|
+
const Mt = Symbol("tableV2"), El = String, Je = {
|
|
705
707
|
type: I(Array),
|
|
706
708
|
required: !0
|
|
707
709
|
}, It = {
|
|
@@ -715,14 +717,14 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
715
717
|
}, Te = {
|
|
716
718
|
type: Number,
|
|
717
719
|
required: !0
|
|
718
|
-
},
|
|
720
|
+
}, pl = {
|
|
719
721
|
type: I([String, Number, Symbol]),
|
|
720
722
|
default: "id"
|
|
721
|
-
},
|
|
723
|
+
}, Jt = {
|
|
722
724
|
type: I(Object)
|
|
723
725
|
}, _e = ne({
|
|
724
726
|
class: String,
|
|
725
|
-
columns:
|
|
727
|
+
columns: Je,
|
|
726
728
|
columnsStyles: {
|
|
727
729
|
type: I(Object),
|
|
728
730
|
required: !0
|
|
@@ -730,7 +732,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
730
732
|
depth: Number,
|
|
731
733
|
expandColumnKey: Ln,
|
|
732
734
|
estimatedRowHeight: {
|
|
733
|
-
...
|
|
735
|
+
...pe.estimatedRowHeight,
|
|
734
736
|
default: void 0
|
|
735
737
|
},
|
|
736
738
|
isScrolling: Boolean,
|
|
@@ -754,7 +756,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
754
756
|
type: Number,
|
|
755
757
|
required: !0
|
|
756
758
|
},
|
|
757
|
-
rowKey:
|
|
759
|
+
rowKey: pl,
|
|
758
760
|
style: {
|
|
759
761
|
type: I(Object)
|
|
760
762
|
}
|
|
@@ -763,7 +765,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
763
765
|
required: !0
|
|
764
766
|
}, At = ne({
|
|
765
767
|
class: String,
|
|
766
|
-
columns:
|
|
768
|
+
columns: Je,
|
|
767
769
|
fixedHeaderData: {
|
|
768
770
|
type: I(Array)
|
|
769
771
|
},
|
|
@@ -783,7 +785,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
783
785
|
height: ut,
|
|
784
786
|
width: ut
|
|
785
787
|
}), lt = ne({
|
|
786
|
-
columns:
|
|
788
|
+
columns: Je,
|
|
787
789
|
data: _l,
|
|
788
790
|
fixedData: It,
|
|
789
791
|
estimatedRowHeight: _e.estimatedRowHeight,
|
|
@@ -795,12 +797,12 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
795
797
|
rowHeight: Te,
|
|
796
798
|
cache: _n.cache,
|
|
797
799
|
useIsScrolling: Boolean,
|
|
798
|
-
scrollbarAlwaysOn:
|
|
799
|
-
scrollbarStartGap:
|
|
800
|
-
scrollbarEndGap:
|
|
800
|
+
scrollbarAlwaysOn: pe.scrollbarAlwaysOn,
|
|
801
|
+
scrollbarStartGap: pe.scrollbarStartGap,
|
|
802
|
+
scrollbarEndGap: pe.scrollbarEndGap,
|
|
801
803
|
class: El,
|
|
802
|
-
style:
|
|
803
|
-
containerStyle:
|
|
804
|
+
style: Jt,
|
|
805
|
+
containerStyle: Jt,
|
|
804
806
|
getRowHeight: {
|
|
805
807
|
type: I(Function),
|
|
806
808
|
required: !0
|
|
@@ -815,7 +817,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
815
817
|
}), Dn = ne({
|
|
816
818
|
cache: lt.cache,
|
|
817
819
|
estimatedRowHeight: _e.estimatedRowHeight,
|
|
818
|
-
rowKey:
|
|
820
|
+
rowKey: pl,
|
|
819
821
|
headerClass: {
|
|
820
822
|
type: I([
|
|
821
823
|
String,
|
|
@@ -855,7 +857,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
855
857
|
Function
|
|
856
858
|
])
|
|
857
859
|
},
|
|
858
|
-
columns:
|
|
860
|
+
columns: Je,
|
|
859
861
|
data: _l,
|
|
860
862
|
dataGetter: {
|
|
861
863
|
type: I(Function)
|
|
@@ -881,8 +883,8 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
881
883
|
type: Number,
|
|
882
884
|
default: 12
|
|
883
885
|
},
|
|
884
|
-
hScrollbarSize:
|
|
885
|
-
vScrollbarSize:
|
|
886
|
+
hScrollbarSize: pe.hScrollbarSize,
|
|
887
|
+
vScrollbarSize: pe.vScrollbarSize,
|
|
886
888
|
scrollbarAlwaysOn: Rl.alwaysOn,
|
|
887
889
|
sortBy: {
|
|
888
890
|
type: I(Object),
|
|
@@ -918,7 +920,7 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
918
920
|
})), i = T(() => we({
|
|
919
921
|
width: e.rowWidth,
|
|
920
922
|
height: e.height
|
|
921
|
-
})), v = T(() =>
|
|
923
|
+
})), v = T(() => on(o(e.headerHeight))), f = (b) => {
|
|
922
924
|
const g = o(a);
|
|
923
925
|
$e(() => {
|
|
924
926
|
g != null && g.scroll && g.scroll({
|
|
@@ -963,18 +965,18 @@ const Mt = Symbol("tableV2"), El = String, Qe = {
|
|
|
963
965
|
});
|
|
964
966
|
});
|
|
965
967
|
};
|
|
966
|
-
return
|
|
968
|
+
return Ql(() => {
|
|
967
969
|
r != null && r.value && f(r.value);
|
|
968
970
|
}), l({
|
|
969
971
|
scrollToLeft: f
|
|
970
972
|
}), () => {
|
|
971
973
|
if (!(e.height <= 0))
|
|
972
|
-
return
|
|
974
|
+
return p("div", {
|
|
973
975
|
ref: a,
|
|
974
976
|
class: e.class,
|
|
975
977
|
style: o(s),
|
|
976
978
|
role: "rowgroup"
|
|
977
|
-
}, [
|
|
979
|
+
}, [p("div", {
|
|
978
980
|
style: o(i),
|
|
979
981
|
class: n.e("header")
|
|
980
982
|
}, [w(), d()])]);
|
|
@@ -998,7 +1000,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
998
1000
|
}));
|
|
999
1001
|
}
|
|
1000
1002
|
};
|
|
1001
|
-
},
|
|
1003
|
+
}, Cl = ({
|
|
1002
1004
|
name: e,
|
|
1003
1005
|
clearCache: t,
|
|
1004
1006
|
getColumnPosition: l,
|
|
@@ -1016,13 +1018,13 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1016
1018
|
validateProps: y
|
|
1017
1019
|
}) => ie({
|
|
1018
1020
|
name: e ?? "ElVirtualList",
|
|
1019
|
-
props:
|
|
1021
|
+
props: pe,
|
|
1020
1022
|
emits: [Bt, Ut],
|
|
1021
1023
|
setup(u, { emit: c, expose: h, slots: m }) {
|
|
1022
1024
|
const S = be("vl");
|
|
1023
1025
|
y(u);
|
|
1024
|
-
const
|
|
1025
|
-
g == null || g(
|
|
1026
|
+
const C = at(), M = V(b(u, C));
|
|
1027
|
+
g == null || g(C, M);
|
|
1026
1028
|
const R = V(), O = V(), D = V(), F = V(null), x = V({
|
|
1027
1029
|
isScrolling: !1,
|
|
1028
1030
|
scrollLeft: Y(u.initScrollLeft) ? u.initScrollLeft : 0,
|
|
@@ -1083,12 +1085,12 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1083
1085
|
j,
|
|
1084
1086
|
q,
|
|
1085
1087
|
se
|
|
1086
|
-
] = o(K), [
|
|
1088
|
+
] = o(K), [J, Q, je, Lt] = o(B);
|
|
1087
1089
|
c(Bt, {
|
|
1088
1090
|
columnCacheStart: W,
|
|
1089
1091
|
columnCacheEnd: j,
|
|
1090
|
-
rowCacheStart:
|
|
1091
|
-
rowCacheEnd:
|
|
1092
|
+
rowCacheStart: J,
|
|
1093
|
+
rowCacheEnd: Q,
|
|
1092
1094
|
columnVisibleStart: q,
|
|
1093
1095
|
columnVisibleEnd: se,
|
|
1094
1096
|
rowVisibleStart: je,
|
|
@@ -1136,8 +1138,8 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1136
1138
|
scrollLeft: j,
|
|
1137
1139
|
scrollTop: Math.max(0, Math.min(L, N - _)),
|
|
1138
1140
|
updateRequested: !0,
|
|
1139
|
-
xAxisScrollDir:
|
|
1140
|
-
yAxisScrollDir:
|
|
1141
|
+
xAxisScrollDir: Qe(W.scrollLeft, j),
|
|
1142
|
+
yAxisScrollDir: Qe(W.scrollTop, L)
|
|
1141
1143
|
}, $e(() => ge()), ye(), de();
|
|
1142
1144
|
}, Re = (E, _) => {
|
|
1143
1145
|
const H = o(G), N = (k.value - H) / _ * E;
|
|
@@ -1163,7 +1165,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1163
1165
|
scrollTop: Math.min(x.value.scrollTop + _, k.value - W)
|
|
1164
1166
|
});
|
|
1165
1167
|
});
|
|
1166
|
-
|
|
1168
|
+
Ul(R, "wheel", re, {
|
|
1167
1169
|
passive: !1
|
|
1168
1170
|
});
|
|
1169
1171
|
const te = ({
|
|
@@ -1174,8 +1176,8 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1174
1176
|
const H = o(x);
|
|
1175
1177
|
_ === H.scrollTop && E === H.scrollLeft || (x.value = {
|
|
1176
1178
|
...H,
|
|
1177
|
-
xAxisScrollDir:
|
|
1178
|
-
yAxisScrollDir:
|
|
1179
|
+
xAxisScrollDir: Qe(H.scrollLeft, E),
|
|
1180
|
+
yAxisScrollDir: Qe(H.scrollTop, _),
|
|
1179
1181
|
scrollLeft: E,
|
|
1180
1182
|
scrollTop: _,
|
|
1181
1183
|
updateRequested: !0
|
|
@@ -1190,17 +1192,17 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1190
1192
|
});
|
|
1191
1193
|
}, Ae = (E, _) => {
|
|
1192
1194
|
const { columnWidth: H, direction: N, rowHeight: z } = u, L = A.value(t && H, t && z, t && N), $ = `${E},${_}`;
|
|
1193
|
-
if (
|
|
1195
|
+
if (Kl(L, $))
|
|
1194
1196
|
return L[$];
|
|
1195
1197
|
{
|
|
1196
|
-
const [, W] = l(u, _, o(M)), j = o(M), q = qt(N), [se,
|
|
1198
|
+
const [, W] = l(u, _, o(M)), j = o(M), q = qt(N), [se, J] = f(u, E, j), [Q] = l(u, _, j);
|
|
1197
1199
|
return L[$] = {
|
|
1198
1200
|
position: "absolute",
|
|
1199
1201
|
left: q ? void 0 : `${W}px`,
|
|
1200
1202
|
right: q ? `${W}px` : void 0,
|
|
1201
|
-
top: `${
|
|
1203
|
+
top: `${J}px`,
|
|
1202
1204
|
height: `${se}px`,
|
|
1203
|
-
width: `${
|
|
1205
|
+
width: `${Q}px`
|
|
1204
1206
|
}, L[$];
|
|
1205
1207
|
}
|
|
1206
1208
|
}, ge = () => {
|
|
@@ -1209,7 +1211,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1209
1211
|
});
|
|
1210
1212
|
};
|
|
1211
1213
|
st(() => {
|
|
1212
|
-
if (!
|
|
1214
|
+
if (!kl)
|
|
1213
1215
|
return;
|
|
1214
1216
|
const { initScrollLeft: E, initScrollTop: _ } = u, H = o(R);
|
|
1215
1217
|
H && (Y(E) && (H.scrollLeft = E), Y(_) && (H.scrollTop = _)), de();
|
|
@@ -1237,7 +1239,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1237
1239
|
z.scrollLeft = Math.max(0, _);
|
|
1238
1240
|
z.scrollTop = Math.max(0, H);
|
|
1239
1241
|
}
|
|
1240
|
-
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } =
|
|
1242
|
+
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } = C.proxy;
|
|
1241
1243
|
h({
|
|
1242
1244
|
windowRef: R,
|
|
1243
1245
|
innerRef: F,
|
|
@@ -1256,7 +1258,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1256
1258
|
scrollbarEndGap: H,
|
|
1257
1259
|
totalColumn: N,
|
|
1258
1260
|
totalRow: z
|
|
1259
|
-
} = u, L = o(P), $ = o(G), W = o(U), j = o(k), { scrollLeft: q, scrollTop: se } = o(x),
|
|
1261
|
+
} = u, L = o(P), $ = o(G), W = o(U), j = o(k), { scrollLeft: q, scrollTop: se } = o(x), J = fe(Zt, {
|
|
1260
1262
|
ref: O,
|
|
1261
1263
|
alwaysOn: E,
|
|
1262
1264
|
startGap: _,
|
|
@@ -1269,7 +1271,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1269
1271
|
scrollFrom: q / (W - L),
|
|
1270
1272
|
total: z,
|
|
1271
1273
|
visible: !0
|
|
1272
|
-
}),
|
|
1274
|
+
}), Q = fe(Zt, {
|
|
1273
1275
|
ref: D,
|
|
1274
1276
|
alwaysOn: E,
|
|
1275
1277
|
startGap: _,
|
|
@@ -1284,22 +1286,22 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1284
1286
|
visible: !0
|
|
1285
1287
|
});
|
|
1286
1288
|
return {
|
|
1287
|
-
horizontalScrollbar:
|
|
1288
|
-
verticalScrollbar:
|
|
1289
|
+
horizontalScrollbar: J,
|
|
1290
|
+
verticalScrollbar: Q
|
|
1289
1291
|
};
|
|
1290
1292
|
}, X = () => {
|
|
1291
1293
|
var E;
|
|
1292
1294
|
const [_, H] = o(K), [N, z] = o(B), { data: L, totalColumn: $, totalRow: W, useIsScrolling: j, itemKey: q } = u, se = [];
|
|
1293
1295
|
if (W > 0 && $ > 0)
|
|
1294
|
-
for (let
|
|
1295
|
-
for (let
|
|
1296
|
-
const je = q({ columnIndex:
|
|
1297
|
-
se.push(fe(
|
|
1298
|
-
columnIndex:
|
|
1296
|
+
for (let J = N; J <= z; J++)
|
|
1297
|
+
for (let Q = _; Q <= H; Q++) {
|
|
1298
|
+
const je = q({ columnIndex: Q, data: L, rowIndex: J });
|
|
1299
|
+
se.push(fe(en, { key: je }, (E = m.default) == null ? void 0 : E.call(m, {
|
|
1300
|
+
columnIndex: Q,
|
|
1299
1301
|
data: L,
|
|
1300
1302
|
isScrolling: j ? o(x).isScrolling : void 0,
|
|
1301
|
-
style: Ae(
|
|
1302
|
-
rowIndex:
|
|
1303
|
+
style: Ae(J, Q),
|
|
1304
|
+
rowIndex: J
|
|
1303
1305
|
})));
|
|
1304
1306
|
}
|
|
1305
1307
|
return se;
|
|
@@ -1332,7 +1334,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1332
1334
|
]);
|
|
1333
1335
|
};
|
|
1334
1336
|
}
|
|
1335
|
-
}), { max: rt, min: Hl, floor: Ml } = Math,
|
|
1337
|
+
}), { max: rt, min: Hl, floor: Ml } = Math, Qt = "ElDynamicSizeGrid", Gn = {
|
|
1336
1338
|
column: "columnWidth",
|
|
1337
1339
|
row: "rowHeight"
|
|
1338
1340
|
}, _t = {
|
|
@@ -1415,7 +1417,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1415
1417
|
default:
|
|
1416
1418
|
return n >= b && n <= w ? n : b > w || n < b ? b : w;
|
|
1417
1419
|
}
|
|
1418
|
-
}, Kn =
|
|
1420
|
+
}, Kn = Cl({
|
|
1419
1421
|
name: "ElDynamicSizeGrid",
|
|
1420
1422
|
getColumnPosition: (e, t, l) => {
|
|
1421
1423
|
const n = me(e, t, l, "column");
|
|
@@ -1448,7 +1450,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1448
1450
|
injectToInstance: (e, t) => {
|
|
1449
1451
|
const l = ({ columnIndex: a, rowIndex: s }, i) => {
|
|
1450
1452
|
var v, f;
|
|
1451
|
-
i =
|
|
1453
|
+
i = jl(i) ? !0 : i, Y(a) && (t.value.lastVisitedColumnIndex = Math.min(t.value.lastVisitedColumnIndex, a - 1)), Y(s) && (t.value.lastVisitedRowIndex = Math.min(t.value.lastVisitedRowIndex, s - 1)), (v = e.exposed) == null || v.getItemStyleCache.value(-1, null, null), i && ((f = e.proxy) == null || f.$forceUpdate());
|
|
1452
1454
|
}, n = (a, s) => {
|
|
1453
1455
|
l({
|
|
1454
1456
|
columnIndex: a
|
|
@@ -1477,15 +1479,15 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1477
1479
|
}),
|
|
1478
1480
|
clearCache: !1,
|
|
1479
1481
|
validateProps: ({ columnWidth: e, rowHeight: t }) => {
|
|
1480
|
-
process.env.NODE_ENV !== "production" && (qe(e) || nt(
|
|
1482
|
+
process.env.NODE_ENV !== "production" && (qe(e) || nt(Qt, `
|
|
1481
1483
|
"columnWidth" must be passed as function,
|
|
1482
1484
|
instead ${typeof e} was given.
|
|
1483
|
-
`), qe(t) || nt(
|
|
1485
|
+
`), qe(t) || nt(Qt, `
|
|
1484
1486
|
"rowHeight" must be passed as function,
|
|
1485
1487
|
instead ${typeof t} was given.
|
|
1486
1488
|
`));
|
|
1487
1489
|
}
|
|
1488
|
-
}), ll = "ElFixedSizeGrid", jn =
|
|
1490
|
+
}), ll = "ElFixedSizeGrid", jn = Cl({
|
|
1489
1491
|
name: "ElFixedSizeGrid",
|
|
1490
1492
|
getColumnPosition: ({ columnWidth: e }, t) => [
|
|
1491
1493
|
e,
|
|
@@ -1583,8 +1585,8 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1583
1585
|
rowVisibleStart: m,
|
|
1584
1586
|
rowVisibleEnd: S
|
|
1585
1587
|
}) {
|
|
1586
|
-
var
|
|
1587
|
-
(
|
|
1588
|
+
var C;
|
|
1589
|
+
(C = e.onRowsRendered) == null || C.call(e, {
|
|
1588
1590
|
rowCacheStart: c,
|
|
1589
1591
|
rowCacheEnd: h,
|
|
1590
1592
|
rowVisibleStart: m,
|
|
@@ -1597,7 +1599,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1597
1599
|
}
|
|
1598
1600
|
function b(c, h) {
|
|
1599
1601
|
const m = o(t), S = o(l);
|
|
1600
|
-
|
|
1602
|
+
Ct(c) ? (m == null || m.scrollToLeft(c.scrollLeft), n.value = c.scrollLeft, S == null || S.scrollTo(c)) : (m == null || m.scrollToLeft(c), n.value = c, S == null || S.scrollTo({
|
|
1601
1603
|
scrollLeft: c,
|
|
1602
1604
|
scrollTop: h
|
|
1603
1605
|
}));
|
|
@@ -1675,7 +1677,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1675
1677
|
const S = () => e.bodyWidth;
|
|
1676
1678
|
return () => {
|
|
1677
1679
|
const {
|
|
1678
|
-
cache:
|
|
1680
|
+
cache: C,
|
|
1679
1681
|
columns: M,
|
|
1680
1682
|
data: R,
|
|
1681
1683
|
fixedData: O,
|
|
@@ -1693,11 +1695,11 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1693
1695
|
getRowHeight: Se,
|
|
1694
1696
|
onScroll: de
|
|
1695
1697
|
} = e, oe = Y(B), Re = oe ? Kn : jn, ve = o(f);
|
|
1696
|
-
return
|
|
1698
|
+
return p("div", {
|
|
1697
1699
|
role: "table",
|
|
1698
1700
|
class: [n.e("table"), e.class],
|
|
1699
1701
|
style: G
|
|
1700
|
-
}, [
|
|
1702
|
+
}, [p(Re, {
|
|
1701
1703
|
ref: r,
|
|
1702
1704
|
data: R,
|
|
1703
1705
|
useIsScrolling: D,
|
|
@@ -1706,7 +1708,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1706
1708
|
columnWidth: oe ? S : K,
|
|
1707
1709
|
totalColumn: 1,
|
|
1708
1710
|
totalRow: R.length,
|
|
1709
|
-
rowCache:
|
|
1711
|
+
rowCache: C,
|
|
1710
1712
|
rowHeight: oe ? Se : P,
|
|
1711
1713
|
width: ce,
|
|
1712
1714
|
height: o(s),
|
|
@@ -1728,7 +1730,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1728
1730
|
rowData: ae
|
|
1729
1731
|
});
|
|
1730
1732
|
}
|
|
1731
|
-
}), o(i) &&
|
|
1733
|
+
}), o(i) && p(Wn, {
|
|
1732
1734
|
ref: v,
|
|
1733
1735
|
class: n.e("header-wrapper"),
|
|
1734
1736
|
columns: M,
|
|
@@ -1757,17 +1759,17 @@ const Zn = (e, {
|
|
|
1757
1759
|
mainTableRef: l,
|
|
1758
1760
|
...n
|
|
1759
1761
|
} = e;
|
|
1760
|
-
return
|
|
1762
|
+
return p(Ot, Z({
|
|
1761
1763
|
ref: l
|
|
1762
1764
|
}, n), Yn(t) ? t : {
|
|
1763
1765
|
default: () => [t]
|
|
1764
1766
|
});
|
|
1765
1767
|
};
|
|
1766
1768
|
var Xn = Zn;
|
|
1767
|
-
function
|
|
1769
|
+
function Jn(e) {
|
|
1768
1770
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1769
1771
|
}
|
|
1770
|
-
const
|
|
1772
|
+
const Qn = (e, {
|
|
1771
1773
|
slots: t
|
|
1772
1774
|
}) => {
|
|
1773
1775
|
if (!e.columns.length)
|
|
@@ -1776,13 +1778,13 @@ const Jn = (e, {
|
|
|
1776
1778
|
leftTableRef: l,
|
|
1777
1779
|
...n
|
|
1778
1780
|
} = e;
|
|
1779
|
-
return
|
|
1781
|
+
return p(Ot, Z({
|
|
1780
1782
|
ref: l
|
|
1781
|
-
}, n),
|
|
1783
|
+
}, n), Jn(t) ? t : {
|
|
1782
1784
|
default: () => [t]
|
|
1783
1785
|
});
|
|
1784
1786
|
};
|
|
1785
|
-
var eo =
|
|
1787
|
+
var eo = Qn;
|
|
1786
1788
|
function to(e) {
|
|
1787
1789
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1788
1790
|
}
|
|
@@ -1795,7 +1797,7 @@ const lo = (e, {
|
|
|
1795
1797
|
rightTableRef: l,
|
|
1796
1798
|
...n
|
|
1797
1799
|
} = e;
|
|
1798
|
-
return
|
|
1800
|
+
return p(Ot, Z({
|
|
1799
1801
|
ref: l
|
|
1800
1802
|
}, n), to(t) ? t : {
|
|
1801
1803
|
default: () => [t]
|
|
@@ -1918,7 +1920,7 @@ const oo = (e) => {
|
|
|
1918
1920
|
style: c
|
|
1919
1921
|
} = e;
|
|
1920
1922
|
let h = d.map((m, S) => {
|
|
1921
|
-
const
|
|
1923
|
+
const C = We(y.children) && y.children.length > 0 && m.key === b;
|
|
1922
1924
|
return l.cell({
|
|
1923
1925
|
column: m,
|
|
1924
1926
|
columns: d,
|
|
@@ -1928,7 +1930,7 @@ const oo = (e) => {
|
|
|
1928
1930
|
rowData: y,
|
|
1929
1931
|
rowIndex: u,
|
|
1930
1932
|
isScrolling: o(a),
|
|
1931
|
-
expandIconProps:
|
|
1933
|
+
expandIconProps: C ? {
|
|
1932
1934
|
rowData: y,
|
|
1933
1935
|
rowIndex: u,
|
|
1934
1936
|
onExpand: f
|
|
@@ -1947,15 +1949,15 @@ const oo = (e) => {
|
|
|
1947
1949
|
const {
|
|
1948
1950
|
height: m,
|
|
1949
1951
|
...S
|
|
1950
|
-
} = c || {},
|
|
1951
|
-
return
|
|
1952
|
+
} = c || {}, C = o(i);
|
|
1953
|
+
return p("div", Z({
|
|
1952
1954
|
ref: v,
|
|
1953
1955
|
class: e.class,
|
|
1954
|
-
style:
|
|
1956
|
+
style: C ? c : S,
|
|
1955
1957
|
role: "row"
|
|
1956
1958
|
}, n, o(r)), [h]);
|
|
1957
1959
|
}
|
|
1958
|
-
return
|
|
1960
|
+
return p("div", Z(n, {
|
|
1959
1961
|
ref: v,
|
|
1960
1962
|
class: e.class,
|
|
1961
1963
|
style: c,
|
|
@@ -1990,15 +1992,15 @@ const co = (e, {
|
|
|
1990
1992
|
ns: h,
|
|
1991
1993
|
onRowHovered: m,
|
|
1992
1994
|
onRowExpanded: S
|
|
1993
|
-
} = e,
|
|
1995
|
+
} = e, C = Ce(y, {
|
|
1994
1996
|
columns: l,
|
|
1995
1997
|
rowData: f,
|
|
1996
1998
|
rowIndex: d
|
|
1997
|
-
}, ""), M =
|
|
1999
|
+
}, ""), M = Ce(g, {
|
|
1998
2000
|
columns: l,
|
|
1999
2001
|
rowData: f,
|
|
2000
2002
|
rowIndex: d
|
|
2001
|
-
}), R = f[u], O = r[R] || 0, D = !!a, F = d < 0, x = [h.e("row"),
|
|
2003
|
+
}), R = f[u], O = r[R] || 0, D = !!a, F = d < 0, x = [h.e("row"), C, {
|
|
2002
2004
|
[h.e(`row-depth-${O}`)]: D && d >= 0,
|
|
2003
2005
|
[h.is("expanded")]: D && s.includes(R),
|
|
2004
2006
|
[h.is("fixed")]: !O && F,
|
|
@@ -2018,7 +2020,7 @@ const co = (e, {
|
|
|
2018
2020
|
rowEventHandlers: c,
|
|
2019
2021
|
style: w
|
|
2020
2022
|
};
|
|
2021
|
-
return
|
|
2023
|
+
return p(so, Z(G, {
|
|
2022
2024
|
onRowExpand: S,
|
|
2023
2025
|
onMouseenter: (B) => {
|
|
2024
2026
|
A == null || A({
|
|
@@ -2052,7 +2054,7 @@ const Nt = (e, {
|
|
|
2052
2054
|
cellData: n,
|
|
2053
2055
|
style: r
|
|
2054
2056
|
} = e, a = ((l = n == null ? void 0 : n.toString) == null ? void 0 : l.call(n)) || "", s = Fe(t, "default", e, () => [a]);
|
|
2055
|
-
return
|
|
2057
|
+
return p("div", {
|
|
2056
2058
|
class: e.class,
|
|
2057
2059
|
title: a,
|
|
2058
2060
|
style: r
|
|
@@ -2072,11 +2074,11 @@ const fo = (e) => {
|
|
|
2072
2074
|
onClick: l ? () => n(!t) : void 0,
|
|
2073
2075
|
class: e.class
|
|
2074
2076
|
};
|
|
2075
|
-
return
|
|
2077
|
+
return p(ul, Z(s, {
|
|
2076
2078
|
size: a,
|
|
2077
2079
|
style: r
|
|
2078
2080
|
}), {
|
|
2079
|
-
default: () => [
|
|
2081
|
+
default: () => [p(cn, null, null)]
|
|
2080
2082
|
});
|
|
2081
2083
|
};
|
|
2082
2084
|
var mo = fo;
|
|
@@ -2102,21 +2104,21 @@ const Nl = ({
|
|
|
2102
2104
|
}) => {
|
|
2103
2105
|
const h = we(v);
|
|
2104
2106
|
if (t.placeholderSign === Xe)
|
|
2105
|
-
return
|
|
2107
|
+
return p("div", {
|
|
2106
2108
|
class: d.em("row-cell", "placeholder"),
|
|
2107
2109
|
style: h
|
|
2108
2110
|
}, null);
|
|
2109
2111
|
const {
|
|
2110
2112
|
cellRenderer: m,
|
|
2111
2113
|
dataKey: S,
|
|
2112
|
-
dataGetter:
|
|
2113
|
-
} = t, M = qe(
|
|
2114
|
+
dataGetter: C
|
|
2115
|
+
} = t, M = qe(C) ? C({
|
|
2114
2116
|
columns: e,
|
|
2115
2117
|
column: t,
|
|
2116
2118
|
columnIndex: l,
|
|
2117
2119
|
rowData: s,
|
|
2118
2120
|
rowIndex: i
|
|
2119
|
-
}) :
|
|
2121
|
+
}) : an(s, S ?? ""), R = Ce(w, {
|
|
2120
2122
|
cellData: M,
|
|
2121
2123
|
columns: e,
|
|
2122
2124
|
column: t,
|
|
@@ -2132,18 +2134,18 @@ const Nl = ({
|
|
|
2132
2134
|
isScrolling: a,
|
|
2133
2135
|
rowData: s,
|
|
2134
2136
|
rowIndex: i
|
|
2135
|
-
}, D = Tl(m), F = D ? D(O) : Fe(c, "default", O, () => [
|
|
2137
|
+
}, D = Tl(m), F = D ? D(O) : Fe(c, "default", O, () => [p(ho, O, null)]), x = [d.e("row-cell"), t.class, t.align === Ze.CENTER && d.is("align-center"), t.align === Ze.RIGHT && d.is("align-right")], A = i >= 0 && b && t.key === b, G = i >= 0 && f.includes(s[u]);
|
|
2136
2138
|
let P;
|
|
2137
2139
|
const K = `margin-inline-start: ${n * g}px;`;
|
|
2138
|
-
return A && (
|
|
2140
|
+
return A && (Ct(r) ? P = p(mo, Z(r, {
|
|
2139
2141
|
class: [d.e("expand-icon"), d.is("expanded", G)],
|
|
2140
2142
|
size: y,
|
|
2141
2143
|
expanded: G,
|
|
2142
2144
|
style: K,
|
|
2143
2145
|
expandable: !0
|
|
2144
|
-
}), null) : P =
|
|
2146
|
+
}), null) : P = p("div", {
|
|
2145
2147
|
style: [K, `width: ${y}px; height: ${y}px;`].join(" ")
|
|
2146
|
-
}, null)),
|
|
2148
|
+
}, null)), p("div", Z({
|
|
2147
2149
|
class: x,
|
|
2148
2150
|
style: h
|
|
2149
2151
|
}, R, {
|
|
@@ -2154,7 +2156,7 @@ Nl.inheritAttrs = !1;
|
|
|
2154
2156
|
var nl = Nl;
|
|
2155
2157
|
const vo = ne({
|
|
2156
2158
|
class: String,
|
|
2157
|
-
columns:
|
|
2159
|
+
columns: Je,
|
|
2158
2160
|
columnsStyles: {
|
|
2159
2161
|
type: I(Object),
|
|
2160
2162
|
required: !0
|
|
@@ -2185,7 +2187,7 @@ const vo = ne({
|
|
|
2185
2187
|
cells: s.map((i) => We(i) && i.length === 1 ? i[0] : i),
|
|
2186
2188
|
columns: l,
|
|
2187
2189
|
headerIndex: r
|
|
2188
|
-
})),
|
|
2190
|
+
})), p("div", {
|
|
2189
2191
|
class: e.class,
|
|
2190
2192
|
style: a,
|
|
2191
2193
|
role: "row"
|
|
@@ -2211,17 +2213,17 @@ const bo = ({
|
|
|
2211
2213
|
const v = {
|
|
2212
2214
|
columns: e,
|
|
2213
2215
|
headerIndex: l
|
|
2214
|
-
}, f = [s.e("header-row"),
|
|
2216
|
+
}, f = [s.e("header-row"), Ce(r, v, ""), {
|
|
2215
2217
|
[s.is("customized")]: !!i.header
|
|
2216
2218
|
}], d = {
|
|
2217
|
-
...
|
|
2219
|
+
...Ce(a, v),
|
|
2218
2220
|
columnsStyles: t,
|
|
2219
2221
|
class: f,
|
|
2220
2222
|
columns: e,
|
|
2221
2223
|
headerIndex: l,
|
|
2222
2224
|
style: n
|
|
2223
2225
|
};
|
|
2224
|
-
return
|
|
2226
|
+
return p(yo, d, wo(i) ? i : {
|
|
2225
2227
|
default: () => [i]
|
|
2226
2228
|
});
|
|
2227
2229
|
};
|
|
@@ -2230,7 +2232,7 @@ const zt = (e, {
|
|
|
2230
2232
|
slots: t
|
|
2231
2233
|
}) => Fe(t, "default", e, () => {
|
|
2232
2234
|
var l, n;
|
|
2233
|
-
return [
|
|
2235
|
+
return [p("div", {
|
|
2234
2236
|
class: e.class,
|
|
2235
2237
|
title: (l = e.column) == null ? void 0 : l.title
|
|
2236
2238
|
}, [(n = e.column) == null ? void 0 : n.title])];
|
|
@@ -2242,11 +2244,11 @@ const xo = (e) => {
|
|
|
2242
2244
|
const {
|
|
2243
2245
|
sortOrder: t
|
|
2244
2246
|
} = e;
|
|
2245
|
-
return
|
|
2247
|
+
return p(ul, {
|
|
2246
2248
|
size: 14,
|
|
2247
2249
|
class: e.class
|
|
2248
2250
|
}, {
|
|
2249
|
-
default: () => [t === Ye.ASC ?
|
|
2251
|
+
default: () => [t === Ye.ASC ? p(dn, null, null) : p(un, null, null)]
|
|
2250
2252
|
});
|
|
2251
2253
|
};
|
|
2252
2254
|
var To = xo;
|
|
@@ -2260,7 +2262,7 @@ const Eo = (e, {
|
|
|
2260
2262
|
onColumnSorted: a
|
|
2261
2263
|
} = e, s = we(r);
|
|
2262
2264
|
if (l.placeholderSign === Xe)
|
|
2263
|
-
return
|
|
2265
|
+
return p("div", {
|
|
2264
2266
|
class: n.em("header-row-cell", "placeholder"),
|
|
2265
2267
|
style: s
|
|
2266
2268
|
}, null);
|
|
@@ -2271,27 +2273,27 @@ const Eo = (e, {
|
|
|
2271
2273
|
} = l, d = {
|
|
2272
2274
|
...e,
|
|
2273
2275
|
class: n.e("header-cell-text")
|
|
2274
|
-
}, w = Tl(i), b = w ? w(d) : Fe(t, "default", d, () => [
|
|
2276
|
+
}, w = Tl(i), b = w ? w(d) : Fe(t, "default", d, () => [p(Ro, d, null)]), {
|
|
2275
2277
|
sortBy: g,
|
|
2276
2278
|
sortState: y,
|
|
2277
2279
|
headerCellProps: u
|
|
2278
2280
|
} = e;
|
|
2279
2281
|
let c, h;
|
|
2280
2282
|
if (y) {
|
|
2281
|
-
const
|
|
2282
|
-
c = !!Et[
|
|
2283
|
+
const C = y[l.key];
|
|
2284
|
+
c = !!Et[C], h = c ? C : Ye.ASC;
|
|
2283
2285
|
} else
|
|
2284
2286
|
c = l.key === g.key, h = c ? g.order : Ye.ASC;
|
|
2285
|
-
const m = [n.e("header-cell"),
|
|
2286
|
-
...
|
|
2287
|
+
const m = [n.e("header-cell"), Ce(v, e, ""), l.align === Ze.CENTER && n.is("align-center"), l.align === Ze.RIGHT && n.is("align-right"), f && n.is("sortable")], S = {
|
|
2288
|
+
...Ce(u, e),
|
|
2287
2289
|
onClick: l.sortable ? a : void 0,
|
|
2288
2290
|
class: m,
|
|
2289
2291
|
style: s,
|
|
2290
2292
|
"data-key": l.key
|
|
2291
2293
|
};
|
|
2292
|
-
return
|
|
2294
|
+
return p("div", Z(S, {
|
|
2293
2295
|
role: "columnheader"
|
|
2294
|
-
}), [b, f &&
|
|
2296
|
+
}), [b, f && p(To, {
|
|
2295
2297
|
class: [n.e("sort-icon"), c && n.is("sorting")],
|
|
2296
2298
|
sortOrder: h
|
|
2297
2299
|
}, null)]);
|
|
@@ -2301,7 +2303,7 @@ const zl = (e, {
|
|
|
2301
2303
|
slots: t
|
|
2302
2304
|
}) => {
|
|
2303
2305
|
var l;
|
|
2304
|
-
return
|
|
2306
|
+
return p("div", {
|
|
2305
2307
|
class: e.class,
|
|
2306
2308
|
style: e.style
|
|
2307
2309
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
@@ -2311,25 +2313,25 @@ var _o = zl;
|
|
|
2311
2313
|
const Ll = (e, {
|
|
2312
2314
|
slots: t
|
|
2313
2315
|
}) => {
|
|
2314
|
-
const l = Fe(t, "default", {}, () => [
|
|
2315
|
-
return
|
|
2316
|
+
const l = Fe(t, "default", {}, () => [p(rl, null, null)]);
|
|
2317
|
+
return p("div", {
|
|
2316
2318
|
class: e.class,
|
|
2317
2319
|
style: e.style
|
|
2318
2320
|
}, [l]);
|
|
2319
2321
|
};
|
|
2320
2322
|
Ll.displayName = "ElTableV2Empty";
|
|
2321
|
-
var
|
|
2323
|
+
var po = Ll;
|
|
2322
2324
|
const Dl = (e, {
|
|
2323
2325
|
slots: t
|
|
2324
2326
|
}) => {
|
|
2325
2327
|
var l;
|
|
2326
|
-
return
|
|
2328
|
+
return p("div", {
|
|
2327
2329
|
class: e.class,
|
|
2328
2330
|
style: e.style
|
|
2329
2331
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
2330
2332
|
};
|
|
2331
2333
|
Dl.displayName = "ElTableV2Overlay";
|
|
2332
|
-
var
|
|
2334
|
+
var Co = Dl;
|
|
2333
2335
|
function Be(e) {
|
|
2334
2336
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
2335
2337
|
}
|
|
@@ -2357,7 +2359,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2357
2359
|
leftTableRef: h,
|
|
2358
2360
|
rightTableRef: m,
|
|
2359
2361
|
isDynamic: S,
|
|
2360
|
-
isResetting:
|
|
2362
|
+
isResetting: C,
|
|
2361
2363
|
isScrolling: M,
|
|
2362
2364
|
bodyWidth: R,
|
|
2363
2365
|
emptyStyle: O,
|
|
@@ -2385,7 +2387,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2385
2387
|
scrollToRow: B
|
|
2386
2388
|
}), sl(Mt, {
|
|
2387
2389
|
ns: n,
|
|
2388
|
-
isResetting:
|
|
2390
|
+
isResetting: C,
|
|
2389
2391
|
isScrolling: M
|
|
2390
2392
|
}), () => {
|
|
2391
2393
|
const {
|
|
@@ -2433,7 +2435,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2433
2435
|
getRowHeight: k,
|
|
2434
2436
|
onRowsRendered: oe,
|
|
2435
2437
|
onScroll: Re
|
|
2436
|
-
},
|
|
2438
|
+
}, J = o(d), Q = o(f), je = {
|
|
2437
2439
|
cache: re,
|
|
2438
2440
|
class: n.e("left"),
|
|
2439
2441
|
columns: o(a),
|
|
@@ -2442,16 +2444,16 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2442
2444
|
estimatedRowHeight: ae,
|
|
2443
2445
|
leftTableRef: h,
|
|
2444
2446
|
rowHeight: ee,
|
|
2445
|
-
bodyWidth:
|
|
2446
|
-
headerWidth:
|
|
2447
|
+
bodyWidth: J,
|
|
2448
|
+
headerWidth: J,
|
|
2447
2449
|
headerHeight: ye,
|
|
2448
|
-
height:
|
|
2450
|
+
height: Q,
|
|
2449
2451
|
rowKey: _,
|
|
2450
2452
|
scrollbarAlwaysOn: N,
|
|
2451
2453
|
scrollbarStartGap: 2,
|
|
2452
2454
|
scrollbarEndGap: W,
|
|
2453
2455
|
useIsScrolling: $,
|
|
2454
|
-
width:
|
|
2456
|
+
width: J,
|
|
2455
2457
|
getRowHeight: k,
|
|
2456
2458
|
onScroll: ve
|
|
2457
2459
|
}, it = o(w) + W, Pl = {
|
|
@@ -2466,7 +2468,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2466
2468
|
bodyWidth: it,
|
|
2467
2469
|
headerWidth: it,
|
|
2468
2470
|
headerHeight: ye,
|
|
2469
|
-
height:
|
|
2471
|
+
height: Q,
|
|
2470
2472
|
rowKey: _,
|
|
2471
2473
|
scrollbarAlwaysOn: N,
|
|
2472
2474
|
scrollbarStartGap: 2,
|
|
@@ -2511,28 +2513,28 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2511
2513
|
headerCellProps: ke,
|
|
2512
2514
|
onColumnSorted: U
|
|
2513
2515
|
}, he = {
|
|
2514
|
-
row: (ct) =>
|
|
2516
|
+
row: (ct) => p(uo, Z(ct, $l), {
|
|
2515
2517
|
row: t.row,
|
|
2516
2518
|
cell: (le) => {
|
|
2517
2519
|
let xe;
|
|
2518
|
-
return t.cell ?
|
|
2520
|
+
return t.cell ? p(nl, Z(le, Dt, {
|
|
2519
2521
|
style: Oe[le.column.key]
|
|
2520
2522
|
}), Be(xe = t.cell(le)) ? xe : {
|
|
2521
2523
|
default: () => [xe]
|
|
2522
|
-
}) :
|
|
2524
|
+
}) : p(nl, Z(le, Dt, {
|
|
2523
2525
|
style: Oe[le.column.key]
|
|
2524
2526
|
}), null);
|
|
2525
2527
|
}
|
|
2526
2528
|
}),
|
|
2527
|
-
header: (ct) =>
|
|
2529
|
+
header: (ct) => p(So, Z(ct, Wl), {
|
|
2528
2530
|
header: t.header,
|
|
2529
2531
|
cell: (le) => {
|
|
2530
2532
|
let xe;
|
|
2531
|
-
return t["header-cell"] ?
|
|
2533
|
+
return t["header-cell"] ? p(ol, Z(le, Pt, {
|
|
2532
2534
|
style: Oe[le.column.key]
|
|
2533
2535
|
}), Be(xe = t["header-cell"](le)) ? xe : {
|
|
2534
2536
|
default: () => [xe]
|
|
2535
|
-
}) :
|
|
2537
|
+
}) : p(ol, Z(le, Pt, {
|
|
2536
2538
|
style: Oe[le.column.key]
|
|
2537
2539
|
}), null);
|
|
2538
2540
|
}
|
|
@@ -2543,23 +2545,23 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2543
2545
|
class: n.e("footer"),
|
|
2544
2546
|
style: o(x)
|
|
2545
2547
|
};
|
|
2546
|
-
return
|
|
2548
|
+
return p("div", {
|
|
2547
2549
|
class: Fl,
|
|
2548
2550
|
style: o(D)
|
|
2549
|
-
}, [
|
|
2551
|
+
}, [p(Xn, se, Be(he) ? he : {
|
|
2550
2552
|
default: () => [he]
|
|
2551
|
-
}),
|
|
2553
|
+
}), p(eo, je, Be(he) ? he : {
|
|
2552
2554
|
default: () => [he]
|
|
2553
|
-
}),
|
|
2555
|
+
}), p(no, Pl, Be(he) ? he : {
|
|
2554
2556
|
default: () => [he]
|
|
2555
|
-
}), t.footer &&
|
|
2557
|
+
}), t.footer && p(_o, Gl, {
|
|
2556
2558
|
default: t.footer
|
|
2557
|
-
}), o(A) &&
|
|
2559
|
+
}), o(A) && p(po, {
|
|
2558
2560
|
class: n.e("empty"),
|
|
2559
2561
|
style: o(O)
|
|
2560
2562
|
}, {
|
|
2561
2563
|
default: t.empty
|
|
2562
|
-
}), t.overlay &&
|
|
2564
|
+
}), t.overlay && p(Co, {
|
|
2563
2565
|
class: n.e("overlay")
|
|
2564
2566
|
}, {
|
|
2565
2567
|
default: t.overlay
|
|
@@ -2578,7 +2580,7 @@ const Ao = ne({
|
|
|
2578
2580
|
const t = V(), l = V(0), n = V(0);
|
|
2579
2581
|
let r;
|
|
2580
2582
|
return st(() => {
|
|
2581
|
-
r =
|
|
2583
|
+
r = ql(t, ([a]) => {
|
|
2582
2584
|
const { width: s, height: i } = a.contentRect, { paddingLeft: v, paddingRight: f, paddingTop: d, paddingBottom: w } = getComputedStyle(a.target), b = Number.parseInt(v) || 0, g = Number.parseInt(f) || 0, y = Number.parseInt(d) || 0, u = Number.parseInt(w) || 0;
|
|
2583
2585
|
l.value = s - b - g, n.value = i - y - u;
|
|
2584
2586
|
}).stop;
|
|
@@ -2611,7 +2613,7 @@ const Ao = ne({
|
|
|
2611
2613
|
};
|
|
2612
2614
|
return () => {
|
|
2613
2615
|
var i;
|
|
2614
|
-
return
|
|
2616
|
+
return p("div", {
|
|
2615
2617
|
ref: a,
|
|
2616
2618
|
class: l.b(),
|
|
2617
2619
|
style: s
|
|
@@ -2623,7 +2625,7 @@ const Ao = ne({
|
|
|
2623
2625
|
}
|
|
2624
2626
|
});
|
|
2625
2627
|
var zo = No;
|
|
2626
|
-
const Lo =
|
|
2628
|
+
const Lo = pt(Io), Do = pt(zo);
|
|
2627
2629
|
const Po = {
|
|
2628
2630
|
key: 0,
|
|
2629
2631
|
class: "footer-box"
|
|
@@ -2671,15 +2673,15 @@ const Po = {
|
|
|
2671
2673
|
...n.config
|
|
2672
2674
|
})), a = V(null), s = V(0);
|
|
2673
2675
|
let i = 0, v = !1, f = null;
|
|
2674
|
-
const d =
|
|
2676
|
+
const d = tn(e, "tableActiveData"), w = T(() => d.value.map((h) => h[r.value.tableActiveKey])), b = ({
|
|
2675
2677
|
rowData: h,
|
|
2676
2678
|
rowIndex: m
|
|
2677
2679
|
}) => {
|
|
2678
2680
|
const {
|
|
2679
2681
|
tableActiveNum: S,
|
|
2680
|
-
tableActiveKey:
|
|
2682
|
+
tableActiveKey: C
|
|
2681
2683
|
} = r.value;
|
|
2682
|
-
if (w.value.includes(h[
|
|
2684
|
+
if (w.value.includes(h[C]))
|
|
2683
2685
|
return;
|
|
2684
2686
|
const M = Math.floor(m / S) * S, R = M + S;
|
|
2685
2687
|
d.value = n.tableData.slice(M, R);
|
|
@@ -2690,12 +2692,12 @@ const Po = {
|
|
|
2690
2692
|
tableData: m
|
|
2691
2693
|
} = n, {
|
|
2692
2694
|
tableActiveNum: S,
|
|
2693
|
-
tableActiveKey:
|
|
2695
|
+
tableActiveKey: C,
|
|
2694
2696
|
pageUpDownEnabled: M
|
|
2695
2697
|
} = r.value;
|
|
2696
2698
|
if (!m.length || !M)
|
|
2697
2699
|
return;
|
|
2698
|
-
const R = m.findIndex((x) => x[
|
|
2700
|
+
const R = m.findIndex((x) => x[C] === w.value.at(0)), O = m.findIndex((x) => x[C] === w.value.at(-1));
|
|
2699
2701
|
let D = null, F = null;
|
|
2700
2702
|
switch (h) {
|
|
2701
2703
|
case "PageUp":
|
|
@@ -2732,15 +2734,15 @@ const Po = {
|
|
|
2732
2734
|
window.addEventListener("keydown", g);
|
|
2733
2735
|
}), Me(() => n.tableLoading, (h) => {
|
|
2734
2736
|
h || (s.value = 0);
|
|
2735
|
-
}),
|
|
2737
|
+
}), ln(() => {
|
|
2736
2738
|
window.removeEventListener("keydown", g);
|
|
2737
2739
|
}), (h, m) => {
|
|
2738
|
-
const S = rl,
|
|
2740
|
+
const S = rl, C = Yl, M = yn, R = Lo, O = Do;
|
|
2739
2741
|
return De(), dt(O, null, {
|
|
2740
2742
|
default: Ne(({
|
|
2741
2743
|
height: D,
|
|
2742
2744
|
width: F
|
|
2743
|
-
}) => [
|
|
2745
|
+
}) => [p(R, {
|
|
2744
2746
|
ref_key: "tableRef",
|
|
2745
2747
|
ref: a,
|
|
2746
2748
|
id: "virtualTable",
|
|
@@ -2760,7 +2762,7 @@ const Po = {
|
|
|
2760
2762
|
onScroll: y,
|
|
2761
2763
|
onEndReached: m[0] || (m[0] = (x) => u(e.tableData.length - 1, "PageDown"))
|
|
2762
2764
|
}, {
|
|
2763
|
-
empty: Ne(() => [
|
|
2765
|
+
empty: Ne(() => [p(S, {
|
|
2764
2766
|
description: "暂无数据",
|
|
2765
2767
|
style: {
|
|
2766
2768
|
height: "100%"
|
|
@@ -2769,7 +2771,7 @@ const Po = {
|
|
|
2769
2771
|
footer: Ne(() => [s.value ? (De(), ht("div", Po, [e.tableLoading === "more" ? (De(), dt(M, {
|
|
2770
2772
|
key: 0
|
|
2771
2773
|
}, {
|
|
2772
|
-
default: Ne(() => [C
|
|
2774
|
+
default: Ne(() => [p(C, {
|
|
2773
2775
|
type: "primary",
|
|
2774
2776
|
text: "",
|
|
2775
2777
|
loading: ""
|
|
@@ -2791,11 +2793,11 @@ const Po = {
|
|
|
2791
2793
|
};
|
|
2792
2794
|
}
|
|
2793
2795
|
};
|
|
2794
|
-
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]),
|
|
2796
|
+
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]), lr = {
|
|
2795
2797
|
install(e) {
|
|
2796
2798
|
e.component("st-virtualTable", Wo);
|
|
2797
2799
|
}
|
|
2798
2800
|
};
|
|
2799
2801
|
export {
|
|
2800
|
-
|
|
2802
|
+
lr as default
|
|
2801
2803
|
};
|