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