st-comp 0.0.155 → 0.0.156
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 +1 -73
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +84 -86
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +24 -26
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -16
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +54 -56
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +154 -156
- package/es/User.cjs +1 -1
- package/es/User.js +143 -145
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +51 -53
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +160 -162
- package/es/{_initCloneObject-e3d8a9ab.js → _initCloneObject-8f85a96c.js} +34 -35
- package/es/_initCloneObject-e4534778.cjs +1 -0
- package/es/base-12a831d5.cjs +5 -0
- package/es/{index-72151b24.js → base-684eb9e1.js} +448 -150
- package/es/{castArray-8405000b.js → castArray-40b04f9d.js} +1 -1
- package/es/castArray-636c916c.cjs +1 -0
- package/es/{config-provider-cfbb9cd8.cjs → config-provider-cbbe303b.cjs} +1 -1
- package/es/{config-provider-0f6672af.js → config-provider-d3567354.js} +3 -3
- package/es/{debounce-6cb0781f.js → debounce-1474a11f.js} +13 -13
- package/es/debounce-317b8502.cjs +1 -0
- package/es/{dropdown-17b3ef6a.js → dropdown-0df01c01.js} +4 -4
- package/es/{dropdown-790d31ea.cjs → dropdown-db585641.cjs} +1 -1
- package/es/{el-button-0bf1d532.js → el-button-45a4c20f.js} +27 -28
- package/es/el-button-d1e1053b.cjs +1 -0
- package/es/{el-checkbox-group-d53bc316.js → el-checkbox-group-0a002b34.js} +9 -9
- package/es/{el-checkbox-group-45247bbf.cjs → el-checkbox-group-f63d75fa.cjs} +1 -1
- package/es/el-empty-b90b1d71.cjs +1 -0
- package/es/{el-empty-bd5343a7.js → el-empty-d4395563.js} +18 -18
- package/es/{el-form-item-05c0e335.js → el-form-item-0e2f2f50.js} +32 -33
- package/es/el-form-item-54aa10ba.cjs +12 -0
- package/es/el-input-8f26c59f.cjs +1 -0
- package/es/{el-input-1e309239.js → el-input-9fa1ff16.js} +43 -44
- package/es/{el-input-number-60ebc58f.js → el-input-number-09ab38ca.js} +55 -57
- package/es/el-input-number-243c370c.cjs +1 -0
- package/es/el-menu-item-b0b8f7e7.cjs +1 -0
- package/es/{el-menu-item-6c6236a1.js → el-menu-item-dcd129a2.js} +63 -64
- package/es/el-message-a47aa393.cjs +1 -0
- package/es/{el-message-7d927756.js → el-message-ff58b3e1.js} +70 -71
- package/es/el-overlay-2e275c8b.cjs +1 -0
- package/es/{el-overlay-26bf0945.js → el-overlay-58488ca9.js} +69 -71
- package/es/el-popover-7f431071.cjs +1 -0
- package/es/{el-popover-17e2e66c.js → el-popover-8253cb85.js} +26 -28
- package/es/el-popper-41feed2f.cjs +1 -0
- package/es/{el-popper-b6527ae2.js → el-popper-7c6f2aa7.js} +204 -205
- package/es/{el-scrollbar-29bcab5f.js → el-scrollbar-41d54029.js} +22 -22
- package/es/el-scrollbar-994f4975.cjs +1 -0
- package/es/el-select-2001b9be.cjs +1 -0
- package/es/{el-select-7395562b.js → el-select-7126baad.js} +33 -35
- package/es/el-table-column-b7615fa7.cjs +14 -0
- package/es/{el-table-column-47d80736.js → el-table-column-cb842955.js} +260 -262
- package/es/{el-tag-7414e0c7.js → el-tag-82921cf8.js} +28 -28
- package/es/el-tag-d7d821c4.cjs +1 -0
- package/es/{index-75cce588.js → index-11219ee5.js} +11 -12
- package/es/{index-273822d1.js → index-225cc10a.js} +16 -17
- package/es/index-4a1bbe07.cjs +1 -0
- package/es/index-6fd572af.js +59 -0
- package/es/{index-621b092b.js → index-7d1d201c.js} +1 -1
- package/es/index-858867bc.cjs +3 -0
- package/es/index-b7de6897.js +81 -0
- package/es/{index-65b4113e.cjs → index-d4202769.cjs} +1 -1
- package/es/{index-1d85ba4b.cjs → index-e32698d9.cjs} +1 -1
- package/es/index-f32a92f4.cjs +1 -0
- package/es/{raf-f46caea0.cjs → raf-46aa1661.cjs} +1 -1
- package/es/raf-fef33013.js +6 -0
- package/es/{scroll-d787d648.js → scroll-037086b0.js} +5 -5
- package/es/{scroll-339681d4.cjs → scroll-7d889620.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-55b310d1.js +684 -0
- package/es/use-form-common-props-87ba8842.cjs +6 -0
- package/es/{vnode-6a0c7411.js → vnode-1939d932.js} +1 -1
- package/es/{vnode-b15eb11b.cjs → vnode-7028b17d.cjs} +1 -1
- package/es/{zh-cn-36f34912.cjs → zh-cn-dba02740.cjs} +1 -1
- package/es/{zh-cn-f37255ae.js → zh-cn-fe562ff6.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-1e2ed5f3.js → index-71617d1a.js} +4 -4
- package/lib/{python-258cd090.js → python-66457064.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/index.vue +1 -1
- package/es/_initCloneObject-47814efa.cjs +0 -1
- package/es/base-0ca7c43a.cjs +0 -5
- package/es/base-19787dfb.js +0 -303
- package/es/castArray-a78ae889.cjs +0 -1
- package/es/debounce-cf26af24.cjs +0 -1
- package/es/el-button-62966947.cjs +0 -1
- package/es/el-empty-2ece1134.cjs +0 -1
- package/es/el-form-item-47e255d4.cjs +0 -12
- package/es/el-input-6a3805c5.cjs +0 -1
- package/es/el-input-number-96ff2e47.cjs +0 -1
- package/es/el-menu-item-4c9eb7ad.cjs +0 -1
- package/es/el-message-d5ed7a4f.cjs +0 -1
- package/es/el-overlay-41994f67.cjs +0 -1
- package/es/el-popover-7bd8a7c3.cjs +0 -1
- package/es/el-popper-7adbf1c6.cjs +0 -1
- package/es/el-scrollbar-ac525239.cjs +0 -1
- package/es/el-select-31f8ac8a.cjs +0 -1
- package/es/el-table-column-bdc46568.cjs +0 -14
- package/es/el-tag-9732314f.cjs +0 -1
- package/es/index-2d9c78d4.cjs +0 -1
- package/es/index-2f958e56.cjs +0 -3
- package/es/index-375e8de4.cjs +0 -5
- package/es/index-70372cdb.js +0 -519
- package/es/index-9e6e8d03.cjs +0 -1
- package/es/index-afc88a4b.cjs +0 -1
- package/es/index-c066fe0d.js +0 -82
- package/es/index-dc22ffe4.js +0 -59
- package/es/raf-a532c514.js +0 -6
- package/es/use-form-common-props-5ff2f51b.js +0 -171
- package/es/use-form-common-props-74a96df2.cjs +0 -2
package/es/VirtualTable.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { b as ne, d as I, u as be, _ as Vl, w as
|
|
2
|
-
import { E as
|
|
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
|
|
7
|
-
import { m as
|
|
8
|
-
import { c as
|
|
9
|
-
import { c as
|
|
10
|
-
import {
|
|
11
|
-
import { g as
|
|
12
|
-
import { E as ul, b as cn, t as dn, w as un } from "./index-72151b24.js";
|
|
1
|
+
import { b as ne, d as I, u as be, _ as Vl, w as Ct, ab as He, L as pt, s as Y, i as We, o as et, g as qe, a as kl, D as $t, Y as Kl, C as nt, p as jl, E as rl, a0 as Bl, ac as Ul, ad as ql } from "./base-684eb9e1.js";
|
|
2
|
+
import { E as al } from "./el-empty-d4395563.js";
|
|
3
|
+
import { B as Yl, u as Zl, a as Xl } from "./el-scrollbar-41d54029.js";
|
|
4
|
+
import { E as Jl } from "./el-button-45a4c20f.js";
|
|
5
|
+
import { defineComponent as ie, computed as T, openBlock as De, createElementBlock as ht, normalizeClass as Wt, unref as o, normalizeStyle as Ql, renderSlot as Fe, createCommentVNode as ft, getCurrentInstance as at, ref as V, reactive as en, watch as Me, onBeforeUnmount as sl, h as fe, withModifiers as tn, shallowRef as Le, isVNode as Ie, toRef as Ft, inject as Ht, onUpdated as ln, createVNode as C, nextTick as $e, onMounted as st, resolveDynamicComponent as Gt, Fragment as nn, provide as il, mergeProps as Z, mergeModels as Vt, useModel as on, onUnmounted as rn, createBlock as dt, withCtx as Ne, createTextVNode as kt } from "vue";
|
|
6
|
+
import { d as an } from "./debounce-1474a11f.js";
|
|
7
|
+
import { m as cl } from "./typescript-7ae59c4c.js";
|
|
8
|
+
import { c as sn } from "./castArray-40b04f9d.js";
|
|
9
|
+
import { c as dl, r as ul } from "./raf-fef33013.js";
|
|
10
|
+
import { J as cn, m as dn } from "./use-form-common-props-55b310d1.js";
|
|
11
|
+
import { g as un } from "./scroll-037086b0.js";
|
|
13
12
|
import { _ as hn } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./use-form-common-props-5ff2f51b.js";
|
|
13
|
+
import "./index-b7de6897.js";
|
|
16
14
|
import "./index-657047bb.js";
|
|
17
15
|
const fn = ne({
|
|
18
16
|
direction: {
|
|
@@ -40,7 +38,7 @@ const fn = ne({
|
|
|
40
38
|
}));
|
|
41
39
|
return (r, a) => (De(), ht("div", {
|
|
42
40
|
class: Wt([o(l).b(), o(l).m(r.direction)]),
|
|
43
|
-
style:
|
|
41
|
+
style: Ql(o(n)),
|
|
44
42
|
role: "separator"
|
|
45
43
|
}, [
|
|
46
44
|
r.$slots.default && r.direction !== "vertical" ? (De(), ht("div", {
|
|
@@ -53,7 +51,7 @@ const fn = ne({
|
|
|
53
51
|
}
|
|
54
52
|
});
|
|
55
53
|
var gn = /* @__PURE__ */ Vl(vn, [["__file", "divider.vue"]]);
|
|
56
|
-
const yn =
|
|
54
|
+
const yn = Ct(gn);
|
|
57
55
|
var Kt = Number.isNaN || function(t) {
|
|
58
56
|
return typeof t == "number" && t !== t;
|
|
59
57
|
};
|
|
@@ -91,7 +89,7 @@ const Rn = () => {
|
|
|
91
89
|
const t = at().proxy.$props;
|
|
92
90
|
return T(() => {
|
|
93
91
|
const l = (n, r, a) => ({});
|
|
94
|
-
return t.perfMode ?
|
|
92
|
+
return t.perfMode ? cn(l) : Sn(l);
|
|
95
93
|
});
|
|
96
94
|
}, 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 = {
|
|
97
95
|
[yt]: "left",
|
|
@@ -129,7 +127,7 @@ const Rn = () => {
|
|
|
129
127
|
},
|
|
130
128
|
data: {
|
|
131
129
|
type: I(Array),
|
|
132
|
-
default: () =>
|
|
130
|
+
default: () => cl([])
|
|
133
131
|
},
|
|
134
132
|
direction: En,
|
|
135
133
|
height: {
|
|
@@ -170,7 +168,7 @@ const Rn = () => {
|
|
|
170
168
|
}), Tt = {
|
|
171
169
|
type: Number,
|
|
172
170
|
default: 6
|
|
173
|
-
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 },
|
|
171
|
+
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 }, Ce = ne({
|
|
174
172
|
columnCache: Rt,
|
|
175
173
|
columnWidth: bt,
|
|
176
174
|
estimatedColumnWidth: St,
|
|
@@ -226,7 +224,7 @@ function Yt(e = !1) {
|
|
|
226
224
|
}
|
|
227
225
|
return ze;
|
|
228
226
|
}
|
|
229
|
-
function
|
|
227
|
+
function Cn({ move: e, size: t, bar: l }, n) {
|
|
230
228
|
const r = {}, a = `translate${l.axis}(${e}px)`;
|
|
231
229
|
return r[l.size] = t, r.transform = a, r.msTransform = a, r.webkitTransform = a, n === "horizontal" ? r.height = "100%" : r.width = "100%", r;
|
|
232
230
|
}
|
|
@@ -237,10 +235,10 @@ const Zt = ie({
|
|
|
237
235
|
setup(e, { emit: t }) {
|
|
238
236
|
const l = T(() => e.startGap + e.endGap), n = be("virtual-scrollbar"), r = be("scrollbar"), a = V(), s = V();
|
|
239
237
|
let i = null, v = null;
|
|
240
|
-
const f =
|
|
238
|
+
const f = en({
|
|
241
239
|
isDragging: !1,
|
|
242
240
|
traveled: 0
|
|
243
|
-
}), d = T(() =>
|
|
241
|
+
}), d = T(() => Yl[e.layout]), w = T(() => e.clientSize - o(l)), b = T(() => ({
|
|
244
242
|
position: "absolute",
|
|
245
243
|
width: `${yt === e.layout ? w.value : e.scrollbarSize}px`,
|
|
246
244
|
height: `${yt === e.layout ? e.scrollbarSize : w.value}px`,
|
|
@@ -262,33 +260,33 @@ const Zt = ie({
|
|
|
262
260
|
display: "none"
|
|
263
261
|
};
|
|
264
262
|
const R = `${g.value}px`;
|
|
265
|
-
return
|
|
263
|
+
return Cn({
|
|
266
264
|
bar: d.value,
|
|
267
265
|
size: R,
|
|
268
266
|
move: f.traveled
|
|
269
267
|
}, e.layout);
|
|
270
268
|
}), u = T(() => Math.floor(e.clientSize - g.value - o(l))), c = () => {
|
|
271
|
-
window.addEventListener("mousemove",
|
|
269
|
+
window.addEventListener("mousemove", p), window.addEventListener("mouseup", S);
|
|
272
270
|
const R = o(s);
|
|
273
|
-
R && (v = document.onselectstart, document.onselectstart = () => !1, R.addEventListener("touchmove",
|
|
271
|
+
R && (v = document.onselectstart, document.onselectstart = () => !1, R.addEventListener("touchmove", p, { passive: !0 }), R.addEventListener("touchend", S));
|
|
274
272
|
}, h = () => {
|
|
275
|
-
window.removeEventListener("mousemove",
|
|
273
|
+
window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", S), document.onselectstart = v, v = null;
|
|
276
274
|
const R = o(s);
|
|
277
|
-
R && (R.removeEventListener("touchmove",
|
|
275
|
+
R && (R.removeEventListener("touchmove", p), R.removeEventListener("touchend", S));
|
|
278
276
|
}, m = (R) => {
|
|
279
277
|
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());
|
|
280
278
|
}, S = () => {
|
|
281
279
|
f.isDragging = !1, f[d.value.axis] = 0, t("stop-move"), h();
|
|
282
|
-
},
|
|
280
|
+
}, p = (R) => {
|
|
283
281
|
const { isDragging: O } = f;
|
|
284
282
|
if (!O || !s.value || !a.value)
|
|
285
283
|
return;
|
|
286
284
|
const D = f[d.value.axis];
|
|
287
285
|
if (!D)
|
|
288
286
|
return;
|
|
289
|
-
|
|
287
|
+
dl(i);
|
|
290
288
|
const F = (a.value.getBoundingClientRect()[d.value.direction] - R[d.value.client]) * -1, x = s.value[d.value.offset] - D, A = F - x;
|
|
291
|
-
i =
|
|
289
|
+
i = ul(() => {
|
|
292
290
|
f.traveled = Math.max(e.startGap, Math.min(A, u.value)), t("scroll", A, u.value);
|
|
293
291
|
});
|
|
294
292
|
}, M = (R) => {
|
|
@@ -297,7 +295,7 @@ const Zt = ie({
|
|
|
297
295
|
};
|
|
298
296
|
return Me(() => e.scrollFrom, (R) => {
|
|
299
297
|
f.isDragging || (f.traveled = Math.ceil(R * u.value));
|
|
300
|
-
}),
|
|
298
|
+
}), sl(() => {
|
|
301
299
|
h();
|
|
302
300
|
}), () => fe("div", {
|
|
303
301
|
role: "presentation",
|
|
@@ -308,7 +306,7 @@ const Zt = ie({
|
|
|
308
306
|
(e.alwaysOn || f.isDragging) && "always-on"
|
|
309
307
|
],
|
|
310
308
|
style: b.value,
|
|
311
|
-
onMousedown:
|
|
309
|
+
onMousedown: tn(M, ["stop", "prevent"]),
|
|
312
310
|
onTouchstartPrevent: m
|
|
313
311
|
}, fe("div", {
|
|
314
312
|
ref: s,
|
|
@@ -323,7 +321,7 @@ const Et = {
|
|
|
323
321
|
asc: "desc",
|
|
324
322
|
desc: "asc"
|
|
325
323
|
/* ASC */
|
|
326
|
-
}, Xe = Symbol("placeholder"),
|
|
324
|
+
}, Xe = Symbol("placeholder"), pn = (e, t, l) => {
|
|
327
325
|
var n;
|
|
328
326
|
const r = {
|
|
329
327
|
flexGrow: 0,
|
|
@@ -364,7 +362,7 @@ function Hn(e, t, l) {
|
|
|
364
362
|
placeholderSign: Xe
|
|
365
363
|
});
|
|
366
364
|
}), c;
|
|
367
|
-
}), f = T(() => o(a).length || o(s).length), d = T(() => o(n).reduce((c, h) => (c[h.key] =
|
|
365
|
+
}), f = T(() => o(a).length || o(s).length), d = T(() => o(n).reduce((c, h) => (c[h.key] = pn(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) => {
|
|
368
366
|
c.width = h;
|
|
369
367
|
};
|
|
370
368
|
function u(c) {
|
|
@@ -372,9 +370,9 @@ function Hn(e, t, l) {
|
|
|
372
370
|
const { key: m } = c.currentTarget.dataset;
|
|
373
371
|
if (!m)
|
|
374
372
|
return;
|
|
375
|
-
const { sortState: S, sortBy:
|
|
373
|
+
const { sortState: S, sortBy: p } = e;
|
|
376
374
|
let M = Ye.ASC;
|
|
377
|
-
|
|
375
|
+
pt(S) ? M = Et[S[m]] : M = Et[p.order], (h = e.onColumnSort) == null || h.call(e, { column: b(m), key: m, order: M });
|
|
378
376
|
}
|
|
379
377
|
return {
|
|
380
378
|
columns: n,
|
|
@@ -450,7 +448,7 @@ const Mn = (e, {
|
|
|
450
448
|
var A;
|
|
451
449
|
(A = e.onRowsRendered) == null || A.call(e, x), x.rowCacheEnd > o(w) && (w.value = x.rowCacheEnd);
|
|
452
450
|
}
|
|
453
|
-
function
|
|
451
|
+
function p({ hovered: x, rowKey: A }) {
|
|
454
452
|
if (s.value)
|
|
455
453
|
return;
|
|
456
454
|
r.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((K) => {
|
|
@@ -472,7 +470,7 @@ const Mn = (e, {
|
|
|
472
470
|
rowKey: P
|
|
473
471
|
}), (B = e.onExpandedRowsChange) == null || B.call(e, k);
|
|
474
472
|
}
|
|
475
|
-
const R =
|
|
473
|
+
const R = an(() => {
|
|
476
474
|
var x, A, G, P;
|
|
477
475
|
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;
|
|
478
476
|
}, 0);
|
|
@@ -499,7 +497,7 @@ const Mn = (e, {
|
|
|
499
497
|
rowHeights: g,
|
|
500
498
|
resetAfterIndex: O,
|
|
501
499
|
onRowExpanded: M,
|
|
502
|
-
onRowHovered:
|
|
500
|
+
onRowHovered: p,
|
|
503
501
|
onRowsRendered: S,
|
|
504
502
|
onRowHeightChange: F
|
|
505
503
|
};
|
|
@@ -526,7 +524,7 @@ const Mn = (e, {
|
|
|
526
524
|
data: s,
|
|
527
525
|
depthMap: r
|
|
528
526
|
};
|
|
529
|
-
}, On = (e, t) => e + t, tt = (e) => We(e) ? e.reduce(On, 0) : e,
|
|
527
|
+
}, On = (e, t) => e + t, tt = (e) => We(e) ? e.reduce(On, 0) : e, pe = (e, t, l = {}) => qe(e) ? e(t) : e ?? l, we = (e) => (["width", "maxWidth", "minWidth", "height"].forEach((t) => {
|
|
530
528
|
e[t] = et(e[t]);
|
|
531
529
|
}), e), Tl = (e) => Ie(e) ? (t) => fe(e, t) : e, Nn = (e, {
|
|
532
530
|
columnsTotalWidth: t,
|
|
@@ -535,30 +533,30 @@ const Mn = (e, {
|
|
|
535
533
|
fixedColumnsOnRight: r
|
|
536
534
|
}) => {
|
|
537
535
|
const a = T(() => {
|
|
538
|
-
const { fixed: m, width: S, vScrollbarSize:
|
|
536
|
+
const { fixed: m, width: S, vScrollbarSize: p } = e, M = S - p;
|
|
539
537
|
return m ? Math.max(Math.round(o(t)), M) : M;
|
|
540
538
|
}), s = T(() => o(a) + e.vScrollbarSize), i = T(() => {
|
|
541
|
-
const { height: m = 0, maxHeight: S = 0, footerHeight:
|
|
539
|
+
const { height: m = 0, maxHeight: S = 0, footerHeight: p, hScrollbarSize: M } = e;
|
|
542
540
|
if (S > 0) {
|
|
543
541
|
const R = o(g), O = o(l), F = o(b) + R + O + M;
|
|
544
|
-
return Math.min(F, S -
|
|
542
|
+
return Math.min(F, S - p);
|
|
545
543
|
}
|
|
546
|
-
return m -
|
|
544
|
+
return m - p;
|
|
547
545
|
}), v = T(() => {
|
|
548
546
|
const { maxHeight: m } = e, S = o(i);
|
|
549
547
|
if (Y(m) && m > 0)
|
|
550
548
|
return S;
|
|
551
|
-
const
|
|
552
|
-
return Math.min(S,
|
|
549
|
+
const p = o(l) + o(b) + o(g);
|
|
550
|
+
return Math.min(S, p);
|
|
553
551
|
}), 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(() => {
|
|
554
552
|
var m;
|
|
555
553
|
return (((m = e.fixedData) == null ? void 0 : m.length) || 0) * e.rowHeight;
|
|
556
554
|
}), y = T(() => o(i) - o(b) - o(g)), u = T(() => {
|
|
557
|
-
const { style: m = {}, height: S, width:
|
|
555
|
+
const { style: m = {}, height: S, width: p } = e;
|
|
558
556
|
return we({
|
|
559
557
|
...m,
|
|
560
558
|
height: S,
|
|
561
|
-
width:
|
|
559
|
+
width: p
|
|
562
560
|
});
|
|
563
561
|
}), c = T(() => we({ height: e.footerHeight })), h = T(() => ({
|
|
564
562
|
top: et(o(b)),
|
|
@@ -602,7 +600,7 @@ function zn(e) {
|
|
|
602
600
|
leftTableRef: l,
|
|
603
601
|
rightTableRef: n,
|
|
604
602
|
onMaybeEndReached: Ke
|
|
605
|
-
}), S = be("table-v2"),
|
|
603
|
+
}), S = be("table-v2"), p = at(), M = Le(!1), {
|
|
606
604
|
expandedRowKeys: R,
|
|
607
605
|
lastRenderedRowIndex: O,
|
|
608
606
|
isDynamic: D,
|
|
@@ -617,7 +615,7 @@ function zn(e) {
|
|
|
617
615
|
mainTableRef: t,
|
|
618
616
|
leftTableRef: l,
|
|
619
617
|
rightTableRef: n,
|
|
620
|
-
tableInstance:
|
|
618
|
+
tableInstance: p,
|
|
621
619
|
ns: S,
|
|
622
620
|
isScrolling: M
|
|
623
621
|
}), { data: k, depthMap: U } = An(e, {
|
|
@@ -713,11 +711,11 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
713
711
|
required: !0
|
|
714
712
|
}, Ln = String, Xt = {
|
|
715
713
|
type: I(Array),
|
|
716
|
-
default: () =>
|
|
714
|
+
default: () => cl([])
|
|
717
715
|
}, Te = {
|
|
718
716
|
type: Number,
|
|
719
717
|
required: !0
|
|
720
|
-
},
|
|
718
|
+
}, Cl = {
|
|
721
719
|
type: I([String, Number, Symbol]),
|
|
722
720
|
default: "id"
|
|
723
721
|
}, Jt = {
|
|
@@ -732,7 +730,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
732
730
|
depth: Number,
|
|
733
731
|
expandColumnKey: Ln,
|
|
734
732
|
estimatedRowHeight: {
|
|
735
|
-
...
|
|
733
|
+
...Ce.estimatedRowHeight,
|
|
736
734
|
default: void 0
|
|
737
735
|
},
|
|
738
736
|
isScrolling: Boolean,
|
|
@@ -756,7 +754,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
756
754
|
type: Number,
|
|
757
755
|
required: !0
|
|
758
756
|
},
|
|
759
|
-
rowKey:
|
|
757
|
+
rowKey: Cl,
|
|
760
758
|
style: {
|
|
761
759
|
type: I(Object)
|
|
762
760
|
}
|
|
@@ -797,9 +795,9 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
797
795
|
rowHeight: Te,
|
|
798
796
|
cache: _n.cache,
|
|
799
797
|
useIsScrolling: Boolean,
|
|
800
|
-
scrollbarAlwaysOn:
|
|
801
|
-
scrollbarStartGap:
|
|
802
|
-
scrollbarEndGap:
|
|
798
|
+
scrollbarAlwaysOn: Ce.scrollbarAlwaysOn,
|
|
799
|
+
scrollbarStartGap: Ce.scrollbarStartGap,
|
|
800
|
+
scrollbarEndGap: Ce.scrollbarEndGap,
|
|
803
801
|
class: El,
|
|
804
802
|
style: Jt,
|
|
805
803
|
containerStyle: Jt,
|
|
@@ -817,7 +815,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
817
815
|
}), Dn = ne({
|
|
818
816
|
cache: lt.cache,
|
|
819
817
|
estimatedRowHeight: _e.estimatedRowHeight,
|
|
820
|
-
rowKey:
|
|
818
|
+
rowKey: Cl,
|
|
821
819
|
headerClass: {
|
|
822
820
|
type: I([
|
|
823
821
|
String,
|
|
@@ -883,8 +881,8 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
883
881
|
type: Number,
|
|
884
882
|
default: 12
|
|
885
883
|
},
|
|
886
|
-
hScrollbarSize:
|
|
887
|
-
vScrollbarSize:
|
|
884
|
+
hScrollbarSize: Ce.hScrollbarSize,
|
|
885
|
+
vScrollbarSize: Ce.vScrollbarSize,
|
|
888
886
|
scrollbarAlwaysOn: Rl.alwaysOn,
|
|
889
887
|
sortBy: {
|
|
890
888
|
type: I(Object),
|
|
@@ -920,7 +918,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
920
918
|
})), i = T(() => we({
|
|
921
919
|
width: e.rowWidth,
|
|
922
920
|
height: e.height
|
|
923
|
-
})), v = T(() =>
|
|
921
|
+
})), v = T(() => sn(o(e.headerHeight))), f = (b) => {
|
|
924
922
|
const g = o(a);
|
|
925
923
|
$e(() => {
|
|
926
924
|
g != null && g.scroll && g.scroll({
|
|
@@ -965,18 +963,18 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
965
963
|
});
|
|
966
964
|
});
|
|
967
965
|
};
|
|
968
|
-
return
|
|
966
|
+
return ln(() => {
|
|
969
967
|
r != null && r.value && f(r.value);
|
|
970
968
|
}), l({
|
|
971
969
|
scrollToLeft: f
|
|
972
970
|
}), () => {
|
|
973
971
|
if (!(e.height <= 0))
|
|
974
|
-
return
|
|
972
|
+
return C("div", {
|
|
975
973
|
ref: a,
|
|
976
974
|
class: e.class,
|
|
977
975
|
style: o(s),
|
|
978
976
|
role: "rowgroup"
|
|
979
|
-
}, [
|
|
977
|
+
}, [C("div", {
|
|
980
978
|
style: o(i),
|
|
981
979
|
class: n.e("header")
|
|
982
980
|
}, [w(), d()])]);
|
|
@@ -993,14 +991,14 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
993
991
|
return {
|
|
994
992
|
hasReachedEdge: v,
|
|
995
993
|
onWheel: (d) => {
|
|
996
|
-
|
|
994
|
+
dl(a);
|
|
997
995
|
let w = d.deltaX, b = d.deltaY;
|
|
998
|
-
Math.abs(w) > Math.abs(b) ? b = 0 : w = 0, d.shiftKey && b !== 0 && (w = b, b = 0), !(v(s, i) && v(s + w, i + b)) && (s += w, i += b, d.preventDefault(), a =
|
|
996
|
+
Math.abs(w) > Math.abs(b) ? b = 0 : w = 0, d.shiftKey && b !== 0 && (w = b, b = 0), !(v(s, i) && v(s + w, i + b)) && (s += w, i += b, d.preventDefault(), a = ul(() => {
|
|
999
997
|
r(s, i), s = 0, i = 0;
|
|
1000
998
|
}));
|
|
1001
999
|
}
|
|
1002
1000
|
};
|
|
1003
|
-
},
|
|
1001
|
+
}, pl = ({
|
|
1004
1002
|
name: e,
|
|
1005
1003
|
clearCache: t,
|
|
1006
1004
|
getColumnPosition: l,
|
|
@@ -1018,13 +1016,13 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1018
1016
|
validateProps: y
|
|
1019
1017
|
}) => ie({
|
|
1020
1018
|
name: e ?? "ElVirtualList",
|
|
1021
|
-
props:
|
|
1019
|
+
props: Ce,
|
|
1022
1020
|
emits: [Bt, Ut],
|
|
1023
1021
|
setup(u, { emit: c, expose: h, slots: m }) {
|
|
1024
1022
|
const S = be("vl");
|
|
1025
1023
|
y(u);
|
|
1026
|
-
const
|
|
1027
|
-
g == null || g(
|
|
1024
|
+
const p = at(), M = V(b(u, p));
|
|
1025
|
+
g == null || g(p, M);
|
|
1028
1026
|
const R = V(), O = V(), D = V(), F = V(null), x = V({
|
|
1029
1027
|
isScrolling: !1,
|
|
1030
1028
|
scrollLeft: Y(u.initScrollLeft) ? u.initScrollLeft : 0,
|
|
@@ -1165,7 +1163,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1165
1163
|
scrollTop: Math.min(x.value.scrollTop + _, k.value - W)
|
|
1166
1164
|
});
|
|
1167
1165
|
});
|
|
1168
|
-
|
|
1166
|
+
Zl(R, "wheel", re, {
|
|
1169
1167
|
passive: !1
|
|
1170
1168
|
});
|
|
1171
1169
|
const te = ({
|
|
@@ -1185,7 +1183,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1185
1183
|
}, ae = (E = 0, _ = 0, H = Ee) => {
|
|
1186
1184
|
const N = o(x);
|
|
1187
1185
|
_ = Math.max(0, Math.min(_, u.totalColumn - 1)), E = Math.max(0, Math.min(E, u.totalRow - 1));
|
|
1188
|
-
const z =
|
|
1186
|
+
const z = un(S.namespace.value), L = o(M), $ = a(u, L), W = s(u, L);
|
|
1189
1187
|
te({
|
|
1190
1188
|
scrollLeft: i(u, _, H, N.scrollLeft, L, W > u.width ? z : 0),
|
|
1191
1189
|
scrollTop: v(u, E, H, N.scrollTop, L, $ > u.height ? z : 0)
|
|
@@ -1239,7 +1237,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1239
1237
|
z.scrollLeft = Math.max(0, _);
|
|
1240
1238
|
z.scrollTop = Math.max(0, H);
|
|
1241
1239
|
}
|
|
1242
|
-
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } =
|
|
1240
|
+
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } = p.proxy;
|
|
1243
1241
|
h({
|
|
1244
1242
|
windowRef: R,
|
|
1245
1243
|
innerRef: F,
|
|
@@ -1296,7 +1294,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1296
1294
|
for (let J = N; J <= z; J++)
|
|
1297
1295
|
for (let Q = _; Q <= H; Q++) {
|
|
1298
1296
|
const je = q({ columnIndex: Q, data: L, rowIndex: J });
|
|
1299
|
-
se.push(fe(
|
|
1297
|
+
se.push(fe(nn, { key: je }, (E = m.default) == null ? void 0 : E.call(m, {
|
|
1300
1298
|
columnIndex: Q,
|
|
1301
1299
|
data: L,
|
|
1302
1300
|
isScrolling: j ? o(x).isScrolling : void 0,
|
|
@@ -1417,7 +1415,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1417
1415
|
default:
|
|
1418
1416
|
return n >= b && n <= w ? n : b > w || n < b ? b : w;
|
|
1419
1417
|
}
|
|
1420
|
-
}, Kn =
|
|
1418
|
+
}, Kn = pl({
|
|
1421
1419
|
name: "ElDynamicSizeGrid",
|
|
1422
1420
|
getColumnPosition: (e, t, l) => {
|
|
1423
1421
|
const n = me(e, t, l, "column");
|
|
@@ -1487,7 +1485,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1487
1485
|
instead ${typeof t} was given.
|
|
1488
1486
|
`));
|
|
1489
1487
|
}
|
|
1490
|
-
}), ll = "ElFixedSizeGrid", jn =
|
|
1488
|
+
}), ll = "ElFixedSizeGrid", jn = pl({
|
|
1491
1489
|
name: "ElFixedSizeGrid",
|
|
1492
1490
|
getColumnPosition: ({ columnWidth: e }, t) => [
|
|
1493
1491
|
e,
|
|
@@ -1585,8 +1583,8 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1585
1583
|
rowVisibleStart: m,
|
|
1586
1584
|
rowVisibleEnd: S
|
|
1587
1585
|
}) {
|
|
1588
|
-
var
|
|
1589
|
-
(
|
|
1586
|
+
var p;
|
|
1587
|
+
(p = e.onRowsRendered) == null || p.call(e, {
|
|
1590
1588
|
rowCacheStart: c,
|
|
1591
1589
|
rowCacheEnd: h,
|
|
1592
1590
|
rowVisibleStart: m,
|
|
@@ -1599,7 +1597,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1599
1597
|
}
|
|
1600
1598
|
function b(c, h) {
|
|
1601
1599
|
const m = o(t), S = o(l);
|
|
1602
|
-
|
|
1600
|
+
pt(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({
|
|
1603
1601
|
scrollLeft: c,
|
|
1604
1602
|
scrollTop: h
|
|
1605
1603
|
}));
|
|
@@ -1666,7 +1664,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1666
1664
|
scrollToRow: h,
|
|
1667
1665
|
scrollLeft: m
|
|
1668
1666
|
} = Un(e);
|
|
1669
|
-
|
|
1667
|
+
il("tableV2GridScrollLeft", m), l({
|
|
1670
1668
|
forceUpdate: w,
|
|
1671
1669
|
totalHeight: d,
|
|
1672
1670
|
scrollTo: u,
|
|
@@ -1677,7 +1675,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1677
1675
|
const S = () => e.bodyWidth;
|
|
1678
1676
|
return () => {
|
|
1679
1677
|
const {
|
|
1680
|
-
cache:
|
|
1678
|
+
cache: p,
|
|
1681
1679
|
columns: M,
|
|
1682
1680
|
data: R,
|
|
1683
1681
|
fixedData: O,
|
|
@@ -1695,11 +1693,11 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1695
1693
|
getRowHeight: Se,
|
|
1696
1694
|
onScroll: de
|
|
1697
1695
|
} = e, oe = Y(B), Re = oe ? Kn : jn, ve = o(f);
|
|
1698
|
-
return
|
|
1696
|
+
return C("div", {
|
|
1699
1697
|
role: "table",
|
|
1700
1698
|
class: [n.e("table"), e.class],
|
|
1701
1699
|
style: G
|
|
1702
|
-
}, [
|
|
1700
|
+
}, [C(Re, {
|
|
1703
1701
|
ref: r,
|
|
1704
1702
|
data: R,
|
|
1705
1703
|
useIsScrolling: D,
|
|
@@ -1708,7 +1706,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1708
1706
|
columnWidth: oe ? S : K,
|
|
1709
1707
|
totalColumn: 1,
|
|
1710
1708
|
totalRow: R.length,
|
|
1711
|
-
rowCache:
|
|
1709
|
+
rowCache: p,
|
|
1712
1710
|
rowHeight: oe ? Se : P,
|
|
1713
1711
|
width: ce,
|
|
1714
1712
|
height: o(s),
|
|
@@ -1730,7 +1728,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1730
1728
|
rowData: ae
|
|
1731
1729
|
});
|
|
1732
1730
|
}
|
|
1733
|
-
}), o(i) &&
|
|
1731
|
+
}), o(i) && C(Wn, {
|
|
1734
1732
|
ref: v,
|
|
1735
1733
|
class: n.e("header-wrapper"),
|
|
1736
1734
|
columns: M,
|
|
@@ -1759,7 +1757,7 @@ const Zn = (e, {
|
|
|
1759
1757
|
mainTableRef: l,
|
|
1760
1758
|
...n
|
|
1761
1759
|
} = e;
|
|
1762
|
-
return
|
|
1760
|
+
return C(Ot, Z({
|
|
1763
1761
|
ref: l
|
|
1764
1762
|
}, n), Yn(t) ? t : {
|
|
1765
1763
|
default: () => [t]
|
|
@@ -1778,7 +1776,7 @@ const Qn = (e, {
|
|
|
1778
1776
|
leftTableRef: l,
|
|
1779
1777
|
...n
|
|
1780
1778
|
} = e;
|
|
1781
|
-
return
|
|
1779
|
+
return C(Ot, Z({
|
|
1782
1780
|
ref: l
|
|
1783
1781
|
}, n), Jn(t) ? t : {
|
|
1784
1782
|
default: () => [t]
|
|
@@ -1797,7 +1795,7 @@ const lo = (e, {
|
|
|
1797
1795
|
rightTableRef: l,
|
|
1798
1796
|
...n
|
|
1799
1797
|
} = e;
|
|
1800
|
-
return
|
|
1798
|
+
return C(Ot, Z({
|
|
1801
1799
|
ref: l
|
|
1802
1800
|
}, n), to(t) ? t : {
|
|
1803
1801
|
default: () => [t]
|
|
@@ -1920,7 +1918,7 @@ const oo = (e) => {
|
|
|
1920
1918
|
style: c
|
|
1921
1919
|
} = e;
|
|
1922
1920
|
let h = d.map((m, S) => {
|
|
1923
|
-
const
|
|
1921
|
+
const p = We(y.children) && y.children.length > 0 && m.key === b;
|
|
1924
1922
|
return l.cell({
|
|
1925
1923
|
column: m,
|
|
1926
1924
|
columns: d,
|
|
@@ -1930,7 +1928,7 @@ const oo = (e) => {
|
|
|
1930
1928
|
rowData: y,
|
|
1931
1929
|
rowIndex: u,
|
|
1932
1930
|
isScrolling: o(a),
|
|
1933
|
-
expandIconProps:
|
|
1931
|
+
expandIconProps: p ? {
|
|
1934
1932
|
rowData: y,
|
|
1935
1933
|
rowIndex: u,
|
|
1936
1934
|
onExpand: f
|
|
@@ -1949,15 +1947,15 @@ const oo = (e) => {
|
|
|
1949
1947
|
const {
|
|
1950
1948
|
height: m,
|
|
1951
1949
|
...S
|
|
1952
|
-
} = c || {},
|
|
1953
|
-
return
|
|
1950
|
+
} = c || {}, p = o(i);
|
|
1951
|
+
return C("div", Z({
|
|
1954
1952
|
ref: v,
|
|
1955
1953
|
class: e.class,
|
|
1956
|
-
style:
|
|
1954
|
+
style: p ? c : S,
|
|
1957
1955
|
role: "row"
|
|
1958
1956
|
}, n, o(r)), [h]);
|
|
1959
1957
|
}
|
|
1960
|
-
return
|
|
1958
|
+
return C("div", Z(n, {
|
|
1961
1959
|
ref: v,
|
|
1962
1960
|
class: e.class,
|
|
1963
1961
|
style: c,
|
|
@@ -1992,15 +1990,15 @@ const co = (e, {
|
|
|
1992
1990
|
ns: h,
|
|
1993
1991
|
onRowHovered: m,
|
|
1994
1992
|
onRowExpanded: S
|
|
1995
|
-
} = e,
|
|
1993
|
+
} = e, p = pe(y, {
|
|
1996
1994
|
columns: l,
|
|
1997
1995
|
rowData: f,
|
|
1998
1996
|
rowIndex: d
|
|
1999
|
-
}, ""), M =
|
|
1997
|
+
}, ""), M = pe(g, {
|
|
2000
1998
|
columns: l,
|
|
2001
1999
|
rowData: f,
|
|
2002
2000
|
rowIndex: d
|
|
2003
|
-
}), R = f[u], O = r[R] || 0, D = !!a, F = d < 0, x = [h.e("row"),
|
|
2001
|
+
}), R = f[u], O = r[R] || 0, D = !!a, F = d < 0, x = [h.e("row"), p, {
|
|
2004
2002
|
[h.e(`row-depth-${O}`)]: D && d >= 0,
|
|
2005
2003
|
[h.is("expanded")]: D && s.includes(R),
|
|
2006
2004
|
[h.is("fixed")]: !O && F,
|
|
@@ -2020,7 +2018,7 @@ const co = (e, {
|
|
|
2020
2018
|
rowEventHandlers: c,
|
|
2021
2019
|
style: w
|
|
2022
2020
|
};
|
|
2023
|
-
return
|
|
2021
|
+
return C(so, Z(G, {
|
|
2024
2022
|
onRowExpand: S,
|
|
2025
2023
|
onMouseenter: (B) => {
|
|
2026
2024
|
A == null || A({
|
|
@@ -2054,7 +2052,7 @@ const Nt = (e, {
|
|
|
2054
2052
|
cellData: n,
|
|
2055
2053
|
style: r
|
|
2056
2054
|
} = e, a = ((l = n == null ? void 0 : n.toString) == null ? void 0 : l.call(n)) || "", s = Fe(t, "default", e, () => [a]);
|
|
2057
|
-
return
|
|
2055
|
+
return C("div", {
|
|
2058
2056
|
class: e.class,
|
|
2059
2057
|
title: a,
|
|
2060
2058
|
style: r
|
|
@@ -2074,11 +2072,11 @@ const fo = (e) => {
|
|
|
2074
2072
|
onClick: l ? () => n(!t) : void 0,
|
|
2075
2073
|
class: e.class
|
|
2076
2074
|
};
|
|
2077
|
-
return
|
|
2075
|
+
return C(rl, Z(s, {
|
|
2078
2076
|
size: a,
|
|
2079
2077
|
style: r
|
|
2080
2078
|
}), {
|
|
2081
|
-
default: () => [
|
|
2079
|
+
default: () => [C(Bl, null, null)]
|
|
2082
2080
|
});
|
|
2083
2081
|
};
|
|
2084
2082
|
var mo = fo;
|
|
@@ -2104,21 +2102,21 @@ const Nl = ({
|
|
|
2104
2102
|
}) => {
|
|
2105
2103
|
const h = we(v);
|
|
2106
2104
|
if (t.placeholderSign === Xe)
|
|
2107
|
-
return
|
|
2105
|
+
return C("div", {
|
|
2108
2106
|
class: d.em("row-cell", "placeholder"),
|
|
2109
2107
|
style: h
|
|
2110
2108
|
}, null);
|
|
2111
2109
|
const {
|
|
2112
2110
|
cellRenderer: m,
|
|
2113
2111
|
dataKey: S,
|
|
2114
|
-
dataGetter:
|
|
2115
|
-
} = t, M = qe(
|
|
2112
|
+
dataGetter: p
|
|
2113
|
+
} = t, M = qe(p) ? p({
|
|
2116
2114
|
columns: e,
|
|
2117
2115
|
column: t,
|
|
2118
2116
|
columnIndex: l,
|
|
2119
2117
|
rowData: s,
|
|
2120
2118
|
rowIndex: i
|
|
2121
|
-
}) :
|
|
2119
|
+
}) : dn(s, S ?? ""), R = pe(w, {
|
|
2122
2120
|
cellData: M,
|
|
2123
2121
|
columns: e,
|
|
2124
2122
|
column: t,
|
|
@@ -2134,18 +2132,18 @@ const Nl = ({
|
|
|
2134
2132
|
isScrolling: a,
|
|
2135
2133
|
rowData: s,
|
|
2136
2134
|
rowIndex: i
|
|
2137
|
-
}, D = Tl(m), F = D ? D(O) : Fe(c, "default", O, () => [
|
|
2135
|
+
}, D = Tl(m), F = D ? D(O) : Fe(c, "default", O, () => [C(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]);
|
|
2138
2136
|
let P;
|
|
2139
2137
|
const K = `margin-inline-start: ${n * g}px;`;
|
|
2140
|
-
return A && (
|
|
2138
|
+
return A && (pt(r) ? P = C(mo, Z(r, {
|
|
2141
2139
|
class: [d.e("expand-icon"), d.is("expanded", G)],
|
|
2142
2140
|
size: y,
|
|
2143
2141
|
expanded: G,
|
|
2144
2142
|
style: K,
|
|
2145
2143
|
expandable: !0
|
|
2146
|
-
}), null) : P =
|
|
2144
|
+
}), null) : P = C("div", {
|
|
2147
2145
|
style: [K, `width: ${y}px; height: ${y}px;`].join(" ")
|
|
2148
|
-
}, null)),
|
|
2146
|
+
}, null)), C("div", Z({
|
|
2149
2147
|
class: x,
|
|
2150
2148
|
style: h
|
|
2151
2149
|
}, R, {
|
|
@@ -2187,7 +2185,7 @@ const vo = ne({
|
|
|
2187
2185
|
cells: s.map((i) => We(i) && i.length === 1 ? i[0] : i),
|
|
2188
2186
|
columns: l,
|
|
2189
2187
|
headerIndex: r
|
|
2190
|
-
})),
|
|
2188
|
+
})), C("div", {
|
|
2191
2189
|
class: e.class,
|
|
2192
2190
|
style: a,
|
|
2193
2191
|
role: "row"
|
|
@@ -2213,17 +2211,17 @@ const bo = ({
|
|
|
2213
2211
|
const v = {
|
|
2214
2212
|
columns: e,
|
|
2215
2213
|
headerIndex: l
|
|
2216
|
-
}, f = [s.e("header-row"),
|
|
2214
|
+
}, f = [s.e("header-row"), pe(r, v, ""), {
|
|
2217
2215
|
[s.is("customized")]: !!i.header
|
|
2218
2216
|
}], d = {
|
|
2219
|
-
...
|
|
2217
|
+
...pe(a, v),
|
|
2220
2218
|
columnsStyles: t,
|
|
2221
2219
|
class: f,
|
|
2222
2220
|
columns: e,
|
|
2223
2221
|
headerIndex: l,
|
|
2224
2222
|
style: n
|
|
2225
2223
|
};
|
|
2226
|
-
return
|
|
2224
|
+
return C(yo, d, wo(i) ? i : {
|
|
2227
2225
|
default: () => [i]
|
|
2228
2226
|
});
|
|
2229
2227
|
};
|
|
@@ -2232,7 +2230,7 @@ const zt = (e, {
|
|
|
2232
2230
|
slots: t
|
|
2233
2231
|
}) => Fe(t, "default", e, () => {
|
|
2234
2232
|
var l, n;
|
|
2235
|
-
return [
|
|
2233
|
+
return [C("div", {
|
|
2236
2234
|
class: e.class,
|
|
2237
2235
|
title: (l = e.column) == null ? void 0 : l.title
|
|
2238
2236
|
}, [(n = e.column) == null ? void 0 : n.title])];
|
|
@@ -2244,11 +2242,11 @@ const xo = (e) => {
|
|
|
2244
2242
|
const {
|
|
2245
2243
|
sortOrder: t
|
|
2246
2244
|
} = e;
|
|
2247
|
-
return
|
|
2245
|
+
return C(rl, {
|
|
2248
2246
|
size: 14,
|
|
2249
2247
|
class: e.class
|
|
2250
2248
|
}, {
|
|
2251
|
-
default: () => [t === Ye.ASC ?
|
|
2249
|
+
default: () => [t === Ye.ASC ? C(Ul, null, null) : C(ql, null, null)]
|
|
2252
2250
|
});
|
|
2253
2251
|
};
|
|
2254
2252
|
var To = xo;
|
|
@@ -2262,7 +2260,7 @@ const Eo = (e, {
|
|
|
2262
2260
|
onColumnSorted: a
|
|
2263
2261
|
} = e, s = we(r);
|
|
2264
2262
|
if (l.placeholderSign === Xe)
|
|
2265
|
-
return
|
|
2263
|
+
return C("div", {
|
|
2266
2264
|
class: n.em("header-row-cell", "placeholder"),
|
|
2267
2265
|
style: s
|
|
2268
2266
|
}, null);
|
|
@@ -2273,27 +2271,27 @@ const Eo = (e, {
|
|
|
2273
2271
|
} = l, d = {
|
|
2274
2272
|
...e,
|
|
2275
2273
|
class: n.e("header-cell-text")
|
|
2276
|
-
}, w = Tl(i), b = w ? w(d) : Fe(t, "default", d, () => [
|
|
2274
|
+
}, w = Tl(i), b = w ? w(d) : Fe(t, "default", d, () => [C(Ro, d, null)]), {
|
|
2277
2275
|
sortBy: g,
|
|
2278
2276
|
sortState: y,
|
|
2279
2277
|
headerCellProps: u
|
|
2280
2278
|
} = e;
|
|
2281
2279
|
let c, h;
|
|
2282
2280
|
if (y) {
|
|
2283
|
-
const
|
|
2284
|
-
c = !!Et[
|
|
2281
|
+
const p = y[l.key];
|
|
2282
|
+
c = !!Et[p], h = c ? p : Ye.ASC;
|
|
2285
2283
|
} else
|
|
2286
2284
|
c = l.key === g.key, h = c ? g.order : Ye.ASC;
|
|
2287
|
-
const m = [n.e("header-cell"),
|
|
2288
|
-
...
|
|
2285
|
+
const m = [n.e("header-cell"), pe(v, e, ""), l.align === Ze.CENTER && n.is("align-center"), l.align === Ze.RIGHT && n.is("align-right"), f && n.is("sortable")], S = {
|
|
2286
|
+
...pe(u, e),
|
|
2289
2287
|
onClick: l.sortable ? a : void 0,
|
|
2290
2288
|
class: m,
|
|
2291
2289
|
style: s,
|
|
2292
2290
|
"data-key": l.key
|
|
2293
2291
|
};
|
|
2294
|
-
return
|
|
2292
|
+
return C("div", Z(S, {
|
|
2295
2293
|
role: "columnheader"
|
|
2296
|
-
}), [b, f &&
|
|
2294
|
+
}), [b, f && C(To, {
|
|
2297
2295
|
class: [n.e("sort-icon"), c && n.is("sorting")],
|
|
2298
2296
|
sortOrder: h
|
|
2299
2297
|
}, null)]);
|
|
@@ -2303,7 +2301,7 @@ const zl = (e, {
|
|
|
2303
2301
|
slots: t
|
|
2304
2302
|
}) => {
|
|
2305
2303
|
var l;
|
|
2306
|
-
return
|
|
2304
|
+
return C("div", {
|
|
2307
2305
|
class: e.class,
|
|
2308
2306
|
style: e.style
|
|
2309
2307
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
@@ -2313,25 +2311,25 @@ var _o = zl;
|
|
|
2313
2311
|
const Ll = (e, {
|
|
2314
2312
|
slots: t
|
|
2315
2313
|
}) => {
|
|
2316
|
-
const l = Fe(t, "default", {}, () => [
|
|
2317
|
-
return
|
|
2314
|
+
const l = Fe(t, "default", {}, () => [C(al, null, null)]);
|
|
2315
|
+
return C("div", {
|
|
2318
2316
|
class: e.class,
|
|
2319
2317
|
style: e.style
|
|
2320
2318
|
}, [l]);
|
|
2321
2319
|
};
|
|
2322
2320
|
Ll.displayName = "ElTableV2Empty";
|
|
2323
|
-
var
|
|
2321
|
+
var Co = Ll;
|
|
2324
2322
|
const Dl = (e, {
|
|
2325
2323
|
slots: t
|
|
2326
2324
|
}) => {
|
|
2327
2325
|
var l;
|
|
2328
|
-
return
|
|
2326
|
+
return C("div", {
|
|
2329
2327
|
class: e.class,
|
|
2330
2328
|
style: e.style
|
|
2331
2329
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
2332
2330
|
};
|
|
2333
2331
|
Dl.displayName = "ElTableV2Overlay";
|
|
2334
|
-
var
|
|
2332
|
+
var po = Dl;
|
|
2335
2333
|
function Be(e) {
|
|
2336
2334
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
2337
2335
|
}
|
|
@@ -2359,7 +2357,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2359
2357
|
leftTableRef: h,
|
|
2360
2358
|
rightTableRef: m,
|
|
2361
2359
|
isDynamic: S,
|
|
2362
|
-
isResetting:
|
|
2360
|
+
isResetting: p,
|
|
2363
2361
|
isScrolling: M,
|
|
2364
2362
|
bodyWidth: R,
|
|
2365
2363
|
emptyStyle: O,
|
|
@@ -2385,9 +2383,9 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2385
2383
|
scrollToLeft: P,
|
|
2386
2384
|
scrollToTop: K,
|
|
2387
2385
|
scrollToRow: B
|
|
2388
|
-
}),
|
|
2386
|
+
}), il(Mt, {
|
|
2389
2387
|
ns: n,
|
|
2390
|
-
isResetting:
|
|
2388
|
+
isResetting: p,
|
|
2391
2389
|
isScrolling: M
|
|
2392
2390
|
}), () => {
|
|
2393
2391
|
const {
|
|
@@ -2513,28 +2511,28 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2513
2511
|
headerCellProps: ke,
|
|
2514
2512
|
onColumnSorted: U
|
|
2515
2513
|
}, he = {
|
|
2516
|
-
row: (ct) =>
|
|
2514
|
+
row: (ct) => C(uo, Z(ct, $l), {
|
|
2517
2515
|
row: t.row,
|
|
2518
2516
|
cell: (le) => {
|
|
2519
2517
|
let xe;
|
|
2520
|
-
return t.cell ?
|
|
2518
|
+
return t.cell ? C(nl, Z(le, Dt, {
|
|
2521
2519
|
style: Oe[le.column.key]
|
|
2522
2520
|
}), Be(xe = t.cell(le)) ? xe : {
|
|
2523
2521
|
default: () => [xe]
|
|
2524
|
-
}) :
|
|
2522
|
+
}) : C(nl, Z(le, Dt, {
|
|
2525
2523
|
style: Oe[le.column.key]
|
|
2526
2524
|
}), null);
|
|
2527
2525
|
}
|
|
2528
2526
|
}),
|
|
2529
|
-
header: (ct) =>
|
|
2527
|
+
header: (ct) => C(So, Z(ct, Wl), {
|
|
2530
2528
|
header: t.header,
|
|
2531
2529
|
cell: (le) => {
|
|
2532
2530
|
let xe;
|
|
2533
|
-
return t["header-cell"] ?
|
|
2531
|
+
return t["header-cell"] ? C(ol, Z(le, Pt, {
|
|
2534
2532
|
style: Oe[le.column.key]
|
|
2535
2533
|
}), Be(xe = t["header-cell"](le)) ? xe : {
|
|
2536
2534
|
default: () => [xe]
|
|
2537
|
-
}) :
|
|
2535
|
+
}) : C(ol, Z(le, Pt, {
|
|
2538
2536
|
style: Oe[le.column.key]
|
|
2539
2537
|
}), null);
|
|
2540
2538
|
}
|
|
@@ -2545,23 +2543,23 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2545
2543
|
class: n.e("footer"),
|
|
2546
2544
|
style: o(x)
|
|
2547
2545
|
};
|
|
2548
|
-
return
|
|
2546
|
+
return C("div", {
|
|
2549
2547
|
class: Fl,
|
|
2550
2548
|
style: o(D)
|
|
2551
|
-
}, [
|
|
2549
|
+
}, [C(Xn, se, Be(he) ? he : {
|
|
2552
2550
|
default: () => [he]
|
|
2553
|
-
}),
|
|
2551
|
+
}), C(eo, je, Be(he) ? he : {
|
|
2554
2552
|
default: () => [he]
|
|
2555
|
-
}),
|
|
2553
|
+
}), C(no, Pl, Be(he) ? he : {
|
|
2556
2554
|
default: () => [he]
|
|
2557
|
-
}), t.footer &&
|
|
2555
|
+
}), t.footer && C(_o, Gl, {
|
|
2558
2556
|
default: t.footer
|
|
2559
|
-
}), o(A) &&
|
|
2557
|
+
}), o(A) && C(Co, {
|
|
2560
2558
|
class: n.e("empty"),
|
|
2561
2559
|
style: o(O)
|
|
2562
2560
|
}, {
|
|
2563
2561
|
default: t.empty
|
|
2564
|
-
}), t.overlay &&
|
|
2562
|
+
}), t.overlay && C(po, {
|
|
2565
2563
|
class: n.e("overlay")
|
|
2566
2564
|
}, {
|
|
2567
2565
|
default: t.overlay
|
|
@@ -2580,11 +2578,11 @@ const Ao = ne({
|
|
|
2580
2578
|
const t = V(), l = V(0), n = V(0);
|
|
2581
2579
|
let r;
|
|
2582
2580
|
return st(() => {
|
|
2583
|
-
r =
|
|
2581
|
+
r = Xl(t, ([a]) => {
|
|
2584
2582
|
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;
|
|
2585
2583
|
l.value = s - b - g, n.value = i - y - u;
|
|
2586
2584
|
}).stop;
|
|
2587
|
-
}),
|
|
2585
|
+
}), sl(() => {
|
|
2588
2586
|
r == null || r();
|
|
2589
2587
|
}), Me([l, n], ([a, s]) => {
|
|
2590
2588
|
var i;
|
|
@@ -2613,7 +2611,7 @@ const Ao = ne({
|
|
|
2613
2611
|
};
|
|
2614
2612
|
return () => {
|
|
2615
2613
|
var i;
|
|
2616
|
-
return
|
|
2614
|
+
return C("div", {
|
|
2617
2615
|
ref: a,
|
|
2618
2616
|
class: l.b(),
|
|
2619
2617
|
style: s
|
|
@@ -2625,7 +2623,7 @@ const Ao = ne({
|
|
|
2625
2623
|
}
|
|
2626
2624
|
});
|
|
2627
2625
|
var zo = No;
|
|
2628
|
-
const Lo =
|
|
2626
|
+
const Lo = Ct(Io), Do = Ct(zo);
|
|
2629
2627
|
const Po = {
|
|
2630
2628
|
key: 0,
|
|
2631
2629
|
class: "footer-box"
|
|
@@ -2673,15 +2671,15 @@ const Po = {
|
|
|
2673
2671
|
...n.config
|
|
2674
2672
|
})), a = V(null), s = V(0);
|
|
2675
2673
|
let i = 0, v = !1, f = null;
|
|
2676
|
-
const d =
|
|
2674
|
+
const d = on(e, "tableActiveData"), w = T(() => d.value.map((h) => h[r.value.tableActiveKey])), b = ({
|
|
2677
2675
|
rowData: h,
|
|
2678
2676
|
rowIndex: m
|
|
2679
2677
|
}) => {
|
|
2680
2678
|
const {
|
|
2681
2679
|
tableActiveNum: S,
|
|
2682
|
-
tableActiveKey:
|
|
2680
|
+
tableActiveKey: p
|
|
2683
2681
|
} = r.value;
|
|
2684
|
-
if (w.value.includes(h[
|
|
2682
|
+
if (w.value.includes(h[p]))
|
|
2685
2683
|
return;
|
|
2686
2684
|
const M = Math.floor(m / S) * S, R = M + S;
|
|
2687
2685
|
d.value = n.tableData.slice(M, R);
|
|
@@ -2692,12 +2690,12 @@ const Po = {
|
|
|
2692
2690
|
tableData: m
|
|
2693
2691
|
} = n, {
|
|
2694
2692
|
tableActiveNum: S,
|
|
2695
|
-
tableActiveKey:
|
|
2693
|
+
tableActiveKey: p,
|
|
2696
2694
|
pageUpDownEnabled: M
|
|
2697
2695
|
} = r.value;
|
|
2698
2696
|
if (!m.length || !M)
|
|
2699
2697
|
return;
|
|
2700
|
-
const R = m.findIndex((x) => x[
|
|
2698
|
+
const R = m.findIndex((x) => x[p] === w.value.at(0)), O = m.findIndex((x) => x[p] === w.value.at(-1));
|
|
2701
2699
|
let D = null, F = null;
|
|
2702
2700
|
switch (h) {
|
|
2703
2701
|
case "PageUp":
|
|
@@ -2734,15 +2732,15 @@ const Po = {
|
|
|
2734
2732
|
window.addEventListener("keydown", g);
|
|
2735
2733
|
}), Me(() => n.tableLoading, (h) => {
|
|
2736
2734
|
h || (s.value = 0);
|
|
2737
|
-
}),
|
|
2735
|
+
}), rn(() => {
|
|
2738
2736
|
window.removeEventListener("keydown", g);
|
|
2739
2737
|
}), (h, m) => {
|
|
2740
|
-
const S =
|
|
2738
|
+
const S = al, p = Jl, M = yn, R = Lo, O = Do;
|
|
2741
2739
|
return De(), dt(O, null, {
|
|
2742
2740
|
default: Ne(({
|
|
2743
2741
|
height: D,
|
|
2744
2742
|
width: F
|
|
2745
|
-
}) => [
|
|
2743
|
+
}) => [C(R, {
|
|
2746
2744
|
ref_key: "tableRef",
|
|
2747
2745
|
ref: a,
|
|
2748
2746
|
id: "virtualTable",
|
|
@@ -2762,7 +2760,7 @@ const Po = {
|
|
|
2762
2760
|
onScroll: y,
|
|
2763
2761
|
onEndReached: m[0] || (m[0] = (x) => u(e.tableData.length - 1, "PageDown"))
|
|
2764
2762
|
}, {
|
|
2765
|
-
empty: Ne(() => [
|
|
2763
|
+
empty: Ne(() => [C(S, {
|
|
2766
2764
|
description: "暂无数据",
|
|
2767
2765
|
style: {
|
|
2768
2766
|
height: "100%"
|
|
@@ -2771,7 +2769,7 @@ const Po = {
|
|
|
2771
2769
|
footer: Ne(() => [s.value ? (De(), ht("div", Po, [e.tableLoading === "more" ? (De(), dt(M, {
|
|
2772
2770
|
key: 0
|
|
2773
2771
|
}, {
|
|
2774
|
-
default: Ne(() => [p
|
|
2772
|
+
default: Ne(() => [C(p, {
|
|
2775
2773
|
type: "primary",
|
|
2776
2774
|
text: "",
|
|
2777
2775
|
loading: ""
|
|
@@ -2793,11 +2791,11 @@ const Po = {
|
|
|
2793
2791
|
};
|
|
2794
2792
|
}
|
|
2795
2793
|
};
|
|
2796
|
-
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]),
|
|
2794
|
+
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]), er = {
|
|
2797
2795
|
install(e) {
|
|
2798
2796
|
e.component("st-virtualTable", Wo);
|
|
2799
2797
|
}
|
|
2800
2798
|
};
|
|
2801
2799
|
export {
|
|
2802
|
-
|
|
2800
|
+
er as default
|
|
2803
2801
|
};
|