st-comp 0.0.207 → 0.0.208
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 -74
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +53 -56
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +45 -48
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +1 -118
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +81 -84
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +161 -164
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +15 -18
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +18 -21
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +140 -143
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +55 -58
- package/es/User.cjs +1 -1
- package/es/User.js +85 -88
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +53 -56
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +15 -17
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +53 -56
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +33 -36
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +103 -106
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
- package/es/_initCloneObject-e660897e.cjs +1 -0
- package/es/base-7ba08794.cjs +5 -0
- package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
- package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
- package/es/castArray-efa457a5.cjs +1 -0
- package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
- package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
- package/es/debounce-4aa22feb.cjs +1 -0
- package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
- package/es/el-autocomplete-609ac86d.cjs +1 -0
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
- package/es/el-button-08310c06.cjs +1 -0
- package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
- package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
- package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
- package/es/el-dialog-ea480083.cjs +1 -0
- package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
- package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
- package/es/el-empty-b40fa7ea.cjs +1 -0
- package/es/el-form-item-338ea2f7.cjs +12 -0
- package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
- package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
- package/es/el-input-b04b5bfc.cjs +1 -0
- package/es/el-input-number-7242c8b5.cjs +1 -0
- package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
- package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
- package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
- package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
- package/es/el-menu-item-7aca344e.cjs +1 -0
- package/es/el-message-05cd85bf.cjs +1 -0
- package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
- package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
- package/es/el-message-box-b7e9917e.cjs +1 -0
- package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
- package/es/el-overlay-60bc5a02.cjs +1 -0
- package/es/el-popconfirm-24b622c5.cjs +1 -0
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
- package/es/el-popper-1dd8f5b4.cjs +1 -0
- package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
- package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
- package/es/el-segmented-a928d89b.cjs +1 -0
- package/es/el-select-5fd77a96.cjs +1 -0
- package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
- package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
- package/es/el-table-column-bf3ab2a6.cjs +14 -0
- package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
- package/es/el-tag-d59f3463.cjs +1 -0
- package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
- package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
- package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
- package/es/{index-88546436.js → index-29418a8d.js} +18 -18
- package/es/index-3d0bc5da.js +566 -0
- package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
- package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
- package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
- package/es/index-a206f6eb.cjs +1 -0
- package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
- package/es/index-b4700d83.cjs +1 -0
- package/es/index-c30cf7f9.cjs +1 -0
- package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
- package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
- package/es/raf-d8c44079.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
- package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-41182853.cjs +1 -0
- package/es/use-form-common-props-4cdda474.js +671 -0
- package/es/use-global-config-7bfbe48c.js +71 -0
- package/es/use-global-config-dc5527e8.cjs +1 -0
- package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
- package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
- package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
- package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
- package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
- package/es/_initCloneObject-52b6a510.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/castArray-35947698.cjs +0 -1
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/el-autocomplete-a07e9439.cjs +0 -1
- package/es/el-button-eec58cff.cjs +0 -1
- package/es/el-dialog-ae86edb8.cjs +0 -1
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-form-item-c3fe189b.cjs +0 -12
- package/es/el-input-7fd293af.cjs +0 -1
- package/es/el-input-number-22e21d16.cjs +0 -1
- package/es/el-menu-item-17dc717e.cjs +0 -1
- package/es/el-message-5e6a6be9.cjs +0 -1
- package/es/el-message-box-c10adb52.cjs +0 -1
- package/es/el-overlay-9e34965f.cjs +0 -1
- package/es/el-popconfirm-70a976bf.cjs +0 -1
- package/es/el-popper-b6c99b28.cjs +0 -1
- package/es/el-segmented-f8fce9ac.cjs +0 -1
- package/es/el-select-d8d91db1.cjs +0 -1
- package/es/el-table-column-c974cb96.cjs +0 -14
- package/es/el-tag-a33c4b22.cjs +0 -1
- package/es/index-098c2447.cjs +0 -1
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9b9ef5dd.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c108567d.cjs +0 -1
- package/es/index-d77a7336.js +0 -204
- package/es/index-e5566b94.js +0 -368
- package/es/index-f3562b52.cjs +0 -1
- package/es/raf-80ef0c0a.js +0 -6
- package/es/use-form-common-props-815d48a6.js +0 -364
- package/es/use-form-common-props-fd9b61a0.cjs +0 -1
- package/es/use-global-config-30d7d8ce.cjs +0 -1
- package/es/use-global-config-b5e9d3d5.js +0 -72
package/es/VirtualTable.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as
|
|
3
|
-
import { B as
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
6
|
-
import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as
|
|
7
|
-
import { d as
|
|
8
|
-
import { m as
|
|
9
|
-
import { c as
|
|
10
|
-
import {
|
|
11
|
-
import { c as
|
|
12
|
-
import {
|
|
13
|
-
import { g as
|
|
14
|
-
import { E as rl, g as lo, z as oo, A as no } from "./index-a871c3eb.js";
|
|
15
|
-
import { g as ro } from "./index-d77a7336.js";
|
|
1
|
+
import { a7 as Oe, d as I, b as ae, u as Ie, p as xt, n as Q, i as We, s as Qe, g as Tt, a as Dl, m as Nt, F as Pl, A as Fl, E as Jt, Y as $l, a8 as Wl, a9 as Gl, w as Qt } from "./base-aa512893.js";
|
|
2
|
+
import { E as el } from "./el-empty-04682b5d.js";
|
|
3
|
+
import { B as kl } from "./el-scrollbar-323542e7.js";
|
|
4
|
+
import { E as Vl } from "./el-divider-1cda1783.js";
|
|
5
|
+
import { E as Kl } from "./el-button-56624e61.js";
|
|
6
|
+
import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as $, reactive as jl, unref as n, watch as Re, onBeforeUnmount as tl, h as ue, withModifiers as Bl, shallowRef as Fe, nextTick as Se, isVNode as Ne, toRef as Lt, inject as Et, onUpdated as ql, createVNode as C, onMounted as rt, resolveDynamicComponent as zt, Fragment as Ul, provide as ll, onActivated as Yl, mergeProps as Y, renderSlot as Ye, mergeModels as Dt, useModel as Zl, onUnmounted as Xl, openBlock as Xe, createBlock as it, withCtx as De, createElementBlock as Jl, createTextVNode as Pt, createCommentVNode as Ft } from "vue";
|
|
7
|
+
import { d as Ql } from "./debounce-33406a0d.js";
|
|
8
|
+
import { m as ol } from "./typescript-7ae59c4c.js";
|
|
9
|
+
import { c as eo } from "./castArray-1eb17278.js";
|
|
10
|
+
import { Z as to, b as lo, j as oo } from "./use-form-common-props-4cdda474.js";
|
|
11
|
+
import { c as nl, r as rl } from "./raf-d8c44079.js";
|
|
12
|
+
import { g as no } from "./scroll-0a48995c.js";
|
|
13
|
+
import { g as ro } from "./index-3d0bc5da.js";
|
|
16
14
|
import { _ as ao } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
15
|
import "./index-2e331d74.js";
|
|
18
|
-
import "./use-global-config-
|
|
19
|
-
import "./index-e5566b94.js";
|
|
16
|
+
import "./use-global-config-7bfbe48c.js";
|
|
20
17
|
import "./index-657047bb.js";
|
|
21
|
-
var
|
|
18
|
+
var $t = Number.isNaN || function(t) {
|
|
22
19
|
return typeof t == "number" && t !== t;
|
|
23
20
|
};
|
|
24
21
|
function so(e, t) {
|
|
25
|
-
return !!(e === t ||
|
|
22
|
+
return !!(e === t || $t(e) && $t(t));
|
|
26
23
|
}
|
|
27
24
|
function io(e, t) {
|
|
28
25
|
if (e.length !== t.length)
|
|
@@ -55,9 +52,9 @@ const uo = () => {
|
|
|
55
52
|
const t = nt().proxy.$props;
|
|
56
53
|
return E(() => {
|
|
57
54
|
const l = (o, a, r) => ({});
|
|
58
|
-
return t.perfMode ?
|
|
55
|
+
return t.perfMode ? to(l) : co(l);
|
|
59
56
|
});
|
|
60
|
-
}, Wt = 50, Gt = "itemRendered", kt = "scroll", je = "forward", dt = "backward", He = "auto", al = "smart", ut = "start",
|
|
57
|
+
}, Wt = 50, Gt = "itemRendered", kt = "scroll", je = "forward", dt = "backward", He = "auto", al = "smart", ut = "start", $e = "center", ht = "end", ft = "horizontal", sl = "vertical", il = "rtl", mt = "negative", cl = "positive-ascending", dl = "positive-descending", ho = {
|
|
61
58
|
[ft]: "left",
|
|
62
59
|
[sl]: "top"
|
|
63
60
|
}, fo = 20, vt = Oe({
|
|
@@ -93,7 +90,7 @@ const uo = () => {
|
|
|
93
90
|
},
|
|
94
91
|
data: {
|
|
95
92
|
type: I(Array),
|
|
96
|
-
default: () =>
|
|
93
|
+
default: () => ol([])
|
|
97
94
|
},
|
|
98
95
|
direction: mo,
|
|
99
96
|
height: {
|
|
@@ -193,12 +190,12 @@ const jt = xe({
|
|
|
193
190
|
props: vl,
|
|
194
191
|
emits: ["scroll", "start-move", "stop-move"],
|
|
195
192
|
setup(e, { emit: t }) {
|
|
196
|
-
const l = E(() => e.startGap + e.endGap), o = Ie("virtual-scrollbar"), a = Ie("scrollbar"), r =
|
|
193
|
+
const l = E(() => e.startGap + e.endGap), o = Ie("virtual-scrollbar"), a = Ie("scrollbar"), r = $(), s = $();
|
|
197
194
|
let c = null, m = null;
|
|
198
|
-
const f =
|
|
195
|
+
const f = jl({
|
|
199
196
|
isDragging: !1,
|
|
200
197
|
traveled: 0
|
|
201
|
-
}), u = E(() =>
|
|
198
|
+
}), u = E(() => kl[e.layout]), v = E(() => e.clientSize - n(l)), b = E(() => ({
|
|
202
199
|
position: "absolute",
|
|
203
200
|
width: `${ft === e.layout ? v.value : e.scrollbarSize}px`,
|
|
204
201
|
height: `${ft === e.layout ? e.scrollbarSize : v.value}px`,
|
|
@@ -212,8 +209,8 @@ const jt = xe({
|
|
|
212
209
|
return Number.POSITIVE_INFINITY;
|
|
213
210
|
if (R >= 50)
|
|
214
211
|
return R * v.value / 100;
|
|
215
|
-
const
|
|
216
|
-
return Math.floor(Math.min(Math.max(R * v.value / 100, fo),
|
|
212
|
+
const F = v.value / 3;
|
|
213
|
+
return Math.floor(Math.min(Math.max(R * v.value / 100, fo), F));
|
|
217
214
|
}), w = E(() => {
|
|
218
215
|
if (!Number.isFinite(y.value))
|
|
219
216
|
return {
|
|
@@ -238,24 +235,24 @@ const jt = xe({
|
|
|
238
235
|
}, S = () => {
|
|
239
236
|
f.isDragging = !1, f[u.value.axis] = 0, t("stop-move"), i();
|
|
240
237
|
}, H = (R) => {
|
|
241
|
-
const { isDragging:
|
|
242
|
-
if (
|
|
238
|
+
const { isDragging: F } = f;
|
|
239
|
+
if (!F || !s.value || !r.value)
|
|
243
240
|
return;
|
|
244
241
|
const z = f[u.value.axis];
|
|
245
242
|
if (!z)
|
|
246
243
|
return;
|
|
247
|
-
|
|
244
|
+
nl(c);
|
|
248
245
|
const G = (r.value.getBoundingClientRect()[u.value.direction] - R[u.value.client]) * -1, x = s.value[u.value.offset] - z, A = G - x;
|
|
249
|
-
c =
|
|
246
|
+
c = rl(() => {
|
|
250
247
|
f.traveled = Math.max(0, Math.min(A, h.value)), t("scroll", A, h.value);
|
|
251
248
|
});
|
|
252
249
|
}, M = (R) => {
|
|
253
|
-
const
|
|
250
|
+
const F = Math.abs(R.target.getBoundingClientRect()[u.value.direction] - R[u.value.client]), z = s.value[u.value.offset] / 2, G = F - z;
|
|
254
251
|
f.traveled = Math.max(0, Math.min(G, h.value)), t("scroll", G, h.value);
|
|
255
252
|
};
|
|
256
253
|
return Re(() => e.scrollFrom, (R) => {
|
|
257
254
|
f.isDragging || (f.traveled = Math.ceil(R * h.value));
|
|
258
|
-
}),
|
|
255
|
+
}), tl(() => {
|
|
259
256
|
i();
|
|
260
257
|
}), () => ue("div", {
|
|
261
258
|
role: "presentation",
|
|
@@ -266,7 +263,7 @@ const jt = xe({
|
|
|
266
263
|
(e.alwaysOn || f.isDragging) && "always-on"
|
|
267
264
|
],
|
|
268
265
|
style: b.value,
|
|
269
|
-
onMousedown:
|
|
266
|
+
onMousedown: Bl(M, ["stop", "prevent"]),
|
|
270
267
|
onTouchstartPrevent: g
|
|
271
268
|
}, ue("div", {
|
|
272
269
|
ref: s,
|
|
@@ -356,7 +353,7 @@ const bo = (e, {
|
|
|
356
353
|
rightTableRef: o,
|
|
357
354
|
onMaybeEndReached: a
|
|
358
355
|
}) => {
|
|
359
|
-
const r =
|
|
356
|
+
const r = $({ scrollLeft: 0, scrollTop: 0 });
|
|
360
357
|
function s(y) {
|
|
361
358
|
var w, h, d;
|
|
362
359
|
const { scrollTop: i } = y;
|
|
@@ -403,7 +400,7 @@ const bo = (e, {
|
|
|
403
400
|
ns: r,
|
|
404
401
|
isScrolling: s
|
|
405
402
|
}) => {
|
|
406
|
-
const c = nt(), { emit: m } = c, f =
|
|
403
|
+
const c = nt(), { emit: m } = c, f = Fe(!1), u = $(e.defaultExpandedRowKeys || []), v = $(-1), b = Fe(null), y = $({}), w = $({}), h = Fe({}), d = Fe({}), i = Fe({}), g = E(() => Q(e.estimatedRowHeight));
|
|
407
404
|
function S(x) {
|
|
408
405
|
var A;
|
|
409
406
|
(A = e.onRowsRendered) == null || A.call(e, x), x.rowCacheEnd > n(v) && (v.value = x.rowCacheEnd);
|
|
@@ -430,11 +427,11 @@ const bo = (e, {
|
|
|
430
427
|
rowKey: N
|
|
431
428
|
}), (B = e.onExpandedRowsChange) == null || B.call(e, V), a.vnode.el.querySelector(`.${r.is("hovered")}[rowkey="${String(N)}"]`) && Se(() => H({ hovered: !0, rowKey: N }));
|
|
432
429
|
}
|
|
433
|
-
const R =
|
|
430
|
+
const R = Ql(() => {
|
|
434
431
|
var x, A, W, N;
|
|
435
|
-
f.value = !0, y.value = { ...n(y), ...n(w) },
|
|
432
|
+
f.value = !0, y.value = { ...n(y), ...n(w) }, F(n(b), !1), w.value = {}, b.value = null, (x = t.value) == null || x.forceUpdate(), (A = l.value) == null || A.forceUpdate(), (W = o.value) == null || W.forceUpdate(), (N = c.proxy) == null || N.$forceUpdate(), f.value = !1;
|
|
436
433
|
}, 0);
|
|
437
|
-
function
|
|
434
|
+
function F(x, A = !1) {
|
|
438
435
|
n(g) && [t, l, o].forEach((W) => {
|
|
439
436
|
const N = n(W);
|
|
440
437
|
N && N.resetAfterRowIndex(x, A);
|
|
@@ -455,14 +452,14 @@ const bo = (e, {
|
|
|
455
452
|
isDynamic: g,
|
|
456
453
|
isResetting: f,
|
|
457
454
|
rowHeights: y,
|
|
458
|
-
resetAfterIndex:
|
|
455
|
+
resetAfterIndex: F,
|
|
459
456
|
onRowExpanded: M,
|
|
460
457
|
onRowHovered: H,
|
|
461
458
|
onRowsRendered: S,
|
|
462
459
|
onRowHeightChange: G
|
|
463
460
|
};
|
|
464
461
|
}, Ro = (e, { expandedRowKeys: t, lastRenderedRowIndex: l, resetAfterIndex: o }) => {
|
|
465
|
-
const a =
|
|
462
|
+
const a = $({}), r = E(() => {
|
|
466
463
|
const c = {}, { data: m, rowKey: f } = e, u = n(t);
|
|
467
464
|
if (!u || !u.length)
|
|
468
465
|
return m;
|
|
@@ -537,7 +534,7 @@ const bo = (e, {
|
|
|
537
534
|
};
|
|
538
535
|
};
|
|
539
536
|
function Eo(e) {
|
|
540
|
-
const t =
|
|
537
|
+
const t = $(), l = $(), o = $(), {
|
|
541
538
|
columns: a,
|
|
542
539
|
columnsStyles: r,
|
|
543
540
|
columnsTotalWidth: s,
|
|
@@ -559,9 +556,9 @@ function Eo(e) {
|
|
|
559
556
|
leftTableRef: l,
|
|
560
557
|
rightTableRef: o,
|
|
561
558
|
onMaybeEndReached: Ve
|
|
562
|
-
}), S = Ie("table-v2"), H = nt(), M =
|
|
559
|
+
}), S = Ie("table-v2"), H = nt(), M = Fe(!1), {
|
|
563
560
|
expandedRowKeys: R,
|
|
564
|
-
lastRenderedRowIndex:
|
|
561
|
+
lastRenderedRowIndex: F,
|
|
565
562
|
isDynamic: z,
|
|
566
563
|
isResetting: G,
|
|
567
564
|
rowHeights: x,
|
|
@@ -579,7 +576,7 @@ function Eo(e) {
|
|
|
579
576
|
isScrolling: M
|
|
580
577
|
}), { data: V, depthMap: U } = Ro(e, {
|
|
581
578
|
expandedRowKeys: R,
|
|
582
|
-
lastRenderedRowIndex:
|
|
579
|
+
lastRenderedRowIndex: F,
|
|
583
580
|
resetAfterIndex: A
|
|
584
581
|
}), le = E(() => {
|
|
585
582
|
const { estimatedRowHeight: q, rowHeight: oe } = e, ce = n(V);
|
|
@@ -600,7 +597,7 @@ function Eo(e) {
|
|
|
600
597
|
fixedColumnsOnLeft: c,
|
|
601
598
|
fixedColumnsOnRight: m,
|
|
602
599
|
rowsHeight: le
|
|
603
|
-
}), Le =
|
|
600
|
+
}), Le = $(), Ge = E(() => {
|
|
604
601
|
const q = n(V).length === 0;
|
|
605
602
|
return We(e.fixedData) ? e.fixedData.length === 0 && q : q;
|
|
606
603
|
});
|
|
@@ -608,13 +605,13 @@ function Eo(e) {
|
|
|
608
605
|
const { estimatedRowHeight: oe, rowHeight: ce, rowKey: T } = e;
|
|
609
606
|
return oe ? n(x)[n(V)[q][T]] || oe : ce;
|
|
610
607
|
}
|
|
611
|
-
const we =
|
|
608
|
+
const we = $(!1);
|
|
612
609
|
function Ve() {
|
|
613
610
|
const { onEndReached: q } = e;
|
|
614
611
|
if (!q)
|
|
615
612
|
return;
|
|
616
613
|
const { scrollTop: oe } = n(g), ce = n(le), T = n(ve), _ = ce - (oe + T) + e.hScrollbarSize;
|
|
617
|
-
!we.value && n(
|
|
614
|
+
!we.value && n(F) >= 0 && ce <= oe + n(re) - n(ye) ? (we.value = !0, q(_)) : we.value = !1;
|
|
618
615
|
}
|
|
619
616
|
return Re(() => n(le), () => we.value = !1), Re(() => e.expandedRowKeys, (q) => R.value = q, {
|
|
620
617
|
deep: !0
|
|
@@ -669,7 +666,7 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
|
|
|
669
666
|
required: !0
|
|
670
667
|
}, _o = String, Bt = {
|
|
671
668
|
type: I(Array),
|
|
672
|
-
default: () =>
|
|
669
|
+
default: () => ol([])
|
|
673
670
|
}, Ce = {
|
|
674
671
|
type: Number,
|
|
675
672
|
required: !0
|
|
@@ -870,13 +867,13 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
|
|
|
870
867
|
slots: t,
|
|
871
868
|
expose: l
|
|
872
869
|
}) {
|
|
873
|
-
const o = Ie("table-v2"), a = Et(wl), r =
|
|
870
|
+
const o = Ie("table-v2"), a = Et(wl), r = $(), s = E(() => be({
|
|
874
871
|
width: e.width,
|
|
875
872
|
height: e.height
|
|
876
873
|
})), c = E(() => be({
|
|
877
874
|
width: e.rowWidth,
|
|
878
875
|
height: e.height
|
|
879
|
-
})), m = E(() =>
|
|
876
|
+
})), m = E(() => eo(n(e.headerHeight))), f = (b) => {
|
|
880
877
|
const y = n(r);
|
|
881
878
|
Se(() => {
|
|
882
879
|
y != null && y.scroll && y.scroll({
|
|
@@ -921,7 +918,7 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
|
|
|
921
918
|
});
|
|
922
919
|
});
|
|
923
920
|
};
|
|
924
|
-
return
|
|
921
|
+
return ql(() => {
|
|
925
922
|
a != null && a.value && f(a.value);
|
|
926
923
|
}), l({
|
|
927
924
|
scrollToLeft: f
|
|
@@ -949,9 +946,9 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
949
946
|
return {
|
|
950
947
|
hasReachedEdge: m,
|
|
951
948
|
onWheel: (u) => {
|
|
952
|
-
|
|
949
|
+
nl(r);
|
|
953
950
|
let v = u.deltaX, b = u.deltaY;
|
|
954
|
-
Math.abs(v) > Math.abs(b) ? b = 0 : v = 0, u.shiftKey && b !== 0 && (v = b, b = 0), !(m(s, c) && m(s + v, c + b)) && (s += v, c += b, u.preventDefault(), r =
|
|
951
|
+
Math.abs(v) > Math.abs(b) ? b = 0 : v = 0, u.shiftKey && b !== 0 && (v = b, b = 0), !(m(s, c) && m(s + v, c + b)) && (s += v, c += b, u.preventDefault(), r = rl(() => {
|
|
955
952
|
a(s, c), s = 0, c = 0;
|
|
956
953
|
}));
|
|
957
954
|
}
|
|
@@ -979,9 +976,9 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
979
976
|
setup(h, { emit: d, expose: i, slots: g }) {
|
|
980
977
|
const S = Ie("vl");
|
|
981
978
|
w(h);
|
|
982
|
-
const H = nt(), M =
|
|
979
|
+
const H = nt(), M = $(b(h, H));
|
|
983
980
|
y == null || y(H, M);
|
|
984
|
-
const R =
|
|
981
|
+
const R = $(), F = $(), z = $(), G = $(null), x = $({
|
|
985
982
|
isScrolling: !1,
|
|
986
983
|
scrollLeft: Q(h.initScrollLeft) ? h.initScrollLeft : 0,
|
|
987
984
|
scrollTop: Q(h.initScrollTop) ? h.initScrollTop : 0,
|
|
@@ -1114,14 +1111,14 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1114
1111
|
atYEndEdge: E(() => x.value.scrollTop >= V.value - n(W))
|
|
1115
1112
|
}, (T, _) => {
|
|
1116
1113
|
var p, D, L, O;
|
|
1117
|
-
(D = (p =
|
|
1114
|
+
(D = (p = F.value) == null ? void 0 : p.onMouseUp) == null || D.call(p), (O = (L = z.value) == null ? void 0 : L.onMouseUp) == null || O.call(L);
|
|
1118
1115
|
const P = n(N), k = n(W);
|
|
1119
1116
|
Z({
|
|
1120
1117
|
scrollLeft: Math.min(x.value.scrollLeft + T, U.value - P),
|
|
1121
1118
|
scrollTop: Math.min(x.value.scrollTop + _, V.value - k)
|
|
1122
1119
|
});
|
|
1123
1120
|
});
|
|
1124
|
-
|
|
1121
|
+
lo(R, "wheel", ve, {
|
|
1125
1122
|
passive: !1
|
|
1126
1123
|
});
|
|
1127
1124
|
const Z = ({
|
|
@@ -1141,7 +1138,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1141
1138
|
}, ge = (T = 0, _ = 0, p = He) => {
|
|
1142
1139
|
const D = n(x);
|
|
1143
1140
|
_ = Math.max(0, Math.min(_, h.totalColumn - 1)), T = Math.max(0, Math.min(T, h.totalRow - 1));
|
|
1144
|
-
const L =
|
|
1141
|
+
const L = no(S.namespace.value), O = n(M), P = r(h, O), k = s(h, O);
|
|
1145
1142
|
Z({
|
|
1146
1143
|
scrollLeft: c(h, _, p, D.scrollLeft, O, k > h.width ? L : 0),
|
|
1147
1144
|
scrollTop: m(h, T, p, D.scrollTop, O, P > h.height ? L : 0)
|
|
@@ -1215,7 +1212,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1215
1212
|
totalColumn: D,
|
|
1216
1213
|
totalRow: L
|
|
1217
1214
|
} = h, O = n(N), P = n(W), k = n(U), K = n(V), { scrollLeft: X, scrollTop: te } = n(x), J = ue(jt, {
|
|
1218
|
-
ref:
|
|
1215
|
+
ref: F,
|
|
1219
1216
|
alwaysOn: T,
|
|
1220
1217
|
startGap: _,
|
|
1221
1218
|
endGap: p,
|
|
@@ -1252,7 +1249,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1252
1249
|
for (let J = D; J <= L; J++)
|
|
1253
1250
|
for (let ee = _; ee <= p; ee++) {
|
|
1254
1251
|
const Ee = X({ columnIndex: ee, data: O, rowIndex: J });
|
|
1255
|
-
te.push(ue(
|
|
1252
|
+
te.push(ue(Ul, { key: Ee }, (T = g.default) == null ? void 0 : T.call(g, {
|
|
1256
1253
|
columnIndex: ee,
|
|
1257
1254
|
data: O,
|
|
1258
1255
|
isScrolling: K ? n(x).isScrolling : void 0,
|
|
@@ -1362,12 +1359,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1362
1359
|
r === "row" ? e.height : e.width,
|
|
1363
1360
|
No[r]
|
|
1364
1361
|
], f = he(e, t, a, r), u = m(e, a), v = ot(0, Tl(u - c, f.offset)), b = ot(0, f.offset - c + s + f.size);
|
|
1365
|
-
switch (l === al && (o >= b - c && o <= v + c ? l = He : l =
|
|
1362
|
+
switch (l === al && (o >= b - c && o <= v + c ? l = He : l = $e), l) {
|
|
1366
1363
|
case ut:
|
|
1367
1364
|
return v;
|
|
1368
1365
|
case ht:
|
|
1369
1366
|
return b;
|
|
1370
|
-
case
|
|
1367
|
+
case $e:
|
|
1371
1368
|
return Math.round(b + (v - b) / 2);
|
|
1372
1369
|
case He:
|
|
1373
1370
|
default:
|
|
@@ -1406,7 +1403,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1406
1403
|
injectToInstance: (e, t) => {
|
|
1407
1404
|
const l = ({ columnIndex: r, rowIndex: s }, c) => {
|
|
1408
1405
|
var m, f;
|
|
1409
|
-
c =
|
|
1406
|
+
c = Fl(c) ? !0 : c, Q(r) && (t.value.lastVisitedColumnIndex = Math.min(t.value.lastVisitedColumnIndex, r - 1)), Q(s) && (t.value.lastVisitedRowIndex = Math.min(t.value.lastVisitedRowIndex, s - 1)), (m = e.exposed) == null || m.getItemStyleCache.value(-1, null, null), c && ((f = e.proxy) == null || f.$forceUpdate());
|
|
1410
1407
|
}, o = (r, s) => {
|
|
1411
1408
|
l({
|
|
1412
1409
|
columnIndex: r
|
|
@@ -1451,12 +1448,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1451
1448
|
getColumnOffset: ({ totalColumn: e, columnWidth: t, width: l }, o, a, r, s, c) => {
|
|
1452
1449
|
l = Number(l);
|
|
1453
1450
|
const m = Math.max(0, e * t - l), f = Math.min(m, o * t), u = Math.max(0, o * t - l + c + t);
|
|
1454
|
-
switch (a === "smart" && (r >= u - l && r <= f + l ? a = He : a =
|
|
1451
|
+
switch (a === "smart" && (r >= u - l && r <= f + l ? a = He : a = $e), a) {
|
|
1455
1452
|
case ut:
|
|
1456
1453
|
return f;
|
|
1457
1454
|
case ht:
|
|
1458
1455
|
return u;
|
|
1459
|
-
case
|
|
1456
|
+
case $e: {
|
|
1460
1457
|
const v = Math.round(u + (f - u) / 2);
|
|
1461
1458
|
return v < Math.ceil(l / 2) ? 0 : v > m + Math.floor(l / 2) ? m : v;
|
|
1462
1459
|
}
|
|
@@ -1468,12 +1465,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1468
1465
|
getRowOffset: ({ rowHeight: e, height: t, totalRow: l }, o, a, r, s, c) => {
|
|
1469
1466
|
t = Number(t);
|
|
1470
1467
|
const m = Math.max(0, l * e - t), f = Math.min(m, o * e), u = Math.max(0, o * e - t + c + e);
|
|
1471
|
-
switch (a === al && (r >= u - t && r <= f + t ? a = He : a =
|
|
1468
|
+
switch (a === al && (r >= u - t && r <= f + t ? a = He : a = $e), a) {
|
|
1472
1469
|
case ut:
|
|
1473
1470
|
return f;
|
|
1474
1471
|
case ht:
|
|
1475
1472
|
return u;
|
|
1476
|
-
case
|
|
1473
|
+
case $e: {
|
|
1477
1474
|
const v = Math.round(u + (f - u) / 2);
|
|
1478
1475
|
return v < Math.ceil(t / 2) ? 0 : v > m + Math.floor(t / 2) ? m : v;
|
|
1479
1476
|
}
|
|
@@ -1498,7 +1495,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1498
1495
|
validateProps: ({ columnWidth: e, rowHeight: t }) => {
|
|
1499
1496
|
}
|
|
1500
1497
|
}), Do = "ElTableV2Grid", Po = (e) => {
|
|
1501
|
-
const t =
|
|
1498
|
+
const t = $(), l = $(), o = $(0), a = E(() => {
|
|
1502
1499
|
const {
|
|
1503
1500
|
data: d,
|
|
1504
1501
|
rowHeight: i,
|
|
@@ -1582,7 +1579,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1582
1579
|
scrollToRow: w,
|
|
1583
1580
|
scrollLeft: o
|
|
1584
1581
|
};
|
|
1585
|
-
},
|
|
1582
|
+
}, Fo = xe({
|
|
1586
1583
|
name: Do,
|
|
1587
1584
|
props: tt,
|
|
1588
1585
|
setup(e, {
|
|
@@ -1608,7 +1605,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1608
1605
|
scrollToRow: i,
|
|
1609
1606
|
scrollLeft: g
|
|
1610
1607
|
} = Po(e);
|
|
1611
|
-
|
|
1608
|
+
ll(wl, g), Yl(async () => {
|
|
1612
1609
|
var H;
|
|
1613
1610
|
await Se();
|
|
1614
1611
|
const M = (H = a.value) == null ? void 0 : H.states.scrollTop;
|
|
@@ -1627,7 +1624,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1627
1624
|
cache: H,
|
|
1628
1625
|
columns: M,
|
|
1629
1626
|
data: R,
|
|
1630
|
-
fixedData:
|
|
1627
|
+
fixedData: F,
|
|
1631
1628
|
useIsScrolling: z,
|
|
1632
1629
|
scrollbarAlwaysOn: G,
|
|
1633
1630
|
scrollbarEndGap: x,
|
|
@@ -1683,7 +1680,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1683
1680
|
columns: M,
|
|
1684
1681
|
headerData: R,
|
|
1685
1682
|
headerHeight: e.headerHeight,
|
|
1686
|
-
fixedHeaderData:
|
|
1683
|
+
fixedHeaderData: F,
|
|
1687
1684
|
rowWidth: V,
|
|
1688
1685
|
rowHeight: N,
|
|
1689
1686
|
width: le,
|
|
@@ -1695,8 +1692,8 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1695
1692
|
};
|
|
1696
1693
|
}
|
|
1697
1694
|
});
|
|
1698
|
-
var pt =
|
|
1699
|
-
function
|
|
1695
|
+
var pt = Fo;
|
|
1696
|
+
function $o(e) {
|
|
1700
1697
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
|
|
1701
1698
|
}
|
|
1702
1699
|
const Wo = (e, {
|
|
@@ -1708,7 +1705,7 @@ const Wo = (e, {
|
|
|
1708
1705
|
} = e;
|
|
1709
1706
|
return C(pt, Y({
|
|
1710
1707
|
ref: l
|
|
1711
|
-
}, o),
|
|
1708
|
+
}, o), $o(t) ? t : {
|
|
1712
1709
|
default: () => [t]
|
|
1713
1710
|
});
|
|
1714
1711
|
};
|
|
@@ -1754,7 +1751,7 @@ var qo = Bo;
|
|
|
1754
1751
|
const Uo = (e) => {
|
|
1755
1752
|
const {
|
|
1756
1753
|
isScrolling: t
|
|
1757
|
-
} = Et(_t), l =
|
|
1754
|
+
} = Et(_t), l = $(!1), o = $(), a = E(() => Q(e.estimatedRowHeight) && e.rowIndex >= 0), r = (m = !1) => {
|
|
1758
1755
|
const f = n(o);
|
|
1759
1756
|
if (!f)
|
|
1760
1757
|
return;
|
|
@@ -1947,17 +1944,17 @@ const Qo = (e, {
|
|
|
1947
1944
|
columns: l,
|
|
1948
1945
|
rowData: f,
|
|
1949
1946
|
rowIndex: u
|
|
1950
|
-
}), R = f[h],
|
|
1951
|
-
[i.e(`row-depth-${
|
|
1947
|
+
}), R = f[h], F = a[R] || 0, z = !!r, G = u < 0, x = [i.e("row"), H, {
|
|
1948
|
+
[i.e(`row-depth-${F}`)]: z && u >= 0,
|
|
1952
1949
|
[i.is("expanded")]: z && s.includes(R),
|
|
1953
|
-
[i.is("fixed")]:
|
|
1950
|
+
[i.is("fixed")]: !F && G,
|
|
1954
1951
|
[i.is("customized")]: !!t.row
|
|
1955
1952
|
}], A = m ? g : void 0, W = {
|
|
1956
1953
|
...M,
|
|
1957
1954
|
columns: l,
|
|
1958
1955
|
columnsStyles: o,
|
|
1959
1956
|
class: x,
|
|
1960
|
-
depth:
|
|
1957
|
+
depth: F,
|
|
1961
1958
|
expandColumnKey: r,
|
|
1962
1959
|
estimatedRowHeight: G ? void 0 : c,
|
|
1963
1960
|
isScrolling: b,
|
|
@@ -2021,11 +2018,11 @@ const ln = (e) => {
|
|
|
2021
2018
|
onClick: l ? () => o(!t) : void 0,
|
|
2022
2019
|
class: e.class
|
|
2023
2020
|
};
|
|
2024
|
-
return C(
|
|
2021
|
+
return C(Jt, Y(s, {
|
|
2025
2022
|
size: r,
|
|
2026
2023
|
style: a
|
|
2027
2024
|
}), {
|
|
2028
|
-
default: () => [C(
|
|
2025
|
+
default: () => [C($l, null, null)]
|
|
2029
2026
|
});
|
|
2030
2027
|
};
|
|
2031
2028
|
var on = ln;
|
|
@@ -2072,7 +2069,7 @@ const pl = ({
|
|
|
2072
2069
|
columnIndex: l,
|
|
2073
2070
|
rowIndex: c,
|
|
2074
2071
|
rowData: s
|
|
2075
|
-
}),
|
|
2072
|
+
}), F = {
|
|
2076
2073
|
class: u.e("cell-text"),
|
|
2077
2074
|
columns: e,
|
|
2078
2075
|
column: t,
|
|
@@ -2081,7 +2078,7 @@ const pl = ({
|
|
|
2081
2078
|
isScrolling: r,
|
|
2082
2079
|
rowData: s,
|
|
2083
2080
|
rowIndex: c
|
|
2084
|
-
}, z = yl(g), G = z ? z(
|
|
2081
|
+
}, z = yl(g), G = z ? z(F) : Ye(d, "default", F, () => [C(tn, F, null)]), x = [u.e("row-cell"), t.class, t.align === qe.CENTER && u.is("align-center"), t.align === qe.RIGHT && u.is("align-right")], A = c >= 0 && b && t.key === b, W = c >= 0 && f.includes(s[h]);
|
|
2085
2082
|
let N;
|
|
2086
2083
|
const j = `margin-inline-start: ${o * y}px;`;
|
|
2087
2084
|
return A && (xt(a) ? N = C(on, Y(a, {
|
|
@@ -2191,11 +2188,11 @@ const hn = (e) => {
|
|
|
2191
2188
|
const {
|
|
2192
2189
|
sortOrder: t
|
|
2193
2190
|
} = e;
|
|
2194
|
-
return C(
|
|
2191
|
+
return C(Jt, {
|
|
2195
2192
|
size: 14,
|
|
2196
2193
|
class: e.class
|
|
2197
2194
|
}, {
|
|
2198
|
-
default: () => [t === Be.ASC ? C(
|
|
2195
|
+
default: () => [t === Be.ASC ? C(Wl, null, null) : C(Gl, null, null)]
|
|
2199
2196
|
});
|
|
2200
2197
|
};
|
|
2201
2198
|
var fn = hn;
|
|
@@ -2260,7 +2257,7 @@ var vn = Ml;
|
|
|
2260
2257
|
const Il = (e, {
|
|
2261
2258
|
slots: t
|
|
2262
2259
|
}) => {
|
|
2263
|
-
const l = Ye(t, "default", {}, () => [C(
|
|
2260
|
+
const l = Ye(t, "default", {}, () => [C(el, null, null)]);
|
|
2264
2261
|
return C("div", {
|
|
2265
2262
|
class: e.class,
|
|
2266
2263
|
style: e.style
|
|
@@ -2309,7 +2306,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2309
2306
|
isResetting: H,
|
|
2310
2307
|
isScrolling: M,
|
|
2311
2308
|
bodyWidth: R,
|
|
2312
|
-
emptyStyle:
|
|
2309
|
+
emptyStyle: F,
|
|
2313
2310
|
rootStyle: z,
|
|
2314
2311
|
footerHeight: G,
|
|
2315
2312
|
showEmpty: x,
|
|
@@ -2331,7 +2328,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2331
2328
|
scrollToLeft: W,
|
|
2332
2329
|
scrollToTop: N,
|
|
2333
2330
|
scrollToRow: j
|
|
2334
|
-
}),
|
|
2331
|
+
}), ll(_t, {
|
|
2335
2332
|
ns: o,
|
|
2336
2333
|
isResetting: H,
|
|
2337
2334
|
isScrolling: M
|
|
@@ -2504,7 +2501,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2504
2501
|
default: t.footer
|
|
2505
2502
|
}), n(x) && C(gn, {
|
|
2506
2503
|
class: o.e("empty"),
|
|
2507
|
-
style: n(
|
|
2504
|
+
style: n(F)
|
|
2508
2505
|
}, {
|
|
2509
2506
|
default: t.empty
|
|
2510
2507
|
}), t.overlay && C(yn, {
|
|
@@ -2523,14 +2520,14 @@ const Rn = ae({
|
|
|
2523
2520
|
type: I(Function)
|
|
2524
2521
|
}
|
|
2525
2522
|
}), xn = (e) => {
|
|
2526
|
-
const t =
|
|
2523
|
+
const t = $(), l = $(0), o = $(0);
|
|
2527
2524
|
let a;
|
|
2528
2525
|
return rt(() => {
|
|
2529
|
-
a =
|
|
2526
|
+
a = oo(t, ([r]) => {
|
|
2530
2527
|
const { width: s, height: c } = r.contentRect, { paddingLeft: m, paddingRight: f, paddingTop: u, paddingBottom: v } = getComputedStyle(r.target), b = Number.parseInt(m) || 0, y = Number.parseInt(f) || 0, w = Number.parseInt(u) || 0, h = Number.parseInt(v) || 0;
|
|
2531
2528
|
l.value = s - b - y, o.value = c - w - h;
|
|
2532
2529
|
}).stop;
|
|
2533
|
-
}),
|
|
2530
|
+
}), tl(() => {
|
|
2534
2531
|
a == null || a();
|
|
2535
2532
|
}), Re([l, o], ([r, s]) => {
|
|
2536
2533
|
var c;
|
|
@@ -2571,7 +2568,7 @@ const Rn = ae({
|
|
|
2571
2568
|
}
|
|
2572
2569
|
});
|
|
2573
2570
|
var En = Tn;
|
|
2574
|
-
const _n =
|
|
2571
|
+
const _n = Qt(Sn), Cn = Qt(En);
|
|
2575
2572
|
const Hn = {
|
|
2576
2573
|
key: 0,
|
|
2577
2574
|
class: "footer-box"
|
|
@@ -2617,9 +2614,9 @@ const Hn = {
|
|
|
2617
2614
|
pageUpDownEnabled: !0,
|
|
2618
2615
|
// 是否开启键盘pageUp, pageDown切换选中功能
|
|
2619
2616
|
...o.config
|
|
2620
|
-
})), r =
|
|
2617
|
+
})), r = $(null), s = $(0);
|
|
2621
2618
|
let c = 0, m = !1, f = null;
|
|
2622
|
-
const u =
|
|
2619
|
+
const u = Zl(e, "tableActiveData"), v = E(() => u.value.map((i) => i[a.value.tableActiveKey])), b = ({
|
|
2623
2620
|
rowData: i,
|
|
2624
2621
|
rowIndex: g
|
|
2625
2622
|
}) => {
|
|
@@ -2643,7 +2640,7 @@ const Hn = {
|
|
|
2643
2640
|
} = a.value;
|
|
2644
2641
|
if (!g.length || !M)
|
|
2645
2642
|
return;
|
|
2646
|
-
const R = g.findIndex((x) => x[H] === v.value.at(0)),
|
|
2643
|
+
const R = g.findIndex((x) => x[H] === v.value.at(0)), F = g.findIndex((x) => x[H] === v.value.at(-1));
|
|
2647
2644
|
let z = null, G = null;
|
|
2648
2645
|
switch (i) {
|
|
2649
2646
|
case "PageUp":
|
|
@@ -2652,7 +2649,7 @@ const Hn = {
|
|
|
2652
2649
|
z = R - S > 0 ? R - S : 0, G = z + S - 1, u.value = g.slice(z, G + 1), h(z, "PageUp");
|
|
2653
2650
|
break;
|
|
2654
2651
|
case "PageDown":
|
|
2655
|
-
if (
|
|
2652
|
+
if (F === g.length - 1)
|
|
2656
2653
|
return;
|
|
2657
2654
|
z = R + S, G = z + S - 1, u.value = g.slice(z, G + 1), h(G, "PageDown");
|
|
2658
2655
|
break;
|
|
@@ -2680,11 +2677,11 @@ const Hn = {
|
|
|
2680
2677
|
window.addEventListener("keydown", y);
|
|
2681
2678
|
}), Re(() => o.tableLoading, (i) => {
|
|
2682
2679
|
i || (s.value = 0);
|
|
2683
|
-
}),
|
|
2680
|
+
}), Xl(() => {
|
|
2684
2681
|
window.removeEventListener("keydown", y);
|
|
2685
2682
|
}), (i, g) => {
|
|
2686
|
-
const S =
|
|
2687
|
-
return Xe(), it(
|
|
2683
|
+
const S = el, H = Kl, M = Vl, R = _n, F = Cn;
|
|
2684
|
+
return Xe(), it(F, null, {
|
|
2688
2685
|
default: De(({
|
|
2689
2686
|
height: z,
|
|
2690
2687
|
width: G
|
|
@@ -2714,7 +2711,7 @@ const Hn = {
|
|
|
2714
2711
|
height: "100%"
|
|
2715
2712
|
}
|
|
2716
2713
|
})]),
|
|
2717
|
-
footer: De(() => [s.value ? (Xe(),
|
|
2714
|
+
footer: De(() => [s.value ? (Xe(), Jl("div", Hn, [e.tableLoading === "more" ? (Xe(), it(M, {
|
|
2718
2715
|
key: 0
|
|
2719
2716
|
}, {
|
|
2720
2717
|
default: De(() => [C(H, {
|
|
@@ -2731,7 +2728,7 @@ const Hn = {
|
|
|
2731
2728
|
}, {
|
|
2732
2729
|
default: De(() => [Pt(" 已无更多数据 ")]),
|
|
2733
2730
|
_: 1
|
|
2734
|
-
})) :
|
|
2731
|
+
})) : Ft("", !0)])) : Ft("", !0)]),
|
|
2735
2732
|
_: 2
|
|
2736
2733
|
}, 1032, ["data", "columns", "width", "height", "header-height", "row-height", "row-event-handlers", "footer-height"])]),
|
|
2737
2734
|
_: 1
|
|
@@ -2739,11 +2736,11 @@ const Hn = {
|
|
|
2739
2736
|
};
|
|
2740
2737
|
}
|
|
2741
2738
|
};
|
|
2742
|
-
const Mn = /* @__PURE__ */ ao(pn, [["__scopeId", "data-v-7e702a8a"]]),
|
|
2739
|
+
const Mn = /* @__PURE__ */ ao(pn, [["__scopeId", "data-v-7e702a8a"]]), qn = {
|
|
2743
2740
|
install(e) {
|
|
2744
2741
|
e.component("st-virtualTable", Mn);
|
|
2745
2742
|
}
|
|
2746
2743
|
};
|
|
2747
2744
|
export {
|
|
2748
|
-
|
|
2745
|
+
qn as default
|
|
2749
2746
|
};
|