st-comp 0.0.173 → 0.0.175
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.js +3 -3
- package/es/Dialog.js +14 -14
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +337 -817
- package/es/Kline.js +16 -16
- package/es/KlineBasic.js +26 -26
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +41 -40
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.js +17 -17
- package/es/Pagination.js +19 -19
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.js +21 -21
- package/es/User.js +39 -39
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +173 -169
- package/es/VarietySearch.cjs +6 -6
- package/es/VarietySearch.js +1055 -1033
- package/es/VirtualTable.js +494 -494
- package/es/{_initCloneObject-a9305c1e.js → _initCloneObject-da90eef0.js} +3 -3
- package/es/{base-4bcd2756.js → base-d9284bf0.js} +23 -23
- package/es/{castArray-681d750b.js → castArray-b0ab0165.js} +1 -1
- package/es/{config-provider-93846ae3.js → config-provider-f0151e9f.js} +10 -10
- package/es/{debounce-51046b06.js → debounce-3cec4646.js} +1 -1
- package/es/{dropdown-65e74de8.js → dropdown-82b80e8b.js} +6 -6
- package/es/{el-button-d39472d3.js → el-button-34665425.js} +9 -9
- package/es/{el-dialog-f45ec2a1.js → el-dialog-a412484e.js} +17 -17
- package/es/{el-divider-7cf13678.js → el-divider-fd2b4e2e.js} +4 -4
- package/es/{el-empty-64b2ea8a.js → el-empty-412fc297.js} +2 -2
- package/es/{el-form-item-b31e7a98.js → el-form-item-668ba024.js} +65 -65
- package/es/{el-input-42315ac4.js → el-input-22e66e37.js} +22 -22
- package/es/{el-input-number-ebd64e22.js → el-input-number-481e21c5.js} +26 -26
- package/es/{el-loading-5d29f26d.js → el-loading-d4e403ab.js} +5 -5
- package/es/{el-menu-item-d62e0a3f.js → el-menu-item-404c10e5.js} +8 -8
- package/es/el-message-box-41f39f6d.js +558 -0
- package/es/el-message-box-6694f827.cjs +1 -0
- package/es/{el-message-bd1d2c82.js → el-message-ef506caa.js} +24 -24
- package/es/{el-overlay-690b50aa.js → el-overlay-4a9fa4e1.js} +30 -30
- package/es/{el-popconfirm-88bbd066.js → el-popconfirm-7b9183aa.js} +6 -6
- package/es/{el-popper-85365d5b.js → el-popper-e73466eb.js} +5 -5
- package/es/{el-scrollbar-bcf29780.js → el-scrollbar-45318df0.js} +8 -8
- package/es/el-segmented-3ba6d664.cjs +1 -0
- package/es/el-segmented-41820018.js +135 -0
- package/es/{el-select-d3bce4d1.js → el-select-d7a00294.js} +13 -13
- package/es/{el-table-column-9691b26d.js → el-table-column-a2d0c635.js} +122 -122
- package/es/{el-tag-6036f51c.js → el-tag-7f391090.js} +32 -32
- package/es/{index-d3c37134.js → index-1c41bd56.js} +3 -3
- package/es/index-3120be08.js +14 -0
- package/es/{index-fbe85773.js → index-85a32a00.js} +15 -15
- package/es/{index-21fb27eb.js → index-94f38460.js} +19 -19
- package/es/{index-ef7c4392.js → index-a8e9ec0f.js} +23 -23
- package/es/{index-cb8157f2.js → index-d577b81b.js} +2 -2
- package/es/{index-8ee89b40.js → index-d99fdc6d.js} +8 -8
- package/es/{index-3425f2f0.js → index-ee1cebbc.js} +5 -5
- package/es/{raf-36faa519.js → raf-bfbf42e4.js} +1 -1
- package/es/{scroll-0277d145.js → scroll-e3cb691f.js} +2 -2
- package/es/style.css +1 -1
- package/es/{use-form-common-props-54c31983.js → use-form-common-props-cc347a83.js} +36 -36
- package/es/{use-global-config-946f61a4.js → use-global-config-c7f0a7e3.js} +3 -3
- package/es/validator-10fa54fe.js +5 -0
- package/es/validator-af488a9a.cjs +1 -0
- package/es/{vnode-dfc92f20.js → vnode-6be33bb1.js} +1 -1
- package/es/{zh-cn-5066f5e9.js → zh-cn-d883afa8.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +172 -172
- package/lib/{index-c35886c2.js → index-d3f4c395.js} +11045 -11020
- package/lib/{python-37ee7d62.js → python-0128b724.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarSelectDialog/index.vue +5 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +271 -254
- package/es/el-checkbox-group-020b49f5.cjs +0 -1
- package/es/el-checkbox-group-779f353a.js +0 -67
- package/es/el-segmented-84707138.js +0 -136
- package/es/el-segmented-bccd9f2a.cjs +0 -1
- package/es/index-c45ac024.js +0 -14
package/es/VirtualTable.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { J as
|
|
2
|
-
import { E as
|
|
3
|
-
import { B as kl, b as Kl, u as jl } from "./el-scrollbar-
|
|
4
|
-
import { E as Bl } from "./el-divider-
|
|
5
|
-
import { E as Ul } from "./el-button-
|
|
6
|
-
import { getCurrentInstance as at, computed as T, defineComponent as we, ref as V, reactive as ql, unref as
|
|
7
|
-
import { d as
|
|
1
|
+
import { J as He, d as I, b as se, u as _e, e as Et, m as Y, g as $e, k as et, y as Be, p as Fl, i as Lt, z as Gl, t as nt, x as Vl, w as ll } from "./base-d9284bf0.js";
|
|
2
|
+
import { E as nl } from "./el-empty-412fc297.js";
|
|
3
|
+
import { B as kl, b as Kl, u as jl } from "./el-scrollbar-45318df0.js";
|
|
4
|
+
import { E as Bl } from "./el-divider-fd2b4e2e.js";
|
|
5
|
+
import { E as Ul } from "./el-button-34665425.js";
|
|
6
|
+
import { getCurrentInstance as at, computed as T, defineComponent as we, ref as V, reactive as ql, unref as o, watch as Me, onBeforeUnmount as ol, h as he, withModifiers as Yl, shallowRef as Le, isVNode as Ie, toRef as Dt, inject as Ct, onUpdated as Zl, createVNode as _, nextTick as Pe, onMounted as st, resolveDynamicComponent as Pt, Fragment as Xl, provide as rl, mergeProps as Z, renderSlot as Ze, mergeModels as $t, useModel as Jl, onUnmounted as Ql, openBlock as Je, createBlock as dt, withCtx as Ne, createElementBlock as en, createTextVNode as Wt, createCommentVNode as Ft } from "vue";
|
|
7
|
+
import { d as tn } from "./debounce-3cec4646.js";
|
|
8
8
|
import { m as al } from "./typescript-7ae59c4c.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { c as sl, r as il } from "./raf-
|
|
11
|
-
import { s as
|
|
12
|
-
import { g as
|
|
13
|
-
import { E as cl, b as
|
|
14
|
-
import { _ as
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./use-global-config-
|
|
17
|
-
import "./use-form-common-props-
|
|
9
|
+
import { c as ln } from "./castArray-b0ab0165.js";
|
|
10
|
+
import { c as sl, r as il } from "./raf-bfbf42e4.js";
|
|
11
|
+
import { s as nn, h as on } from "./index-a8e9ec0f.js";
|
|
12
|
+
import { g as rn } from "./scroll-e3cb691f.js";
|
|
13
|
+
import { E as cl, b as an, t as sn, w as cn } from "./index-ee1cebbc.js";
|
|
14
|
+
import { _ as dn } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
import "./index-3120be08.js";
|
|
16
|
+
import "./use-global-config-c7f0a7e3.js";
|
|
17
|
+
import "./use-form-common-props-cc347a83.js";
|
|
18
18
|
import "./index-657047bb.js";
|
|
19
19
|
var Gt = Number.isNaN || function(t) {
|
|
20
20
|
return typeof t == "number" && t !== t;
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function un(e, t) {
|
|
23
23
|
return !!(e === t || Gt(e) && Gt(t));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function hn(e, t) {
|
|
26
26
|
if (e.length !== t.length)
|
|
27
27
|
return !1;
|
|
28
28
|
for (var l = 0; l < e.length; l++)
|
|
29
|
-
if (!
|
|
29
|
+
if (!un(e[l], t[l]))
|
|
30
30
|
return !1;
|
|
31
31
|
return !0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
t === void 0 && (t =
|
|
33
|
+
function fn(e, t) {
|
|
34
|
+
t === void 0 && (t = hn);
|
|
35
35
|
var l = null;
|
|
36
|
-
function
|
|
36
|
+
function n() {
|
|
37
37
|
for (var a = [], r = 0; r < arguments.length; r++)
|
|
38
38
|
a[r] = arguments[r];
|
|
39
39
|
if (l && l.lastThis === this && t(a, l.lastArgs))
|
|
@@ -45,38 +45,38 @@ function fo(e, t) {
|
|
|
45
45
|
lastThis: this
|
|
46
46
|
}, s;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return n.clear = function() {
|
|
49
49
|
l = null;
|
|
50
|
-
},
|
|
50
|
+
}, n;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const mn = () => {
|
|
53
53
|
const t = at().proxy.$props;
|
|
54
54
|
return T(() => {
|
|
55
|
-
const l = (
|
|
56
|
-
return t.perfMode ?
|
|
55
|
+
const l = (n, a, r) => ({});
|
|
56
|
+
return t.perfMode ? nn(l) : fn(l);
|
|
57
57
|
});
|
|
58
|
-
}, Vt = 50, kt = "itemRendered", Kt = "scroll", je = "forward", ht = "backward", Te = "auto", dl = "smart", ft = "start", De = "center", mt = "end", vt = "horizontal", ul = "vertical", hl = "rtl", gt = "negative", fl = "positive-ascending", ml = "positive-descending",
|
|
58
|
+
}, Vt = 50, kt = "itemRendered", Kt = "scroll", je = "forward", ht = "backward", Te = "auto", dl = "smart", ft = "start", De = "center", mt = "end", vt = "horizontal", ul = "vertical", hl = "rtl", gt = "negative", fl = "positive-ascending", ml = "positive-descending", vn = {
|
|
59
59
|
[vt]: "left",
|
|
60
60
|
[ul]: "top"
|
|
61
|
-
},
|
|
61
|
+
}, gn = 20, yt = He({
|
|
62
62
|
type: I([Number, Function]),
|
|
63
63
|
required: !0
|
|
64
|
-
}), wt =
|
|
64
|
+
}), wt = He({
|
|
65
65
|
type: Number
|
|
66
|
-
}), bt =
|
|
66
|
+
}), bt = He({
|
|
67
67
|
type: Number,
|
|
68
68
|
default: 2
|
|
69
|
-
}),
|
|
69
|
+
}), yn = He({
|
|
70
70
|
type: String,
|
|
71
71
|
values: ["ltr", "rtl"],
|
|
72
72
|
default: "ltr"
|
|
73
|
-
}), St =
|
|
73
|
+
}), St = He({
|
|
74
74
|
type: Number,
|
|
75
75
|
default: 0
|
|
76
|
-
}),
|
|
76
|
+
}), ot = He({
|
|
77
77
|
type: Number,
|
|
78
78
|
required: !0
|
|
79
|
-
}), vl =
|
|
79
|
+
}), vl = He({
|
|
80
80
|
type: String,
|
|
81
81
|
values: ["horizontal", "vertical"],
|
|
82
82
|
default: ul
|
|
@@ -93,7 +93,7 @@ const mo = () => {
|
|
|
93
93
|
type: I(Array),
|
|
94
94
|
default: () => al([])
|
|
95
95
|
},
|
|
96
|
-
direction:
|
|
96
|
+
direction: yn,
|
|
97
97
|
height: {
|
|
98
98
|
type: [String, Number],
|
|
99
99
|
required: !0
|
|
@@ -121,12 +121,12 @@ const mo = () => {
|
|
|
121
121
|
type: Boolean,
|
|
122
122
|
default: !1
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), wn = se({
|
|
125
125
|
cache: bt,
|
|
126
126
|
estimatedItemSize: wt,
|
|
127
127
|
layout: vl,
|
|
128
128
|
initScrollOffset: St,
|
|
129
|
-
total:
|
|
129
|
+
total: ot,
|
|
130
130
|
itemSize: yt,
|
|
131
131
|
...gl
|
|
132
132
|
}), xt = {
|
|
@@ -148,8 +148,8 @@ const mo = () => {
|
|
|
148
148
|
},
|
|
149
149
|
rowCache: bt,
|
|
150
150
|
rowHeight: yt,
|
|
151
|
-
totalColumn:
|
|
152
|
-
totalRow:
|
|
151
|
+
totalColumn: ot,
|
|
152
|
+
totalRow: ot,
|
|
153
153
|
hScrollbarSize: xt,
|
|
154
154
|
vScrollbarSize: xt,
|
|
155
155
|
scrollbarStartGap: yl,
|
|
@@ -160,7 +160,7 @@ const mo = () => {
|
|
|
160
160
|
alwaysOn: Boolean,
|
|
161
161
|
class: String,
|
|
162
162
|
layout: vl,
|
|
163
|
-
total:
|
|
163
|
+
total: ot,
|
|
164
164
|
ratio: {
|
|
165
165
|
type: Number,
|
|
166
166
|
required: !0
|
|
@@ -183,30 +183,30 @@ function Bt(e = !1) {
|
|
|
183
183
|
if (ze === null || e) {
|
|
184
184
|
const t = document.createElement("div"), l = t.style;
|
|
185
185
|
l.width = "50px", l.height = "50px", l.overflow = "scroll", l.direction = "rtl";
|
|
186
|
-
const
|
|
187
|
-
return a.width = "100px", a.height = "100px", t.appendChild(
|
|
186
|
+
const n = document.createElement("div"), a = n.style;
|
|
187
|
+
return a.width = "100px", a.height = "100px", t.appendChild(n), document.body.appendChild(t), t.scrollLeft > 0 ? ze = ml : (t.scrollLeft = 1, t.scrollLeft === 0 ? ze = gt : ze = fl), document.body.removeChild(t), ze;
|
|
188
188
|
}
|
|
189
189
|
return ze;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function bn({ move: e, size: t, bar: l }, n) {
|
|
192
192
|
const a = {}, r = `translate${l.axis}(${e}px)`;
|
|
193
|
-
return a[l.size] = t, a.transform = r, a.msTransform = r, a.webkitTransform = r,
|
|
193
|
+
return a[l.size] = t, a.transform = r, a.msTransform = r, a.webkitTransform = r, n === "horizontal" ? a.height = "100%" : a.width = "100%", a;
|
|
194
194
|
}
|
|
195
195
|
const Ut = we({
|
|
196
196
|
name: "ElVirtualScrollBar",
|
|
197
197
|
props: bl,
|
|
198
198
|
emits: ["scroll", "start-move", "stop-move"],
|
|
199
199
|
setup(e, { emit: t }) {
|
|
200
|
-
const l = T(() => e.startGap + e.endGap),
|
|
200
|
+
const l = T(() => e.startGap + e.endGap), n = _e("virtual-scrollbar"), a = _e("scrollbar"), r = V(), s = V();
|
|
201
201
|
let i = null, v = null;
|
|
202
202
|
const f = ql({
|
|
203
203
|
isDragging: !1,
|
|
204
204
|
traveled: 0
|
|
205
|
-
}), d = T(() => kl[e.layout]), w = T(() => e.clientSize -
|
|
205
|
+
}), d = T(() => kl[e.layout]), w = T(() => e.clientSize - o(l)), b = T(() => ({
|
|
206
206
|
position: "absolute",
|
|
207
207
|
width: `${vt === e.layout ? w.value : e.scrollbarSize}px`,
|
|
208
208
|
height: `${vt === e.layout ? e.scrollbarSize : w.value}px`,
|
|
209
|
-
[
|
|
209
|
+
[vn[e.layout]]: "2px",
|
|
210
210
|
right: "2px",
|
|
211
211
|
bottom: "2px",
|
|
212
212
|
borderRadius: "4px"
|
|
@@ -217,31 +217,31 @@ const Ut = we({
|
|
|
217
217
|
if (x >= 50)
|
|
218
218
|
return x * O / 100;
|
|
219
219
|
const D = O / 3;
|
|
220
|
-
return Math.floor(Math.min(Math.max(x * O,
|
|
220
|
+
return Math.floor(Math.min(Math.max(x * O, gn), D));
|
|
221
221
|
}), y = T(() => {
|
|
222
222
|
if (!Number.isFinite(g.value))
|
|
223
223
|
return {
|
|
224
224
|
display: "none"
|
|
225
225
|
};
|
|
226
226
|
const x = `${g.value}px`;
|
|
227
|
-
return
|
|
227
|
+
return bn({
|
|
228
228
|
bar: d.value,
|
|
229
229
|
size: x,
|
|
230
230
|
move: f.traveled
|
|
231
231
|
}, e.layout);
|
|
232
|
-
}), u = T(() => Math.floor(e.clientSize - g.value -
|
|
233
|
-
window.addEventListener("mousemove",
|
|
234
|
-
const x =
|
|
235
|
-
x && (v = document.onselectstart, document.onselectstart = () => !1, x.addEventListener("touchmove",
|
|
232
|
+
}), u = T(() => Math.floor(e.clientSize - g.value - o(l))), c = () => {
|
|
233
|
+
window.addEventListener("mousemove", p), window.addEventListener("mouseup", S);
|
|
234
|
+
const x = o(s);
|
|
235
|
+
x && (v = document.onselectstart, document.onselectstart = () => !1, x.addEventListener("touchmove", p, { passive: !0 }), x.addEventListener("touchend", S));
|
|
236
236
|
}, h = () => {
|
|
237
|
-
window.removeEventListener("mousemove",
|
|
238
|
-
const x =
|
|
239
|
-
x && (x.removeEventListener("touchmove",
|
|
237
|
+
window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", S), document.onselectstart = v, v = null;
|
|
238
|
+
const x = o(s);
|
|
239
|
+
x && (x.removeEventListener("touchmove", p), x.removeEventListener("touchend", S));
|
|
240
240
|
}, m = (x) => {
|
|
241
241
|
x.stopImmediatePropagation(), !(x.ctrlKey || [1, 2].includes(x.button)) && (f.isDragging = !0, f[d.value.axis] = x.currentTarget[d.value.offset] - (x[d.value.client] - x.currentTarget.getBoundingClientRect()[d.value.direction]), t("start-move"), c());
|
|
242
242
|
}, S = () => {
|
|
243
243
|
f.isDragging = !1, f[d.value.axis] = 0, t("stop-move"), h();
|
|
244
|
-
},
|
|
244
|
+
}, p = (x) => {
|
|
245
245
|
const { isDragging: O } = f;
|
|
246
246
|
if (!O || !s.value || !r.value)
|
|
247
247
|
return;
|
|
@@ -259,13 +259,13 @@ const Ut = we({
|
|
|
259
259
|
};
|
|
260
260
|
return Me(() => e.scrollFrom, (x) => {
|
|
261
261
|
f.isDragging || (f.traveled = Math.ceil(x * u.value));
|
|
262
|
-
}),
|
|
262
|
+
}), ol(() => {
|
|
263
263
|
h();
|
|
264
264
|
}), () => he("div", {
|
|
265
265
|
role: "presentation",
|
|
266
266
|
ref: r,
|
|
267
267
|
class: [
|
|
268
|
-
|
|
268
|
+
n.b(),
|
|
269
269
|
e.class,
|
|
270
270
|
(e.alwaysOn || f.isDragging) && "always-on"
|
|
271
271
|
],
|
|
@@ -285,8 +285,8 @@ const Rt = {
|
|
|
285
285
|
asc: "desc",
|
|
286
286
|
desc: "asc"
|
|
287
287
|
/* ASC */
|
|
288
|
-
}, Ye = Symbol("placeholder"),
|
|
289
|
-
var
|
|
288
|
+
}, Ye = Symbol("placeholder"), Sn = (e, t, l) => {
|
|
289
|
+
var n;
|
|
290
290
|
const a = {
|
|
291
291
|
flexGrow: 0,
|
|
292
292
|
flexShrink: 0,
|
|
@@ -297,36 +297,36 @@ const Rt = {
|
|
|
297
297
|
};
|
|
298
298
|
l || (a.flexShrink = 1);
|
|
299
299
|
const r = {
|
|
300
|
-
...(
|
|
300
|
+
...(n = e.style) != null ? n : {},
|
|
301
301
|
...a,
|
|
302
302
|
flexBasis: "auto",
|
|
303
303
|
width: e.width
|
|
304
304
|
};
|
|
305
305
|
return t || (e.maxWidth && (r.maxWidth = e.maxWidth), e.minWidth && (r.minWidth = e.minWidth)), r;
|
|
306
306
|
};
|
|
307
|
-
function
|
|
308
|
-
const
|
|
307
|
+
function xn(e, t, l) {
|
|
308
|
+
const n = T(() => o(t).map((c, h) => {
|
|
309
309
|
var m, S;
|
|
310
310
|
return {
|
|
311
311
|
...c,
|
|
312
312
|
key: (S = (m = c.key) != null ? m : c.dataKey) != null ? S : h
|
|
313
313
|
};
|
|
314
|
-
})), a = T(() => n
|
|
314
|
+
})), a = T(() => o(n).filter((c) => !c.hidden)), r = T(() => o(a).filter((c) => c.fixed === "left" || c.fixed === !0)), s = T(() => o(a).filter((c) => c.fixed === "right")), i = T(() => o(a).filter((c) => !c.fixed)), v = T(() => {
|
|
315
315
|
const c = [];
|
|
316
|
-
return
|
|
316
|
+
return o(r).forEach((h) => {
|
|
317
317
|
c.push({
|
|
318
318
|
...h,
|
|
319
319
|
placeholderSign: Ye
|
|
320
320
|
});
|
|
321
|
-
}),
|
|
321
|
+
}), o(i).forEach((h) => {
|
|
322
322
|
c.push(h);
|
|
323
|
-
}),
|
|
323
|
+
}), o(s).forEach((h) => {
|
|
324
324
|
c.push({
|
|
325
325
|
...h,
|
|
326
326
|
placeholderSign: Ye
|
|
327
327
|
});
|
|
328
328
|
}), c;
|
|
329
|
-
}), f = T(() =>
|
|
329
|
+
}), f = T(() => o(r).length || o(s).length), d = T(() => o(n).reduce((c, h) => (c[h.key] = Sn(h, o(l), e.fixed), c), {})), w = T(() => o(a).reduce((c, h) => c + h.width, 0)), b = (c) => o(n).find((h) => h.key === c), g = (c) => o(d)[c], y = (c, h) => {
|
|
330
330
|
c.width = h;
|
|
331
331
|
};
|
|
332
332
|
function u(c) {
|
|
@@ -334,12 +334,12 @@ function xo(e, t, l) {
|
|
|
334
334
|
const { key: m } = c.currentTarget.dataset;
|
|
335
335
|
if (!m)
|
|
336
336
|
return;
|
|
337
|
-
const { sortState: S, sortBy:
|
|
337
|
+
const { sortState: S, sortBy: p } = e;
|
|
338
338
|
let M = Ue.ASC;
|
|
339
|
-
Et(S) ? M = Rt[S[m]] : M = Rt[
|
|
339
|
+
Et(S) ? M = Rt[S[m]] : M = Rt[p.order], (h = e.onColumnSort) == null || h.call(e, { column: b(m), key: m, order: M });
|
|
340
340
|
}
|
|
341
341
|
return {
|
|
342
|
-
columns:
|
|
342
|
+
columns: n,
|
|
343
343
|
columnsStyles: d,
|
|
344
344
|
columnsTotalWidth: w,
|
|
345
345
|
fixedColumnsOnLeft: r,
|
|
@@ -354,41 +354,41 @@ function xo(e, t, l) {
|
|
|
354
354
|
onColumnSorted: u
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const Rn = (e, {
|
|
358
358
|
mainTableRef: t,
|
|
359
359
|
leftTableRef: l,
|
|
360
|
-
rightTableRef:
|
|
360
|
+
rightTableRef: n,
|
|
361
361
|
onMaybeEndReached: a
|
|
362
362
|
}) => {
|
|
363
363
|
const r = V({ scrollLeft: 0, scrollTop: 0 });
|
|
364
364
|
function s(g) {
|
|
365
365
|
var y, u, c;
|
|
366
366
|
const { scrollTop: h } = g;
|
|
367
|
-
(y = t.value) == null || y.scrollTo(g), (u = l.value) == null || u.scrollToTop(h), (c =
|
|
367
|
+
(y = t.value) == null || y.scrollTo(g), (u = l.value) == null || u.scrollToTop(h), (c = n.value) == null || c.scrollToTop(h);
|
|
368
368
|
}
|
|
369
369
|
function i(g) {
|
|
370
370
|
r.value = g, s(g);
|
|
371
371
|
}
|
|
372
372
|
function v(g) {
|
|
373
|
-
r.value.scrollTop = g, s(
|
|
373
|
+
r.value.scrollTop = g, s(o(r));
|
|
374
374
|
}
|
|
375
375
|
function f(g) {
|
|
376
376
|
var y, u;
|
|
377
|
-
r.value.scrollLeft = g, (u = (y = t.value) == null ? void 0 : y.scrollTo) == null || u.call(y,
|
|
377
|
+
r.value.scrollLeft = g, (u = (y = t.value) == null ? void 0 : y.scrollTo) == null || u.call(y, o(r));
|
|
378
378
|
}
|
|
379
379
|
function d(g) {
|
|
380
380
|
var y;
|
|
381
381
|
i(g), (y = e.onScroll) == null || y.call(e, g);
|
|
382
382
|
}
|
|
383
383
|
function w({ scrollTop: g }) {
|
|
384
|
-
const { scrollTop: y } =
|
|
384
|
+
const { scrollTop: y } = o(r);
|
|
385
385
|
g !== y && v(g);
|
|
386
386
|
}
|
|
387
387
|
function b(g, y = "auto") {
|
|
388
388
|
var u;
|
|
389
389
|
(u = t.value) == null || u.scrollToRow(g, y);
|
|
390
390
|
}
|
|
391
|
-
return Me(() =>
|
|
391
|
+
return Me(() => o(r).scrollTop, (g, y) => {
|
|
392
392
|
g > y && a();
|
|
393
393
|
}), {
|
|
394
394
|
scrollPos: r,
|
|
@@ -399,10 +399,10 @@ const Ro = (e, {
|
|
|
399
399
|
onScroll: d,
|
|
400
400
|
onVerticalScroll: w
|
|
401
401
|
};
|
|
402
|
-
},
|
|
402
|
+
}, Tn = (e, {
|
|
403
403
|
mainTableRef: t,
|
|
404
404
|
leftTableRef: l,
|
|
405
|
-
rightTableRef:
|
|
405
|
+
rightTableRef: n,
|
|
406
406
|
tableInstance: a,
|
|
407
407
|
ns: r,
|
|
408
408
|
isScrolling: s
|
|
@@ -410,9 +410,9 @@ const Ro = (e, {
|
|
|
410
410
|
const i = at(), { emit: v } = i, f = Le(!1), d = V(e.defaultExpandedRowKeys || []), w = V(-1), b = Le(null), g = V({}), y = V({}), u = Le({}), c = Le({}), h = Le({}), m = T(() => Y(e.estimatedRowHeight));
|
|
411
411
|
function S(R) {
|
|
412
412
|
var A;
|
|
413
|
-
(A = e.onRowsRendered) == null || A.call(e, R), R.rowCacheEnd >
|
|
413
|
+
(A = e.onRowsRendered) == null || A.call(e, R), R.rowCacheEnd > o(w) && (w.value = R.rowCacheEnd);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function p({ hovered: R, rowKey: A }) {
|
|
416
416
|
if (s.value)
|
|
417
417
|
return;
|
|
418
418
|
a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((K) => {
|
|
@@ -426,7 +426,7 @@ const Ro = (e, {
|
|
|
426
426
|
rowKey: P
|
|
427
427
|
}) {
|
|
428
428
|
var K, B;
|
|
429
|
-
const k = [...
|
|
429
|
+
const k = [...o(d)], U = k.indexOf(P);
|
|
430
430
|
R ? U === -1 && k.push(P) : U > -1 && k.splice(U, 1), d.value = k, v("update:expandedRowKeys", k), (K = e.onRowExpand) == null || K.call(e, {
|
|
431
431
|
expanded: R,
|
|
432
432
|
rowData: A,
|
|
@@ -434,24 +434,24 @@ const Ro = (e, {
|
|
|
434
434
|
rowKey: P
|
|
435
435
|
}), (B = e.onExpandedRowsChange) == null || B.call(e, k);
|
|
436
436
|
}
|
|
437
|
-
const x =
|
|
437
|
+
const x = tn(() => {
|
|
438
438
|
var R, A, G, P;
|
|
439
|
-
f.value = !0, g.value = { ...
|
|
439
|
+
f.value = !0, g.value = { ...o(g), ...o(y) }, O(o(b), !1), y.value = {}, b.value = null, (R = t.value) == null || R.forceUpdate(), (A = l.value) == null || A.forceUpdate(), (G = n.value) == null || G.forceUpdate(), (P = i.proxy) == null || P.$forceUpdate(), f.value = !1;
|
|
440
440
|
}, 0);
|
|
441
441
|
function O(R, A = !1) {
|
|
442
|
-
|
|
443
|
-
const P =
|
|
442
|
+
o(m) && [t, l, n].forEach((G) => {
|
|
443
|
+
const P = o(G);
|
|
444
444
|
P && P.resetAfterRowIndex(R, A);
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
function D(R, A, G) {
|
|
448
|
-
const P =
|
|
448
|
+
const P = o(b);
|
|
449
449
|
(P === null || P > G) && (b.value = G), y.value[R] = A;
|
|
450
450
|
}
|
|
451
451
|
function F({ rowKey: R, height: A, rowIndex: G }, P) {
|
|
452
452
|
P ? P === Sl.RIGHT ? h.value[R] = A : u.value[R] = A : c.value[R] = A;
|
|
453
453
|
const K = Math.max(...[u, h, c].map((B) => B.value[R] || 0));
|
|
454
|
-
|
|
454
|
+
o(g)[R] !== K && (D(R, K, G), x());
|
|
455
455
|
}
|
|
456
456
|
return {
|
|
457
457
|
expandedRowKeys: d,
|
|
@@ -461,13 +461,13 @@ const Ro = (e, {
|
|
|
461
461
|
rowHeights: g,
|
|
462
462
|
resetAfterIndex: O,
|
|
463
463
|
onRowExpanded: M,
|
|
464
|
-
onRowHovered:
|
|
464
|
+
onRowHovered: p,
|
|
465
465
|
onRowsRendered: S,
|
|
466
466
|
onRowHeightChange: F
|
|
467
467
|
};
|
|
468
|
-
},
|
|
468
|
+
}, En = (e, { expandedRowKeys: t, lastRenderedRowIndex: l, resetAfterIndex: n }) => {
|
|
469
469
|
const a = V({}), r = T(() => {
|
|
470
|
-
const i = {}, { data: v, rowKey: f } = e, d =
|
|
470
|
+
const i = {}, { data: v, rowKey: f } = e, d = o(t);
|
|
471
471
|
if (!d || !d.length)
|
|
472
472
|
return v;
|
|
473
473
|
const w = [], b = /* @__PURE__ */ new Set();
|
|
@@ -480,50 +480,50 @@ const Ro = (e, {
|
|
|
480
480
|
return a.value = i, w;
|
|
481
481
|
}), s = T(() => {
|
|
482
482
|
const { data: i, expandColumnKey: v } = e;
|
|
483
|
-
return v ?
|
|
483
|
+
return v ? o(r) : i;
|
|
484
484
|
});
|
|
485
485
|
return Me(s, (i, v) => {
|
|
486
|
-
i !== v && (l.value = -1,
|
|
486
|
+
i !== v && (l.value = -1, n(0, !0));
|
|
487
487
|
}), {
|
|
488
488
|
data: s,
|
|
489
489
|
depthMap: a
|
|
490
490
|
};
|
|
491
|
-
},
|
|
491
|
+
}, Cn = (e, t) => e + t, tt = (e) => $e(e) ? e.reduce(Cn, 0) : e, pe = (e, t, l = {}) => Be(e) ? e(t) : e ?? l, ye = (e) => (["width", "maxWidth", "minWidth", "height"].forEach((t) => {
|
|
492
492
|
e[t] = et(e[t]);
|
|
493
|
-
}), e), xl = (e) => Ie(e) ? (t) => he(e, t) : e,
|
|
493
|
+
}), e), xl = (e) => Ie(e) ? (t) => he(e, t) : e, _n = (e, {
|
|
494
494
|
columnsTotalWidth: t,
|
|
495
495
|
rowsHeight: l,
|
|
496
|
-
fixedColumnsOnLeft:
|
|
496
|
+
fixedColumnsOnLeft: n,
|
|
497
497
|
fixedColumnsOnRight: a
|
|
498
498
|
}) => {
|
|
499
499
|
const r = T(() => {
|
|
500
|
-
const { fixed: m, width: S, vScrollbarSize:
|
|
501
|
-
return m ? Math.max(Math.round(
|
|
502
|
-
}), s = T(() =>
|
|
503
|
-
const { height: m = 0, maxHeight: S = 0, footerHeight:
|
|
500
|
+
const { fixed: m, width: S, vScrollbarSize: p } = e, M = S - p;
|
|
501
|
+
return m ? Math.max(Math.round(o(t)), M) : M;
|
|
502
|
+
}), s = T(() => o(r) + e.vScrollbarSize), i = T(() => {
|
|
503
|
+
const { height: m = 0, maxHeight: S = 0, footerHeight: p, hScrollbarSize: M } = e;
|
|
504
504
|
if (S > 0) {
|
|
505
|
-
const x =
|
|
506
|
-
return Math.min(F, S -
|
|
505
|
+
const x = o(g), O = o(l), F = o(b) + x + O + M;
|
|
506
|
+
return Math.min(F, S - p);
|
|
507
507
|
}
|
|
508
|
-
return m -
|
|
508
|
+
return m - p;
|
|
509
509
|
}), v = T(() => {
|
|
510
|
-
const { maxHeight: m } = e, S =
|
|
510
|
+
const { maxHeight: m } = e, S = o(i);
|
|
511
511
|
if (Y(m) && m > 0)
|
|
512
512
|
return S;
|
|
513
|
-
const
|
|
514
|
-
return Math.min(S,
|
|
515
|
-
}), f = (m) => m.width, d = T(() => tt(n
|
|
513
|
+
const p = o(l) + o(b) + o(g);
|
|
514
|
+
return Math.min(S, p);
|
|
515
|
+
}), f = (m) => m.width, d = T(() => tt(o(n).map(f))), w = T(() => tt(o(a).map(f))), b = T(() => tt(e.headerHeight)), g = T(() => {
|
|
516
516
|
var m;
|
|
517
517
|
return (((m = e.fixedData) == null ? void 0 : m.length) || 0) * e.rowHeight;
|
|
518
|
-
}), y = T(() =>
|
|
519
|
-
const { style: m = {}, height: S, width:
|
|
518
|
+
}), y = T(() => o(i) - o(b) - o(g)), u = T(() => {
|
|
519
|
+
const { style: m = {}, height: S, width: p } = e;
|
|
520
520
|
return ye({
|
|
521
521
|
...m,
|
|
522
522
|
height: S,
|
|
523
|
-
width:
|
|
523
|
+
width: p
|
|
524
524
|
});
|
|
525
525
|
}), c = T(() => ye({ height: e.footerHeight })), h = T(() => ({
|
|
526
|
-
top: et(
|
|
526
|
+
top: et(o(b)),
|
|
527
527
|
bottom: et(e.footerHeight),
|
|
528
528
|
width: et(e.width)
|
|
529
529
|
}));
|
|
@@ -541,8 +541,8 @@ const Ro = (e, {
|
|
|
541
541
|
headerHeight: b
|
|
542
542
|
};
|
|
543
543
|
};
|
|
544
|
-
function
|
|
545
|
-
const t = V(), l = V(),
|
|
544
|
+
function pn(e) {
|
|
545
|
+
const t = V(), l = V(), n = V(), {
|
|
546
546
|
columns: a,
|
|
547
547
|
columnsStyles: r,
|
|
548
548
|
columnsTotalWidth: s,
|
|
@@ -551,7 +551,7 @@ function Ho(e) {
|
|
|
551
551
|
hasFixedColumns: f,
|
|
552
552
|
mainColumns: d,
|
|
553
553
|
onColumnSorted: w
|
|
554
|
-
} =
|
|
554
|
+
} = xn(e, Dt(e, "columns"), Dt(e, "fixed")), {
|
|
555
555
|
scrollTo: b,
|
|
556
556
|
scrollToLeft: g,
|
|
557
557
|
scrollToTop: y,
|
|
@@ -559,12 +559,12 @@ function Ho(e) {
|
|
|
559
559
|
onScroll: c,
|
|
560
560
|
onVerticalScroll: h,
|
|
561
561
|
scrollPos: m
|
|
562
|
-
} =
|
|
562
|
+
} = Rn(e, {
|
|
563
563
|
mainTableRef: t,
|
|
564
564
|
leftTableRef: l,
|
|
565
|
-
rightTableRef:
|
|
565
|
+
rightTableRef: n,
|
|
566
566
|
onMaybeEndReached: Ve
|
|
567
|
-
}), S = _e("table-v2"),
|
|
567
|
+
}), S = _e("table-v2"), p = at(), M = Le(!1), {
|
|
568
568
|
expandedRowKeys: x,
|
|
569
569
|
lastRenderedRowIndex: O,
|
|
570
570
|
isDynamic: D,
|
|
@@ -575,51 +575,51 @@ function Ho(e) {
|
|
|
575
575
|
onRowHeightChange: P,
|
|
576
576
|
onRowHovered: K,
|
|
577
577
|
onRowsRendered: B
|
|
578
|
-
} =
|
|
578
|
+
} = Tn(e, {
|
|
579
579
|
mainTableRef: t,
|
|
580
580
|
leftTableRef: l,
|
|
581
|
-
rightTableRef:
|
|
582
|
-
tableInstance:
|
|
581
|
+
rightTableRef: n,
|
|
582
|
+
tableInstance: p,
|
|
583
583
|
ns: S,
|
|
584
584
|
isScrolling: M
|
|
585
|
-
}), { data: k, depthMap: U } =
|
|
585
|
+
}), { data: k, depthMap: U } = En(e, {
|
|
586
586
|
expandedRowKeys: x,
|
|
587
587
|
lastRenderedRowIndex: O,
|
|
588
588
|
resetAfterIndex: A
|
|
589
589
|
}), ie = T(() => {
|
|
590
|
-
const { estimatedRowHeight: X, rowHeight: ee } = e, de =
|
|
591
|
-
return Y(X) ? Object.values(
|
|
590
|
+
const { estimatedRowHeight: X, rowHeight: ee } = e, de = o(k);
|
|
591
|
+
return Y(X) ? Object.values(o(R)).reduce((E, C) => E + C, 0) : de.length * ee;
|
|
592
592
|
}), {
|
|
593
593
|
bodyWidth: be,
|
|
594
594
|
fixedTableHeight: ce,
|
|
595
|
-
mainTableHeight:
|
|
595
|
+
mainTableHeight: ne,
|
|
596
596
|
leftTableWidth: Se,
|
|
597
597
|
rightTableWidth: me,
|
|
598
|
-
headerWidth:
|
|
598
|
+
headerWidth: oe,
|
|
599
599
|
windowHeight: te,
|
|
600
600
|
footerHeight: re,
|
|
601
601
|
emptyStyle: Ae,
|
|
602
602
|
rootStyle: ve,
|
|
603
603
|
headerHeight: ge
|
|
604
|
-
} =
|
|
604
|
+
} = _n(e, {
|
|
605
605
|
columnsTotalWidth: s,
|
|
606
606
|
fixedColumnsOnLeft: i,
|
|
607
607
|
fixedColumnsOnRight: v,
|
|
608
608
|
rowsHeight: ie
|
|
609
609
|
}), We = V(), Fe = T(() => {
|
|
610
|
-
const X =
|
|
610
|
+
const X = o(k).length === 0;
|
|
611
611
|
return $e(e.fixedData) ? e.fixedData.length === 0 && X : X;
|
|
612
612
|
});
|
|
613
613
|
function Ge(X) {
|
|
614
614
|
const { estimatedRowHeight: ee, rowHeight: de, rowKey: E } = e;
|
|
615
|
-
return ee ?
|
|
615
|
+
return ee ? o(R)[o(k)[X][E]] || ee : de;
|
|
616
616
|
}
|
|
617
617
|
function Ve() {
|
|
618
618
|
const { onEndReached: X } = e;
|
|
619
619
|
if (!X)
|
|
620
620
|
return;
|
|
621
|
-
const { scrollTop: ee } =
|
|
622
|
-
|
|
621
|
+
const { scrollTop: ee } = o(m), de = o(ie), E = o(te), C = de - (ee + E) + e.hScrollbarSize;
|
|
622
|
+
o(O) >= 0 && de === ee + o(ne) - o(ge) && X(C);
|
|
623
623
|
}
|
|
624
624
|
return Me(() => e.expandedRowKeys, (X) => x.value = X, {
|
|
625
625
|
deep: !0
|
|
@@ -628,7 +628,7 @@ function Ho(e) {
|
|
|
628
628
|
containerRef: We,
|
|
629
629
|
mainTableRef: t,
|
|
630
630
|
leftTableRef: l,
|
|
631
|
-
rightTableRef:
|
|
631
|
+
rightTableRef: n,
|
|
632
632
|
isDynamic: D,
|
|
633
633
|
isResetting: F,
|
|
634
634
|
isScrolling: M,
|
|
@@ -644,9 +644,9 @@ function Ho(e) {
|
|
|
644
644
|
bodyWidth: be,
|
|
645
645
|
emptyStyle: Ae,
|
|
646
646
|
rootStyle: ve,
|
|
647
|
-
headerWidth:
|
|
647
|
+
headerWidth: oe,
|
|
648
648
|
footerHeight: re,
|
|
649
|
-
mainTableHeight:
|
|
649
|
+
mainTableHeight: ne,
|
|
650
650
|
fixedTableHeight: ce,
|
|
651
651
|
leftTableWidth: Se,
|
|
652
652
|
rightTableWidth: me,
|
|
@@ -668,12 +668,12 @@ function Ho(e) {
|
|
|
668
668
|
const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
669
669
|
type: I(Array),
|
|
670
670
|
required: !0
|
|
671
|
-
},
|
|
671
|
+
}, pt = {
|
|
672
672
|
type: I(Array)
|
|
673
673
|
}, Tl = {
|
|
674
|
-
...
|
|
674
|
+
...pt,
|
|
675
675
|
required: !0
|
|
676
|
-
},
|
|
676
|
+
}, Hn = String, qt = {
|
|
677
677
|
type: I(Array),
|
|
678
678
|
default: () => al([])
|
|
679
679
|
}, Re = {
|
|
@@ -692,7 +692,7 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
692
692
|
required: !0
|
|
693
693
|
},
|
|
694
694
|
depth: Number,
|
|
695
|
-
expandColumnKey:
|
|
695
|
+
expandColumnKey: Hn,
|
|
696
696
|
estimatedRowHeight: {
|
|
697
697
|
...Ce.estimatedRowHeight,
|
|
698
698
|
default: void 0
|
|
@@ -725,7 +725,7 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
725
725
|
}), ut = {
|
|
726
726
|
type: Number,
|
|
727
727
|
required: !0
|
|
728
|
-
},
|
|
728
|
+
}, Ht = se({
|
|
729
729
|
class: String,
|
|
730
730
|
columns: Xe,
|
|
731
731
|
fixedHeaderData: {
|
|
@@ -749,15 +749,15 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
749
749
|
}), lt = se({
|
|
750
750
|
columns: Xe,
|
|
751
751
|
data: Tl,
|
|
752
|
-
fixedData:
|
|
752
|
+
fixedData: pt,
|
|
753
753
|
estimatedRowHeight: Ee.estimatedRowHeight,
|
|
754
754
|
width: Re,
|
|
755
755
|
height: Re,
|
|
756
756
|
headerWidth: Re,
|
|
757
|
-
headerHeight:
|
|
757
|
+
headerHeight: Ht.headerHeight,
|
|
758
758
|
bodyWidth: Re,
|
|
759
759
|
rowHeight: Re,
|
|
760
|
-
cache:
|
|
760
|
+
cache: wn.cache,
|
|
761
761
|
useIsScrolling: Boolean,
|
|
762
762
|
scrollbarAlwaysOn: Ce.scrollbarAlwaysOn,
|
|
763
763
|
scrollbarStartGap: Ce.scrollbarStartGap,
|
|
@@ -776,7 +776,7 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
776
776
|
onScroll: {
|
|
777
777
|
type: I(Function)
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), Mn = se({
|
|
780
780
|
cache: lt.cache,
|
|
781
781
|
estimatedRowHeight: Ee.estimatedRowHeight,
|
|
782
782
|
rowKey: El,
|
|
@@ -798,7 +798,7 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
798
798
|
Function
|
|
799
799
|
])
|
|
800
800
|
},
|
|
801
|
-
headerHeight:
|
|
801
|
+
headerHeight: Ht.headerHeight,
|
|
802
802
|
footerHeight: {
|
|
803
803
|
type: Number,
|
|
804
804
|
default: 0
|
|
@@ -824,7 +824,7 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
824
824
|
dataGetter: {
|
|
825
825
|
type: I(Function)
|
|
826
826
|
},
|
|
827
|
-
fixedData:
|
|
827
|
+
fixedData: pt,
|
|
828
828
|
expandColumnKey: Ee.expandColumnKey,
|
|
829
829
|
expandedRowKeys: qt,
|
|
830
830
|
defaultExpandedRowKeys: qt,
|
|
@@ -869,28 +869,28 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
869
869
|
onScroll: lt.onScroll,
|
|
870
870
|
onRowsRendered: lt.onRowsRendered,
|
|
871
871
|
rowEventHandlers: Ee.rowEventHandlers
|
|
872
|
-
}),
|
|
873
|
-
name:
|
|
874
|
-
props:
|
|
872
|
+
}), In = "ElTableV2Header", An = we({
|
|
873
|
+
name: In,
|
|
874
|
+
props: Ht,
|
|
875
875
|
setup(e, {
|
|
876
876
|
slots: t,
|
|
877
877
|
expose: l
|
|
878
878
|
}) {
|
|
879
|
-
const
|
|
879
|
+
const n = _e("table-v2"), a = Ct("tableV2GridScrollLeft"), r = V(), s = T(() => ye({
|
|
880
880
|
width: e.width,
|
|
881
881
|
height: e.height
|
|
882
882
|
})), i = T(() => ye({
|
|
883
883
|
width: e.rowWidth,
|
|
884
884
|
height: e.height
|
|
885
|
-
})), v = T(() =>
|
|
886
|
-
const g =
|
|
885
|
+
})), v = T(() => ln(o(e.headerHeight))), f = (b) => {
|
|
886
|
+
const g = o(r);
|
|
887
887
|
Pe(() => {
|
|
888
888
|
g != null && g.scroll && g.scroll({
|
|
889
889
|
left: b
|
|
890
890
|
});
|
|
891
891
|
});
|
|
892
892
|
}, d = () => {
|
|
893
|
-
const b =
|
|
893
|
+
const b = n.e("fixed-header-row"), {
|
|
894
894
|
columns: g,
|
|
895
895
|
fixedHeaderData: y,
|
|
896
896
|
rowHeight: u
|
|
@@ -910,10 +910,10 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
910
910
|
});
|
|
911
911
|
});
|
|
912
912
|
}, w = () => {
|
|
913
|
-
const b =
|
|
913
|
+
const b = n.e("dynamic-header-row"), {
|
|
914
914
|
columns: g
|
|
915
915
|
} = e;
|
|
916
|
-
return
|
|
916
|
+
return o(v).map((y, u) => {
|
|
917
917
|
var c;
|
|
918
918
|
const h = ye({
|
|
919
919
|
width: "100%",
|
|
@@ -936,20 +936,20 @@ const _t = Symbol("tableV2"), Rl = String, Xe = {
|
|
|
936
936
|
return _("div", {
|
|
937
937
|
ref: r,
|
|
938
938
|
class: e.class,
|
|
939
|
-
style:
|
|
939
|
+
style: o(s),
|
|
940
940
|
role: "rowgroup"
|
|
941
941
|
}, [_("div", {
|
|
942
|
-
style:
|
|
943
|
-
class:
|
|
942
|
+
style: o(i),
|
|
943
|
+
class: n.e("header")
|
|
944
944
|
}, [w(), d()])]);
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
});
|
|
948
|
-
var
|
|
949
|
-
const
|
|
948
|
+
var On = An;
|
|
949
|
+
const Nn = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: n }, a) => {
|
|
950
950
|
let r = null, s = 0, i = 0;
|
|
951
951
|
const v = (d, w) => {
|
|
952
|
-
const b = d <= 0 && t.value || d >= 0 && e.value, g = w <= 0 &&
|
|
952
|
+
const b = d <= 0 && t.value || d >= 0 && e.value, g = w <= 0 && n.value || w >= 0 && l.value;
|
|
953
953
|
return b && g;
|
|
954
954
|
};
|
|
955
955
|
return {
|
|
@@ -966,7 +966,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
966
966
|
name: e,
|
|
967
967
|
clearCache: t,
|
|
968
968
|
getColumnPosition: l,
|
|
969
|
-
getColumnStartIndexForOffset:
|
|
969
|
+
getColumnStartIndexForOffset: n,
|
|
970
970
|
getColumnStopIndexForStartIndex: a,
|
|
971
971
|
getEstimatedTotalHeight: r,
|
|
972
972
|
getEstimatedTotalWidth: s,
|
|
@@ -985,8 +985,8 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
985
985
|
setup(u, { emit: c, expose: h, slots: m }) {
|
|
986
986
|
const S = _e("vl");
|
|
987
987
|
y(u);
|
|
988
|
-
const
|
|
989
|
-
g == null || g(
|
|
988
|
+
const p = at(), M = V(b(u, p));
|
|
989
|
+
g == null || g(p, M);
|
|
990
990
|
const x = V(), O = V(), D = V(), F = V(null), R = V({
|
|
991
991
|
isScrolling: !1,
|
|
992
992
|
scrollLeft: Y(u.initScrollLeft) ? u.initScrollLeft : 0,
|
|
@@ -994,11 +994,11 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
994
994
|
updateRequested: !1,
|
|
995
995
|
xAxisScrollDir: je,
|
|
996
996
|
yAxisScrollDir: je
|
|
997
|
-
}), A =
|
|
998
|
-
const { totalColumn: E, totalRow: C, columnCache:
|
|
997
|
+
}), A = mn(), G = T(() => Number.parseInt(`${u.height}`, 10)), P = T(() => Number.parseInt(`${u.width}`, 10)), K = T(() => {
|
|
998
|
+
const { totalColumn: E, totalRow: C, columnCache: H } = u, { isScrolling: N, xAxisScrollDir: z, scrollLeft: L } = o(R);
|
|
999
999
|
if (E === 0 || C === 0)
|
|
1000
1000
|
return [0, 0, 0, 0];
|
|
1001
|
-
const $ =
|
|
1001
|
+
const $ = n(u, L, o(M)), W = a(u, $, L, o(M)), j = !N || z === ht ? Math.max(1, H) : 1, q = !N || z === je ? Math.max(1, H) : 1;
|
|
1002
1002
|
return [
|
|
1003
1003
|
Math.max(0, $ - j),
|
|
1004
1004
|
Math.max(0, Math.min(E - 1, W + q)),
|
|
@@ -1006,17 +1006,17 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1006
1006
|
W
|
|
1007
1007
|
];
|
|
1008
1008
|
}), B = T(() => {
|
|
1009
|
-
const { totalColumn: E, totalRow: C, rowCache:
|
|
1009
|
+
const { totalColumn: E, totalRow: C, rowCache: H } = u, { isScrolling: N, yAxisScrollDir: z, scrollTop: L } = o(R);
|
|
1010
1010
|
if (E === 0 || C === 0)
|
|
1011
1011
|
return [0, 0, 0, 0];
|
|
1012
|
-
const $ = d(u, L,
|
|
1012
|
+
const $ = d(u, L, o(M)), W = w(u, $, L, o(M)), j = !N || z === ht ? Math.max(1, H) : 1, q = !N || z === je ? Math.max(1, H) : 1;
|
|
1013
1013
|
return [
|
|
1014
1014
|
Math.max(0, $ - j),
|
|
1015
1015
|
Math.max(0, Math.min(C - 1, W + q)),
|
|
1016
1016
|
$,
|
|
1017
1017
|
W
|
|
1018
1018
|
];
|
|
1019
|
-
}), k = T(() => r(u,
|
|
1019
|
+
}), k = T(() => r(u, o(M))), U = T(() => s(u, o(M))), ie = T(() => {
|
|
1020
1020
|
var E;
|
|
1021
1021
|
return [
|
|
1022
1022
|
{
|
|
@@ -1033,10 +1033,10 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1033
1033
|
(E = u.style) != null ? E : {}
|
|
1034
1034
|
];
|
|
1035
1035
|
}), be = T(() => {
|
|
1036
|
-
const E = `${
|
|
1036
|
+
const E = `${o(U)}px`;
|
|
1037
1037
|
return {
|
|
1038
|
-
height: `${
|
|
1039
|
-
pointerEvents:
|
|
1038
|
+
height: `${o(k)}px`,
|
|
1039
|
+
pointerEvents: o(R).isScrolling ? "none" : void 0,
|
|
1040
1040
|
width: E
|
|
1041
1041
|
};
|
|
1042
1042
|
}), ce = () => {
|
|
@@ -1047,7 +1047,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1047
1047
|
j,
|
|
1048
1048
|
q,
|
|
1049
1049
|
ae
|
|
1050
|
-
] =
|
|
1050
|
+
] = o(K), [J, Q, ke, Ot] = o(B);
|
|
1051
1051
|
c(kt, {
|
|
1052
1052
|
columnCacheStart: W,
|
|
1053
1053
|
columnCacheEnd: j,
|
|
@@ -1060,28 +1060,28 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
1062
|
const {
|
|
1063
|
-
scrollLeft:
|
|
1063
|
+
scrollLeft: H,
|
|
1064
1064
|
scrollTop: N,
|
|
1065
1065
|
updateRequested: z,
|
|
1066
1066
|
xAxisScrollDir: L,
|
|
1067
1067
|
yAxisScrollDir: $
|
|
1068
|
-
} =
|
|
1068
|
+
} = o(R);
|
|
1069
1069
|
c(Kt, {
|
|
1070
1070
|
xAxisScrollDir: L,
|
|
1071
|
-
scrollLeft:
|
|
1071
|
+
scrollLeft: H,
|
|
1072
1072
|
yAxisScrollDir: $,
|
|
1073
1073
|
scrollTop: N,
|
|
1074
1074
|
updateRequested: z
|
|
1075
1075
|
});
|
|
1076
|
-
},
|
|
1076
|
+
}, ne = (E) => {
|
|
1077
1077
|
const {
|
|
1078
1078
|
clientHeight: C,
|
|
1079
|
-
clientWidth:
|
|
1079
|
+
clientWidth: H,
|
|
1080
1080
|
scrollHeight: N,
|
|
1081
1081
|
scrollLeft: z,
|
|
1082
1082
|
scrollTop: L,
|
|
1083
1083
|
scrollWidth: $
|
|
1084
|
-
} = E.currentTarget, W =
|
|
1084
|
+
} = E.currentTarget, W = o(R);
|
|
1085
1085
|
if (W.scrollTop === L && W.scrollLeft === z)
|
|
1086
1086
|
return;
|
|
1087
1087
|
let j = z;
|
|
@@ -1091,7 +1091,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1091
1091
|
j = -z;
|
|
1092
1092
|
break;
|
|
1093
1093
|
case ml:
|
|
1094
|
-
j = $ -
|
|
1094
|
+
j = $ - H - z;
|
|
1095
1095
|
break;
|
|
1096
1096
|
}
|
|
1097
1097
|
R.value = {
|
|
@@ -1104,30 +1104,30 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1104
1104
|
yAxisScrollDir: Qe(W.scrollTop, L)
|
|
1105
1105
|
}, Pe(() => ve()), ge(), ce();
|
|
1106
1106
|
}, Se = (E, C) => {
|
|
1107
|
-
const
|
|
1107
|
+
const H = o(G), N = (k.value - H) / C * E;
|
|
1108
1108
|
te({
|
|
1109
|
-
scrollTop: Math.min(k.value -
|
|
1109
|
+
scrollTop: Math.min(k.value - H, N)
|
|
1110
1110
|
});
|
|
1111
1111
|
}, me = (E, C) => {
|
|
1112
|
-
const
|
|
1112
|
+
const H = o(P), N = (U.value - H) / C * E;
|
|
1113
1113
|
te({
|
|
1114
|
-
scrollLeft: Math.min(U.value -
|
|
1114
|
+
scrollLeft: Math.min(U.value - H, N)
|
|
1115
1115
|
});
|
|
1116
|
-
}, { onWheel:
|
|
1116
|
+
}, { onWheel: oe } = Nn({
|
|
1117
1117
|
atXStartEdge: T(() => R.value.scrollLeft <= 0),
|
|
1118
|
-
atXEndEdge: T(() => R.value.scrollLeft >= U.value -
|
|
1118
|
+
atXEndEdge: T(() => R.value.scrollLeft >= U.value - o(P)),
|
|
1119
1119
|
atYStartEdge: T(() => R.value.scrollTop <= 0),
|
|
1120
|
-
atYEndEdge: T(() => R.value.scrollTop >= k.value -
|
|
1120
|
+
atYEndEdge: T(() => R.value.scrollTop >= k.value - o(G))
|
|
1121
1121
|
}, (E, C) => {
|
|
1122
|
-
var
|
|
1123
|
-
(N = (
|
|
1124
|
-
const $ =
|
|
1122
|
+
var H, N, z, L;
|
|
1123
|
+
(N = (H = O.value) == null ? void 0 : H.onMouseUp) == null || N.call(H), (L = (z = D.value) == null ? void 0 : z.onMouseUp) == null || L.call(z);
|
|
1124
|
+
const $ = o(P), W = o(G);
|
|
1125
1125
|
te({
|
|
1126
1126
|
scrollLeft: Math.min(R.value.scrollLeft + E, U.value - $),
|
|
1127
1127
|
scrollTop: Math.min(R.value.scrollTop + C, k.value - W)
|
|
1128
1128
|
});
|
|
1129
1129
|
});
|
|
1130
|
-
Kl(x, "wheel",
|
|
1130
|
+
Kl(x, "wheel", oe, {
|
|
1131
1131
|
passive: !1
|
|
1132
1132
|
});
|
|
1133
1133
|
const te = ({
|
|
@@ -1135,29 +1135,29 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1135
1135
|
scrollTop: C = R.value.scrollTop
|
|
1136
1136
|
}) => {
|
|
1137
1137
|
E = Math.max(E, 0), C = Math.max(C, 0);
|
|
1138
|
-
const
|
|
1139
|
-
C ===
|
|
1140
|
-
...
|
|
1141
|
-
xAxisScrollDir: Qe(
|
|
1142
|
-
yAxisScrollDir: Qe(
|
|
1138
|
+
const H = o(R);
|
|
1139
|
+
C === H.scrollTop && E === H.scrollLeft || (R.value = {
|
|
1140
|
+
...H,
|
|
1141
|
+
xAxisScrollDir: Qe(H.scrollLeft, E),
|
|
1142
|
+
yAxisScrollDir: Qe(H.scrollTop, C),
|
|
1143
1143
|
scrollLeft: E,
|
|
1144
1144
|
scrollTop: C,
|
|
1145
1145
|
updateRequested: !0
|
|
1146
1146
|
}, Pe(() => ve()), ge(), ce());
|
|
1147
|
-
}, re = (E = 0, C = 0,
|
|
1148
|
-
const N =
|
|
1147
|
+
}, re = (E = 0, C = 0, H = Te) => {
|
|
1148
|
+
const N = o(R);
|
|
1149
1149
|
C = Math.max(0, Math.min(C, u.totalColumn - 1)), E = Math.max(0, Math.min(E, u.totalRow - 1));
|
|
1150
|
-
const z =
|
|
1150
|
+
const z = rn(S.namespace.value), L = o(M), $ = r(u, L), W = s(u, L);
|
|
1151
1151
|
te({
|
|
1152
|
-
scrollLeft: i(u, C,
|
|
1153
|
-
scrollTop: v(u, E,
|
|
1152
|
+
scrollLeft: i(u, C, H, N.scrollLeft, L, W > u.width ? z : 0),
|
|
1153
|
+
scrollTop: v(u, E, H, N.scrollTop, L, $ > u.height ? z : 0)
|
|
1154
1154
|
});
|
|
1155
1155
|
}, Ae = (E, C) => {
|
|
1156
|
-
const { columnWidth:
|
|
1156
|
+
const { columnWidth: H, direction: N, rowHeight: z } = u, L = A.value(t && H, t && z, t && N), $ = `${E},${C}`;
|
|
1157
1157
|
if (Gl(L, $))
|
|
1158
1158
|
return L[$];
|
|
1159
1159
|
{
|
|
1160
|
-
const [, W] = l(u, C,
|
|
1160
|
+
const [, W] = l(u, C, o(M)), j = o(M), q = jt(N), [ae, J] = f(u, E, j), [Q] = l(u, C, j);
|
|
1161
1161
|
return L[$] = {
|
|
1162
1162
|
position: "absolute",
|
|
1163
1163
|
left: q ? void 0 : `${W}px`,
|
|
@@ -1175,11 +1175,11 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1175
1175
|
st(() => {
|
|
1176
1176
|
if (!Fl)
|
|
1177
1177
|
return;
|
|
1178
|
-
const { initScrollLeft: E, initScrollTop: C } = u,
|
|
1179
|
-
|
|
1178
|
+
const { initScrollLeft: E, initScrollTop: C } = u, H = o(x);
|
|
1179
|
+
H && (Y(E) && (H.scrollLeft = E), Y(C) && (H.scrollTop = C)), ce();
|
|
1180
1180
|
});
|
|
1181
1181
|
const ge = () => {
|
|
1182
|
-
const { direction: E } = u, { scrollLeft: C, scrollTop:
|
|
1182
|
+
const { direction: E } = u, { scrollLeft: C, scrollTop: H, updateRequested: N } = o(R), z = o(x);
|
|
1183
1183
|
if (N && z) {
|
|
1184
1184
|
if (E === hl)
|
|
1185
1185
|
switch (Bt()) {
|
|
@@ -1199,9 +1199,9 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1199
1199
|
}
|
|
1200
1200
|
else
|
|
1201
1201
|
z.scrollLeft = Math.max(0, C);
|
|
1202
|
-
z.scrollTop = Math.max(0,
|
|
1202
|
+
z.scrollTop = Math.max(0, H);
|
|
1203
1203
|
}
|
|
1204
|
-
}, { resetAfterColumnIndex: We, resetAfterRowIndex: Fe, resetAfter: Ge } =
|
|
1204
|
+
}, { resetAfterColumnIndex: We, resetAfterRowIndex: Fe, resetAfter: Ge } = p.proxy;
|
|
1205
1205
|
h({
|
|
1206
1206
|
windowRef: x,
|
|
1207
1207
|
innerRef: F,
|
|
@@ -1217,14 +1217,14 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1217
1217
|
const {
|
|
1218
1218
|
scrollbarAlwaysOn: E,
|
|
1219
1219
|
scrollbarStartGap: C,
|
|
1220
|
-
scrollbarEndGap:
|
|
1220
|
+
scrollbarEndGap: H,
|
|
1221
1221
|
totalColumn: N,
|
|
1222
1222
|
totalRow: z
|
|
1223
|
-
} = u, L =
|
|
1223
|
+
} = u, L = o(P), $ = o(G), W = o(U), j = o(k), { scrollLeft: q, scrollTop: ae } = o(R), J = he(Ut, {
|
|
1224
1224
|
ref: O,
|
|
1225
1225
|
alwaysOn: E,
|
|
1226
1226
|
startGap: C,
|
|
1227
|
-
endGap:
|
|
1227
|
+
endGap: H,
|
|
1228
1228
|
class: S.e("horizontal"),
|
|
1229
1229
|
clientSize: L,
|
|
1230
1230
|
layout: "horizontal",
|
|
@@ -1237,7 +1237,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1237
1237
|
ref: D,
|
|
1238
1238
|
alwaysOn: E,
|
|
1239
1239
|
startGap: C,
|
|
1240
|
-
endGap:
|
|
1240
|
+
endGap: H,
|
|
1241
1241
|
class: S.e("vertical"),
|
|
1242
1242
|
clientSize: $,
|
|
1243
1243
|
layout: "vertical",
|
|
@@ -1253,15 +1253,15 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1253
1253
|
};
|
|
1254
1254
|
}, X = () => {
|
|
1255
1255
|
var E;
|
|
1256
|
-
const [C,
|
|
1256
|
+
const [C, H] = o(K), [N, z] = o(B), { data: L, totalColumn: $, totalRow: W, useIsScrolling: j, itemKey: q } = u, ae = [];
|
|
1257
1257
|
if (W > 0 && $ > 0)
|
|
1258
1258
|
for (let J = N; J <= z; J++)
|
|
1259
|
-
for (let Q = C; Q <=
|
|
1259
|
+
for (let Q = C; Q <= H; Q++) {
|
|
1260
1260
|
const ke = q({ columnIndex: Q, data: L, rowIndex: J });
|
|
1261
1261
|
ae.push(he(Xl, { key: ke }, (E = m.default) == null ? void 0 : E.call(m, {
|
|
1262
1262
|
columnIndex: Q,
|
|
1263
1263
|
data: L,
|
|
1264
|
-
isScrolling: j ?
|
|
1264
|
+
isScrolling: j ? o(R).isScrolling : void 0,
|
|
1265
1265
|
style: Ae(J, Q),
|
|
1266
1266
|
rowIndex: J
|
|
1267
1267
|
})));
|
|
@@ -1271,7 +1271,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1271
1271
|
const E = Pt(u.innerElement), C = X();
|
|
1272
1272
|
return [
|
|
1273
1273
|
he(E, {
|
|
1274
|
-
style:
|
|
1274
|
+
style: o(be),
|
|
1275
1275
|
ref: F
|
|
1276
1276
|
}, Lt(E) ? C : {
|
|
1277
1277
|
default: () => C
|
|
@@ -1279,7 +1279,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1279
1279
|
];
|
|
1280
1280
|
};
|
|
1281
1281
|
return () => {
|
|
1282
|
-
const E = Pt(u.containerElement), { horizontalScrollbar: C, verticalScrollbar:
|
|
1282
|
+
const E = Pt(u.containerElement), { horizontalScrollbar: C, verticalScrollbar: H } = Ve(), N = ee();
|
|
1283
1283
|
return he("div", {
|
|
1284
1284
|
key: 0,
|
|
1285
1285
|
class: S.e("wrapper"),
|
|
@@ -1287,26 +1287,26 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1287
1287
|
}, [
|
|
1288
1288
|
he(E, {
|
|
1289
1289
|
class: u.className,
|
|
1290
|
-
style:
|
|
1291
|
-
onScroll:
|
|
1290
|
+
style: o(ie),
|
|
1291
|
+
onScroll: ne,
|
|
1292
1292
|
ref: x
|
|
1293
1293
|
}, Lt(E) ? N : { default: () => N }),
|
|
1294
1294
|
C,
|
|
1295
|
-
|
|
1295
|
+
H
|
|
1296
1296
|
]);
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
}), { max: rt, min: _l, floor:
|
|
1299
|
+
}), { max: rt, min: _l, floor: pl } = Math, Zt = "ElDynamicSizeGrid", zn = {
|
|
1300
1300
|
column: "columnWidth",
|
|
1301
1301
|
row: "rowHeight"
|
|
1302
1302
|
}, Tt = {
|
|
1303
1303
|
column: "lastVisitedColumnIndex",
|
|
1304
1304
|
row: "lastVisitedRowIndex"
|
|
1305
|
-
}, fe = (e, t, l,
|
|
1305
|
+
}, fe = (e, t, l, n) => {
|
|
1306
1306
|
const [a, r, s] = [
|
|
1307
|
-
l[
|
|
1308
|
-
e[
|
|
1309
|
-
l[Tt[
|
|
1307
|
+
l[n],
|
|
1308
|
+
e[zn[n]],
|
|
1309
|
+
l[Tt[n]]
|
|
1310
1310
|
];
|
|
1311
1311
|
if (t > s) {
|
|
1312
1312
|
let i = 0;
|
|
@@ -1321,54 +1321,54 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1321
1321
|
size: f
|
|
1322
1322
|
}, i += f;
|
|
1323
1323
|
}
|
|
1324
|
-
l[Tt[
|
|
1324
|
+
l[Tt[n]] = t;
|
|
1325
1325
|
}
|
|
1326
1326
|
return a[t];
|
|
1327
|
-
},
|
|
1328
|
-
for (; l <=
|
|
1329
|
-
const s = l +
|
|
1327
|
+
}, Hl = (e, t, l, n, a, r) => {
|
|
1328
|
+
for (; l <= n; ) {
|
|
1329
|
+
const s = l + pl((n - l) / 2), i = fe(e, s, t, r).offset;
|
|
1330
1330
|
if (i === a)
|
|
1331
1331
|
return s;
|
|
1332
|
-
i < a ? l = s + 1 :
|
|
1332
|
+
i < a ? l = s + 1 : n = s - 1;
|
|
1333
1333
|
}
|
|
1334
1334
|
return rt(0, l - 1);
|
|
1335
|
-
},
|
|
1335
|
+
}, Ln = (e, t, l, n, a) => {
|
|
1336
1336
|
const r = a === "column" ? e.totalColumn : e.totalRow;
|
|
1337
1337
|
let s = 1;
|
|
1338
|
-
for (; l < r && fe(e, l, t, a).offset <
|
|
1338
|
+
for (; l < r && fe(e, l, t, a).offset < n; )
|
|
1339
1339
|
l += s, s *= 2;
|
|
1340
|
-
return
|
|
1341
|
-
}, Xt = (e, t, l,
|
|
1340
|
+
return Hl(e, t, pl(l / 2), _l(l, r - 1), n, a);
|
|
1341
|
+
}, Xt = (e, t, l, n) => {
|
|
1342
1342
|
const [a, r] = [
|
|
1343
|
-
t[
|
|
1344
|
-
t[Tt[
|
|
1343
|
+
t[n],
|
|
1344
|
+
t[Tt[n]]
|
|
1345
1345
|
];
|
|
1346
|
-
return (r > 0 ? a[r].offset : 0) >= l ?
|
|
1347
|
-
}, Ml = ({ totalRow: e }, { estimatedRowHeight: t, lastVisitedRowIndex: l, row:
|
|
1346
|
+
return (r > 0 ? a[r].offset : 0) >= l ? Hl(e, t, 0, r, l, n) : Ln(e, t, rt(0, r), l, n);
|
|
1347
|
+
}, Ml = ({ totalRow: e }, { estimatedRowHeight: t, lastVisitedRowIndex: l, row: n }) => {
|
|
1348
1348
|
let a = 0;
|
|
1349
1349
|
if (l >= e && (l = e - 1), l >= 0) {
|
|
1350
|
-
const i =
|
|
1350
|
+
const i = n[l];
|
|
1351
1351
|
a = i.offset + i.size;
|
|
1352
1352
|
}
|
|
1353
1353
|
const s = (e - l - 1) * t;
|
|
1354
1354
|
return a + s;
|
|
1355
|
-
}, Il = ({ totalColumn: e }, { column: t, estimatedColumnWidth: l, lastVisitedColumnIndex:
|
|
1355
|
+
}, Il = ({ totalColumn: e }, { column: t, estimatedColumnWidth: l, lastVisitedColumnIndex: n }) => {
|
|
1356
1356
|
let a = 0;
|
|
1357
|
-
if (
|
|
1358
|
-
const i = t[
|
|
1357
|
+
if (n > e && (n = e - 1), n >= 0) {
|
|
1358
|
+
const i = t[n];
|
|
1359
1359
|
a = i.offset + i.size;
|
|
1360
1360
|
}
|
|
1361
|
-
const s = (e -
|
|
1361
|
+
const s = (e - n - 1) * l;
|
|
1362
1362
|
return a + s;
|
|
1363
|
-
},
|
|
1363
|
+
}, Dn = {
|
|
1364
1364
|
column: Il,
|
|
1365
1365
|
row: Ml
|
|
1366
|
-
}, Jt = (e, t, l,
|
|
1366
|
+
}, Jt = (e, t, l, n, a, r, s) => {
|
|
1367
1367
|
const [i, v] = [
|
|
1368
1368
|
r === "row" ? e.height : e.width,
|
|
1369
|
-
|
|
1369
|
+
Dn[r]
|
|
1370
1370
|
], f = fe(e, t, a, r), d = v(e, a), w = rt(0, _l(d - i, f.offset)), b = rt(0, f.offset - i + s + f.size);
|
|
1371
|
-
switch (l === dl && (
|
|
1371
|
+
switch (l === dl && (n >= b - i && n <= w + i ? l = Te : l = De), l) {
|
|
1372
1372
|
case ft:
|
|
1373
1373
|
return w;
|
|
1374
1374
|
case mt:
|
|
@@ -1377,43 +1377,43 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1377
1377
|
return Math.round(b + (w - b) / 2);
|
|
1378
1378
|
case Te:
|
|
1379
1379
|
default:
|
|
1380
|
-
return
|
|
1380
|
+
return n >= b && n <= w ? n : b > w || n < b ? b : w;
|
|
1381
1381
|
}
|
|
1382
|
-
},
|
|
1382
|
+
}, Pn = Cl({
|
|
1383
1383
|
name: "ElDynamicSizeGrid",
|
|
1384
1384
|
getColumnPosition: (e, t, l) => {
|
|
1385
|
-
const
|
|
1386
|
-
return [
|
|
1385
|
+
const n = fe(e, t, l, "column");
|
|
1386
|
+
return [n.size, n.offset];
|
|
1387
1387
|
},
|
|
1388
1388
|
getRowPosition: (e, t, l) => {
|
|
1389
|
-
const
|
|
1390
|
-
return [
|
|
1389
|
+
const n = fe(e, t, l, "row");
|
|
1390
|
+
return [n.size, n.offset];
|
|
1391
1391
|
},
|
|
1392
|
-
getColumnOffset: (e, t, l,
|
|
1393
|
-
getRowOffset: (e, t, l,
|
|
1392
|
+
getColumnOffset: (e, t, l, n, a, r) => Jt(e, t, l, n, a, "column", r),
|
|
1393
|
+
getRowOffset: (e, t, l, n, a, r) => Jt(e, t, l, n, a, "row", r),
|
|
1394
1394
|
getColumnStartIndexForOffset: (e, t, l) => Xt(e, l, t, "column"),
|
|
1395
|
-
getColumnStopIndexForStartIndex: (e, t, l,
|
|
1396
|
-
const a = fe(e, t,
|
|
1395
|
+
getColumnStopIndexForStartIndex: (e, t, l, n) => {
|
|
1396
|
+
const a = fe(e, t, n, "column"), r = l + e.width;
|
|
1397
1397
|
let s = a.offset + a.size, i = t;
|
|
1398
1398
|
for (; i < e.totalColumn - 1 && s < r; )
|
|
1399
|
-
i++, s += fe(e, t,
|
|
1399
|
+
i++, s += fe(e, t, n, "column").size;
|
|
1400
1400
|
return i;
|
|
1401
1401
|
},
|
|
1402
1402
|
getEstimatedTotalHeight: Ml,
|
|
1403
1403
|
getEstimatedTotalWidth: Il,
|
|
1404
1404
|
getRowStartIndexForOffset: (e, t, l) => Xt(e, l, t, "row"),
|
|
1405
|
-
getRowStopIndexForStartIndex: (e, t, l,
|
|
1406
|
-
const { totalRow: a, height: r } = e, s = fe(e, t,
|
|
1405
|
+
getRowStopIndexForStartIndex: (e, t, l, n) => {
|
|
1406
|
+
const { totalRow: a, height: r } = e, s = fe(e, t, n, "row"), i = l + r;
|
|
1407
1407
|
let v = s.size + s.offset, f = t;
|
|
1408
1408
|
for (; f < a - 1 && v < i; )
|
|
1409
|
-
f++, v += fe(e, f,
|
|
1409
|
+
f++, v += fe(e, f, n, "row").size;
|
|
1410
1410
|
return f;
|
|
1411
1411
|
},
|
|
1412
1412
|
injectToInstance: (e, t) => {
|
|
1413
1413
|
const l = ({ columnIndex: r, rowIndex: s }, i) => {
|
|
1414
1414
|
var v, f;
|
|
1415
1415
|
i = Vl(i) ? !0 : i, Y(r) && (t.value.lastVisitedColumnIndex = Math.min(t.value.lastVisitedColumnIndex, r - 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());
|
|
1416
|
-
},
|
|
1416
|
+
}, n = (r, s) => {
|
|
1417
1417
|
l({
|
|
1418
1418
|
columnIndex: r
|
|
1419
1419
|
}, s);
|
|
@@ -1423,7 +1423,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1423
1423
|
}, s);
|
|
1424
1424
|
};
|
|
1425
1425
|
Object.assign(e.proxy, {
|
|
1426
|
-
resetAfterColumnIndex:
|
|
1426
|
+
resetAfterColumnIndex: n,
|
|
1427
1427
|
resetAfterRowIndex: a,
|
|
1428
1428
|
resetAfter: l
|
|
1429
1429
|
});
|
|
@@ -1441,15 +1441,15 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1441
1441
|
}),
|
|
1442
1442
|
clearCache: !1,
|
|
1443
1443
|
validateProps: ({ columnWidth: e, rowHeight: t }) => {
|
|
1444
|
-
process.env.NODE_ENV !== "production" && (Be(e) ||
|
|
1444
|
+
process.env.NODE_ENV !== "production" && (Be(e) || nt(Zt, `
|
|
1445
1445
|
"columnWidth" must be passed as function,
|
|
1446
1446
|
instead ${typeof e} was given.
|
|
1447
|
-
`), Be(t) ||
|
|
1447
|
+
`), Be(t) || nt(Zt, `
|
|
1448
1448
|
"rowHeight" must be passed as function,
|
|
1449
1449
|
instead ${typeof t} was given.
|
|
1450
1450
|
`));
|
|
1451
1451
|
}
|
|
1452
|
-
}), Qt = "ElFixedSizeGrid", $
|
|
1452
|
+
}), Qt = "ElFixedSizeGrid", $n = Cl({
|
|
1453
1453
|
name: "ElFixedSizeGrid",
|
|
1454
1454
|
getColumnPosition: ({ columnWidth: e }, t) => [
|
|
1455
1455
|
e,
|
|
@@ -1461,9 +1461,9 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1461
1461
|
],
|
|
1462
1462
|
getEstimatedTotalHeight: ({ totalRow: e, rowHeight: t }) => t * e,
|
|
1463
1463
|
getEstimatedTotalWidth: ({ totalColumn: e, columnWidth: t }) => t * e,
|
|
1464
|
-
getColumnOffset: ({ totalColumn: e, columnWidth: t, width: l },
|
|
1464
|
+
getColumnOffset: ({ totalColumn: e, columnWidth: t, width: l }, n, a, r, s, i) => {
|
|
1465
1465
|
l = Number(l);
|
|
1466
|
-
const v = Math.max(0, e * t - l), f = Math.min(v,
|
|
1466
|
+
const v = Math.max(0, e * t - l), f = Math.min(v, n * t), d = Math.max(0, n * t - l + i + t);
|
|
1467
1467
|
switch (a === "smart" && (r >= d - l && r <= f + l ? a = Te : a = De), a) {
|
|
1468
1468
|
case ft:
|
|
1469
1469
|
return f;
|
|
@@ -1478,9 +1478,9 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1478
1478
|
return r >= d && r <= f ? r : d > f || r < d ? d : f;
|
|
1479
1479
|
}
|
|
1480
1480
|
},
|
|
1481
|
-
getRowOffset: ({ rowHeight: e, height: t, totalRow: l },
|
|
1481
|
+
getRowOffset: ({ rowHeight: e, height: t, totalRow: l }, n, a, r, s, i) => {
|
|
1482
1482
|
t = Number(t);
|
|
1483
|
-
const v = Math.max(0, l * e - t), f = Math.min(v,
|
|
1483
|
+
const v = Math.max(0, l * e - t), f = Math.min(v, n * e), d = Math.max(0, n * e - t + i + e);
|
|
1484
1484
|
switch (a === dl && (r >= d - t && r <= f + t ? a = Te : a = De), a) {
|
|
1485
1485
|
case ft:
|
|
1486
1486
|
return f;
|
|
@@ -1496,29 +1496,29 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1496
1496
|
}
|
|
1497
1497
|
},
|
|
1498
1498
|
getColumnStartIndexForOffset: ({ columnWidth: e, totalColumn: t }, l) => Math.max(0, Math.min(t - 1, Math.floor(l / e))),
|
|
1499
|
-
getColumnStopIndexForStartIndex: ({ columnWidth: e, totalColumn: t, width: l },
|
|
1500
|
-
const r =
|
|
1501
|
-
return Math.max(0, Math.min(t - 1,
|
|
1499
|
+
getColumnStopIndexForStartIndex: ({ columnWidth: e, totalColumn: t, width: l }, n, a) => {
|
|
1500
|
+
const r = n * e, s = Math.ceil((l + a - r) / e);
|
|
1501
|
+
return Math.max(0, Math.min(t - 1, n + s - 1));
|
|
1502
1502
|
},
|
|
1503
1503
|
getRowStartIndexForOffset: ({ rowHeight: e, totalRow: t }, l) => Math.max(0, Math.min(t - 1, Math.floor(l / e))),
|
|
1504
|
-
getRowStopIndexForStartIndex: ({ rowHeight: e, totalRow: t, height: l },
|
|
1505
|
-
const r =
|
|
1506
|
-
return Math.max(0, Math.min(t - 1,
|
|
1504
|
+
getRowStopIndexForStartIndex: ({ rowHeight: e, totalRow: t, height: l }, n, a) => {
|
|
1505
|
+
const r = n * e, s = Math.ceil((l + a - r) / e);
|
|
1506
|
+
return Math.max(0, Math.min(t - 1, n + s - 1));
|
|
1507
1507
|
},
|
|
1508
1508
|
initCache: () => {
|
|
1509
1509
|
},
|
|
1510
1510
|
clearCache: !0,
|
|
1511
1511
|
validateProps: ({ columnWidth: e, rowHeight: t }) => {
|
|
1512
|
-
process.env.NODE_ENV !== "production" && (Y(e) ||
|
|
1512
|
+
process.env.NODE_ENV !== "production" && (Y(e) || nt(Qt, `
|
|
1513
1513
|
"columnWidth" must be passed as number,
|
|
1514
1514
|
instead ${typeof e} was given.
|
|
1515
|
-
`), Y(t) ||
|
|
1515
|
+
`), Y(t) || nt(Qt, `
|
|
1516
1516
|
"columnWidth" must be passed as number,
|
|
1517
1517
|
instead ${typeof t} was given.
|
|
1518
1518
|
`));
|
|
1519
1519
|
}
|
|
1520
|
-
}),
|
|
1521
|
-
const t = V(), l = V(),
|
|
1520
|
+
}), Wn = "ElTableV2Grid", Fn = (e) => {
|
|
1521
|
+
const t = V(), l = V(), n = V(0), a = T(() => {
|
|
1522
1522
|
const {
|
|
1523
1523
|
data: c,
|
|
1524
1524
|
rowHeight: h,
|
|
@@ -1536,8 +1536,8 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1536
1536
|
const {
|
|
1537
1537
|
height: c
|
|
1538
1538
|
} = e;
|
|
1539
|
-
return Math.max(0, c -
|
|
1540
|
-
}), v = T(() =>
|
|
1539
|
+
return Math.max(0, c - o(s) - o(r));
|
|
1540
|
+
}), v = T(() => o(s) + o(r) > 0), f = ({
|
|
1541
1541
|
data: c,
|
|
1542
1542
|
rowIndex: h
|
|
1543
1543
|
}) => c[h][e.rowKey];
|
|
@@ -1547,8 +1547,8 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1547
1547
|
rowVisibleStart: m,
|
|
1548
1548
|
rowVisibleEnd: S
|
|
1549
1549
|
}) {
|
|
1550
|
-
var
|
|
1551
|
-
(
|
|
1550
|
+
var p;
|
|
1551
|
+
(p = e.onRowsRendered) == null || p.call(e, {
|
|
1552
1552
|
rowCacheStart: c,
|
|
1553
1553
|
rowCacheEnd: h,
|
|
1554
1554
|
rowVisibleStart: m,
|
|
@@ -1560,25 +1560,25 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1560
1560
|
(m = l.value) == null || m.resetAfterRowIndex(c, h);
|
|
1561
1561
|
}
|
|
1562
1562
|
function b(c, h) {
|
|
1563
|
-
const m =
|
|
1564
|
-
Et(c) ? (m == null || m.scrollToLeft(c.scrollLeft),
|
|
1563
|
+
const m = o(t), S = o(l);
|
|
1564
|
+
Et(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({
|
|
1565
1565
|
scrollLeft: c,
|
|
1566
1566
|
scrollTop: h
|
|
1567
1567
|
}));
|
|
1568
1568
|
}
|
|
1569
1569
|
function g(c) {
|
|
1570
1570
|
var h;
|
|
1571
|
-
(h =
|
|
1571
|
+
(h = o(l)) == null || h.scrollTo({
|
|
1572
1572
|
scrollTop: c
|
|
1573
1573
|
});
|
|
1574
1574
|
}
|
|
1575
1575
|
function y(c, h) {
|
|
1576
1576
|
var m;
|
|
1577
|
-
(m =
|
|
1577
|
+
(m = o(l)) == null || m.scrollToItem(c, 1, h);
|
|
1578
1578
|
}
|
|
1579
1579
|
function u() {
|
|
1580
1580
|
var c, h;
|
|
1581
|
-
(c =
|
|
1581
|
+
(c = o(l)) == null || c.$forceUpdate(), (h = o(t)) == null || h.$forceUpdate();
|
|
1582
1582
|
}
|
|
1583
1583
|
return Me(() => e.bodyWidth, () => {
|
|
1584
1584
|
var c;
|
|
@@ -1600,17 +1600,17 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1600
1600
|
scrollTo: b,
|
|
1601
1601
|
scrollToTop: g,
|
|
1602
1602
|
scrollToRow: y,
|
|
1603
|
-
scrollLeft:
|
|
1603
|
+
scrollLeft: n
|
|
1604
1604
|
};
|
|
1605
|
-
},
|
|
1606
|
-
name:
|
|
1605
|
+
}, Gn = we({
|
|
1606
|
+
name: Wn,
|
|
1607
1607
|
props: lt,
|
|
1608
1608
|
setup(e, {
|
|
1609
1609
|
slots: t,
|
|
1610
1610
|
expose: l
|
|
1611
1611
|
}) {
|
|
1612
1612
|
const {
|
|
1613
|
-
ns:
|
|
1613
|
+
ns: n
|
|
1614
1614
|
} = Ct(_t), {
|
|
1615
1615
|
bodyRef: a,
|
|
1616
1616
|
fixedRowHeight: r,
|
|
@@ -1627,7 +1627,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1627
1627
|
scrollToTop: c,
|
|
1628
1628
|
scrollToRow: h,
|
|
1629
1629
|
scrollLeft: m
|
|
1630
|
-
} =
|
|
1630
|
+
} = Fn(e);
|
|
1631
1631
|
rl("tableV2GridScrollLeft", m), l({
|
|
1632
1632
|
forceUpdate: w,
|
|
1633
1633
|
totalHeight: d,
|
|
@@ -1639,7 +1639,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1639
1639
|
const S = () => e.bodyWidth;
|
|
1640
1640
|
return () => {
|
|
1641
1641
|
const {
|
|
1642
|
-
cache:
|
|
1642
|
+
cache: p,
|
|
1643
1643
|
columns: M,
|
|
1644
1644
|
data: x,
|
|
1645
1645
|
fixedData: O,
|
|
@@ -1656,10 +1656,10 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1656
1656
|
width: ie,
|
|
1657
1657
|
getRowHeight: be,
|
|
1658
1658
|
onScroll: ce
|
|
1659
|
-
} = e,
|
|
1659
|
+
} = e, ne = Y(B), Se = ne ? Pn : $n, me = o(f);
|
|
1660
1660
|
return _("div", {
|
|
1661
1661
|
role: "table",
|
|
1662
|
-
class: [
|
|
1662
|
+
class: [n.e("table"), e.class],
|
|
1663
1663
|
style: G
|
|
1664
1664
|
}, [_(Se, {
|
|
1665
1665
|
ref: a,
|
|
@@ -1667,14 +1667,14 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1667
1667
|
useIsScrolling: D,
|
|
1668
1668
|
itemKey: b,
|
|
1669
1669
|
columnCache: 0,
|
|
1670
|
-
columnWidth:
|
|
1670
|
+
columnWidth: ne ? S : K,
|
|
1671
1671
|
totalColumn: 1,
|
|
1672
1672
|
totalRow: x.length,
|
|
1673
|
-
rowCache:
|
|
1674
|
-
rowHeight:
|
|
1673
|
+
rowCache: p,
|
|
1674
|
+
rowHeight: ne ? be : P,
|
|
1675
1675
|
width: ie,
|
|
1676
|
-
height:
|
|
1677
|
-
class:
|
|
1676
|
+
height: o(s),
|
|
1677
|
+
class: n.e("body"),
|
|
1678
1678
|
role: "rowgroup",
|
|
1679
1679
|
scrollbarStartGap: A,
|
|
1680
1680
|
scrollbarEndGap: R,
|
|
@@ -1683,18 +1683,18 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1683
1683
|
onItemRendered: g,
|
|
1684
1684
|
perfMode: !1
|
|
1685
1685
|
}, {
|
|
1686
|
-
default: (
|
|
1686
|
+
default: (oe) => {
|
|
1687
1687
|
var te;
|
|
1688
|
-
const re = x[
|
|
1688
|
+
const re = x[oe.rowIndex];
|
|
1689
1689
|
return (te = t.row) == null ? void 0 : te.call(t, {
|
|
1690
|
-
...
|
|
1690
|
+
...oe,
|
|
1691
1691
|
columns: M,
|
|
1692
1692
|
rowData: re
|
|
1693
1693
|
});
|
|
1694
1694
|
}
|
|
1695
|
-
}),
|
|
1695
|
+
}), o(i) && _(On, {
|
|
1696
1696
|
ref: v,
|
|
1697
|
-
class:
|
|
1697
|
+
class: n.e("header-wrapper"),
|
|
1698
1698
|
columns: M,
|
|
1699
1699
|
headerData: x,
|
|
1700
1700
|
headerHeight: e.headerHeight,
|
|
@@ -1702,7 +1702,7 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1702
1702
|
rowWidth: k,
|
|
1703
1703
|
rowHeight: P,
|
|
1704
1704
|
width: ie,
|
|
1705
|
-
height: Math.min(me +
|
|
1705
|
+
height: Math.min(me + o(r), U)
|
|
1706
1706
|
}, {
|
|
1707
1707
|
dynamic: t.header,
|
|
1708
1708
|
fixed: t.row
|
|
@@ -1710,67 +1710,67 @@ const No = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
1712
|
});
|
|
1713
|
-
var Mt =
|
|
1714
|
-
function
|
|
1713
|
+
var Mt = Gn;
|
|
1714
|
+
function Vn(e) {
|
|
1715
1715
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1716
1716
|
}
|
|
1717
|
-
const
|
|
1717
|
+
const kn = (e, {
|
|
1718
1718
|
slots: t
|
|
1719
1719
|
}) => {
|
|
1720
1720
|
const {
|
|
1721
1721
|
mainTableRef: l,
|
|
1722
|
-
...
|
|
1722
|
+
...n
|
|
1723
1723
|
} = e;
|
|
1724
1724
|
return _(Mt, Z({
|
|
1725
1725
|
ref: l
|
|
1726
|
-
},
|
|
1726
|
+
}, n), Vn(t) ? t : {
|
|
1727
1727
|
default: () => [t]
|
|
1728
1728
|
});
|
|
1729
1729
|
};
|
|
1730
|
-
var
|
|
1731
|
-
function
|
|
1730
|
+
var Kn = kn;
|
|
1731
|
+
function jn(e) {
|
|
1732
1732
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1733
1733
|
}
|
|
1734
|
-
const
|
|
1734
|
+
const Bn = (e, {
|
|
1735
1735
|
slots: t
|
|
1736
1736
|
}) => {
|
|
1737
1737
|
if (!e.columns.length)
|
|
1738
1738
|
return;
|
|
1739
1739
|
const {
|
|
1740
1740
|
leftTableRef: l,
|
|
1741
|
-
...
|
|
1741
|
+
...n
|
|
1742
1742
|
} = e;
|
|
1743
1743
|
return _(Mt, Z({
|
|
1744
1744
|
ref: l
|
|
1745
|
-
},
|
|
1745
|
+
}, n), jn(t) ? t : {
|
|
1746
1746
|
default: () => [t]
|
|
1747
1747
|
});
|
|
1748
1748
|
};
|
|
1749
|
-
var
|
|
1750
|
-
function
|
|
1749
|
+
var Un = Bn;
|
|
1750
|
+
function qn(e) {
|
|
1751
1751
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1752
1752
|
}
|
|
1753
|
-
const
|
|
1753
|
+
const Yn = (e, {
|
|
1754
1754
|
slots: t
|
|
1755
1755
|
}) => {
|
|
1756
1756
|
if (!e.columns.length)
|
|
1757
1757
|
return;
|
|
1758
1758
|
const {
|
|
1759
1759
|
rightTableRef: l,
|
|
1760
|
-
...
|
|
1760
|
+
...n
|
|
1761
1761
|
} = e;
|
|
1762
1762
|
return _(Mt, Z({
|
|
1763
1763
|
ref: l
|
|
1764
|
-
},
|
|
1764
|
+
}, n), qn(t) ? t : {
|
|
1765
1765
|
default: () => [t]
|
|
1766
1766
|
});
|
|
1767
1767
|
};
|
|
1768
|
-
var
|
|
1769
|
-
const
|
|
1768
|
+
var Zn = Yn;
|
|
1769
|
+
const Xn = (e) => {
|
|
1770
1770
|
const {
|
|
1771
1771
|
isScrolling: t
|
|
1772
|
-
} = Ct(_t), l = V(!1),
|
|
1773
|
-
const f = n
|
|
1772
|
+
} = Ct(_t), l = V(!1), n = V(), a = T(() => Y(e.estimatedRowHeight) && e.rowIndex >= 0), r = (v = !1) => {
|
|
1773
|
+
const f = o(n);
|
|
1774
1774
|
if (!f)
|
|
1775
1775
|
return;
|
|
1776
1776
|
const {
|
|
@@ -1844,22 +1844,22 @@ const Xo = (e) => {
|
|
|
1844
1844
|
});
|
|
1845
1845
|
};
|
|
1846
1846
|
return st(() => {
|
|
1847
|
-
|
|
1847
|
+
o(a) && r(!0);
|
|
1848
1848
|
}), {
|
|
1849
1849
|
isScrolling: t,
|
|
1850
1850
|
measurable: a,
|
|
1851
1851
|
measured: l,
|
|
1852
|
-
rowRef:
|
|
1852
|
+
rowRef: n,
|
|
1853
1853
|
eventHandlers: s,
|
|
1854
1854
|
onExpand: i
|
|
1855
1855
|
};
|
|
1856
|
-
},
|
|
1857
|
-
name:
|
|
1856
|
+
}, Jn = "ElTableV2TableRow", Qn = we({
|
|
1857
|
+
name: Jn,
|
|
1858
1858
|
props: Ee,
|
|
1859
1859
|
setup(e, {
|
|
1860
1860
|
expose: t,
|
|
1861
1861
|
slots: l,
|
|
1862
|
-
attrs:
|
|
1862
|
+
attrs: n
|
|
1863
1863
|
}) {
|
|
1864
1864
|
const {
|
|
1865
1865
|
eventHandlers: a,
|
|
@@ -1868,7 +1868,7 @@ const Xo = (e) => {
|
|
|
1868
1868
|
measured: i,
|
|
1869
1869
|
rowRef: v,
|
|
1870
1870
|
onExpand: f
|
|
1871
|
-
} =
|
|
1871
|
+
} = Xn(e);
|
|
1872
1872
|
return t({
|
|
1873
1873
|
onExpand: f
|
|
1874
1874
|
}), () => {
|
|
@@ -1882,7 +1882,7 @@ const Xo = (e) => {
|
|
|
1882
1882
|
style: c
|
|
1883
1883
|
} = e;
|
|
1884
1884
|
let h = d.map((m, S) => {
|
|
1885
|
-
const
|
|
1885
|
+
const p = $e(y.children) && y.children.length > 0 && m.key === b;
|
|
1886
1886
|
return l.cell({
|
|
1887
1887
|
column: m,
|
|
1888
1888
|
columns: d,
|
|
@@ -1891,8 +1891,8 @@ const Xo = (e) => {
|
|
|
1891
1891
|
style: w[m.key],
|
|
1892
1892
|
rowData: y,
|
|
1893
1893
|
rowIndex: u,
|
|
1894
|
-
isScrolling:
|
|
1895
|
-
expandIconProps:
|
|
1894
|
+
isScrolling: o(r),
|
|
1895
|
+
expandIconProps: p ? {
|
|
1896
1896
|
rowData: y,
|
|
1897
1897
|
rowIndex: u,
|
|
1898
1898
|
onExpand: f
|
|
@@ -1906,38 +1906,38 @@ const Xo = (e) => {
|
|
|
1906
1906
|
depth: g,
|
|
1907
1907
|
rowData: y,
|
|
1908
1908
|
rowIndex: u,
|
|
1909
|
-
isScrolling:
|
|
1910
|
-
})),
|
|
1909
|
+
isScrolling: o(r)
|
|
1910
|
+
})), o(s)) {
|
|
1911
1911
|
const {
|
|
1912
1912
|
height: m,
|
|
1913
1913
|
...S
|
|
1914
|
-
} = c || {},
|
|
1914
|
+
} = c || {}, p = o(i);
|
|
1915
1915
|
return _("div", Z({
|
|
1916
1916
|
ref: v,
|
|
1917
1917
|
class: e.class,
|
|
1918
|
-
style:
|
|
1918
|
+
style: p ? c : S,
|
|
1919
1919
|
role: "row"
|
|
1920
|
-
},
|
|
1920
|
+
}, n, o(a)), [h]);
|
|
1921
1921
|
}
|
|
1922
|
-
return _("div", Z(
|
|
1922
|
+
return _("div", Z(n, {
|
|
1923
1923
|
ref: v,
|
|
1924
1924
|
class: e.class,
|
|
1925
1925
|
style: c,
|
|
1926
1926
|
role: "row"
|
|
1927
|
-
},
|
|
1927
|
+
}, o(a)), [h]);
|
|
1928
1928
|
};
|
|
1929
1929
|
}
|
|
1930
1930
|
});
|
|
1931
|
-
var
|
|
1932
|
-
function
|
|
1931
|
+
var eo = Qn;
|
|
1932
|
+
function to(e) {
|
|
1933
1933
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
1934
1934
|
}
|
|
1935
|
-
const
|
|
1935
|
+
const lo = (e, {
|
|
1936
1936
|
slots: t
|
|
1937
1937
|
}) => {
|
|
1938
1938
|
const {
|
|
1939
1939
|
columns: l,
|
|
1940
|
-
columnsStyles:
|
|
1940
|
+
columnsStyles: n,
|
|
1941
1941
|
depthMap: a,
|
|
1942
1942
|
expandColumnKey: r,
|
|
1943
1943
|
expandedRowKeys: s,
|
|
@@ -1954,15 +1954,15 @@ const ln = (e, {
|
|
|
1954
1954
|
ns: h,
|
|
1955
1955
|
onRowHovered: m,
|
|
1956
1956
|
onRowExpanded: S
|
|
1957
|
-
} = e,
|
|
1957
|
+
} = e, p = pe(y, {
|
|
1958
1958
|
columns: l,
|
|
1959
1959
|
rowData: f,
|
|
1960
1960
|
rowIndex: d
|
|
1961
|
-
}, ""), M =
|
|
1961
|
+
}, ""), M = pe(g, {
|
|
1962
1962
|
columns: l,
|
|
1963
1963
|
rowData: f,
|
|
1964
1964
|
rowIndex: d
|
|
1965
|
-
}), x = f[u], O = a[x] || 0, D = !!r, F = d < 0, R = [h.e("row"),
|
|
1965
|
+
}), x = f[u], O = a[x] || 0, D = !!r, F = d < 0, R = [h.e("row"), p, {
|
|
1966
1966
|
[h.e(`row-depth-${O}`)]: D && d >= 0,
|
|
1967
1967
|
[h.is("expanded")]: D && s.includes(x),
|
|
1968
1968
|
[h.is("fixed")]: !O && F,
|
|
@@ -1970,7 +1970,7 @@ const ln = (e, {
|
|
|
1970
1970
|
}], A = v ? m : void 0, G = {
|
|
1971
1971
|
...M,
|
|
1972
1972
|
columns: l,
|
|
1973
|
-
columnsStyles:
|
|
1973
|
+
columnsStyles: n,
|
|
1974
1974
|
class: R,
|
|
1975
1975
|
depth: O,
|
|
1976
1976
|
expandColumnKey: r,
|
|
@@ -1982,7 +1982,7 @@ const ln = (e, {
|
|
|
1982
1982
|
rowEventHandlers: c,
|
|
1983
1983
|
style: w
|
|
1984
1984
|
};
|
|
1985
|
-
return _(
|
|
1985
|
+
return _(eo, Z(G, {
|
|
1986
1986
|
onRowExpand: S,
|
|
1987
1987
|
onMouseenter: (B) => {
|
|
1988
1988
|
A == null || A({
|
|
@@ -2003,19 +2003,19 @@ const ln = (e, {
|
|
|
2003
2003
|
});
|
|
2004
2004
|
},
|
|
2005
2005
|
rowkey: x
|
|
2006
|
-
}),
|
|
2006
|
+
}), to(t) ? t : {
|
|
2007
2007
|
default: () => [t]
|
|
2008
2008
|
});
|
|
2009
2009
|
};
|
|
2010
|
-
var
|
|
2010
|
+
var no = lo;
|
|
2011
2011
|
const It = (e, {
|
|
2012
2012
|
slots: t
|
|
2013
2013
|
}) => {
|
|
2014
2014
|
var l;
|
|
2015
2015
|
const {
|
|
2016
|
-
cellData:
|
|
2016
|
+
cellData: n,
|
|
2017
2017
|
style: a
|
|
2018
|
-
} = e, r = ((l =
|
|
2018
|
+
} = e, r = ((l = n == null ? void 0 : n.toString) == null ? void 0 : l.call(n)) || "", s = Ze(t, "default", e, () => [r]);
|
|
2019
2019
|
return _("div", {
|
|
2020
2020
|
class: e.class,
|
|
2021
2021
|
title: r,
|
|
@@ -2024,31 +2024,31 @@ const It = (e, {
|
|
|
2024
2024
|
};
|
|
2025
2025
|
It.displayName = "ElTableV2Cell";
|
|
2026
2026
|
It.inheritAttrs = !1;
|
|
2027
|
-
var
|
|
2028
|
-
const
|
|
2027
|
+
var oo = It;
|
|
2028
|
+
const ro = (e) => {
|
|
2029
2029
|
const {
|
|
2030
2030
|
expanded: t,
|
|
2031
2031
|
expandable: l,
|
|
2032
|
-
onExpand:
|
|
2032
|
+
onExpand: n,
|
|
2033
2033
|
style: a,
|
|
2034
2034
|
size: r
|
|
2035
2035
|
} = e, s = {
|
|
2036
|
-
onClick: l ? () =>
|
|
2036
|
+
onClick: l ? () => n(!t) : void 0,
|
|
2037
2037
|
class: e.class
|
|
2038
2038
|
};
|
|
2039
2039
|
return _(cl, Z(s, {
|
|
2040
2040
|
size: r,
|
|
2041
2041
|
style: a
|
|
2042
2042
|
}), {
|
|
2043
|
-
default: () => [_(
|
|
2043
|
+
default: () => [_(an, null, null)]
|
|
2044
2044
|
});
|
|
2045
2045
|
};
|
|
2046
|
-
var
|
|
2046
|
+
var ao = ro;
|
|
2047
2047
|
const Al = ({
|
|
2048
2048
|
columns: e,
|
|
2049
2049
|
column: t,
|
|
2050
2050
|
columnIndex: l,
|
|
2051
|
-
depth:
|
|
2051
|
+
depth: n,
|
|
2052
2052
|
expandIconProps: a,
|
|
2053
2053
|
isScrolling: r,
|
|
2054
2054
|
rowData: s,
|
|
@@ -2073,14 +2073,14 @@ const Al = ({
|
|
|
2073
2073
|
const {
|
|
2074
2074
|
cellRenderer: m,
|
|
2075
2075
|
dataKey: S,
|
|
2076
|
-
dataGetter:
|
|
2077
|
-
} = t, M = Be(
|
|
2076
|
+
dataGetter: p
|
|
2077
|
+
} = t, M = Be(p) ? p({
|
|
2078
2078
|
columns: e,
|
|
2079
2079
|
column: t,
|
|
2080
2080
|
columnIndex: l,
|
|
2081
2081
|
rowData: s,
|
|
2082
2082
|
rowIndex: i
|
|
2083
|
-
}) :
|
|
2083
|
+
}) : on(s, S ?? ""), x = pe(w, {
|
|
2084
2084
|
cellData: M,
|
|
2085
2085
|
columns: e,
|
|
2086
2086
|
column: t,
|
|
@@ -2096,10 +2096,10 @@ const Al = ({
|
|
|
2096
2096
|
isScrolling: r,
|
|
2097
2097
|
rowData: s,
|
|
2098
2098
|
rowIndex: i
|
|
2099
|
-
}, D = xl(m), F = D ? D(O) : Ze(c, "default", O, () => [_(
|
|
2099
|
+
}, D = xl(m), F = D ? D(O) : Ze(c, "default", O, () => [_(oo, O, null)]), R = [d.e("row-cell"), t.class, t.align === qe.CENTER && d.is("align-center"), t.align === qe.RIGHT && d.is("align-right")], A = i >= 0 && b && t.key === b, G = i >= 0 && f.includes(s[u]);
|
|
2100
2100
|
let P;
|
|
2101
|
-
const K = `margin-inline-start: ${
|
|
2102
|
-
return A && (Et(a) ? P = _(
|
|
2101
|
+
const K = `margin-inline-start: ${n * g}px;`;
|
|
2102
|
+
return A && (Et(a) ? P = _(ao, Z(a, {
|
|
2103
2103
|
class: [d.e("expand-icon"), d.is("expanded", G)],
|
|
2104
2104
|
size: y,
|
|
2105
2105
|
expanded: G,
|
|
@@ -2116,7 +2116,7 @@ const Al = ({
|
|
|
2116
2116
|
};
|
|
2117
2117
|
Al.inheritAttrs = !1;
|
|
2118
2118
|
var el = Al;
|
|
2119
|
-
const
|
|
2119
|
+
const so = se({
|
|
2120
2120
|
class: String,
|
|
2121
2121
|
columns: Xe,
|
|
2122
2122
|
columnsStyles: {
|
|
@@ -2125,16 +2125,16 @@ const sn = se({
|
|
|
2125
2125
|
},
|
|
2126
2126
|
headerIndex: Number,
|
|
2127
2127
|
style: { type: I(Object) }
|
|
2128
|
-
}),
|
|
2128
|
+
}), io = we({
|
|
2129
2129
|
name: "ElTableV2HeaderRow",
|
|
2130
|
-
props:
|
|
2130
|
+
props: so,
|
|
2131
2131
|
setup(e, {
|
|
2132
2132
|
slots: t
|
|
2133
2133
|
}) {
|
|
2134
2134
|
return () => {
|
|
2135
2135
|
const {
|
|
2136
2136
|
columns: l,
|
|
2137
|
-
columnsStyles:
|
|
2137
|
+
columnsStyles: n,
|
|
2138
2138
|
headerIndex: a,
|
|
2139
2139
|
style: r
|
|
2140
2140
|
} = e;
|
|
@@ -2143,7 +2143,7 @@ const sn = se({
|
|
|
2143
2143
|
column: i,
|
|
2144
2144
|
columnIndex: v,
|
|
2145
2145
|
headerIndex: a,
|
|
2146
|
-
style:
|
|
2146
|
+
style: n[i.key]
|
|
2147
2147
|
}));
|
|
2148
2148
|
return t.header && (s = t.header({
|
|
2149
2149
|
cells: s.map((i) => $e(i) && i.length === 1 ? i[0] : i),
|
|
@@ -2157,15 +2157,15 @@ const sn = se({
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}
|
|
2159
2159
|
});
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2160
|
+
var co = io;
|
|
2161
|
+
function uo(e) {
|
|
2162
2162
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
2163
2163
|
}
|
|
2164
|
-
const
|
|
2164
|
+
const ho = ({
|
|
2165
2165
|
columns: e,
|
|
2166
2166
|
columnsStyles: t,
|
|
2167
2167
|
headerIndex: l,
|
|
2168
|
-
style:
|
|
2168
|
+
style: n,
|
|
2169
2169
|
headerClass: a,
|
|
2170
2170
|
headerProps: r,
|
|
2171
2171
|
ns: s
|
|
@@ -2175,34 +2175,34 @@ const hn = ({
|
|
|
2175
2175
|
const v = {
|
|
2176
2176
|
columns: e,
|
|
2177
2177
|
headerIndex: l
|
|
2178
|
-
}, f = [s.e("header-row"),
|
|
2178
|
+
}, f = [s.e("header-row"), pe(a, v, ""), {
|
|
2179
2179
|
[s.is("customized")]: !!i.header
|
|
2180
2180
|
}], d = {
|
|
2181
|
-
...
|
|
2181
|
+
...pe(r, v),
|
|
2182
2182
|
columnsStyles: t,
|
|
2183
2183
|
class: f,
|
|
2184
2184
|
columns: e,
|
|
2185
2185
|
headerIndex: l,
|
|
2186
|
-
style:
|
|
2186
|
+
style: n
|
|
2187
2187
|
};
|
|
2188
|
-
return _(
|
|
2188
|
+
return _(co, d, uo(i) ? i : {
|
|
2189
2189
|
default: () => [i]
|
|
2190
2190
|
});
|
|
2191
2191
|
};
|
|
2192
|
-
var
|
|
2192
|
+
var fo = ho;
|
|
2193
2193
|
const At = (e, {
|
|
2194
2194
|
slots: t
|
|
2195
2195
|
}) => Ze(t, "default", e, () => {
|
|
2196
|
-
var l,
|
|
2196
|
+
var l, n;
|
|
2197
2197
|
return [_("div", {
|
|
2198
2198
|
class: e.class,
|
|
2199
2199
|
title: (l = e.column) == null ? void 0 : l.title
|
|
2200
|
-
}, [(
|
|
2200
|
+
}, [(n = e.column) == null ? void 0 : n.title])];
|
|
2201
2201
|
});
|
|
2202
2202
|
At.displayName = "ElTableV2HeaderCell";
|
|
2203
2203
|
At.inheritAttrs = !1;
|
|
2204
|
-
var
|
|
2205
|
-
const
|
|
2204
|
+
var mo = At;
|
|
2205
|
+
const vo = (e) => {
|
|
2206
2206
|
const {
|
|
2207
2207
|
sortOrder: t
|
|
2208
2208
|
} = e;
|
|
@@ -2210,22 +2210,22 @@ const vn = (e) => {
|
|
|
2210
2210
|
size: 14,
|
|
2211
2211
|
class: e.class
|
|
2212
2212
|
}, {
|
|
2213
|
-
default: () => [t === Ue.ASC ? _(
|
|
2213
|
+
default: () => [t === Ue.ASC ? _(sn, null, null) : _(cn, null, null)]
|
|
2214
2214
|
});
|
|
2215
2215
|
};
|
|
2216
|
-
var
|
|
2217
|
-
const
|
|
2216
|
+
var go = vo;
|
|
2217
|
+
const yo = (e, {
|
|
2218
2218
|
slots: t
|
|
2219
2219
|
}) => {
|
|
2220
2220
|
const {
|
|
2221
2221
|
column: l,
|
|
2222
|
-
ns:
|
|
2222
|
+
ns: n,
|
|
2223
2223
|
style: a,
|
|
2224
2224
|
onColumnSorted: r
|
|
2225
2225
|
} = e, s = ye(a);
|
|
2226
2226
|
if (l.placeholderSign === Ye)
|
|
2227
2227
|
return _("div", {
|
|
2228
|
-
class:
|
|
2228
|
+
class: n.em("header-row-cell", "placeholder"),
|
|
2229
2229
|
style: s
|
|
2230
2230
|
}, null);
|
|
2231
2231
|
const {
|
|
@@ -2234,20 +2234,20 @@ const yn = (e, {
|
|
|
2234
2234
|
sortable: f
|
|
2235
2235
|
} = l, d = {
|
|
2236
2236
|
...e,
|
|
2237
|
-
class:
|
|
2238
|
-
}, w = xl(i), b = w ? w(d) : Ze(t, "default", d, () => [_(
|
|
2237
|
+
class: n.e("header-cell-text")
|
|
2238
|
+
}, w = xl(i), b = w ? w(d) : Ze(t, "default", d, () => [_(mo, d, null)]), {
|
|
2239
2239
|
sortBy: g,
|
|
2240
2240
|
sortState: y,
|
|
2241
2241
|
headerCellProps: u
|
|
2242
2242
|
} = e;
|
|
2243
2243
|
let c, h;
|
|
2244
2244
|
if (y) {
|
|
2245
|
-
const
|
|
2246
|
-
c = !!Rt[
|
|
2245
|
+
const p = y[l.key];
|
|
2246
|
+
c = !!Rt[p], h = c ? p : Ue.ASC;
|
|
2247
2247
|
} else
|
|
2248
2248
|
c = l.key === g.key, h = c ? g.order : Ue.ASC;
|
|
2249
|
-
const m = [
|
|
2250
|
-
...
|
|
2249
|
+
const m = [n.e("header-cell"), pe(v, e, ""), l.align === qe.CENTER && n.is("align-center"), l.align === qe.RIGHT && n.is("align-right"), f && n.is("sortable")], S = {
|
|
2250
|
+
...pe(u, e),
|
|
2251
2251
|
onClick: l.sortable ? r : void 0,
|
|
2252
2252
|
class: m,
|
|
2253
2253
|
style: s,
|
|
@@ -2255,12 +2255,12 @@ const yn = (e, {
|
|
|
2255
2255
|
};
|
|
2256
2256
|
return _("div", Z(S, {
|
|
2257
2257
|
role: "columnheader"
|
|
2258
|
-
}), [b, f && _(
|
|
2259
|
-
class: [
|
|
2258
|
+
}), [b, f && _(go, {
|
|
2259
|
+
class: [n.e("sort-icon"), c && n.is("sorting")],
|
|
2260
2260
|
sortOrder: h
|
|
2261
2261
|
}, null)]);
|
|
2262
2262
|
};
|
|
2263
|
-
var tl =
|
|
2263
|
+
var tl = yo;
|
|
2264
2264
|
const Ol = (e, {
|
|
2265
2265
|
slots: t
|
|
2266
2266
|
}) => {
|
|
@@ -2271,18 +2271,18 @@ const Ol = (e, {
|
|
|
2271
2271
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
2272
2272
|
};
|
|
2273
2273
|
Ol.displayName = "ElTableV2Footer";
|
|
2274
|
-
var
|
|
2274
|
+
var wo = Ol;
|
|
2275
2275
|
const Nl = (e, {
|
|
2276
2276
|
slots: t
|
|
2277
2277
|
}) => {
|
|
2278
|
-
const l = Ze(t, "default", {}, () => [_(
|
|
2278
|
+
const l = Ze(t, "default", {}, () => [_(nl, null, null)]);
|
|
2279
2279
|
return _("div", {
|
|
2280
2280
|
class: e.class,
|
|
2281
2281
|
style: e.style
|
|
2282
2282
|
}, [l]);
|
|
2283
2283
|
};
|
|
2284
2284
|
Nl.displayName = "ElTableV2Empty";
|
|
2285
|
-
var
|
|
2285
|
+
var bo = Nl;
|
|
2286
2286
|
const zl = (e, {
|
|
2287
2287
|
slots: t
|
|
2288
2288
|
}) => {
|
|
@@ -2293,18 +2293,18 @@ const zl = (e, {
|
|
|
2293
2293
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
2294
2294
|
};
|
|
2295
2295
|
zl.displayName = "ElTableV2Overlay";
|
|
2296
|
-
var
|
|
2296
|
+
var So = zl;
|
|
2297
2297
|
function Ke(e) {
|
|
2298
2298
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ie(e);
|
|
2299
2299
|
}
|
|
2300
|
-
const
|
|
2301
|
-
name:
|
|
2302
|
-
props:
|
|
2300
|
+
const xo = "ElTableV2", Ro = we({
|
|
2301
|
+
name: xo,
|
|
2302
|
+
props: Mn,
|
|
2303
2303
|
setup(e, {
|
|
2304
2304
|
slots: t,
|
|
2305
2305
|
expose: l
|
|
2306
2306
|
}) {
|
|
2307
|
-
const
|
|
2307
|
+
const n = _e("table-v2"), {
|
|
2308
2308
|
columnsStyles: a,
|
|
2309
2309
|
fixedColumnsOnLeft: r,
|
|
2310
2310
|
fixedColumnsOnRight: s,
|
|
@@ -2321,7 +2321,7 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2321
2321
|
leftTableRef: h,
|
|
2322
2322
|
rightTableRef: m,
|
|
2323
2323
|
isDynamic: S,
|
|
2324
|
-
isResetting:
|
|
2324
|
+
isResetting: p,
|
|
2325
2325
|
isScrolling: M,
|
|
2326
2326
|
bodyWidth: x,
|
|
2327
2327
|
emptyStyle: O,
|
|
@@ -2338,22 +2338,22 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2338
2338
|
onRowHeightChange: ie,
|
|
2339
2339
|
onRowHovered: be,
|
|
2340
2340
|
onRowExpanded: ce,
|
|
2341
|
-
onRowsRendered:
|
|
2341
|
+
onRowsRendered: ne,
|
|
2342
2342
|
onScroll: Se,
|
|
2343
2343
|
onVerticalScroll: me
|
|
2344
|
-
} =
|
|
2344
|
+
} = pn(e);
|
|
2345
2345
|
return l({
|
|
2346
2346
|
scrollTo: G,
|
|
2347
2347
|
scrollToLeft: P,
|
|
2348
2348
|
scrollToTop: K,
|
|
2349
2349
|
scrollToRow: B
|
|
2350
2350
|
}), rl(_t, {
|
|
2351
|
-
ns:
|
|
2352
|
-
isResetting:
|
|
2351
|
+
ns: n,
|
|
2352
|
+
isResetting: p,
|
|
2353
2353
|
isScrolling: M
|
|
2354
2354
|
}), () => {
|
|
2355
2355
|
const {
|
|
2356
|
-
cache:
|
|
2356
|
+
cache: oe,
|
|
2357
2357
|
cellProps: te,
|
|
2358
2358
|
estimatedRowHeight: re,
|
|
2359
2359
|
expandColumnKey: Ae,
|
|
@@ -2368,24 +2368,24 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2368
2368
|
rowClass: de,
|
|
2369
2369
|
rowEventHandlers: E,
|
|
2370
2370
|
rowKey: C,
|
|
2371
|
-
rowProps:
|
|
2371
|
+
rowProps: H,
|
|
2372
2372
|
scrollbarAlwaysOn: N,
|
|
2373
2373
|
indentSize: z,
|
|
2374
2374
|
iconSize: L,
|
|
2375
2375
|
useIsScrolling: $,
|
|
2376
2376
|
vScrollbarSize: W,
|
|
2377
2377
|
width: j
|
|
2378
|
-
} = e, q =
|
|
2379
|
-
cache:
|
|
2380
|
-
class:
|
|
2381
|
-
columns:
|
|
2378
|
+
} = e, q = o(b), ae = {
|
|
2379
|
+
cache: oe,
|
|
2380
|
+
class: n.e("main"),
|
|
2381
|
+
columns: o(i),
|
|
2382
2382
|
data: q,
|
|
2383
2383
|
fixedData: ve,
|
|
2384
2384
|
estimatedRowHeight: re,
|
|
2385
|
-
bodyWidth:
|
|
2385
|
+
bodyWidth: o(x) + W,
|
|
2386
2386
|
headerHeight: ge,
|
|
2387
|
-
headerWidth:
|
|
2388
|
-
height:
|
|
2387
|
+
headerWidth: o(F),
|
|
2388
|
+
height: o(v),
|
|
2389
2389
|
mainTableRef: c,
|
|
2390
2390
|
rowKey: C,
|
|
2391
2391
|
rowHeight: ee,
|
|
@@ -2395,12 +2395,12 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2395
2395
|
useIsScrolling: $,
|
|
2396
2396
|
width: j,
|
|
2397
2397
|
getRowHeight: k,
|
|
2398
|
-
onRowsRendered:
|
|
2398
|
+
onRowsRendered: ne,
|
|
2399
2399
|
onScroll: Se
|
|
2400
|
-
}, J =
|
|
2401
|
-
cache:
|
|
2402
|
-
class:
|
|
2403
|
-
columns:
|
|
2400
|
+
}, J = o(d), Q = o(f), ke = {
|
|
2401
|
+
cache: oe,
|
|
2402
|
+
class: n.e("left"),
|
|
2403
|
+
columns: o(r),
|
|
2404
2404
|
data: q,
|
|
2405
2405
|
fixedData: ve,
|
|
2406
2406
|
estimatedRowHeight: re,
|
|
@@ -2418,10 +2418,10 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2418
2418
|
width: J,
|
|
2419
2419
|
getRowHeight: k,
|
|
2420
2420
|
onScroll: me
|
|
2421
|
-
}, it =
|
|
2422
|
-
cache:
|
|
2423
|
-
class:
|
|
2424
|
-
columns:
|
|
2421
|
+
}, it = o(w) + W, Ll = {
|
|
2422
|
+
cache: oe,
|
|
2423
|
+
class: n.e("right"),
|
|
2424
|
+
columns: o(s),
|
|
2425
2425
|
data: q,
|
|
2426
2426
|
fixedData: ve,
|
|
2427
2427
|
estimatedRowHeight: re,
|
|
@@ -2436,19 +2436,19 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2436
2436
|
scrollbarStartGap: 2,
|
|
2437
2437
|
scrollbarEndGap: W,
|
|
2438
2438
|
width: it,
|
|
2439
|
-
style: `--${n
|
|
2439
|
+
style: `--${o(n.namespace)}-table-scrollbar-size: ${W}px`,
|
|
2440
2440
|
useIsScrolling: $,
|
|
2441
2441
|
getRowHeight: k,
|
|
2442
2442
|
onScroll: me
|
|
2443
|
-
}, Oe =
|
|
2444
|
-
ns:
|
|
2445
|
-
depthMap:
|
|
2443
|
+
}, Oe = o(a), Dl = {
|
|
2444
|
+
ns: n,
|
|
2445
|
+
depthMap: o(g),
|
|
2446
2446
|
columnsStyles: Oe,
|
|
2447
2447
|
expandColumnKey: Ae,
|
|
2448
|
-
expandedRowKeys:
|
|
2448
|
+
expandedRowKeys: o(y),
|
|
2449
2449
|
estimatedRowHeight: re,
|
|
2450
|
-
hasFixedColumns:
|
|
2451
|
-
rowProps:
|
|
2450
|
+
hasFixedColumns: o(u),
|
|
2451
|
+
rowProps: H,
|
|
2452
2452
|
rowClass: de,
|
|
2453
2453
|
rowKey: C,
|
|
2454
2454
|
rowEventHandlers: E,
|
|
@@ -2461,21 +2461,21 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2461
2461
|
indentSize: z,
|
|
2462
2462
|
iconSize: L,
|
|
2463
2463
|
rowKey: C,
|
|
2464
|
-
expandedRowKeys:
|
|
2465
|
-
ns:
|
|
2464
|
+
expandedRowKeys: o(y),
|
|
2465
|
+
ns: n
|
|
2466
2466
|
}, Pl = {
|
|
2467
|
-
ns:
|
|
2467
|
+
ns: n,
|
|
2468
2468
|
headerClass: We,
|
|
2469
2469
|
headerProps: Fe,
|
|
2470
2470
|
columnsStyles: Oe
|
|
2471
2471
|
}, zt = {
|
|
2472
|
-
ns:
|
|
2472
|
+
ns: n,
|
|
2473
2473
|
sortBy: Ve,
|
|
2474
2474
|
sortState: X,
|
|
2475
2475
|
headerCellProps: Ge,
|
|
2476
2476
|
onColumnSorted: U
|
|
2477
2477
|
}, ue = {
|
|
2478
|
-
row: (ct) => _(
|
|
2478
|
+
row: (ct) => _(no, Z(ct, Dl), {
|
|
2479
2479
|
row: t.row,
|
|
2480
2480
|
cell: (le) => {
|
|
2481
2481
|
let xe;
|
|
@@ -2488,7 +2488,7 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2488
2488
|
}), null);
|
|
2489
2489
|
}
|
|
2490
2490
|
}),
|
|
2491
|
-
header: (ct) => _(
|
|
2491
|
+
header: (ct) => _(fo, Z(ct, Pl), {
|
|
2492
2492
|
header: t.header,
|
|
2493
2493
|
cell: (le) => {
|
|
2494
2494
|
let xe;
|
|
@@ -2501,54 +2501,54 @@ const xn = "ElTableV2", Rn = we({
|
|
|
2501
2501
|
}), null);
|
|
2502
2502
|
}
|
|
2503
2503
|
})
|
|
2504
|
-
}, $l = [e.class,
|
|
2505
|
-
[
|
|
2504
|
+
}, $l = [e.class, n.b(), n.e("root"), {
|
|
2505
|
+
[n.is("dynamic")]: o(S)
|
|
2506
2506
|
}], Wl = {
|
|
2507
|
-
class:
|
|
2508
|
-
style:
|
|
2507
|
+
class: n.e("footer"),
|
|
2508
|
+
style: o(R)
|
|
2509
2509
|
};
|
|
2510
2510
|
return _("div", {
|
|
2511
2511
|
class: $l,
|
|
2512
|
-
style:
|
|
2513
|
-
}, [_(
|
|
2512
|
+
style: o(D)
|
|
2513
|
+
}, [_(Kn, ae, Ke(ue) ? ue : {
|
|
2514
2514
|
default: () => [ue]
|
|
2515
|
-
}), _(
|
|
2515
|
+
}), _(Un, ke, Ke(ue) ? ue : {
|
|
2516
2516
|
default: () => [ue]
|
|
2517
|
-
}), _(
|
|
2517
|
+
}), _(Zn, Ll, Ke(ue) ? ue : {
|
|
2518
2518
|
default: () => [ue]
|
|
2519
|
-
}), t.footer && _(
|
|
2519
|
+
}), t.footer && _(wo, Wl, {
|
|
2520
2520
|
default: t.footer
|
|
2521
|
-
}),
|
|
2522
|
-
class:
|
|
2523
|
-
style:
|
|
2521
|
+
}), o(A) && _(bo, {
|
|
2522
|
+
class: n.e("empty"),
|
|
2523
|
+
style: o(O)
|
|
2524
2524
|
}, {
|
|
2525
2525
|
default: t.empty
|
|
2526
|
-
}), t.overlay && _(
|
|
2527
|
-
class:
|
|
2526
|
+
}), t.overlay && _(So, {
|
|
2527
|
+
class: n.e("overlay")
|
|
2528
2528
|
}, {
|
|
2529
2529
|
default: t.overlay
|
|
2530
2530
|
})]);
|
|
2531
2531
|
};
|
|
2532
2532
|
}
|
|
2533
2533
|
});
|
|
2534
|
-
var
|
|
2535
|
-
const
|
|
2534
|
+
var To = Ro;
|
|
2535
|
+
const Eo = se({
|
|
2536
2536
|
disableWidth: Boolean,
|
|
2537
2537
|
disableHeight: Boolean,
|
|
2538
2538
|
onResize: {
|
|
2539
2539
|
type: I(Function)
|
|
2540
2540
|
}
|
|
2541
|
-
}),
|
|
2542
|
-
const t = V(), l = V(0),
|
|
2541
|
+
}), Co = (e) => {
|
|
2542
|
+
const t = V(), l = V(0), n = V(0);
|
|
2543
2543
|
let a;
|
|
2544
2544
|
return st(() => {
|
|
2545
2545
|
a = jl(t, ([r]) => {
|
|
2546
2546
|
const { width: s, height: i } = r.contentRect, { paddingLeft: v, paddingRight: f, paddingTop: d, paddingBottom: w } = getComputedStyle(r.target), b = Number.parseInt(v) || 0, g = Number.parseInt(f) || 0, y = Number.parseInt(d) || 0, u = Number.parseInt(w) || 0;
|
|
2547
|
-
l.value = s - b - g,
|
|
2547
|
+
l.value = s - b - g, n.value = i - y - u;
|
|
2548
2548
|
}).stop;
|
|
2549
|
-
}),
|
|
2549
|
+
}), ol(() => {
|
|
2550
2550
|
a == null || a();
|
|
2551
|
-
}), Me([l,
|
|
2551
|
+
}), Me([l, n], ([r, s]) => {
|
|
2552
2552
|
var i;
|
|
2553
2553
|
(i = e.onResize) == null || i.call(e, {
|
|
2554
2554
|
width: r,
|
|
@@ -2557,19 +2557,19 @@ const En = se({
|
|
|
2557
2557
|
}), {
|
|
2558
2558
|
sizer: t,
|
|
2559
2559
|
width: l,
|
|
2560
|
-
height:
|
|
2560
|
+
height: n
|
|
2561
2561
|
};
|
|
2562
|
-
},
|
|
2562
|
+
}, _o = we({
|
|
2563
2563
|
name: "ElAutoResizer",
|
|
2564
|
-
props:
|
|
2564
|
+
props: Eo,
|
|
2565
2565
|
setup(e, {
|
|
2566
2566
|
slots: t
|
|
2567
2567
|
}) {
|
|
2568
2568
|
const l = _e("auto-resizer"), {
|
|
2569
|
-
height:
|
|
2569
|
+
height: n,
|
|
2570
2570
|
width: a,
|
|
2571
2571
|
sizer: r
|
|
2572
|
-
} =
|
|
2572
|
+
} = Co(e), s = {
|
|
2573
2573
|
width: "100%",
|
|
2574
2574
|
height: "100%"
|
|
2575
2575
|
};
|
|
@@ -2580,18 +2580,18 @@ const En = se({
|
|
|
2580
2580
|
class: l.b(),
|
|
2581
2581
|
style: s
|
|
2582
2582
|
}, [(i = t.default) == null ? void 0 : i.call(t, {
|
|
2583
|
-
height:
|
|
2583
|
+
height: n.value,
|
|
2584
2584
|
width: a.value
|
|
2585
2585
|
})]);
|
|
2586
2586
|
};
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
2589
|
-
var
|
|
2590
|
-
const
|
|
2591
|
-
const
|
|
2589
|
+
var po = _o;
|
|
2590
|
+
const Ho = ll(To), Mo = ll(po);
|
|
2591
|
+
const Io = {
|
|
2592
2592
|
key: 0,
|
|
2593
2593
|
class: "footer-box"
|
|
2594
|
-
},
|
|
2594
|
+
}, Ao = {
|
|
2595
2595
|
__name: "index",
|
|
2596
2596
|
props: /* @__PURE__ */ $t({
|
|
2597
2597
|
tableData: {
|
|
@@ -2620,7 +2620,7 @@ const In = {
|
|
|
2620
2620
|
setup(e, {
|
|
2621
2621
|
emit: t
|
|
2622
2622
|
}) {
|
|
2623
|
-
const l = t,
|
|
2623
|
+
const l = t, n = e, a = T(() => ({
|
|
2624
2624
|
// 表格头高度 支持: Number/Array<Number>
|
|
2625
2625
|
headerHeight: 50,
|
|
2626
2626
|
// 行高度
|
|
@@ -2632,7 +2632,7 @@ const In = {
|
|
|
2632
2632
|
// 选中行唯一Key
|
|
2633
2633
|
pageUpDownEnabled: !0,
|
|
2634
2634
|
// 是否开启键盘pageUp, pageDown切换选中功能
|
|
2635
|
-
...
|
|
2635
|
+
...n.config
|
|
2636
2636
|
})), r = V(null), s = V(0);
|
|
2637
2637
|
let i = 0, v = !1, f = null;
|
|
2638
2638
|
const d = Jl(e, "tableActiveData"), w = T(() => d.value.map((h) => h[a.value.tableActiveKey])), b = ({
|
|
@@ -2641,25 +2641,25 @@ const In = {
|
|
|
2641
2641
|
}) => {
|
|
2642
2642
|
const {
|
|
2643
2643
|
tableActiveNum: S,
|
|
2644
|
-
tableActiveKey:
|
|
2644
|
+
tableActiveKey: p
|
|
2645
2645
|
} = a.value;
|
|
2646
|
-
if (w.value.includes(h[
|
|
2646
|
+
if (w.value.includes(h[p]))
|
|
2647
2647
|
return;
|
|
2648
2648
|
const M = Math.floor(m / S) * S, x = M + S;
|
|
2649
|
-
d.value =
|
|
2649
|
+
d.value = n.tableData.slice(M, x);
|
|
2650
2650
|
}, g = ({
|
|
2651
2651
|
code: h
|
|
2652
2652
|
}) => {
|
|
2653
2653
|
const {
|
|
2654
2654
|
tableData: m
|
|
2655
|
-
} =
|
|
2655
|
+
} = n, {
|
|
2656
2656
|
tableActiveNum: S,
|
|
2657
|
-
tableActiveKey:
|
|
2657
|
+
tableActiveKey: p,
|
|
2658
2658
|
pageUpDownEnabled: M
|
|
2659
2659
|
} = a.value;
|
|
2660
2660
|
if (!m.length || !M)
|
|
2661
2661
|
return;
|
|
2662
|
-
const x = m.findIndex((R) => R[
|
|
2662
|
+
const x = m.findIndex((R) => R[p] === w.value.at(0)), O = m.findIndex((R) => R[p] === w.value.at(-1));
|
|
2663
2663
|
let D = null, F = null;
|
|
2664
2664
|
switch (h) {
|
|
2665
2665
|
case "PageUp":
|
|
@@ -2676,7 +2676,7 @@ const In = {
|
|
|
2676
2676
|
}, y = (h) => {
|
|
2677
2677
|
v || (i === h.scrollLeft && h.yAxisScrollDir === "backward" && (s.value = 0), i = h.scrollLeft);
|
|
2678
2678
|
}, u = (h, m) => {
|
|
2679
|
-
h !== null && (clearTimeout(f), v = !0, m === "PageUp" ? s.value = 0 : h >=
|
|
2679
|
+
h !== null && (clearTimeout(f), v = !0, m === "PageUp" ? s.value = 0 : h >= n.tableData.length - 1 && (s.value = 30, l("touchBottom")), Pe(() => {
|
|
2680
2680
|
r.value.scrollToRow(h), r.value.scrollToLeft(i), f = setTimeout(() => {
|
|
2681
2681
|
v = !1;
|
|
2682
2682
|
}, 500);
|
|
@@ -2694,12 +2694,12 @@ const In = {
|
|
|
2694
2694
|
};
|
|
2695
2695
|
return st(() => {
|
|
2696
2696
|
window.addEventListener("keydown", g);
|
|
2697
|
-
}), Me(() =>
|
|
2697
|
+
}), Me(() => n.tableLoading, (h) => {
|
|
2698
2698
|
h || (s.value = 0);
|
|
2699
2699
|
}), Ql(() => {
|
|
2700
2700
|
window.removeEventListener("keydown", g);
|
|
2701
2701
|
}), (h, m) => {
|
|
2702
|
-
const S =
|
|
2702
|
+
const S = nl, p = Ul, M = Bl, x = Ho, O = Mo;
|
|
2703
2703
|
return Je(), dt(O, null, {
|
|
2704
2704
|
default: Ne(({
|
|
2705
2705
|
height: D,
|
|
@@ -2730,10 +2730,10 @@ const In = {
|
|
|
2730
2730
|
height: "100%"
|
|
2731
2731
|
}
|
|
2732
2732
|
})]),
|
|
2733
|
-
footer: Ne(() => [s.value ? (Je(),
|
|
2733
|
+
footer: Ne(() => [s.value ? (Je(), en("div", Io, [e.tableLoading === "more" ? (Je(), dt(M, {
|
|
2734
2734
|
key: 0
|
|
2735
2735
|
}, {
|
|
2736
|
-
default: Ne(() => [_(
|
|
2736
|
+
default: Ne(() => [_(p, {
|
|
2737
2737
|
type: "primary",
|
|
2738
2738
|
text: "",
|
|
2739
2739
|
loading: ""
|
|
@@ -2755,11 +2755,11 @@ const In = {
|
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
2757
|
};
|
|
2758
|
-
const
|
|
2758
|
+
const Oo = /* @__PURE__ */ dn(Ao, [["__scopeId", "data-v-7e702a8a"]]), Xo = {
|
|
2759
2759
|
install(e) {
|
|
2760
|
-
e.component("st-virtualTable",
|
|
2760
|
+
e.component("st-virtualTable", Oo);
|
|
2761
2761
|
}
|
|
2762
2762
|
};
|
|
2763
2763
|
export {
|
|
2764
|
-
|
|
2764
|
+
Xo as default
|
|
2765
2765
|
};
|