st-comp 0.0.148 → 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/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +28 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +577 -631
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1903 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +677 -1428
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +316 -2740
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +60 -58
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +102 -98
- package/es/User.cjs +1 -1
- package/es/User.js +397 -373
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2395 -1
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +154 -151
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/el-button-0bf1d532.js +236 -0
- package/es/el-button-62966947.cjs +1 -0
- package/es/el-checkbox-group-45247bbf.cjs +1 -0
- package/es/el-checkbox-group-d53bc316.js +67 -0
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/el-menu-item-6c6236a1.js +772 -0
- package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/el-overlay-26bf0945.js +521 -0
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/el-popover-17e2e66c.js +140 -0
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
- package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
- package/es/el-scrollbar-ac525239.cjs +1 -0
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
- package/es/el-table-column-47d80736.js +3804 -0
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-121e2861.js → index-621b092b.js} +3 -3
- package/es/index-657047bb.js +513 -0
- package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -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-c066fe0d.js +82 -0
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
- package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-ca84f80a.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-6a0c7411.js +14 -0
- package/es/vnode-b15eb11b.cjs +1 -0
- package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
- package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- 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 +4 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +10 -0
- package/es/_initCloneObject-476b02ce.cjs +0 -1
- package/es/base-6ccc8fc2.cjs +0 -9
- package/es/base-950bac7e.js +0 -816
- package/es/castArray-374558a5.cjs +0 -1
- package/es/debounce-a6b4f91b.cjs +0 -1
- package/es/el-button-b8f71c7d.cjs +0 -1
- package/es/el-button-d7b6eebd.js +0 -745
- package/es/el-empty-12eece57.cjs +0 -1
- package/es/el-form-item-ebbf096d.cjs +0 -12
- package/es/el-input-2c7e70a3.cjs +0 -1
- package/es/el-input-number-8e168e83.cjs +0 -1
- package/es/el-message-612c2346.cjs +0 -1
- package/es/el-overlay-07414277.js +0 -526
- package/es/el-overlay-fb255b83.cjs +0 -1
- package/es/el-popper-8360bd91.cjs +0 -1
- package/es/el-scrollbar-271142ad.cjs +0 -1
- package/es/el-select-2e71d4af.cjs +0 -1
- package/es/el-table-column-9fe79f05.cjs +0 -14
- package/es/el-table-column-dc562f14.js +0 -3933
- package/es/el-tag-930e7b32.cjs +0 -1
- package/es/index-0ed86daf.cjs +0 -3
- package/es/index-674d2fd7.cjs +0 -1
- package/es/index-aece600c.js +0 -81
- package/es/use-form-common-props-c1960844.cjs +0 -2
package/es/VirtualTable.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
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";
|
|
16
|
+
import "./index-657047bb.js";
|
|
14
17
|
const fn = ne({
|
|
15
18
|
direction: {
|
|
16
19
|
type: String,
|
|
@@ -37,7 +40,7 @@ const fn = ne({
|
|
|
37
40
|
}));
|
|
38
41
|
return (r, a) => (De(), ht("div", {
|
|
39
42
|
class: Wt([o(l).b(), o(l).m(r.direction)]),
|
|
40
|
-
style:
|
|
43
|
+
style: Zl(o(n)),
|
|
41
44
|
role: "separator"
|
|
42
45
|
}, [
|
|
43
46
|
r.$slots.default && r.direction !== "vertical" ? (De(), ht("div", {
|
|
@@ -50,7 +53,7 @@ const fn = ne({
|
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
55
|
var gn = /* @__PURE__ */ Vl(vn, [["__file", "divider.vue"]]);
|
|
53
|
-
const yn =
|
|
56
|
+
const yn = pt(gn);
|
|
54
57
|
var Kt = Number.isNaN || function(t) {
|
|
55
58
|
return typeof t == "number" && t !== t;
|
|
56
59
|
};
|
|
@@ -88,7 +91,7 @@ const Rn = () => {
|
|
|
88
91
|
const t = at().proxy.$props;
|
|
89
92
|
return T(() => {
|
|
90
93
|
const l = (n, r, a) => ({});
|
|
91
|
-
return t.perfMode ?
|
|
94
|
+
return t.perfMode ? rn(l) : Sn(l);
|
|
92
95
|
});
|
|
93
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 = {
|
|
94
97
|
[yt]: "left",
|
|
@@ -167,7 +170,7 @@ const Rn = () => {
|
|
|
167
170
|
}), Tt = {
|
|
168
171
|
type: Number,
|
|
169
172
|
default: 6
|
|
170
|
-
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 },
|
|
173
|
+
}, bl = { type: Number, default: 0 }, Sl = { type: Number, default: 2 }, pe = ne({
|
|
171
174
|
columnCache: Rt,
|
|
172
175
|
columnWidth: bt,
|
|
173
176
|
estimatedColumnWidth: St,
|
|
@@ -223,7 +226,7 @@ function Yt(e = !1) {
|
|
|
223
226
|
}
|
|
224
227
|
return ze;
|
|
225
228
|
}
|
|
226
|
-
function
|
|
229
|
+
function pn({ move: e, size: t, bar: l }, n) {
|
|
227
230
|
const r = {}, a = `translate${l.axis}(${e}px)`;
|
|
228
231
|
return r[l.size] = t, r.transform = a, r.msTransform = a, r.webkitTransform = a, n === "horizontal" ? r.height = "100%" : r.width = "100%", r;
|
|
229
232
|
}
|
|
@@ -234,10 +237,10 @@ const Zt = ie({
|
|
|
234
237
|
setup(e, { emit: t }) {
|
|
235
238
|
const l = T(() => e.startGap + e.endGap), n = be("virtual-scrollbar"), r = be("scrollbar"), a = V(), s = V();
|
|
236
239
|
let i = null, v = null;
|
|
237
|
-
const f =
|
|
240
|
+
const f = Xl({
|
|
238
241
|
isDragging: !1,
|
|
239
242
|
traveled: 0
|
|
240
|
-
}), d = T(() =>
|
|
243
|
+
}), d = T(() => Bl[e.layout]), w = T(() => e.clientSize - o(l)), b = T(() => ({
|
|
241
244
|
position: "absolute",
|
|
242
245
|
width: `${yt === e.layout ? w.value : e.scrollbarSize}px`,
|
|
243
246
|
height: `${yt === e.layout ? e.scrollbarSize : w.value}px`,
|
|
@@ -259,24 +262,24 @@ const Zt = ie({
|
|
|
259
262
|
display: "none"
|
|
260
263
|
};
|
|
261
264
|
const R = `${g.value}px`;
|
|
262
|
-
return
|
|
265
|
+
return pn({
|
|
263
266
|
bar: d.value,
|
|
264
267
|
size: R,
|
|
265
268
|
move: f.traveled
|
|
266
269
|
}, e.layout);
|
|
267
270
|
}), u = T(() => Math.floor(e.clientSize - g.value - o(l))), c = () => {
|
|
268
|
-
window.addEventListener("mousemove",
|
|
271
|
+
window.addEventListener("mousemove", C), window.addEventListener("mouseup", S);
|
|
269
272
|
const R = o(s);
|
|
270
|
-
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));
|
|
271
274
|
}, h = () => {
|
|
272
|
-
window.removeEventListener("mousemove",
|
|
275
|
+
window.removeEventListener("mousemove", C), window.removeEventListener("mouseup", S), document.onselectstart = v, v = null;
|
|
273
276
|
const R = o(s);
|
|
274
|
-
R && (R.removeEventListener("touchmove",
|
|
277
|
+
R && (R.removeEventListener("touchmove", C), R.removeEventListener("touchend", S));
|
|
275
278
|
}, m = (R) => {
|
|
276
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());
|
|
277
280
|
}, S = () => {
|
|
278
281
|
f.isDragging = !1, f[d.value.axis] = 0, t("stop-move"), h();
|
|
279
|
-
},
|
|
282
|
+
}, C = (R) => {
|
|
280
283
|
const { isDragging: O } = f;
|
|
281
284
|
if (!O || !s.value || !a.value)
|
|
282
285
|
return;
|
|
@@ -305,7 +308,7 @@ const Zt = ie({
|
|
|
305
308
|
(e.alwaysOn || f.isDragging) && "always-on"
|
|
306
309
|
],
|
|
307
310
|
style: b.value,
|
|
308
|
-
onMousedown:
|
|
311
|
+
onMousedown: Jl(M, ["stop", "prevent"]),
|
|
309
312
|
onTouchstartPrevent: m
|
|
310
313
|
}, fe("div", {
|
|
311
314
|
ref: s,
|
|
@@ -320,7 +323,7 @@ const Et = {
|
|
|
320
323
|
asc: "desc",
|
|
321
324
|
desc: "asc"
|
|
322
325
|
/* ASC */
|
|
323
|
-
}, Xe = Symbol("placeholder"),
|
|
326
|
+
}, Xe = Symbol("placeholder"), Cn = (e, t, l) => {
|
|
324
327
|
var n;
|
|
325
328
|
const r = {
|
|
326
329
|
flexGrow: 0,
|
|
@@ -361,7 +364,7 @@ function Hn(e, t, l) {
|
|
|
361
364
|
placeholderSign: Xe
|
|
362
365
|
});
|
|
363
366
|
}), c;
|
|
364
|
-
}), 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) => {
|
|
365
368
|
c.width = h;
|
|
366
369
|
};
|
|
367
370
|
function u(c) {
|
|
@@ -369,9 +372,9 @@ function Hn(e, t, l) {
|
|
|
369
372
|
const { key: m } = c.currentTarget.dataset;
|
|
370
373
|
if (!m)
|
|
371
374
|
return;
|
|
372
|
-
const { sortState: S, sortBy:
|
|
375
|
+
const { sortState: S, sortBy: C } = e;
|
|
373
376
|
let M = Ye.ASC;
|
|
374
|
-
|
|
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 });
|
|
375
378
|
}
|
|
376
379
|
return {
|
|
377
380
|
columns: n,
|
|
@@ -447,7 +450,7 @@ const Mn = (e, {
|
|
|
447
450
|
var A;
|
|
448
451
|
(A = e.onRowsRendered) == null || A.call(e, x), x.rowCacheEnd > o(w) && (w.value = x.rowCacheEnd);
|
|
449
452
|
}
|
|
450
|
-
function
|
|
453
|
+
function C({ hovered: x, rowKey: A }) {
|
|
451
454
|
if (s.value)
|
|
452
455
|
return;
|
|
453
456
|
r.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((K) => {
|
|
@@ -469,7 +472,7 @@ const Mn = (e, {
|
|
|
469
472
|
rowKey: P
|
|
470
473
|
}), (B = e.onExpandedRowsChange) == null || B.call(e, k);
|
|
471
474
|
}
|
|
472
|
-
const R =
|
|
475
|
+
const R = nn(() => {
|
|
473
476
|
var x, A, G, P;
|
|
474
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;
|
|
475
478
|
}, 0);
|
|
@@ -496,7 +499,7 @@ const Mn = (e, {
|
|
|
496
499
|
rowHeights: g,
|
|
497
500
|
resetAfterIndex: O,
|
|
498
501
|
onRowExpanded: M,
|
|
499
|
-
onRowHovered:
|
|
502
|
+
onRowHovered: C,
|
|
500
503
|
onRowsRendered: S,
|
|
501
504
|
onRowHeightChange: F
|
|
502
505
|
};
|
|
@@ -523,7 +526,7 @@ const Mn = (e, {
|
|
|
523
526
|
data: s,
|
|
524
527
|
depthMap: r
|
|
525
528
|
};
|
|
526
|
-
}, 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) => {
|
|
527
530
|
e[t] = et(e[t]);
|
|
528
531
|
}), e), Tl = (e) => Ie(e) ? (t) => fe(e, t) : e, Nn = (e, {
|
|
529
532
|
columnsTotalWidth: t,
|
|
@@ -532,30 +535,30 @@ const Mn = (e, {
|
|
|
532
535
|
fixedColumnsOnRight: r
|
|
533
536
|
}) => {
|
|
534
537
|
const a = T(() => {
|
|
535
|
-
const { fixed: m, width: S, vScrollbarSize:
|
|
538
|
+
const { fixed: m, width: S, vScrollbarSize: C } = e, M = S - C;
|
|
536
539
|
return m ? Math.max(Math.round(o(t)), M) : M;
|
|
537
540
|
}), s = T(() => o(a) + e.vScrollbarSize), i = T(() => {
|
|
538
|
-
const { height: m = 0, maxHeight: S = 0, footerHeight:
|
|
541
|
+
const { height: m = 0, maxHeight: S = 0, footerHeight: C, hScrollbarSize: M } = e;
|
|
539
542
|
if (S > 0) {
|
|
540
543
|
const R = o(g), O = o(l), F = o(b) + R + O + M;
|
|
541
|
-
return Math.min(F, S -
|
|
544
|
+
return Math.min(F, S - C);
|
|
542
545
|
}
|
|
543
|
-
return m -
|
|
546
|
+
return m - C;
|
|
544
547
|
}), v = T(() => {
|
|
545
548
|
const { maxHeight: m } = e, S = o(i);
|
|
546
549
|
if (Y(m) && m > 0)
|
|
547
550
|
return S;
|
|
548
|
-
const
|
|
549
|
-
return Math.min(S,
|
|
551
|
+
const C = o(l) + o(b) + o(g);
|
|
552
|
+
return Math.min(S, C);
|
|
550
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(() => {
|
|
551
554
|
var m;
|
|
552
555
|
return (((m = e.fixedData) == null ? void 0 : m.length) || 0) * e.rowHeight;
|
|
553
556
|
}), y = T(() => o(i) - o(b) - o(g)), u = T(() => {
|
|
554
|
-
const { style: m = {}, height: S, width:
|
|
557
|
+
const { style: m = {}, height: S, width: C } = e;
|
|
555
558
|
return we({
|
|
556
559
|
...m,
|
|
557
560
|
height: S,
|
|
558
|
-
width:
|
|
561
|
+
width: C
|
|
559
562
|
});
|
|
560
563
|
}), c = T(() => we({ height: e.footerHeight })), h = T(() => ({
|
|
561
564
|
top: et(o(b)),
|
|
@@ -599,7 +602,7 @@ function zn(e) {
|
|
|
599
602
|
leftTableRef: l,
|
|
600
603
|
rightTableRef: n,
|
|
601
604
|
onMaybeEndReached: Ke
|
|
602
|
-
}), S = be("table-v2"),
|
|
605
|
+
}), S = be("table-v2"), C = at(), M = Le(!1), {
|
|
603
606
|
expandedRowKeys: R,
|
|
604
607
|
lastRenderedRowIndex: O,
|
|
605
608
|
isDynamic: D,
|
|
@@ -614,7 +617,7 @@ function zn(e) {
|
|
|
614
617
|
mainTableRef: t,
|
|
615
618
|
leftTableRef: l,
|
|
616
619
|
rightTableRef: n,
|
|
617
|
-
tableInstance:
|
|
620
|
+
tableInstance: C,
|
|
618
621
|
ns: S,
|
|
619
622
|
isScrolling: M
|
|
620
623
|
}), { data: k, depthMap: U } = An(e, {
|
|
@@ -714,7 +717,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
714
717
|
}, Te = {
|
|
715
718
|
type: Number,
|
|
716
719
|
required: !0
|
|
717
|
-
},
|
|
720
|
+
}, pl = {
|
|
718
721
|
type: I([String, Number, Symbol]),
|
|
719
722
|
default: "id"
|
|
720
723
|
}, Jt = {
|
|
@@ -729,7 +732,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
729
732
|
depth: Number,
|
|
730
733
|
expandColumnKey: Ln,
|
|
731
734
|
estimatedRowHeight: {
|
|
732
|
-
...
|
|
735
|
+
...pe.estimatedRowHeight,
|
|
733
736
|
default: void 0
|
|
734
737
|
},
|
|
735
738
|
isScrolling: Boolean,
|
|
@@ -753,7 +756,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
753
756
|
type: Number,
|
|
754
757
|
required: !0
|
|
755
758
|
},
|
|
756
|
-
rowKey:
|
|
759
|
+
rowKey: pl,
|
|
757
760
|
style: {
|
|
758
761
|
type: I(Object)
|
|
759
762
|
}
|
|
@@ -794,9 +797,9 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
794
797
|
rowHeight: Te,
|
|
795
798
|
cache: _n.cache,
|
|
796
799
|
useIsScrolling: Boolean,
|
|
797
|
-
scrollbarAlwaysOn:
|
|
798
|
-
scrollbarStartGap:
|
|
799
|
-
scrollbarEndGap:
|
|
800
|
+
scrollbarAlwaysOn: pe.scrollbarAlwaysOn,
|
|
801
|
+
scrollbarStartGap: pe.scrollbarStartGap,
|
|
802
|
+
scrollbarEndGap: pe.scrollbarEndGap,
|
|
800
803
|
class: El,
|
|
801
804
|
style: Jt,
|
|
802
805
|
containerStyle: Jt,
|
|
@@ -814,7 +817,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
814
817
|
}), Dn = ne({
|
|
815
818
|
cache: lt.cache,
|
|
816
819
|
estimatedRowHeight: _e.estimatedRowHeight,
|
|
817
|
-
rowKey:
|
|
820
|
+
rowKey: pl,
|
|
818
821
|
headerClass: {
|
|
819
822
|
type: I([
|
|
820
823
|
String,
|
|
@@ -880,8 +883,8 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
880
883
|
type: Number,
|
|
881
884
|
default: 12
|
|
882
885
|
},
|
|
883
|
-
hScrollbarSize:
|
|
884
|
-
vScrollbarSize:
|
|
886
|
+
hScrollbarSize: pe.hScrollbarSize,
|
|
887
|
+
vScrollbarSize: pe.vScrollbarSize,
|
|
885
888
|
scrollbarAlwaysOn: Rl.alwaysOn,
|
|
886
889
|
sortBy: {
|
|
887
890
|
type: I(Object),
|
|
@@ -917,7 +920,7 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
917
920
|
})), i = T(() => we({
|
|
918
921
|
width: e.rowWidth,
|
|
919
922
|
height: e.height
|
|
920
|
-
})), v = T(() =>
|
|
923
|
+
})), v = T(() => on(o(e.headerHeight))), f = (b) => {
|
|
921
924
|
const g = o(a);
|
|
922
925
|
$e(() => {
|
|
923
926
|
g != null && g.scroll && g.scroll({
|
|
@@ -962,18 +965,18 @@ const Mt = Symbol("tableV2"), El = String, Je = {
|
|
|
962
965
|
});
|
|
963
966
|
});
|
|
964
967
|
};
|
|
965
|
-
return
|
|
968
|
+
return Ql(() => {
|
|
966
969
|
r != null && r.value && f(r.value);
|
|
967
970
|
}), l({
|
|
968
971
|
scrollToLeft: f
|
|
969
972
|
}), () => {
|
|
970
973
|
if (!(e.height <= 0))
|
|
971
|
-
return
|
|
974
|
+
return p("div", {
|
|
972
975
|
ref: a,
|
|
973
976
|
class: e.class,
|
|
974
977
|
style: o(s),
|
|
975
978
|
role: "rowgroup"
|
|
976
|
-
}, [
|
|
979
|
+
}, [p("div", {
|
|
977
980
|
style: o(i),
|
|
978
981
|
class: n.e("header")
|
|
979
982
|
}, [w(), d()])]);
|
|
@@ -997,7 +1000,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
997
1000
|
}));
|
|
998
1001
|
}
|
|
999
1002
|
};
|
|
1000
|
-
},
|
|
1003
|
+
}, Cl = ({
|
|
1001
1004
|
name: e,
|
|
1002
1005
|
clearCache: t,
|
|
1003
1006
|
getColumnPosition: l,
|
|
@@ -1015,13 +1018,13 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1015
1018
|
validateProps: y
|
|
1016
1019
|
}) => ie({
|
|
1017
1020
|
name: e ?? "ElVirtualList",
|
|
1018
|
-
props:
|
|
1021
|
+
props: pe,
|
|
1019
1022
|
emits: [Bt, Ut],
|
|
1020
1023
|
setup(u, { emit: c, expose: h, slots: m }) {
|
|
1021
1024
|
const S = be("vl");
|
|
1022
1025
|
y(u);
|
|
1023
|
-
const
|
|
1024
|
-
g == null || g(
|
|
1026
|
+
const C = at(), M = V(b(u, C));
|
|
1027
|
+
g == null || g(C, M);
|
|
1025
1028
|
const R = V(), O = V(), D = V(), F = V(null), x = V({
|
|
1026
1029
|
isScrolling: !1,
|
|
1027
1030
|
scrollLeft: Y(u.initScrollLeft) ? u.initScrollLeft : 0,
|
|
@@ -1162,7 +1165,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1162
1165
|
scrollTop: Math.min(x.value.scrollTop + _, k.value - W)
|
|
1163
1166
|
});
|
|
1164
1167
|
});
|
|
1165
|
-
|
|
1168
|
+
Ul(R, "wheel", re, {
|
|
1166
1169
|
passive: !1
|
|
1167
1170
|
});
|
|
1168
1171
|
const te = ({
|
|
@@ -1189,7 +1192,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1189
1192
|
});
|
|
1190
1193
|
}, Ae = (E, _) => {
|
|
1191
1194
|
const { columnWidth: H, direction: N, rowHeight: z } = u, L = A.value(t && H, t && z, t && N), $ = `${E},${_}`;
|
|
1192
|
-
if (
|
|
1195
|
+
if (Kl(L, $))
|
|
1193
1196
|
return L[$];
|
|
1194
1197
|
{
|
|
1195
1198
|
const [, W] = l(u, _, o(M)), j = o(M), q = qt(N), [se, J] = f(u, E, j), [Q] = l(u, _, j);
|
|
@@ -1208,7 +1211,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1208
1211
|
});
|
|
1209
1212
|
};
|
|
1210
1213
|
st(() => {
|
|
1211
|
-
if (!
|
|
1214
|
+
if (!kl)
|
|
1212
1215
|
return;
|
|
1213
1216
|
const { initScrollLeft: E, initScrollTop: _ } = u, H = o(R);
|
|
1214
1217
|
H && (Y(E) && (H.scrollLeft = E), Y(_) && (H.scrollTop = _)), de();
|
|
@@ -1236,7 +1239,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1236
1239
|
z.scrollLeft = Math.max(0, _);
|
|
1237
1240
|
z.scrollTop = Math.max(0, H);
|
|
1238
1241
|
}
|
|
1239
|
-
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } =
|
|
1242
|
+
}, { resetAfterColumnIndex: Ge, resetAfterRowIndex: Ve, resetAfter: ke } = C.proxy;
|
|
1240
1243
|
h({
|
|
1241
1244
|
windowRef: R,
|
|
1242
1245
|
innerRef: F,
|
|
@@ -1293,7 +1296,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1293
1296
|
for (let J = N; J <= z; J++)
|
|
1294
1297
|
for (let Q = _; Q <= H; Q++) {
|
|
1295
1298
|
const je = q({ columnIndex: Q, data: L, rowIndex: J });
|
|
1296
|
-
se.push(fe(
|
|
1299
|
+
se.push(fe(en, { key: je }, (E = m.default) == null ? void 0 : E.call(m, {
|
|
1297
1300
|
columnIndex: Q,
|
|
1298
1301
|
data: L,
|
|
1299
1302
|
isScrolling: j ? o(x).isScrolling : void 0,
|
|
@@ -1414,7 +1417,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1414
1417
|
default:
|
|
1415
1418
|
return n >= b && n <= w ? n : b > w || n < b ? b : w;
|
|
1416
1419
|
}
|
|
1417
|
-
}, Kn =
|
|
1420
|
+
}, Kn = Cl({
|
|
1418
1421
|
name: "ElDynamicSizeGrid",
|
|
1419
1422
|
getColumnPosition: (e, t, l) => {
|
|
1420
1423
|
const n = me(e, t, l, "column");
|
|
@@ -1447,7 +1450,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1447
1450
|
injectToInstance: (e, t) => {
|
|
1448
1451
|
const l = ({ columnIndex: a, rowIndex: s }, i) => {
|
|
1449
1452
|
var v, f;
|
|
1450
|
-
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());
|
|
1451
1454
|
}, n = (a, s) => {
|
|
1452
1455
|
l({
|
|
1453
1456
|
columnIndex: a
|
|
@@ -1484,7 +1487,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1484
1487
|
instead ${typeof t} was given.
|
|
1485
1488
|
`));
|
|
1486
1489
|
}
|
|
1487
|
-
}), ll = "ElFixedSizeGrid", jn =
|
|
1490
|
+
}), ll = "ElFixedSizeGrid", jn = Cl({
|
|
1488
1491
|
name: "ElFixedSizeGrid",
|
|
1489
1492
|
getColumnPosition: ({ columnWidth: e }, t) => [
|
|
1490
1493
|
e,
|
|
@@ -1582,8 +1585,8 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1582
1585
|
rowVisibleStart: m,
|
|
1583
1586
|
rowVisibleEnd: S
|
|
1584
1587
|
}) {
|
|
1585
|
-
var
|
|
1586
|
-
(
|
|
1588
|
+
var C;
|
|
1589
|
+
(C = e.onRowsRendered) == null || C.call(e, {
|
|
1587
1590
|
rowCacheStart: c,
|
|
1588
1591
|
rowCacheEnd: h,
|
|
1589
1592
|
rowVisibleStart: m,
|
|
@@ -1596,7 +1599,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1596
1599
|
}
|
|
1597
1600
|
function b(c, h) {
|
|
1598
1601
|
const m = o(t), S = o(l);
|
|
1599
|
-
|
|
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({
|
|
1600
1603
|
scrollLeft: c,
|
|
1601
1604
|
scrollTop: h
|
|
1602
1605
|
}));
|
|
@@ -1674,7 +1677,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1674
1677
|
const S = () => e.bodyWidth;
|
|
1675
1678
|
return () => {
|
|
1676
1679
|
const {
|
|
1677
|
-
cache:
|
|
1680
|
+
cache: C,
|
|
1678
1681
|
columns: M,
|
|
1679
1682
|
data: R,
|
|
1680
1683
|
fixedData: O,
|
|
@@ -1692,11 +1695,11 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1692
1695
|
getRowHeight: Se,
|
|
1693
1696
|
onScroll: de
|
|
1694
1697
|
} = e, oe = Y(B), Re = oe ? Kn : jn, ve = o(f);
|
|
1695
|
-
return
|
|
1698
|
+
return p("div", {
|
|
1696
1699
|
role: "table",
|
|
1697
1700
|
class: [n.e("table"), e.class],
|
|
1698
1701
|
style: G
|
|
1699
|
-
}, [
|
|
1702
|
+
}, [p(Re, {
|
|
1700
1703
|
ref: r,
|
|
1701
1704
|
data: R,
|
|
1702
1705
|
useIsScrolling: D,
|
|
@@ -1705,7 +1708,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1705
1708
|
columnWidth: oe ? S : K,
|
|
1706
1709
|
totalColumn: 1,
|
|
1707
1710
|
totalRow: R.length,
|
|
1708
|
-
rowCache:
|
|
1711
|
+
rowCache: C,
|
|
1709
1712
|
rowHeight: oe ? Se : P,
|
|
1710
1713
|
width: ce,
|
|
1711
1714
|
height: o(s),
|
|
@@ -1727,7 +1730,7 @@ const Fn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n },
|
|
|
1727
1730
|
rowData: ae
|
|
1728
1731
|
});
|
|
1729
1732
|
}
|
|
1730
|
-
}), o(i) &&
|
|
1733
|
+
}), o(i) && p(Wn, {
|
|
1731
1734
|
ref: v,
|
|
1732
1735
|
class: n.e("header-wrapper"),
|
|
1733
1736
|
columns: M,
|
|
@@ -1756,7 +1759,7 @@ const Zn = (e, {
|
|
|
1756
1759
|
mainTableRef: l,
|
|
1757
1760
|
...n
|
|
1758
1761
|
} = e;
|
|
1759
|
-
return
|
|
1762
|
+
return p(Ot, Z({
|
|
1760
1763
|
ref: l
|
|
1761
1764
|
}, n), Yn(t) ? t : {
|
|
1762
1765
|
default: () => [t]
|
|
@@ -1775,7 +1778,7 @@ const Qn = (e, {
|
|
|
1775
1778
|
leftTableRef: l,
|
|
1776
1779
|
...n
|
|
1777
1780
|
} = e;
|
|
1778
|
-
return
|
|
1781
|
+
return p(Ot, Z({
|
|
1779
1782
|
ref: l
|
|
1780
1783
|
}, n), Jn(t) ? t : {
|
|
1781
1784
|
default: () => [t]
|
|
@@ -1794,7 +1797,7 @@ const lo = (e, {
|
|
|
1794
1797
|
rightTableRef: l,
|
|
1795
1798
|
...n
|
|
1796
1799
|
} = e;
|
|
1797
|
-
return
|
|
1800
|
+
return p(Ot, Z({
|
|
1798
1801
|
ref: l
|
|
1799
1802
|
}, n), to(t) ? t : {
|
|
1800
1803
|
default: () => [t]
|
|
@@ -1917,7 +1920,7 @@ const oo = (e) => {
|
|
|
1917
1920
|
style: c
|
|
1918
1921
|
} = e;
|
|
1919
1922
|
let h = d.map((m, S) => {
|
|
1920
|
-
const
|
|
1923
|
+
const C = We(y.children) && y.children.length > 0 && m.key === b;
|
|
1921
1924
|
return l.cell({
|
|
1922
1925
|
column: m,
|
|
1923
1926
|
columns: d,
|
|
@@ -1927,7 +1930,7 @@ const oo = (e) => {
|
|
|
1927
1930
|
rowData: y,
|
|
1928
1931
|
rowIndex: u,
|
|
1929
1932
|
isScrolling: o(a),
|
|
1930
|
-
expandIconProps:
|
|
1933
|
+
expandIconProps: C ? {
|
|
1931
1934
|
rowData: y,
|
|
1932
1935
|
rowIndex: u,
|
|
1933
1936
|
onExpand: f
|
|
@@ -1946,15 +1949,15 @@ const oo = (e) => {
|
|
|
1946
1949
|
const {
|
|
1947
1950
|
height: m,
|
|
1948
1951
|
...S
|
|
1949
|
-
} = c || {},
|
|
1950
|
-
return
|
|
1952
|
+
} = c || {}, C = o(i);
|
|
1953
|
+
return p("div", Z({
|
|
1951
1954
|
ref: v,
|
|
1952
1955
|
class: e.class,
|
|
1953
|
-
style:
|
|
1956
|
+
style: C ? c : S,
|
|
1954
1957
|
role: "row"
|
|
1955
1958
|
}, n, o(r)), [h]);
|
|
1956
1959
|
}
|
|
1957
|
-
return
|
|
1960
|
+
return p("div", Z(n, {
|
|
1958
1961
|
ref: v,
|
|
1959
1962
|
class: e.class,
|
|
1960
1963
|
style: c,
|
|
@@ -1989,15 +1992,15 @@ const co = (e, {
|
|
|
1989
1992
|
ns: h,
|
|
1990
1993
|
onRowHovered: m,
|
|
1991
1994
|
onRowExpanded: S
|
|
1992
|
-
} = e,
|
|
1995
|
+
} = e, C = Ce(y, {
|
|
1993
1996
|
columns: l,
|
|
1994
1997
|
rowData: f,
|
|
1995
1998
|
rowIndex: d
|
|
1996
|
-
}, ""), M =
|
|
1999
|
+
}, ""), M = Ce(g, {
|
|
1997
2000
|
columns: l,
|
|
1998
2001
|
rowData: f,
|
|
1999
2002
|
rowIndex: d
|
|
2000
|
-
}), 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, {
|
|
2001
2004
|
[h.e(`row-depth-${O}`)]: D && d >= 0,
|
|
2002
2005
|
[h.is("expanded")]: D && s.includes(R),
|
|
2003
2006
|
[h.is("fixed")]: !O && F,
|
|
@@ -2017,7 +2020,7 @@ const co = (e, {
|
|
|
2017
2020
|
rowEventHandlers: c,
|
|
2018
2021
|
style: w
|
|
2019
2022
|
};
|
|
2020
|
-
return
|
|
2023
|
+
return p(so, Z(G, {
|
|
2021
2024
|
onRowExpand: S,
|
|
2022
2025
|
onMouseenter: (B) => {
|
|
2023
2026
|
A == null || A({
|
|
@@ -2051,7 +2054,7 @@ const Nt = (e, {
|
|
|
2051
2054
|
cellData: n,
|
|
2052
2055
|
style: r
|
|
2053
2056
|
} = e, a = ((l = n == null ? void 0 : n.toString) == null ? void 0 : l.call(n)) || "", s = Fe(t, "default", e, () => [a]);
|
|
2054
|
-
return
|
|
2057
|
+
return p("div", {
|
|
2055
2058
|
class: e.class,
|
|
2056
2059
|
title: a,
|
|
2057
2060
|
style: r
|
|
@@ -2071,11 +2074,11 @@ const fo = (e) => {
|
|
|
2071
2074
|
onClick: l ? () => n(!t) : void 0,
|
|
2072
2075
|
class: e.class
|
|
2073
2076
|
};
|
|
2074
|
-
return
|
|
2077
|
+
return p(ul, Z(s, {
|
|
2075
2078
|
size: a,
|
|
2076
2079
|
style: r
|
|
2077
2080
|
}), {
|
|
2078
|
-
default: () => [
|
|
2081
|
+
default: () => [p(cn, null, null)]
|
|
2079
2082
|
});
|
|
2080
2083
|
};
|
|
2081
2084
|
var mo = fo;
|
|
@@ -2101,21 +2104,21 @@ const Nl = ({
|
|
|
2101
2104
|
}) => {
|
|
2102
2105
|
const h = we(v);
|
|
2103
2106
|
if (t.placeholderSign === Xe)
|
|
2104
|
-
return
|
|
2107
|
+
return p("div", {
|
|
2105
2108
|
class: d.em("row-cell", "placeholder"),
|
|
2106
2109
|
style: h
|
|
2107
2110
|
}, null);
|
|
2108
2111
|
const {
|
|
2109
2112
|
cellRenderer: m,
|
|
2110
2113
|
dataKey: S,
|
|
2111
|
-
dataGetter:
|
|
2112
|
-
} = t, M = qe(
|
|
2114
|
+
dataGetter: C
|
|
2115
|
+
} = t, M = qe(C) ? C({
|
|
2113
2116
|
columns: e,
|
|
2114
2117
|
column: t,
|
|
2115
2118
|
columnIndex: l,
|
|
2116
2119
|
rowData: s,
|
|
2117
2120
|
rowIndex: i
|
|
2118
|
-
}) :
|
|
2121
|
+
}) : an(s, S ?? ""), R = Ce(w, {
|
|
2119
2122
|
cellData: M,
|
|
2120
2123
|
columns: e,
|
|
2121
2124
|
column: t,
|
|
@@ -2131,18 +2134,18 @@ const Nl = ({
|
|
|
2131
2134
|
isScrolling: a,
|
|
2132
2135
|
rowData: s,
|
|
2133
2136
|
rowIndex: i
|
|
2134
|
-
}, 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]);
|
|
2135
2138
|
let P;
|
|
2136
2139
|
const K = `margin-inline-start: ${n * g}px;`;
|
|
2137
|
-
return A && (
|
|
2140
|
+
return A && (Ct(r) ? P = p(mo, Z(r, {
|
|
2138
2141
|
class: [d.e("expand-icon"), d.is("expanded", G)],
|
|
2139
2142
|
size: y,
|
|
2140
2143
|
expanded: G,
|
|
2141
2144
|
style: K,
|
|
2142
2145
|
expandable: !0
|
|
2143
|
-
}), null) : P =
|
|
2146
|
+
}), null) : P = p("div", {
|
|
2144
2147
|
style: [K, `width: ${y}px; height: ${y}px;`].join(" ")
|
|
2145
|
-
}, null)),
|
|
2148
|
+
}, null)), p("div", Z({
|
|
2146
2149
|
class: x,
|
|
2147
2150
|
style: h
|
|
2148
2151
|
}, R, {
|
|
@@ -2184,7 +2187,7 @@ const vo = ne({
|
|
|
2184
2187
|
cells: s.map((i) => We(i) && i.length === 1 ? i[0] : i),
|
|
2185
2188
|
columns: l,
|
|
2186
2189
|
headerIndex: r
|
|
2187
|
-
})),
|
|
2190
|
+
})), p("div", {
|
|
2188
2191
|
class: e.class,
|
|
2189
2192
|
style: a,
|
|
2190
2193
|
role: "row"
|
|
@@ -2210,17 +2213,17 @@ const bo = ({
|
|
|
2210
2213
|
const v = {
|
|
2211
2214
|
columns: e,
|
|
2212
2215
|
headerIndex: l
|
|
2213
|
-
}, f = [s.e("header-row"),
|
|
2216
|
+
}, f = [s.e("header-row"), Ce(r, v, ""), {
|
|
2214
2217
|
[s.is("customized")]: !!i.header
|
|
2215
2218
|
}], d = {
|
|
2216
|
-
...
|
|
2219
|
+
...Ce(a, v),
|
|
2217
2220
|
columnsStyles: t,
|
|
2218
2221
|
class: f,
|
|
2219
2222
|
columns: e,
|
|
2220
2223
|
headerIndex: l,
|
|
2221
2224
|
style: n
|
|
2222
2225
|
};
|
|
2223
|
-
return
|
|
2226
|
+
return p(yo, d, wo(i) ? i : {
|
|
2224
2227
|
default: () => [i]
|
|
2225
2228
|
});
|
|
2226
2229
|
};
|
|
@@ -2229,7 +2232,7 @@ const zt = (e, {
|
|
|
2229
2232
|
slots: t
|
|
2230
2233
|
}) => Fe(t, "default", e, () => {
|
|
2231
2234
|
var l, n;
|
|
2232
|
-
return [
|
|
2235
|
+
return [p("div", {
|
|
2233
2236
|
class: e.class,
|
|
2234
2237
|
title: (l = e.column) == null ? void 0 : l.title
|
|
2235
2238
|
}, [(n = e.column) == null ? void 0 : n.title])];
|
|
@@ -2241,11 +2244,11 @@ const xo = (e) => {
|
|
|
2241
2244
|
const {
|
|
2242
2245
|
sortOrder: t
|
|
2243
2246
|
} = e;
|
|
2244
|
-
return
|
|
2247
|
+
return p(ul, {
|
|
2245
2248
|
size: 14,
|
|
2246
2249
|
class: e.class
|
|
2247
2250
|
}, {
|
|
2248
|
-
default: () => [t === Ye.ASC ?
|
|
2251
|
+
default: () => [t === Ye.ASC ? p(dn, null, null) : p(un, null, null)]
|
|
2249
2252
|
});
|
|
2250
2253
|
};
|
|
2251
2254
|
var To = xo;
|
|
@@ -2259,7 +2262,7 @@ const Eo = (e, {
|
|
|
2259
2262
|
onColumnSorted: a
|
|
2260
2263
|
} = e, s = we(r);
|
|
2261
2264
|
if (l.placeholderSign === Xe)
|
|
2262
|
-
return
|
|
2265
|
+
return p("div", {
|
|
2263
2266
|
class: n.em("header-row-cell", "placeholder"),
|
|
2264
2267
|
style: s
|
|
2265
2268
|
}, null);
|
|
@@ -2270,27 +2273,27 @@ const Eo = (e, {
|
|
|
2270
2273
|
} = l, d = {
|
|
2271
2274
|
...e,
|
|
2272
2275
|
class: n.e("header-cell-text")
|
|
2273
|
-
}, 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)]), {
|
|
2274
2277
|
sortBy: g,
|
|
2275
2278
|
sortState: y,
|
|
2276
2279
|
headerCellProps: u
|
|
2277
2280
|
} = e;
|
|
2278
2281
|
let c, h;
|
|
2279
2282
|
if (y) {
|
|
2280
|
-
const
|
|
2281
|
-
c = !!Et[
|
|
2283
|
+
const C = y[l.key];
|
|
2284
|
+
c = !!Et[C], h = c ? C : Ye.ASC;
|
|
2282
2285
|
} else
|
|
2283
2286
|
c = l.key === g.key, h = c ? g.order : Ye.ASC;
|
|
2284
|
-
const m = [n.e("header-cell"),
|
|
2285
|
-
...
|
|
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),
|
|
2286
2289
|
onClick: l.sortable ? a : void 0,
|
|
2287
2290
|
class: m,
|
|
2288
2291
|
style: s,
|
|
2289
2292
|
"data-key": l.key
|
|
2290
2293
|
};
|
|
2291
|
-
return
|
|
2294
|
+
return p("div", Z(S, {
|
|
2292
2295
|
role: "columnheader"
|
|
2293
|
-
}), [b, f &&
|
|
2296
|
+
}), [b, f && p(To, {
|
|
2294
2297
|
class: [n.e("sort-icon"), c && n.is("sorting")],
|
|
2295
2298
|
sortOrder: h
|
|
2296
2299
|
}, null)]);
|
|
@@ -2300,7 +2303,7 @@ const zl = (e, {
|
|
|
2300
2303
|
slots: t
|
|
2301
2304
|
}) => {
|
|
2302
2305
|
var l;
|
|
2303
|
-
return
|
|
2306
|
+
return p("div", {
|
|
2304
2307
|
class: e.class,
|
|
2305
2308
|
style: e.style
|
|
2306
2309
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
@@ -2310,25 +2313,25 @@ var _o = zl;
|
|
|
2310
2313
|
const Ll = (e, {
|
|
2311
2314
|
slots: t
|
|
2312
2315
|
}) => {
|
|
2313
|
-
const l = Fe(t, "default", {}, () => [
|
|
2314
|
-
return
|
|
2316
|
+
const l = Fe(t, "default", {}, () => [p(rl, null, null)]);
|
|
2317
|
+
return p("div", {
|
|
2315
2318
|
class: e.class,
|
|
2316
2319
|
style: e.style
|
|
2317
2320
|
}, [l]);
|
|
2318
2321
|
};
|
|
2319
2322
|
Ll.displayName = "ElTableV2Empty";
|
|
2320
|
-
var
|
|
2323
|
+
var po = Ll;
|
|
2321
2324
|
const Dl = (e, {
|
|
2322
2325
|
slots: t
|
|
2323
2326
|
}) => {
|
|
2324
2327
|
var l;
|
|
2325
|
-
return
|
|
2328
|
+
return p("div", {
|
|
2326
2329
|
class: e.class,
|
|
2327
2330
|
style: e.style
|
|
2328
2331
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
2329
2332
|
};
|
|
2330
2333
|
Dl.displayName = "ElTableV2Overlay";
|
|
2331
|
-
var
|
|
2334
|
+
var Co = Dl;
|
|
2332
2335
|
function Be(e) {
|
|
2333
2336
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
2334
2337
|
}
|
|
@@ -2356,7 +2359,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2356
2359
|
leftTableRef: h,
|
|
2357
2360
|
rightTableRef: m,
|
|
2358
2361
|
isDynamic: S,
|
|
2359
|
-
isResetting:
|
|
2362
|
+
isResetting: C,
|
|
2360
2363
|
isScrolling: M,
|
|
2361
2364
|
bodyWidth: R,
|
|
2362
2365
|
emptyStyle: O,
|
|
@@ -2384,7 +2387,7 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2384
2387
|
scrollToRow: B
|
|
2385
2388
|
}), sl(Mt, {
|
|
2386
2389
|
ns: n,
|
|
2387
|
-
isResetting:
|
|
2390
|
+
isResetting: C,
|
|
2388
2391
|
isScrolling: M
|
|
2389
2392
|
}), () => {
|
|
2390
2393
|
const {
|
|
@@ -2510,28 +2513,28 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2510
2513
|
headerCellProps: ke,
|
|
2511
2514
|
onColumnSorted: U
|
|
2512
2515
|
}, he = {
|
|
2513
|
-
row: (ct) =>
|
|
2516
|
+
row: (ct) => p(uo, Z(ct, $l), {
|
|
2514
2517
|
row: t.row,
|
|
2515
2518
|
cell: (le) => {
|
|
2516
2519
|
let xe;
|
|
2517
|
-
return t.cell ?
|
|
2520
|
+
return t.cell ? p(nl, Z(le, Dt, {
|
|
2518
2521
|
style: Oe[le.column.key]
|
|
2519
2522
|
}), Be(xe = t.cell(le)) ? xe : {
|
|
2520
2523
|
default: () => [xe]
|
|
2521
|
-
}) :
|
|
2524
|
+
}) : p(nl, Z(le, Dt, {
|
|
2522
2525
|
style: Oe[le.column.key]
|
|
2523
2526
|
}), null);
|
|
2524
2527
|
}
|
|
2525
2528
|
}),
|
|
2526
|
-
header: (ct) =>
|
|
2529
|
+
header: (ct) => p(So, Z(ct, Wl), {
|
|
2527
2530
|
header: t.header,
|
|
2528
2531
|
cell: (le) => {
|
|
2529
2532
|
let xe;
|
|
2530
|
-
return t["header-cell"] ?
|
|
2533
|
+
return t["header-cell"] ? p(ol, Z(le, Pt, {
|
|
2531
2534
|
style: Oe[le.column.key]
|
|
2532
2535
|
}), Be(xe = t["header-cell"](le)) ? xe : {
|
|
2533
2536
|
default: () => [xe]
|
|
2534
|
-
}) :
|
|
2537
|
+
}) : p(ol, Z(le, Pt, {
|
|
2535
2538
|
style: Oe[le.column.key]
|
|
2536
2539
|
}), null);
|
|
2537
2540
|
}
|
|
@@ -2542,23 +2545,23 @@ const Ho = "ElTableV2", Mo = ie({
|
|
|
2542
2545
|
class: n.e("footer"),
|
|
2543
2546
|
style: o(x)
|
|
2544
2547
|
};
|
|
2545
|
-
return
|
|
2548
|
+
return p("div", {
|
|
2546
2549
|
class: Fl,
|
|
2547
2550
|
style: o(D)
|
|
2548
|
-
}, [
|
|
2551
|
+
}, [p(Xn, se, Be(he) ? he : {
|
|
2549
2552
|
default: () => [he]
|
|
2550
|
-
}),
|
|
2553
|
+
}), p(eo, je, Be(he) ? he : {
|
|
2551
2554
|
default: () => [he]
|
|
2552
|
-
}),
|
|
2555
|
+
}), p(no, Pl, Be(he) ? he : {
|
|
2553
2556
|
default: () => [he]
|
|
2554
|
-
}), t.footer &&
|
|
2557
|
+
}), t.footer && p(_o, Gl, {
|
|
2555
2558
|
default: t.footer
|
|
2556
|
-
}), o(A) &&
|
|
2559
|
+
}), o(A) && p(po, {
|
|
2557
2560
|
class: n.e("empty"),
|
|
2558
2561
|
style: o(O)
|
|
2559
2562
|
}, {
|
|
2560
2563
|
default: t.empty
|
|
2561
|
-
}), t.overlay &&
|
|
2564
|
+
}), t.overlay && p(Co, {
|
|
2562
2565
|
class: n.e("overlay")
|
|
2563
2566
|
}, {
|
|
2564
2567
|
default: t.overlay
|
|
@@ -2577,7 +2580,7 @@ const Ao = ne({
|
|
|
2577
2580
|
const t = V(), l = V(0), n = V(0);
|
|
2578
2581
|
let r;
|
|
2579
2582
|
return st(() => {
|
|
2580
|
-
r =
|
|
2583
|
+
r = ql(t, ([a]) => {
|
|
2581
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;
|
|
2582
2585
|
l.value = s - b - g, n.value = i - y - u;
|
|
2583
2586
|
}).stop;
|
|
@@ -2610,7 +2613,7 @@ const Ao = ne({
|
|
|
2610
2613
|
};
|
|
2611
2614
|
return () => {
|
|
2612
2615
|
var i;
|
|
2613
|
-
return
|
|
2616
|
+
return p("div", {
|
|
2614
2617
|
ref: a,
|
|
2615
2618
|
class: l.b(),
|
|
2616
2619
|
style: s
|
|
@@ -2622,7 +2625,7 @@ const Ao = ne({
|
|
|
2622
2625
|
}
|
|
2623
2626
|
});
|
|
2624
2627
|
var zo = No;
|
|
2625
|
-
const Lo =
|
|
2628
|
+
const Lo = pt(Io), Do = pt(zo);
|
|
2626
2629
|
const Po = {
|
|
2627
2630
|
key: 0,
|
|
2628
2631
|
class: "footer-box"
|
|
@@ -2670,15 +2673,15 @@ const Po = {
|
|
|
2670
2673
|
...n.config
|
|
2671
2674
|
})), a = V(null), s = V(0);
|
|
2672
2675
|
let i = 0, v = !1, f = null;
|
|
2673
|
-
const d =
|
|
2676
|
+
const d = tn(e, "tableActiveData"), w = T(() => d.value.map((h) => h[r.value.tableActiveKey])), b = ({
|
|
2674
2677
|
rowData: h,
|
|
2675
2678
|
rowIndex: m
|
|
2676
2679
|
}) => {
|
|
2677
2680
|
const {
|
|
2678
2681
|
tableActiveNum: S,
|
|
2679
|
-
tableActiveKey:
|
|
2682
|
+
tableActiveKey: C
|
|
2680
2683
|
} = r.value;
|
|
2681
|
-
if (w.value.includes(h[
|
|
2684
|
+
if (w.value.includes(h[C]))
|
|
2682
2685
|
return;
|
|
2683
2686
|
const M = Math.floor(m / S) * S, R = M + S;
|
|
2684
2687
|
d.value = n.tableData.slice(M, R);
|
|
@@ -2689,12 +2692,12 @@ const Po = {
|
|
|
2689
2692
|
tableData: m
|
|
2690
2693
|
} = n, {
|
|
2691
2694
|
tableActiveNum: S,
|
|
2692
|
-
tableActiveKey:
|
|
2695
|
+
tableActiveKey: C,
|
|
2693
2696
|
pageUpDownEnabled: M
|
|
2694
2697
|
} = r.value;
|
|
2695
2698
|
if (!m.length || !M)
|
|
2696
2699
|
return;
|
|
2697
|
-
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));
|
|
2698
2701
|
let D = null, F = null;
|
|
2699
2702
|
switch (h) {
|
|
2700
2703
|
case "PageUp":
|
|
@@ -2731,15 +2734,15 @@ const Po = {
|
|
|
2731
2734
|
window.addEventListener("keydown", g);
|
|
2732
2735
|
}), Me(() => n.tableLoading, (h) => {
|
|
2733
2736
|
h || (s.value = 0);
|
|
2734
|
-
}),
|
|
2737
|
+
}), ln(() => {
|
|
2735
2738
|
window.removeEventListener("keydown", g);
|
|
2736
2739
|
}), (h, m) => {
|
|
2737
|
-
const S = rl,
|
|
2740
|
+
const S = rl, C = Yl, M = yn, R = Lo, O = Do;
|
|
2738
2741
|
return De(), dt(O, null, {
|
|
2739
2742
|
default: Ne(({
|
|
2740
2743
|
height: D,
|
|
2741
2744
|
width: F
|
|
2742
|
-
}) => [
|
|
2745
|
+
}) => [p(R, {
|
|
2743
2746
|
ref_key: "tableRef",
|
|
2744
2747
|
ref: a,
|
|
2745
2748
|
id: "virtualTable",
|
|
@@ -2759,7 +2762,7 @@ const Po = {
|
|
|
2759
2762
|
onScroll: y,
|
|
2760
2763
|
onEndReached: m[0] || (m[0] = (x) => u(e.tableData.length - 1, "PageDown"))
|
|
2761
2764
|
}, {
|
|
2762
|
-
empty: Ne(() => [
|
|
2765
|
+
empty: Ne(() => [p(S, {
|
|
2763
2766
|
description: "暂无数据",
|
|
2764
2767
|
style: {
|
|
2765
2768
|
height: "100%"
|
|
@@ -2768,7 +2771,7 @@ const Po = {
|
|
|
2768
2771
|
footer: Ne(() => [s.value ? (De(), ht("div", Po, [e.tableLoading === "more" ? (De(), dt(M, {
|
|
2769
2772
|
key: 0
|
|
2770
2773
|
}, {
|
|
2771
|
-
default: Ne(() => [C
|
|
2774
|
+
default: Ne(() => [p(C, {
|
|
2772
2775
|
type: "primary",
|
|
2773
2776
|
text: "",
|
|
2774
2777
|
loading: ""
|
|
@@ -2790,11 +2793,11 @@ const Po = {
|
|
|
2790
2793
|
};
|
|
2791
2794
|
}
|
|
2792
2795
|
};
|
|
2793
|
-
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]),
|
|
2796
|
+
const Wo = /* @__PURE__ */ hn($o, [["__scopeId", "data-v-7e702a8a"]]), lr = {
|
|
2794
2797
|
install(e) {
|
|
2795
2798
|
e.component("st-virtualTable", Wo);
|
|
2796
2799
|
}
|
|
2797
2800
|
};
|
|
2798
2801
|
export {
|
|
2799
|
-
|
|
2802
|
+
lr as default
|
|
2800
2803
|
};
|