holyes-table 1.0.22 → 1.0.24
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/README.md +2 -1
- package/dist/index.mjs +347 -347
- package/dist/lib/pretextTable/hook/useCheckbox.d.ts +1 -0
- package/dist/lib/pretextTable/pretextTable.vue.d.ts +1 -0
- package/dist/lib/pretextTable/type.d.ts +10 -0
- package/dist/lib/pretextTable/useHolyesTable.d.ts +2 -0
- package/package.json +1 -1
- package/skills/holyes-table/SKILL.md +8 -1
- package//346/233/264/346/226/260/346/227/245/345/277/227.md +8 -0
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, onActivated as d, onDeactivated as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, renderList as _, renderSlot as v, shallowRef as y, toDisplayString as b, toRaw as x, unref as S, vShow as C, watch as w, withCtx as T, withDirectives as E, withKeys as ee, withModifiers as D } from "vue";
|
|
2
|
-
import { VxeButton as O, VxeCheckbox as k, VxeCheckboxGroup as te, VxeIcon as A, VxeInput as
|
|
3
|
-
import
|
|
2
|
+
import { VxeButton as O, VxeCheckbox as k, VxeCheckboxGroup as te, VxeIcon as A, VxeInput as j, VxeLoading as ne, VxeNumberInput as re, VxeRadioGroup as M, VxeSwitch as ie, VxeTag as ae } from "vxe-pc-ui";
|
|
3
|
+
import N, { debounce as oe, isNaN as P, orderBy as se, toArrayTree as F } from "xe-utils";
|
|
4
4
|
//#region lib/pretextTable/worker/pretextTableGetItemHeight.ts?worker&inline
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var ce = "(function(){let e=e=>{let t=0;switch(!0){case!e:case typeof e!=`string`:return t;default:break}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r==64||r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55215?t+=2:t+=1}return t};self.onmessage=t=>{let{tempData:n,commonStyles:r,itemStyles:i,divLineHeight:a,cellMinHeight:o,keyNames:s,isNoAutoWrap:c,columns:l,treeConfig:u,defaultTreeConfig:d}=t.data,f=0;performance.mark(`start`);let p=new OffscreenCanvas(1,1).getContext(`2d`);p.font=`${i.fontWeight} ${i.fontSize}/${a} ${r?.fontFamily}`;function m(e){return p.measureText(e).width}function h(e,t,n){let r=m(e),o=i.paddingLeft.replace(`px`,``);return o=Number(o||0),Math.ceil((r+o)/t)*a+n}let g=[],_=new Map,v=e=>{e.slots?.default&&!e.slots?.defaultHeight&&(_.has(e.field)||(console.error(`表格设置了插槽,插槽高度defaultHeight不能为空,否则会导致高度计算错误`,e.field),_.set(e.field,1))),(e.slots.defaultType==`tag`||e.slots.defaultType==`buttons`)&&(e.slots.defaultHeight||(e.slots.defaultHeight=30))},y=u?.childrenField||d.childrenField,b=(t,n)=>{t[y]?.length&&t[y].forEach(e=>{b(e,n+1)});let r=o,i=[],p=0;if(c)for(let e of l)v(e),p=Math.max(p,e.slots?.defaultHeight||0),r=Math.max(r,a);else{for(let r of l){(r.slots?.default||r.slots?.defaultType)&&(v(r),p=Math.max(p,r.slots?.defaultHeight||0));let a=Math.max(r.minWidth||30,r.width||0),o=t[r.field]||``;r.treeNode&&u?.isOpenTree&&(u?.showIcon&&(o+=`图`),u?.indent&&(a-=(u?.indent||d.indent||20)*n));let s=e(o)/a;testLength:for(let e=0;e<3;e++)if((i[e]?.density||0)<s){i[e]={field:r.field,tempWidth:a,density:s,tempText:o};break testLength}}for(let e of i){let t=e.tempWidth,n=h(e.tempText,t,0);r=Math.max(r,n)}}g.push({pretextHeight:Math.max(r,p)+1,id:t[s.id]}),n==0&&(f+=Math.max(r,p)+1)};for(let e of n)b(e,0);performance.mark(`end`),self.postMessage({tempItemHeights:f,heightDatas:g}),self.close()}})();", le = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", ce], { type: "text/javascript;charset=utf-8" });
|
|
6
|
+
function ue(e) {
|
|
7
7
|
let t;
|
|
8
8
|
try {
|
|
9
|
-
if (t =
|
|
9
|
+
if (t = le && (self.URL || self.webkitURL).createObjectURL(le), !t) throw "";
|
|
10
10
|
let n = new Worker(t, { name: e?.name });
|
|
11
11
|
return n.addEventListener("error", () => {
|
|
12
12
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
13
13
|
}), n;
|
|
14
14
|
} catch {
|
|
15
|
-
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
15
|
+
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(ce), { name: e?.name });
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region lib/pretextTable/hook/useHeader.ts
|
|
20
|
-
function
|
|
20
|
+
function de(e) {
|
|
21
21
|
let { pretextTableRef: t } = e, n = g(0), r = {
|
|
22
22
|
fontWeight: "600",
|
|
23
23
|
fontSize: "14px"
|
|
@@ -68,7 +68,7 @@ function fe(e) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region lib/pretextTable/hook/useGridStyles.ts
|
|
71
|
-
var
|
|
71
|
+
var fe = (e) => {
|
|
72
72
|
let t = g([]), n = g([]), r = g(-1), i = g(-1), a = g("");
|
|
73
73
|
return {
|
|
74
74
|
fixedColumnsLeft: t,
|
|
@@ -93,7 +93,7 @@ var pe = (e) => {
|
|
|
93
93
|
a.value = o, t.value = s, n.value = c, r.value = l, i.value = u;
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, I = {
|
|
97
97
|
id: "pretextId",
|
|
98
98
|
seq: "pretextSeq",
|
|
99
99
|
stripe: "pretextStripe",
|
|
@@ -108,7 +108,7 @@ var pe = (e) => {
|
|
|
108
108
|
expandChildren: "pretextExpandChildren",
|
|
109
109
|
parentRow: "pretextParentRow",
|
|
110
110
|
checkedIndeterminate: "pretextCheckedIndeterminate_"
|
|
111
|
-
},
|
|
111
|
+
}, L = {
|
|
112
112
|
isOpenTree: !1,
|
|
113
113
|
transform: !0,
|
|
114
114
|
idField: "id",
|
|
@@ -123,141 +123,141 @@ var pe = (e) => {
|
|
|
123
123
|
};
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region lib/pretextTable/hook/useCheckbox.ts
|
|
126
|
-
function
|
|
127
|
-
let { columns: t, blurAnyElement: n, nowDataSource: r, baseDataSource: i,
|
|
128
|
-
|
|
129
|
-
for (let e of t.value) e.type == "checkbox" &&
|
|
130
|
-
return
|
|
131
|
-
},
|
|
126
|
+
function pe(e) {
|
|
127
|
+
let { columns: t, blurAnyElement: n, nowDataSource: r, baseDataSource: i, baseDataMap: a, emits: o, treeConfig: s } = e, c = s?.isOpenTree ?? L.isOpenTree, l = I.filterChildren, u = s?.childrenField ?? L.childrenField, d = s?.checkStrictly ?? L.checkStrictly, f = [], p = () => {
|
|
128
|
+
f = [];
|
|
129
|
+
for (let e of t.value) e.type == "checkbox" && f.push(e.field);
|
|
130
|
+
return f;
|
|
131
|
+
}, m = g({}), h = g({}), _ = (e) => {
|
|
132
132
|
switch (n(), !0) {
|
|
133
|
-
case
|
|
134
|
-
case !
|
|
135
|
-
|
|
133
|
+
case h.value[e] == 1:
|
|
134
|
+
case !m.value[e]:
|
|
135
|
+
m.value[e] = !0, h.value[e] = !1, d ? b(r.value, !0, e) : x(r.value, !0, e);
|
|
136
136
|
break;
|
|
137
137
|
default:
|
|
138
|
-
|
|
138
|
+
m.value[e] = !1, h.value[e] = !1, d ? b(r.value, !1, e) : x(r.value, !1, e);
|
|
139
139
|
break;
|
|
140
140
|
}
|
|
141
|
-
|
|
142
|
-
},
|
|
141
|
+
o("checkboxAll");
|
|
142
|
+
}, v = (e) => {
|
|
143
143
|
let t = {}, n = [];
|
|
144
|
-
if (e ? n.push(e) : n =
|
|
145
|
-
for (let e of r.value) for (let r of n) e[
|
|
144
|
+
if (e ? n.push(e) : n = p(), d) {
|
|
145
|
+
for (let e of r.value) for (let r of n) e[I.checkedIndeterminate + r] && (t[r + "indeterminateCount"] = (t[r + "indeterminateCount"] || 0) + 1), e[r] && (t[r + "checkedCount"] = (t[r + "checkedCount"] || 0) + 1);
|
|
146
146
|
for (let e of n) {
|
|
147
147
|
let n = t[e + "checkedCount"] || 0, i = t[e + "indeterminateCount"] || 0;
|
|
148
148
|
switch (!0) {
|
|
149
149
|
case n == 0 && i == 0:
|
|
150
|
-
|
|
150
|
+
h.value[e] = !1, m.value[e] = !1;
|
|
151
151
|
break;
|
|
152
152
|
case n == r.value.length && i == 0:
|
|
153
|
-
|
|
153
|
+
h.value[e] = !1, m.value[e] = !0;
|
|
154
154
|
break;
|
|
155
155
|
default:
|
|
156
|
-
|
|
156
|
+
h.value[e] = !0, m.value[e] = !1;
|
|
157
157
|
break;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
} else {
|
|
161
161
|
let e = (n, r) => {
|
|
162
|
-
if (t[r + "allCount"] = (t[r + "allCount"] || 0) + 1, n[r] && (t[r + "checkedCount"] = (t[r + "checkedCount"] || 0) + 1), n?.[
|
|
163
|
-
else if (n?.[
|
|
162
|
+
if (t[r + "allCount"] = (t[r + "allCount"] || 0) + 1, n[r] && (t[r + "checkedCount"] = (t[r + "checkedCount"] || 0) + 1), n?.[l]?.length) for (let t of n[l]) e(t, r);
|
|
163
|
+
else if (n?.[u]?.length) for (let t of n[u]) e(t, r);
|
|
164
164
|
};
|
|
165
165
|
for (let t of r.value) for (let r of n) e(t, r);
|
|
166
166
|
for (let e of n) {
|
|
167
167
|
let n = t[e + "checkedCount"] || 0, r = t[e + "allCount"] || 0;
|
|
168
168
|
switch (!0) {
|
|
169
169
|
case n == 0:
|
|
170
|
-
|
|
170
|
+
h.value[e] = !1, m.value[e] = !1;
|
|
171
171
|
break;
|
|
172
172
|
case n == r:
|
|
173
|
-
|
|
173
|
+
h.value[e] = !1, m.value[e] = !0;
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
176
|
-
|
|
176
|
+
h.value[e] = !0, m.value[e] = !1;
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
if (!
|
|
183
|
-
let n = t ??
|
|
181
|
+
}, y = (e, t) => {
|
|
182
|
+
if (!c || !d) return;
|
|
183
|
+
let n = t ?? f[0];
|
|
184
184
|
if (!e) return;
|
|
185
|
-
let r = e?.[
|
|
186
|
-
e?.[
|
|
187
|
-
let
|
|
185
|
+
let r = a.get(e?.[I.parentRow]) || null, i = [];
|
|
186
|
+
e?.[l]?.length ? i = e[l] : e?.[u]?.length && (i = e[u]);
|
|
187
|
+
let o = 0, s = 0;
|
|
188
188
|
if (i.length) {
|
|
189
|
-
for (let e of i) e[n] &&
|
|
189
|
+
for (let e of i) e[n] && o++, e[I.checkedIndeterminate + n] && s++;
|
|
190
190
|
switch (!0) {
|
|
191
|
-
case
|
|
192
|
-
e[n] = !1, e[
|
|
191
|
+
case o == 0 && s == 0:
|
|
192
|
+
e[n] = !1, e[I.checkedIndeterminate + n] = !1;
|
|
193
193
|
break;
|
|
194
|
-
case
|
|
195
|
-
e[n] = !0, e[
|
|
194
|
+
case o == i.length && s == 0:
|
|
195
|
+
e[n] = !0, e[I.checkedIndeterminate + n] = !1;
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
e[n] = !1, e[
|
|
198
|
+
e[n] = !1, e[I.checkedIndeterminate + n] = !0;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
}, y = (e, t, n) => {
|
|
204
|
-
let r = n ?? d[0];
|
|
205
|
-
for (let n of e) n[r] = t, n[F.checkedIndeterminate + r] = !1, s && u && (n[c]?.length ? y(n[c], t, r) : n[l]?.length && y(n[l], t, r));
|
|
202
|
+
y(r, n);
|
|
206
203
|
}, b = (e, t, n) => {
|
|
207
|
-
let r = n ??
|
|
208
|
-
for (let n of e) n[r] = t, n[
|
|
204
|
+
let r = n ?? f[0];
|
|
205
|
+
for (let n of e) n[r] = t, n[I.checkedIndeterminate + r] = !1, c && d && (n[l]?.length ? b(n[l], t, r) : n[u]?.length && b(n[u], t, r));
|
|
206
|
+
}, x = (e, t, n) => {
|
|
207
|
+
let r = n ?? f[0];
|
|
208
|
+
for (let n of e) n[r] = t, n[I.checkedIndeterminate + r] = !1, c && (n[l]?.length ? x(n[l], t, r) : n[u]?.length && x(n[u], t, r));
|
|
209
209
|
};
|
|
210
210
|
return {
|
|
211
|
-
getCheckField:
|
|
212
|
-
headerChecked:
|
|
213
|
-
headerCheckedIndeterminate:
|
|
214
|
-
onHeaderChecked:
|
|
215
|
-
upDataHeaderChecked:
|
|
211
|
+
getCheckField: p,
|
|
212
|
+
headerChecked: m,
|
|
213
|
+
headerCheckedIndeterminate: h,
|
|
214
|
+
onHeaderChecked: _,
|
|
215
|
+
upDataHeaderChecked: v,
|
|
216
216
|
upDataAllRowCheckedDeep: () => {
|
|
217
|
-
if (
|
|
217
|
+
if (d) {
|
|
218
218
|
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
219
219
|
let r = [];
|
|
220
|
-
if (n?.[
|
|
220
|
+
if (n?.[l]?.length ? r = n[l] : n?.[u]?.length && (r = n[u]), r.length) for (let e of r) t(e);
|
|
221
221
|
else {
|
|
222
|
-
let t = n?.[
|
|
223
|
-
t && e.set(t[
|
|
222
|
+
let t = a.get(n?.[I.parentRow]) || null;
|
|
223
|
+
t && e.set(t[I.id], t);
|
|
224
224
|
}
|
|
225
225
|
}, n = r.value;
|
|
226
226
|
for (let e of n) t(e);
|
|
227
227
|
e.forEach((e) => {
|
|
228
|
-
for (let t of
|
|
228
|
+
for (let t of f) y(e, t);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
v(void 0);
|
|
232
232
|
},
|
|
233
233
|
onCellChecked: (t, n) => {
|
|
234
234
|
e.blurAnyElement();
|
|
235
|
-
let r = n ??
|
|
236
|
-
t[r] ?
|
|
235
|
+
let r = n ?? f[0];
|
|
236
|
+
t[r] ? b([t], !1, r) : b([t], !0, r), y(t, r), v(r), o("checkboxChange", {
|
|
237
237
|
row: t,
|
|
238
238
|
checked: t[r],
|
|
239
239
|
field: r
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
242
|
getCheckboxRecords: (e, t) => {
|
|
243
|
-
let n = t ??
|
|
244
|
-
if (a = e ? i.value : r.value, !
|
|
245
|
-
let o = [],
|
|
243
|
+
let n = t ?? f[0], a = [];
|
|
244
|
+
if (a = e ? i.value : r.value, !c) return a.filter((e) => e[n]);
|
|
245
|
+
let o = [], s = (t) => {
|
|
246
246
|
if (t[n] && o.push(t), e) {
|
|
247
|
-
if (t[
|
|
248
|
-
} else if (t[
|
|
247
|
+
if (t[u]?.length) for (let e of t[u]) s(e);
|
|
248
|
+
} else if (t[l]?.length) for (let e of t[l]) s(e);
|
|
249
249
|
};
|
|
250
|
-
for (let e of a)
|
|
250
|
+
for (let e of a) s(e);
|
|
251
251
|
return o;
|
|
252
252
|
},
|
|
253
253
|
clearCheckboxRowInit: () => {
|
|
254
|
-
|
|
254
|
+
m.value = {}, h.value = {};
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region lib/pretextTable/hook/useSort.ts
|
|
260
|
-
function
|
|
260
|
+
function me(e) {
|
|
261
261
|
let { nowDataSource: t, getVisibleData: n, setNowDataSource: r, treeConfig: i, defaultTreeConfig: a, columns: o } = e, s = g(""), c = "", l = g(null), u = (e, t) => {
|
|
262
262
|
let n = o?.value || [];
|
|
263
263
|
c = "";
|
|
@@ -283,7 +283,7 @@ function L(e) {
|
|
|
283
283
|
else t === l.value && e === s.value ? (l.value = null, s.value = "", c = "") : (l.value = t, s.value = e);
|
|
284
284
|
f();
|
|
285
285
|
}, d = (e, t, n) => {
|
|
286
|
-
let r =
|
|
286
|
+
let r = se(e, [[(e) => P(Number(e[t])) ? e[t] || "" : Number(e[t]), n]]);
|
|
287
287
|
if (i?.isOpenTree) {
|
|
288
288
|
let e = i?.childrenField || a?.childrenField;
|
|
289
289
|
for (let i of r) {
|
|
@@ -293,7 +293,7 @@ function L(e) {
|
|
|
293
293
|
}
|
|
294
294
|
return r;
|
|
295
295
|
}, f = () => {
|
|
296
|
-
l.value === null ? r(d(t.value,
|
|
296
|
+
l.value === null ? r(d(t.value, I.index, "asc")) : r(d(t.value, c, l.value)), n();
|
|
297
297
|
};
|
|
298
298
|
return {
|
|
299
299
|
sortField: s,
|
|
@@ -459,14 +459,14 @@ function he(e) {
|
|
|
459
459
|
let e = w(r, t);
|
|
460
460
|
e.isFind && (i.push(e.newRow), n = !0);
|
|
461
461
|
}
|
|
462
|
-
return r[
|
|
462
|
+
return r[I.filterChildren] = i, {
|
|
463
463
|
isFind: n,
|
|
464
464
|
newRow: r
|
|
465
465
|
};
|
|
466
466
|
}, T = (e) => {
|
|
467
467
|
let t = s.childrenField || c.childrenField;
|
|
468
468
|
if (e[t]?.length) for (let n of e[t]) T(n);
|
|
469
|
-
e[
|
|
469
|
+
e[I.filterChildren] = [];
|
|
470
470
|
}, E = () => {
|
|
471
471
|
let e = [];
|
|
472
472
|
baseDataSourceFor: for (let t of n.value) {
|
|
@@ -580,15 +580,15 @@ var ge = (e) => {
|
|
|
580
580
|
case i?.type === "合计":
|
|
581
581
|
let n = t[e], r = 0;
|
|
582
582
|
if (o.get(e) || []) {
|
|
583
|
-
switch (r = Number(i.data) +
|
|
583
|
+
switch (r = Number(i.data) + N.toNumber(n), i?.dataType) {
|
|
584
584
|
case "number0":
|
|
585
|
-
r =
|
|
585
|
+
r = N.toFixed(r, 0);
|
|
586
586
|
break;
|
|
587
587
|
case "number1":
|
|
588
|
-
r =
|
|
588
|
+
r = N.toFixed(r, 1);
|
|
589
589
|
break;
|
|
590
590
|
case "number2":
|
|
591
|
-
r =
|
|
591
|
+
r = N.toFixed(r, 2);
|
|
592
592
|
break;
|
|
593
593
|
default: break;
|
|
594
594
|
}
|
|
@@ -623,42 +623,42 @@ var ge = (e) => {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}, ve = (e) => {
|
|
626
|
-
let { treeConfig: t, afterTreeExpand: n, insertChild: r } = e, i = t?.idField ||
|
|
627
|
-
let r = t?.childrenField ||
|
|
628
|
-
for (let t of e) s.get(t[i]) && (t[
|
|
626
|
+
let { treeConfig: t, afterTreeExpand: n, insertChild: r } = e, i = t?.idField || L.idField, a = t?.parentField || L.parentField, o = t?.childrenField || L.childrenField, s = /* @__PURE__ */ new Map(), c = (e, n = !1) => {
|
|
627
|
+
let r = t?.childrenField || L.childrenField, i = t?.idField || I.id || "";
|
|
628
|
+
for (let t of e) s.get(t[i]) && (t[I.isCollapsed] = !0), n && t[r]?.length && c(t[r], !0);
|
|
629
629
|
};
|
|
630
630
|
return {
|
|
631
|
-
defaultTreeConfig:
|
|
631
|
+
defaultTreeConfig: L,
|
|
632
632
|
treeExpandMap: s,
|
|
633
633
|
handleTree: (e) => {
|
|
634
634
|
if (t?.reserve ? t?.idField || (console.error("当前设置了treeConfig.reserve, 请设置idField, 用于保留展开状态"), s.clear()) : s.clear(), !t?.isOpenTree) return e;
|
|
635
635
|
let n = e;
|
|
636
636
|
if (t?.transform) t?.reserve && c(n, !1);
|
|
637
637
|
else return t?.reserve && c(n, !0), n;
|
|
638
|
-
n =
|
|
638
|
+
n = F(n, {
|
|
639
639
|
key: i,
|
|
640
640
|
parentKey: a,
|
|
641
641
|
children: o
|
|
642
642
|
});
|
|
643
643
|
let r = (e) => {
|
|
644
644
|
let t = e?.[o] || [];
|
|
645
|
-
for (let n of t) n[
|
|
645
|
+
for (let n of t) n[I.parentRow] = e[I.id], r(n);
|
|
646
646
|
};
|
|
647
647
|
for (let e of n) r(e);
|
|
648
648
|
return n;
|
|
649
649
|
},
|
|
650
650
|
setTreeExpand: async (e, i) => {
|
|
651
|
-
let a = t?.hasChildField ||
|
|
652
|
-
for (let n of e) if (n[
|
|
651
|
+
let a = t?.hasChildField || L.hasChildField, o = t?.childrenField || L.childrenField, c = t?.idField || I.id;
|
|
652
|
+
for (let n of e) if (n[I.isCollapsed] = i, i) {
|
|
653
653
|
if (s.set(n[c], n), t?.lazy && n[a] && !n[o]?.length) {
|
|
654
|
-
n[
|
|
654
|
+
n[I.lazyLoading] = !0;
|
|
655
655
|
try {
|
|
656
656
|
let e = await t?.loadMethod?.({ row: n }) || [];
|
|
657
657
|
Array.isArray(e) || (console.warn("懒加载loadMethod 返回的不是数组", e), e = []), await r(e, n);
|
|
658
658
|
} catch (e) {
|
|
659
659
|
console.error("加载子节点失败", n, e);
|
|
660
660
|
} finally {
|
|
661
|
-
n[
|
|
661
|
+
n[I.lazyLoading] = !1;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
} else s.delete(n[c]);
|
|
@@ -691,11 +691,11 @@ var ge = (e) => {
|
|
|
691
691
|
}
|
|
692
692
|
},
|
|
693
693
|
setRowExpand: (e, t) => {
|
|
694
|
-
for (let n of e) n[
|
|
694
|
+
for (let n of e) n[I.isRowExpanded] = t, t ? (a.set(n[I.id], n), r(n)) : a.delete(n[I.id]);
|
|
695
695
|
n(e, t);
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
},
|
|
698
|
+
}, z = (e) => {
|
|
699
699
|
let t = y([]), n = y([]), r = g(), i = g(), a = g(0), o = g(0), s = g(!1);
|
|
700
700
|
w(() => e.props.loading, (e) => {
|
|
701
701
|
s.value = e;
|
|
@@ -706,27 +706,27 @@ var ge = (e) => {
|
|
|
706
706
|
}, 0);
|
|
707
707
|
}, u = (e) => {
|
|
708
708
|
i.value?.scrollTo(e);
|
|
709
|
-
}, m =
|
|
710
|
-
|
|
711
|
-
let n = 1, r = !1, i = 0, a = e.props.treeConfig?.childrenField ||
|
|
712
|
-
if (
|
|
709
|
+
}, m = /* @__PURE__ */ new Map(), h = y([]), _ = y([]), v = [], b = /* @__PURE__ */ new Map(), S = (t) => {
|
|
710
|
+
b.clear(), _.value = t, v = [], ne();
|
|
711
|
+
let n = 1, r = !1, i = 0, a = e.props.treeConfig?.childrenField || Y.childrenField, o = (t, n, r) => {
|
|
712
|
+
if (v.push(t), t[I.level] = r, e.props.treeConfig?.isOpenTree) {
|
|
713
713
|
let e = t?.[a] || [];
|
|
714
|
-
if (t?.[
|
|
714
|
+
if (t?.[I.filterChildren]?.length > 0 && (e = t[I.filterChildren]), e.length > 0 && t[I.isCollapsed]) {
|
|
715
715
|
let t = 1;
|
|
716
|
-
for (let i of e) i[
|
|
716
|
+
for (let i of e) i[I.stripe] = !1, i[I.seq] = n + "." + t, t++, o(i, i[I.seq], r + 1);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
if (e.props.expandConfig?.isExpand && t[
|
|
719
|
+
if (e.props.expandConfig?.isExpand && t[I.expandChildren]?.length > 0 && t[I.isRowExpanded]) for (let e of t[I.expandChildren]) v.push(e);
|
|
720
720
|
};
|
|
721
|
-
for (let e of
|
|
721
|
+
for (let e of _.value) e[I.seq] = n, o(e, `${n}`, 1), n++, e[I.stripe] = r, r = !r;
|
|
722
722
|
let s = 1;
|
|
723
|
-
for (let e of
|
|
723
|
+
for (let e of v) i += e[I.height] || 0, b.set(s, {
|
|
724
724
|
totalHeight: i,
|
|
725
725
|
row: e
|
|
726
726
|
}), s++;
|
|
727
|
-
},
|
|
727
|
+
}, C = async (n, r) => {
|
|
728
728
|
let i = null;
|
|
729
|
-
i = typeof r == "string" ?
|
|
729
|
+
i = typeof r == "string" ? m.get(r) : r, Z(n);
|
|
730
730
|
let a = [];
|
|
731
731
|
for (let e of t.value) {
|
|
732
732
|
let t = x(e);
|
|
@@ -744,68 +744,68 @@ var ge = (e) => {
|
|
|
744
744
|
treeNode: t.treeNode || !1
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
let o = await
|
|
747
|
+
let o = await L({
|
|
748
748
|
tempData: n,
|
|
749
749
|
index: 0,
|
|
750
750
|
columns: a
|
|
751
751
|
});
|
|
752
752
|
if (o) {
|
|
753
|
-
|
|
754
|
-
let t = e.props.treeConfig?.childrenField ||
|
|
753
|
+
z(o.heightDatas);
|
|
754
|
+
let t = e.props.treeConfig?.childrenField || Y.childrenField;
|
|
755
755
|
i[t] = n;
|
|
756
756
|
}
|
|
757
|
-
},
|
|
757
|
+
}, T = (t) => {
|
|
758
758
|
let n = null;
|
|
759
|
-
if (n = typeof t == "string" ?
|
|
759
|
+
if (n = typeof t == "string" ? m.get(t) : t, n[I.expandChildren]?.length) return;
|
|
760
760
|
let r = {
|
|
761
|
-
[
|
|
762
|
-
[
|
|
761
|
+
[I.isExpandRow]: !0,
|
|
762
|
+
[I.height]: e.props.expandConfig?.height || 0
|
|
763
763
|
};
|
|
764
|
-
Z([r]), n[
|
|
765
|
-
}, { headerHeight:
|
|
764
|
+
Z([r]), n[I.expandChildren] = [r];
|
|
765
|
+
}, { headerHeight: E, headerStyles: ee, createHeader: D, headerRef: O, getHeaderRefHeight: k } = de({ pretextTableRef: r }), { footerHeight: te, footerColumns: A, getFooterHeight: j, updateFooter: ne, updateFooterCellLabel: re } = _e({
|
|
766
766
|
showFooter: e.props.showFooter,
|
|
767
|
-
nowDataSource:
|
|
767
|
+
nowDataSource: _,
|
|
768
768
|
columns: t
|
|
769
|
-
}),
|
|
770
|
-
e == -1 && (e = ie.value),
|
|
771
|
-
},
|
|
769
|
+
}), M = g(0), ie = g(0), ae = (e) => {
|
|
770
|
+
e == -1 && (e = ie.value), M.value = e;
|
|
771
|
+
}, N = (e) => {
|
|
772
772
|
ie.value = e;
|
|
773
|
-
},
|
|
773
|
+
}, P = () => {
|
|
774
774
|
let e = 0;
|
|
775
|
-
for (let t of
|
|
776
|
-
|
|
777
|
-
},
|
|
775
|
+
for (let t of v) e += t[I.height] || 0;
|
|
776
|
+
M.value = e;
|
|
777
|
+
}, se = (e, t) => e ? isNaN(Number(e)) ? /^\d+px$/.test(e) ? e : t : e + "px" : t, F = {
|
|
778
778
|
fontWeight: "400",
|
|
779
|
-
fontSize:
|
|
780
|
-
paddingLeft:
|
|
781
|
-
},
|
|
782
|
-
let i = new
|
|
779
|
+
fontSize: se(e.props.cellStyle?.fontSize, "14px"),
|
|
780
|
+
paddingLeft: se(e.props.cellStyle?.paddingLeft, "0px")
|
|
781
|
+
}, ce = !!e.props.showOverflow, le = e.props.cellMinHeight || 22, L = (t) => new Promise((n, r) => {
|
|
782
|
+
let i = new ue(), a = {
|
|
783
783
|
tempData: t.tempData,
|
|
784
784
|
index: t.index,
|
|
785
785
|
columns: t.columns,
|
|
786
786
|
commonStyles: " \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
|
787
|
-
itemStyles:
|
|
787
|
+
itemStyles: F,
|
|
788
788
|
divLineHeight: 22,
|
|
789
|
-
keyNames:
|
|
790
|
-
isNoAutoWrap:
|
|
791
|
-
cellMinHeight:
|
|
789
|
+
keyNames: I,
|
|
790
|
+
isNoAutoWrap: ce,
|
|
791
|
+
cellMinHeight: le,
|
|
792
792
|
treeConfig: {
|
|
793
793
|
...e.props.treeConfig,
|
|
794
794
|
loadMethod: void 0
|
|
795
795
|
},
|
|
796
|
-
defaultTreeConfig: { ...
|
|
796
|
+
defaultTreeConfig: { ...Y }
|
|
797
797
|
};
|
|
798
798
|
i.postMessage(a), i.onmessage = (e) => {
|
|
799
799
|
n(e.data), i.terminate();
|
|
800
800
|
}, i.onerror = (e) => {
|
|
801
801
|
r(e), i.terminate();
|
|
802
802
|
};
|
|
803
|
-
}),
|
|
803
|
+
}), z = (e) => {
|
|
804
804
|
for (let t of e) {
|
|
805
|
-
let e =
|
|
806
|
-
e && (e[
|
|
805
|
+
let e = m.get(t.id);
|
|
806
|
+
e && (e[I.height] = t.pretextHeight);
|
|
807
807
|
}
|
|
808
|
-
}, be = 0,
|
|
808
|
+
}, be = 0, B = !1, xe = async (e) => {
|
|
809
809
|
if (t.value?.length === 0) {
|
|
810
810
|
if (be++, be > 50) {
|
|
811
811
|
console.error("表格没有设置 columns.value");
|
|
@@ -818,7 +818,7 @@ var ge = (e) => {
|
|
|
818
818
|
}
|
|
819
819
|
let n = 0;
|
|
820
820
|
if (e.length === 0) {
|
|
821
|
-
|
|
821
|
+
S(e), P(), Oe.value = [];
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
let r = [];
|
|
@@ -840,13 +840,13 @@ var ge = (e) => {
|
|
|
840
840
|
}
|
|
841
841
|
if (e.length * Se >= Ce) {
|
|
842
842
|
let t = 5e3;
|
|
843
|
-
|
|
844
|
-
let i = await
|
|
843
|
+
B = !0;
|
|
844
|
+
let i = await L({
|
|
845
845
|
tempData: e.slice(0, 100),
|
|
846
846
|
index: 0,
|
|
847
847
|
columns: r
|
|
848
848
|
});
|
|
849
|
-
i && (n += i.tempItemHeights,
|
|
849
|
+
i && (n += i.tempItemHeights, z(i.heightDatas), S(e), P(), U());
|
|
850
850
|
let a = [], o = Math.ceil((e.length - 100) / t / 2), s = o * 2, c = 0, l = 100;
|
|
851
851
|
for (let n = 1; n <= o; n++) for (let n = 0; n < 2; n++) a[n] || (a[n] = []), a[n].push({
|
|
852
852
|
tempI: l,
|
|
@@ -859,34 +859,34 @@ var ge = (e) => {
|
|
|
859
859
|
c++;
|
|
860
860
|
continue;
|
|
861
861
|
}
|
|
862
|
-
let t = await
|
|
862
|
+
let t = await L({
|
|
863
863
|
tempData: i.tempData,
|
|
864
864
|
index: i.tempI,
|
|
865
865
|
columns: r
|
|
866
866
|
});
|
|
867
|
-
t && (n += t.tempItemHeights,
|
|
867
|
+
t && (n += t.tempItemHeights, N(n), ae(n), c++, z(t.heightDatas), c == s && (S(e), P(), B = !1));
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
870
|
for (let e of a) t(e);
|
|
871
871
|
}
|
|
872
872
|
} else {
|
|
873
|
-
|
|
874
|
-
let t = await
|
|
873
|
+
B = !0;
|
|
874
|
+
let t = await L({
|
|
875
875
|
tempData: e,
|
|
876
876
|
index: 0,
|
|
877
877
|
columns: r
|
|
878
878
|
});
|
|
879
|
-
|
|
879
|
+
B = !1, t && (z(t.heightDatas), S(e), P(), U());
|
|
880
880
|
}
|
|
881
|
-
}, Se = 0, Ce = 1e4,
|
|
882
|
-
if (we = i.value?.scrollLeft || 0,
|
|
883
|
-
|
|
884
|
-
Ne(),
|
|
881
|
+
}, Se = 0, Ce = 1e4, V = 0, we = 0, Te = g(0), H = !1, Ee = (e) => {
|
|
882
|
+
if (we = i.value?.scrollLeft || 0, V == i.value?.scrollTop) {
|
|
883
|
+
H ||= (window.requestAnimationFrame(() => {
|
|
884
|
+
Ne(), H = !1;
|
|
885
885
|
}), !0);
|
|
886
886
|
return;
|
|
887
887
|
}
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
V = i.value?.scrollTop || 0, e.preventDefault(), H ||= (window.requestAnimationFrame(() => {
|
|
889
|
+
U(), H = !1;
|
|
890
890
|
}), !0);
|
|
891
891
|
}, De = (e) => {
|
|
892
892
|
if (e.shiftKey) {
|
|
@@ -894,24 +894,24 @@ var ge = (e) => {
|
|
|
894
894
|
return;
|
|
895
895
|
}
|
|
896
896
|
e.preventDefault(), e.stopPropagation(), e.deltaY > 0 ? i.value?.scrollBy({ top: 150 }) : i.value?.scrollBy({ top: -150 });
|
|
897
|
-
}, Oe = g([]), ke = g(0), Ae =
|
|
897
|
+
}, Oe = g([]), ke = g(0), Ae = oe((e, t) => {
|
|
898
898
|
setTimeout(() => {
|
|
899
899
|
ke.value = t, e.forEach((e) => {
|
|
900
900
|
e.slotShowTimestamp = t;
|
|
901
901
|
}), l();
|
|
902
902
|
}, 0);
|
|
903
|
-
}, 100),
|
|
903
|
+
}, 100), U = () => {
|
|
904
904
|
if (!i.value) return;
|
|
905
905
|
let e = i.value.scrollTop, t = a.value, n = 0, r = 0, o = [], s = "遍历";
|
|
906
906
|
switch (!0) {
|
|
907
|
-
case e > 500 &&
|
|
907
|
+
case e > 500 && v.length > 10:
|
|
908
908
|
s = "二分查找";
|
|
909
909
|
break;
|
|
910
910
|
default: break;
|
|
911
911
|
}
|
|
912
912
|
let c = !1;
|
|
913
913
|
if (s == "二分查找") {
|
|
914
|
-
let i = 0, a =
|
|
914
|
+
let i = 0, a = v.length - 1, s = {
|
|
915
915
|
totalHeight: 0,
|
|
916
916
|
row: {}
|
|
917
917
|
}, l = 0;
|
|
@@ -920,24 +920,24 @@ var ge = (e) => {
|
|
|
920
920
|
c = !0;
|
|
921
921
|
break BinarySearchWhile;
|
|
922
922
|
}
|
|
923
|
-
let t = Math.floor((i + a) / 2), n =
|
|
923
|
+
let t = Math.floor((i + a) / 2), n = b.get(t + 1)?.totalHeight || 0;
|
|
924
924
|
!n || n <= 1 || (n <= e ? i = t + 1 : a = t - 1);
|
|
925
925
|
}
|
|
926
|
-
s =
|
|
926
|
+
s = b.get(i) || {
|
|
927
927
|
totalHeight: 0,
|
|
928
928
|
row: {}
|
|
929
|
-
}, r = s.totalHeight, Te.value = r - s.row[
|
|
930
|
-
getHeightFor: for (let e = i; e <
|
|
931
|
-
let t =
|
|
932
|
-
if (r += t[
|
|
929
|
+
}, r = s.totalHeight, Te.value = r - s.row[I.height], o.push(s.row), n = e + t;
|
|
930
|
+
getHeightFor: for (let e = i; e < v.length; e++) {
|
|
931
|
+
let t = v[e];
|
|
932
|
+
if (r += t[I.height], n) if (r <= n) o.push(t);
|
|
933
933
|
else break getHeightFor;
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
if (s == "遍历" || c) getHeightFor: for (let i = 0; i <
|
|
937
|
-
let a =
|
|
936
|
+
if (s == "遍历" || c) getHeightFor: for (let i = 0; i < v.length; i++) {
|
|
937
|
+
let a = v[i];
|
|
938
938
|
if (a) {
|
|
939
|
-
if (r += a[
|
|
940
|
-
Te.value = r - a[
|
|
939
|
+
if (r += a[I.height], e <= r && n == 0) {
|
|
940
|
+
Te.value = r - a[I.height], o.push(a), n = e + t;
|
|
941
941
|
continue;
|
|
942
942
|
}
|
|
943
943
|
if (n) if (r <= n) o.push(a);
|
|
@@ -964,16 +964,16 @@ var ge = (e) => {
|
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
r <= a && (je.value = r, Me.value = a);
|
|
967
|
-
}, Pe =
|
|
968
|
-
e.props.rowConfig?.isCurrent &&
|
|
967
|
+
}, Pe = oe(U, 200), { fixedColumnsLeft: Fe, fixedColumnsRight: Ie, fixedLeftIndex: Le, fixedRightIndex: W, reflashGridTemplateColumns: G, gridTemplateColumns: Re, getGridStyles: K } = fe({ columns: t }), q = y({}), ze = (t, n = !0) => {
|
|
968
|
+
e.props.rowConfig?.isCurrent && q.value != t && (q.value = t, n && e.emits("currentChange", { newValue: t }));
|
|
969
969
|
}, Be = (t, n) => {
|
|
970
970
|
if (ze(t), e.props.treeConfig?.isOpenTree) {
|
|
971
|
-
let r = e.props.treeConfig.childrenField ||
|
|
971
|
+
let r = e.props.treeConfig.childrenField || Y.childrenField;
|
|
972
972
|
switch (!0) {
|
|
973
973
|
case t?.[r]?.length == 0: break;
|
|
974
974
|
case e.props.treeConfig?.trigger == "cell" && n.treeNode:
|
|
975
975
|
case e.props.treeConfig?.trigger == "row":
|
|
976
|
-
ot([t], !t[
|
|
976
|
+
ot([t], !t[I.isCollapsed]);
|
|
977
977
|
break;
|
|
978
978
|
default: break;
|
|
979
979
|
}
|
|
@@ -981,7 +981,7 @@ var ge = (e) => {
|
|
|
981
981
|
if (e.props.expandConfig?.isExpand) switch (!0) {
|
|
982
982
|
case e.props.expandConfig?.trigger == "cell" && n.type == "expand":
|
|
983
983
|
case e.props.expandConfig?.trigger == "row":
|
|
984
|
-
ct([t], !t[
|
|
984
|
+
ct([t], !t[I.isRowExpanded]);
|
|
985
985
|
break;
|
|
986
986
|
default: break;
|
|
987
987
|
}
|
|
@@ -993,107 +993,107 @@ var ge = (e) => {
|
|
|
993
993
|
e.emits && e.emits("headerCellClick", { column: t }), e.props.sortConfig?.trigger == "cell" && t.sortable && ht(t.field, "auto"), e.emits && e.emits("cellClick", { column: t });
|
|
994
994
|
}, He = y({}), Ue = (t) => {
|
|
995
995
|
e.props.rowConfig?.isHover && (He.value = t);
|
|
996
|
-
}, { getCheckField: We, headerChecked: Ge, headerCheckedIndeterminate: Ke, onHeaderChecked: qe, upDataHeaderChecked: Je, upDataAllRowCheckedDeep: Ye, onCellChecked: Xe, getCheckboxRecords: Ze, clearCheckboxRowInit: Qe } =
|
|
997
|
-
pretextId:
|
|
996
|
+
}, { getCheckField: We, headerChecked: Ge, headerCheckedIndeterminate: Ke, onHeaderChecked: qe, upDataHeaderChecked: Je, upDataAllRowCheckedDeep: Ye, onCellChecked: Xe, getCheckboxRecords: Ze, clearCheckboxRowInit: Qe } = pe({
|
|
997
|
+
pretextId: I.id,
|
|
998
998
|
columns: t,
|
|
999
999
|
blurAnyElement: R,
|
|
1000
|
-
nowDataSource:
|
|
1001
|
-
baseDataSource:
|
|
1000
|
+
nowDataSource: _,
|
|
1001
|
+
baseDataSource: h,
|
|
1002
|
+
baseDataMap: m,
|
|
1002
1003
|
emits: e.emits,
|
|
1003
1004
|
treeConfig: e.props.treeConfig
|
|
1004
1005
|
}), $e = (e) => {
|
|
1005
1006
|
Qe();
|
|
1006
1007
|
let t = [];
|
|
1007
|
-
if (t = e ? [e] : We(), t) for (let e of
|
|
1008
|
+
if (t = e ? [e] : We(), t) for (let e of _.value) for (let n of t) e[n] = !1;
|
|
1008
1009
|
}, { isDragging: et, dragLineLeft: tt, startResize: nt } = ge({
|
|
1009
1010
|
pretextTableRef: r,
|
|
1010
1011
|
afterResize: (t) => {
|
|
1011
|
-
|
|
1012
|
+
G(), e.emits("resizableChange", {
|
|
1012
1013
|
column: { ...t.column },
|
|
1013
1014
|
resizeWidth: t.column.width
|
|
1014
1015
|
});
|
|
1015
1016
|
}
|
|
1016
1017
|
}), rt = () => {
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1018
|
+
S(_.value), P(), U();
|
|
1019
|
+
}, J = (t) => {
|
|
1019
1020
|
if (t) {
|
|
1020
|
-
let t = e.props.treeConfig?.childrenField ||
|
|
1021
|
+
let t = e.props.treeConfig?.childrenField || Y.childrenField, n = [], r = (e) => {
|
|
1021
1022
|
if (e[t]?.length) {
|
|
1022
1023
|
n.push(e);
|
|
1023
1024
|
for (let n of e[t]) r(n);
|
|
1024
1025
|
}
|
|
1025
1026
|
};
|
|
1026
|
-
for (let e of
|
|
1027
|
+
for (let e of _.value) r(e);
|
|
1027
1028
|
ot(n, !0);
|
|
1028
1029
|
} else it();
|
|
1029
1030
|
}, it = () => {
|
|
1030
|
-
|
|
1031
|
-
e[
|
|
1032
|
-
}),
|
|
1033
|
-
}, { defaultTreeConfig:
|
|
1031
|
+
X.forEach((e) => {
|
|
1032
|
+
e[I.isCollapsed] = !1;
|
|
1033
|
+
}), X.clear(), S(_.value), P(), U();
|
|
1034
|
+
}, { defaultTreeConfig: Y, treeExpandMap: X, handleTree: at, setTreeExpand: ot } = ve({
|
|
1034
1035
|
treeConfig: e.props.treeConfig,
|
|
1035
1036
|
afterTreeExpand: rt,
|
|
1036
|
-
insertChild:
|
|
1037
|
+
insertChild: C
|
|
1037
1038
|
}), { handleExpand: st, setRowExpand: ct } = ye({
|
|
1038
1039
|
expandConfig: e.props.expandConfig,
|
|
1039
1040
|
afterRowExpand: (t, n) => {
|
|
1040
|
-
|
|
1041
|
+
S(_.value), P(), U(), e.emits("toggleRowExpand", {
|
|
1041
1042
|
expanded: n,
|
|
1042
1043
|
rows: t
|
|
1043
1044
|
});
|
|
1044
1045
|
},
|
|
1045
|
-
insertExpandRow:
|
|
1046
|
+
insertExpandRow: T
|
|
1046
1047
|
}), lt = 0, ut = () => {
|
|
1047
|
-
|
|
1048
|
-
},
|
|
1048
|
+
h.value = [], S([]), m.clear(), q.value = {}, He.value = {}, Qe(), mt.value = "", $.value = null, Tt(), lt = 0, be = 0;
|
|
1049
|
+
}, Z = (t) => {
|
|
1049
1050
|
let n = lt;
|
|
1050
1051
|
for (let r of t) {
|
|
1051
|
-
r[
|
|
1052
|
-
let t = e.props.treeConfig?.childrenField ||
|
|
1052
|
+
r[I.id] = Math.random().toString(36).substring(2), r[I.index] = n, n++, lt++, m.set(r[I.id], r);
|
|
1053
|
+
let t = e.props.treeConfig?.childrenField || Y.childrenField;
|
|
1053
1054
|
e.props.treeConfig?.isOpenTree && r?.[t]?.length > 0 && Z(r[t]);
|
|
1054
1055
|
}
|
|
1055
|
-
},
|
|
1056
|
-
|
|
1057
|
-
n >= 50 ||
|
|
1056
|
+
}, dt = (e, t, n = 0) => {
|
|
1057
|
+
B ? setTimeout(() => {
|
|
1058
|
+
n >= 50 || dt(e, t, n + 1);
|
|
1058
1059
|
}, 100) : u({
|
|
1059
1060
|
top: e,
|
|
1060
1061
|
left: t
|
|
1061
1062
|
});
|
|
1062
|
-
}, dt = async (e) => {
|
|
1063
|
-
let t = B, n = we;
|
|
1064
|
-
await ft(e), Q(t, n);
|
|
1065
1063
|
}, ft = async (e) => {
|
|
1064
|
+
let t = V, n = we;
|
|
1065
|
+
await Q(e), dt(t, n);
|
|
1066
|
+
}, Q = async (e) => {
|
|
1066
1067
|
try {
|
|
1067
|
-
u({ top: 0 }), ut();
|
|
1068
|
-
let t = at(e || []);
|
|
1069
|
-
Z(t || []), m.value = t || [], xe(m.value);
|
|
1068
|
+
u({ top: 0 }), ut(), Z(e || []), h.value = at(e || []) || [], xe(h.value);
|
|
1070
1069
|
} catch (e) {
|
|
1071
1070
|
console.error(e);
|
|
1072
1071
|
}
|
|
1073
1072
|
}, pt = () => {
|
|
1074
|
-
let e =
|
|
1073
|
+
let e = v.filter((e) => !e[I.isExpandRow]);
|
|
1075
1074
|
return {
|
|
1076
|
-
fullData:
|
|
1077
|
-
visibleData: e
|
|
1075
|
+
fullData: h.value,
|
|
1076
|
+
visibleData: e,
|
|
1077
|
+
baseDataMap: m
|
|
1078
1078
|
};
|
|
1079
|
-
}, { sortField:
|
|
1080
|
-
nowDataSource:
|
|
1081
|
-
getVisibleData:
|
|
1082
|
-
setNowDataSource:
|
|
1079
|
+
}, { sortField: mt, sortOrder: $, sort: ht, handleSort: gt } = me({
|
|
1080
|
+
nowDataSource: _,
|
|
1081
|
+
getVisibleData: U,
|
|
1082
|
+
setNowDataSource: S,
|
|
1083
1083
|
treeConfig: e.props.treeConfig,
|
|
1084
|
-
defaultTreeConfig:
|
|
1084
|
+
defaultTreeConfig: Y,
|
|
1085
1085
|
columns: t
|
|
1086
1086
|
}), { filterPopupWidth: _t, filterPopupId: vt, inputFilterOptions: yt, numberFilterOptions: bt, filterFields: xt, getFilterFields: St, filterClick: Ct, setFilter: wt, clearFilter: Tt } = he({
|
|
1087
1087
|
columns: t,
|
|
1088
|
-
baseDataSource:
|
|
1089
|
-
setNowDataSource:
|
|
1088
|
+
baseDataSource: h,
|
|
1089
|
+
setNowDataSource: S,
|
|
1090
1090
|
scrollTo: u,
|
|
1091
1091
|
refresh: l,
|
|
1092
1092
|
afterFilter: () => {
|
|
1093
|
-
|
|
1093
|
+
P(), gt(), Ye();
|
|
1094
1094
|
},
|
|
1095
1095
|
treeConfig: e.props.treeConfig,
|
|
1096
|
-
defaultTreeConfig:
|
|
1096
|
+
defaultTreeConfig: Y
|
|
1097
1097
|
}), Et = (e) => {
|
|
1098
1098
|
R(), e.listFilter.selectedValue.length == e.listFilter.listOptions.length ? e.listFilter.selectedValue = [] : e.listFilter.selectedValue = e.listFilter.listOptions.map((e) => e.value);
|
|
1099
1099
|
}, Dt = (i) => {
|
|
@@ -1103,21 +1103,21 @@ var ge = (e) => {
|
|
|
1103
1103
|
}, 100);
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
|
-
let a =
|
|
1107
|
-
a.finalColumns.length == 0 || a.realColumns.length == 0 || (st(), Se = a.finalColumns.length,
|
|
1108
|
-
|
|
1109
|
-
}, 0),
|
|
1106
|
+
let a = D(i) || [];
|
|
1107
|
+
a.finalColumns.length == 0 || a.realColumns.length == 0 || (st(), Se = a.finalColumns.length, P(), t.value = a.finalColumns, n.value = a.realColumns, setTimeout(() => {
|
|
1108
|
+
k();
|
|
1109
|
+
}, 0), j(e.props.footerProps), We(), K(), St(), l());
|
|
1110
1110
|
};
|
|
1111
1111
|
w(() => e.props.columns, (e) => {
|
|
1112
1112
|
Dt(e);
|
|
1113
1113
|
}, { immediate: !0 }), w(() => e.props.footerProps, (e) => {
|
|
1114
|
-
|
|
1114
|
+
j(e);
|
|
1115
1115
|
}), w(() => e.props.height, (e) => {
|
|
1116
1116
|
a.value = e, Pe();
|
|
1117
1117
|
}, { immediate: !0 });
|
|
1118
1118
|
let Ot = () => {
|
|
1119
1119
|
r.value && (o.value = r.value.clientWidth);
|
|
1120
|
-
}, kt =
|
|
1120
|
+
}, kt = oe(Ot, 100), At = () => {
|
|
1121
1121
|
if (!r.value) {
|
|
1122
1122
|
setTimeout(() => {
|
|
1123
1123
|
At();
|
|
@@ -1130,12 +1130,12 @@ var ge = (e) => {
|
|
|
1130
1130
|
At();
|
|
1131
1131
|
}), d(() => {
|
|
1132
1132
|
u({
|
|
1133
|
-
top:
|
|
1133
|
+
top: V,
|
|
1134
1134
|
left: we
|
|
1135
|
-
}),
|
|
1135
|
+
}), U();
|
|
1136
1136
|
}), f(() => {}), {
|
|
1137
|
-
keyNames:
|
|
1138
|
-
nowDataSource:
|
|
1137
|
+
keyNames: I,
|
|
1138
|
+
nowDataSource: _,
|
|
1139
1139
|
pretextTableRef: r,
|
|
1140
1140
|
tableRef: i,
|
|
1141
1141
|
isLoading: s,
|
|
@@ -1148,24 +1148,24 @@ var ge = (e) => {
|
|
|
1148
1148
|
onScroll: Ee,
|
|
1149
1149
|
onWheel: De,
|
|
1150
1150
|
topEmptyHeight: Te,
|
|
1151
|
-
scrollbarHeight:
|
|
1152
|
-
headerHeight:
|
|
1153
|
-
headerStyles:
|
|
1151
|
+
scrollbarHeight: M,
|
|
1152
|
+
headerHeight: E,
|
|
1153
|
+
headerStyles: ee,
|
|
1154
1154
|
realColumns: n,
|
|
1155
|
-
headerRef:
|
|
1155
|
+
headerRef: O,
|
|
1156
1156
|
updateFooter: ne,
|
|
1157
1157
|
updateFooterCellLabel: re,
|
|
1158
|
-
footerHeight:
|
|
1159
|
-
footerColumns:
|
|
1160
|
-
getFooterHeight:
|
|
1161
|
-
itemStyles:
|
|
1158
|
+
footerHeight: te,
|
|
1159
|
+
footerColumns: A,
|
|
1160
|
+
getFooterHeight: j,
|
|
1161
|
+
itemStyles: F,
|
|
1162
1162
|
fixedLeftIndex: Le,
|
|
1163
|
-
fixedRightIndex:
|
|
1163
|
+
fixedRightIndex: W,
|
|
1164
1164
|
fixedColumnsLeft: Fe,
|
|
1165
1165
|
fixedColumnsRight: Ie,
|
|
1166
|
-
getGridStyles:
|
|
1166
|
+
getGridStyles: K,
|
|
1167
1167
|
divLineHeightOffset: 20,
|
|
1168
|
-
currentRow:
|
|
1168
|
+
currentRow: q,
|
|
1169
1169
|
setCurrentRow: ze,
|
|
1170
1170
|
cellClick: Be,
|
|
1171
1171
|
headerClick: Ve,
|
|
@@ -1177,8 +1177,8 @@ var ge = (e) => {
|
|
|
1177
1177
|
onCellChecked: Xe,
|
|
1178
1178
|
getCheckboxRecords: Ze,
|
|
1179
1179
|
clearCheckboxRow: $e,
|
|
1180
|
-
sortField:
|
|
1181
|
-
sortOrder:
|
|
1180
|
+
sortField: mt,
|
|
1181
|
+
sortOrder: $,
|
|
1182
1182
|
sort: ht,
|
|
1183
1183
|
filterPopupWidth: _t,
|
|
1184
1184
|
filterPopupId: vt,
|
|
@@ -1194,22 +1194,22 @@ var ge = (e) => {
|
|
|
1194
1194
|
dragLineLeft: tt,
|
|
1195
1195
|
startResize: nt,
|
|
1196
1196
|
setTreeExpand: ot,
|
|
1197
|
-
setAllTreeExpand:
|
|
1197
|
+
setAllTreeExpand: J,
|
|
1198
1198
|
clearTreeExpand: it,
|
|
1199
|
-
defaultTreeConfig:
|
|
1199
|
+
defaultTreeConfig: Y,
|
|
1200
1200
|
setRowExpand: ct,
|
|
1201
1201
|
slotShowTimestamp: ke,
|
|
1202
1202
|
isRefresh: c,
|
|
1203
1203
|
realTableHeight: a,
|
|
1204
1204
|
realTableWidth: o,
|
|
1205
|
-
loadData:
|
|
1206
|
-
reloadData:
|
|
1205
|
+
loadData: ft,
|
|
1206
|
+
reloadData: Q,
|
|
1207
1207
|
getTableData: pt
|
|
1208
1208
|
};
|
|
1209
|
-
},
|
|
1209
|
+
}, be = ["onClick"], B = { key: 0 }, xe = { key: 1 }, Se = { key: 2 }, Ce = {
|
|
1210
1210
|
key: 3,
|
|
1211
1211
|
style: { "text-align": "center" }
|
|
1212
|
-
},
|
|
1212
|
+
}, V = {
|
|
1213
1213
|
key: 0,
|
|
1214
1214
|
style: {
|
|
1215
1215
|
display: "inline-flex",
|
|
@@ -1220,27 +1220,27 @@ var ge = (e) => {
|
|
|
1220
1220
|
padding: "0px",
|
|
1221
1221
|
width: "14px"
|
|
1222
1222
|
}
|
|
1223
|
-
},
|
|
1223
|
+
}, we = { key: 1 }, Te = ["id"], H = { style: {
|
|
1224
1224
|
"text-align": "center",
|
|
1225
1225
|
"font-weight": "bold"
|
|
1226
|
-
} },
|
|
1226
|
+
} }, Ee = { style: {
|
|
1227
1227
|
display: "flex",
|
|
1228
1228
|
"justify-content": "center",
|
|
1229
1229
|
"margin-top": "5px"
|
|
1230
|
-
} },
|
|
1230
|
+
} }, De = { style: {
|
|
1231
1231
|
display: "flex",
|
|
1232
1232
|
"justify-content": "center",
|
|
1233
1233
|
"margin-top": "5px"
|
|
1234
|
-
} },
|
|
1234
|
+
} }, Oe = { style: { margin: "0 0 4px" } }, ke = { style: {
|
|
1235
1235
|
display: "flex",
|
|
1236
1236
|
"justify-content": "center",
|
|
1237
1237
|
"margin-top": "5px",
|
|
1238
1238
|
padding: "5px 0",
|
|
1239
1239
|
"border-top": "1px solid #e0e0e0"
|
|
1240
|
-
} },
|
|
1240
|
+
} }, Ae = ["onMousedown"], U = ["onClick", "onMouseenter"], je = {
|
|
1241
1241
|
key: 3,
|
|
1242
1242
|
style: { "margin-left": "6px" }
|
|
1243
|
-
}, Ne = { style: {
|
|
1243
|
+
}, Me = ["onClick"], Ne = { style: {
|
|
1244
1244
|
display: "flex",
|
|
1245
1245
|
gap: "4px"
|
|
1246
1246
|
} }, Pe = ["title"], Fe = {
|
|
@@ -1249,7 +1249,7 @@ var ge = (e) => {
|
|
|
1249
1249
|
width: "100%",
|
|
1250
1250
|
"text-align": "center"
|
|
1251
1251
|
}
|
|
1252
|
-
}, Ie = ["title"], Le = { key: 1 },
|
|
1252
|
+
}, Ie = ["title"], Le = { key: 1 }, W = /* @__PURE__ */ c({
|
|
1253
1253
|
inheritAttrs: !1,
|
|
1254
1254
|
name: "pretextTable",
|
|
1255
1255
|
props: {
|
|
@@ -1325,31 +1325,31 @@ var ge = (e) => {
|
|
|
1325
1325
|
"toggleRowExpand"
|
|
1326
1326
|
],
|
|
1327
1327
|
setup(c, { expose: d, emit: f }) {
|
|
1328
|
-
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight:
|
|
1328
|
+
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight: N, topEmptyHeight: oe, visibleData: P, visibleWidthStartColumnIndex: se, visibleWidthEndColumnIndex: F, columns: ce, realColumns: le, headerRef: ue, onScroll: de, onWheel: fe, gridTemplateColumns: I, blurAnyElement: L, scrollbarHeight: pe, headerStyles: me, divLineHeightOffset: he, updateFooter: ge, updateFooterCellLabel: _e, footerHeight: ve, footerColumns: R, getFooterHeight: ye, itemStyles: W, fixedLeftIndex: G, fixedRightIndex: Re, fixedColumnsLeft: K, fixedColumnsRight: q, currentRow: ze, setCurrentRow: Be, cellClick: Ve, headerClick: He, hoverRow: Ue, cellMousemove: We, headerChecked: Ge, headerCheckedIndeterminate: Ke, onHeaderChecked: qe, onCellChecked: Je, getCheckboxRecords: Ye, clearCheckboxRow: Xe, sortField: Ze, sortOrder: Qe, sort: $e, filterPopupWidth: et, filterPopupId: tt, inputFilterOptions: nt, numberFilterOptions: rt, filterFields: J, getFilterFields: it, filterClick: Y, setFilter: X, clearFilter: at, setListFilterAll: ot, isDragging: st, dragLineLeft: ct, startResize: lt, setTreeExpand: ut, setAllTreeExpand: Z, clearTreeExpand: dt, defaultTreeConfig: ft, setRowExpand: Q, slotShowTimestamp: pt, isRefresh: mt, realTableHeight: $, realTableWidth: ht, loadData: gt, reloadData: _t, getTableData: vt } = z({
|
|
1329
1329
|
props: p,
|
|
1330
1330
|
emits: f
|
|
1331
1331
|
});
|
|
1332
1332
|
return d({
|
|
1333
|
-
loadData:
|
|
1334
|
-
reloadData:
|
|
1333
|
+
loadData: gt,
|
|
1334
|
+
reloadData: _t,
|
|
1335
1335
|
setCurrentRow: Be,
|
|
1336
1336
|
getCheckboxRecords: Ye,
|
|
1337
1337
|
clearCheckboxRow: Xe,
|
|
1338
1338
|
updateFooter: ge,
|
|
1339
1339
|
updateFooterCellLabel: _e,
|
|
1340
1340
|
getFooterHeight: ye,
|
|
1341
|
-
getTableData:
|
|
1341
|
+
getTableData: vt,
|
|
1342
1342
|
setTreeExpand: ut,
|
|
1343
|
-
setAllTreeExpand:
|
|
1344
|
-
clearTreeExpand:
|
|
1345
|
-
setRowExpand:
|
|
1343
|
+
setAllTreeExpand: Z,
|
|
1344
|
+
clearTreeExpand: dt,
|
|
1345
|
+
setRowExpand: Q
|
|
1346
1346
|
}), (c, d) => (h(), i("div", {
|
|
1347
1347
|
class: "cName-pretextTable",
|
|
1348
1348
|
style: { position: "relative" },
|
|
1349
1349
|
ref_key: "pretextTableRef",
|
|
1350
1350
|
ref: g
|
|
1351
1351
|
}, [
|
|
1352
|
-
s(S(
|
|
1352
|
+
s(S(ne), {
|
|
1353
1353
|
modelValue: S(w),
|
|
1354
1354
|
text: p.loadingConfig?.text || "加载中..."
|
|
1355
1355
|
}, null, 8, ["modelValue", "text"]),
|
|
@@ -1363,12 +1363,12 @@ var ge = (e) => {
|
|
|
1363
1363
|
}, { height: `${S($)}px` }]),
|
|
1364
1364
|
ref_key: "tableRef",
|
|
1365
1365
|
ref: x,
|
|
1366
|
-
onScroll: d[1] ||= (...e) => S(
|
|
1367
|
-
onWheel: d[2] ||= (...e) => S(
|
|
1366
|
+
onScroll: d[1] ||= (...e) => S(de) && S(de)(...e),
|
|
1367
|
+
onWheel: d[2] ||= (...e) => S(fe) && S(fe)(...e)
|
|
1368
1368
|
}, [
|
|
1369
1369
|
a("div", {
|
|
1370
1370
|
ref_key: "headerRef",
|
|
1371
|
-
ref:
|
|
1371
|
+
ref: ue,
|
|
1372
1372
|
style: u([{
|
|
1373
1373
|
display: "grid",
|
|
1374
1374
|
width: "max-content",
|
|
@@ -1379,25 +1379,25 @@ var ge = (e) => {
|
|
|
1379
1379
|
top: "0",
|
|
1380
1380
|
left: "0",
|
|
1381
1381
|
"z-index": "1"
|
|
1382
|
-
}, { gridTemplateColumns: S(
|
|
1383
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1382
|
+
}, { gridTemplateColumns: S(I) }])
|
|
1383
|
+
}, [(h(!0), i(e, null, _(S(le), (f, p) => (h(), i(e, { key: "headerRow_" + p }, [(h(!0), i(e, null, _(f, (f, m) => (h(), i("div", {
|
|
1384
1384
|
key: "header_" + (f?.field || "null") + "_" + m,
|
|
1385
1385
|
class: "pretextTable-grid-header",
|
|
1386
1386
|
style: u(f ? {
|
|
1387
|
-
fontWeight: S(
|
|
1388
|
-
fontSize: S(
|
|
1387
|
+
fontWeight: S(me).fontWeight,
|
|
1388
|
+
fontSize: S(me).fontSize,
|
|
1389
1389
|
gridRow: f?.style?.gridRow || "",
|
|
1390
1390
|
gridColumn: f?.style?.gridColumn || "",
|
|
1391
1391
|
zIndex: m == 0 ? 3 : f.fixed == "left" || f.fixed == "right" ? 2 : 1,
|
|
1392
|
-
left: f.fixed == "left" ? S(
|
|
1393
|
-
right: f.fixed == "right" ? S(
|
|
1392
|
+
left: f.fixed == "left" ? S(K)[m] : "",
|
|
1393
|
+
right: f.fixed == "right" ? S(q)[m] : "",
|
|
1394
1394
|
borderLeft: f.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1395
|
-
boxShadow: f.fixed == "left" && m == S(
|
|
1395
|
+
boxShadow: f.fixed == "left" && m == S(G) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : f.fixed == "right" && m == S(Re) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1396
1396
|
borderBottom: f ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1397
1397
|
minHeight: "30px"
|
|
1398
1398
|
} : {}),
|
|
1399
1399
|
onClick: (e) => S(He)(f)
|
|
1400
|
-
}, [f ? f.type == "checkbox" && p == 0 ? (h(), i("span",
|
|
1400
|
+
}, [f ? f.type == "checkbox" && p == 0 ? (h(), i("span", xe, [s(S(k), {
|
|
1401
1401
|
modelValue: S(Ge)[f.field],
|
|
1402
1402
|
indeterminate: S(Ke)[f.field],
|
|
1403
1403
|
content: "",
|
|
@@ -1406,13 +1406,13 @@ var ge = (e) => {
|
|
|
1406
1406
|
"modelValue",
|
|
1407
1407
|
"indeterminate",
|
|
1408
1408
|
"onChange"
|
|
1409
|
-
])])) : f?.type == "seq" && p == 0 ? (h(), i("div",
|
|
1409
|
+
])])) : f?.type == "seq" && p == 0 ? (h(), i("div", Se, b(f.title || "序号"), 1)) : (h(), i("span", Ce, [
|
|
1410
1410
|
a("span", null, [f.slots?.header ? v(c.$slots, f.slots?.header, {
|
|
1411
1411
|
key: 0,
|
|
1412
1412
|
column: f,
|
|
1413
1413
|
text: f.title
|
|
1414
1414
|
}, () => [o(b(f.title), 1)]) : (h(), i(e, { key: 1 }, [o(b(f.title), 1)], 64))]),
|
|
1415
|
-
f.sortable && !f.children?.length ? (h(), i("span",
|
|
1415
|
+
f.sortable && !f.children?.length ? (h(), i("span", V, [s(S(A), {
|
|
1416
1416
|
name: "caret-up",
|
|
1417
1417
|
style: {
|
|
1418
1418
|
position: "absolute",
|
|
@@ -1429,11 +1429,11 @@ var ge = (e) => {
|
|
|
1429
1429
|
class: l(["pretextTable-sort-icon", { "pretextTable-sort-icon-active": S(Ze) == f.field && S(Qe) == "desc" }]),
|
|
1430
1430
|
onClick: D((e) => S($e)(f.field, "desc"), ["stop"])
|
|
1431
1431
|
}, null, 8, ["class", "onClick"])])) : r("", !0),
|
|
1432
|
-
S(
|
|
1432
|
+
S(J)[m]?.type && !f.children?.length ? (h(), i("span", we, [s(S(A), {
|
|
1433
1433
|
name: "funnel",
|
|
1434
|
-
class: l(["pretextTable-filter-icon", { "pretextTable-filter-icon-active": S(
|
|
1435
|
-
onClick: D((e) => S(
|
|
1436
|
-
}, null, 8, ["class", "onClick"]), S(
|
|
1434
|
+
class: l(["pretextTable-filter-icon", { "pretextTable-filter-icon-active": S(J)[m].isActive }]),
|
|
1435
|
+
onClick: D((e) => S(Y)(m, e), ["stop"])
|
|
1436
|
+
}, null, 8, ["class", "onClick"]), S(J)[m].isShow ? (h(), n(t, {
|
|
1437
1437
|
key: 0,
|
|
1438
1438
|
to: "body"
|
|
1439
1439
|
}, [a("div", {
|
|
@@ -1447,52 +1447,52 @@ var ge = (e) => {
|
|
|
1447
1447
|
"z-index": "99999"
|
|
1448
1448
|
}, {
|
|
1449
1449
|
position: "absolute",
|
|
1450
|
-
top: S(
|
|
1451
|
-
left: S(
|
|
1450
|
+
top: S(J)[m].clientY + "px",
|
|
1451
|
+
left: S(J)[m].clientX + "px"
|
|
1452
1452
|
}])
|
|
1453
1453
|
}, [
|
|
1454
|
-
a("div",
|
|
1455
|
-
S(
|
|
1454
|
+
a("div", H, b(f.title), 1),
|
|
1455
|
+
S(J)[m].type == "inputFilter" ? (h(), i("div", {
|
|
1456
1456
|
key: 0,
|
|
1457
1457
|
style: u({ width: S(et) + "px" })
|
|
1458
|
-
}, [a("div", null, [s(S(
|
|
1459
|
-
modelValue: S(
|
|
1460
|
-
"onUpdate:modelValue": (e) => S(
|
|
1458
|
+
}, [a("div", null, [s(S(j), {
|
|
1459
|
+
modelValue: S(J)[m].value,
|
|
1460
|
+
"onUpdate:modelValue": (e) => S(J)[m].value = e,
|
|
1461
1461
|
placeholder: "按回车筛选",
|
|
1462
1462
|
trim: !0,
|
|
1463
1463
|
style: { width: "100%" },
|
|
1464
|
-
onKeyup: ee((e) => S(
|
|
1464
|
+
onKeyup: ee((e) => S(X)(f.field), ["enter"])
|
|
1465
1465
|
}, null, 8, [
|
|
1466
1466
|
"modelValue",
|
|
1467
1467
|
"onUpdate:modelValue",
|
|
1468
1468
|
"onKeyup"
|
|
1469
|
-
])]), a("div",
|
|
1470
|
-
modelValue: S(
|
|
1471
|
-
"onUpdate:modelValue": (e) => S(
|
|
1469
|
+
])]), a("div", Ee, [s(S(M), {
|
|
1470
|
+
modelValue: S(J)[m].inputFilter.type,
|
|
1471
|
+
"onUpdate:modelValue": (e) => S(J)[m].inputFilter.type = e,
|
|
1472
1472
|
options: S(nt)
|
|
1473
1473
|
}, null, 8, [
|
|
1474
1474
|
"modelValue",
|
|
1475
1475
|
"onUpdate:modelValue",
|
|
1476
1476
|
"options"
|
|
1477
1477
|
])])], 4)) : r("", !0),
|
|
1478
|
-
S(
|
|
1478
|
+
S(J)[m].type == "numberFilter" || S(J)[m].type == "numberFilter%" ? (h(), i("div", {
|
|
1479
1479
|
key: 1,
|
|
1480
1480
|
style: u({ width: S(et) + "px" })
|
|
1481
|
-
}, [a("div",
|
|
1482
|
-
modelValue: S(
|
|
1483
|
-
"onUpdate:modelValue": (e) => S(
|
|
1481
|
+
}, [a("div", De, [s(S(M), {
|
|
1482
|
+
modelValue: S(J)[m].numberFilter.type,
|
|
1483
|
+
"onUpdate:modelValue": (e) => S(J)[m].numberFilter.type = e,
|
|
1484
1484
|
options: S(rt)
|
|
1485
1485
|
}, null, 8, [
|
|
1486
1486
|
"modelValue",
|
|
1487
1487
|
"onUpdate:modelValue",
|
|
1488
1488
|
"options"
|
|
1489
|
-
])]), a("div", null, [s(S(
|
|
1490
|
-
modelValue: S(
|
|
1491
|
-
"onUpdate:modelValue": (e) => S(
|
|
1489
|
+
])]), a("div", null, [s(S(re), {
|
|
1490
|
+
modelValue: S(J)[m].value,
|
|
1491
|
+
"onUpdate:modelValue": (e) => S(J)[m].value = e,
|
|
1492
1492
|
placeholder: "按回车筛选",
|
|
1493
1493
|
controlConfig: { showButton: !1 },
|
|
1494
1494
|
style: { width: "100%" },
|
|
1495
|
-
onKeyup: ee((e) => S(
|
|
1495
|
+
onKeyup: ee((e) => S(X)(f.field), ["enter"])
|
|
1496
1496
|
}, {
|
|
1497
1497
|
suffix: T(() => [...d[3] ||= [o("%", -1)]]),
|
|
1498
1498
|
_: 1
|
|
@@ -1501,35 +1501,35 @@ var ge = (e) => {
|
|
|
1501
1501
|
"onUpdate:modelValue",
|
|
1502
1502
|
"onKeyup"
|
|
1503
1503
|
])])], 4)) : r("", !0),
|
|
1504
|
-
S(
|
|
1504
|
+
S(J)[m].type == "listFilter" ? (h(), i("div", {
|
|
1505
1505
|
key: 2,
|
|
1506
1506
|
style: u({ maxWidth: S(et) + "px" })
|
|
1507
|
-
}, [a("div",
|
|
1508
|
-
modelValue: S(
|
|
1509
|
-
indeterminate: S(
|
|
1507
|
+
}, [a("div", Oe, [s(S(k), {
|
|
1508
|
+
modelValue: S(J)[m].listFilter.selectedValue.length == S(J)[m].listFilter.listOptions.length,
|
|
1509
|
+
indeterminate: S(J)[m].listFilter.selectedValue.length > 0 && S(J)[m].listFilter.selectedValue.length < S(J)[m].listFilter.listOptions.length,
|
|
1510
1510
|
content: "全部",
|
|
1511
|
-
onChange: (e) => S(ot)(S(
|
|
1511
|
+
onChange: (e) => S(ot)(S(J)[m])
|
|
1512
1512
|
}, null, 8, [
|
|
1513
1513
|
"modelValue",
|
|
1514
1514
|
"indeterminate",
|
|
1515
1515
|
"onChange"
|
|
1516
1516
|
])]), s(S(te), {
|
|
1517
|
-
modelValue: S(
|
|
1518
|
-
"onUpdate:modelValue": (e) => S(
|
|
1519
|
-
options: S(
|
|
1520
|
-
onChange: S(
|
|
1517
|
+
modelValue: S(J)[m].listFilter.selectedValue,
|
|
1518
|
+
"onUpdate:modelValue": (e) => S(J)[m].listFilter.selectedValue = e,
|
|
1519
|
+
options: S(J)[m].listFilter.listOptions,
|
|
1520
|
+
onChange: S(L)
|
|
1521
1521
|
}, null, 8, [
|
|
1522
1522
|
"modelValue",
|
|
1523
1523
|
"onUpdate:modelValue",
|
|
1524
1524
|
"options",
|
|
1525
1525
|
"onChange"
|
|
1526
1526
|
])], 4)) : r("", !0),
|
|
1527
|
-
a("div",
|
|
1527
|
+
a("div", ke, [
|
|
1528
1528
|
s(S(O), {
|
|
1529
1529
|
type: "primary",
|
|
1530
1530
|
size: "small",
|
|
1531
1531
|
mode: "text",
|
|
1532
|
-
onClick: (e) => S(
|
|
1532
|
+
onClick: (e) => S(X)(f.field)
|
|
1533
1533
|
}, {
|
|
1534
1534
|
default: T(() => [...d[4] ||= [o(" 筛选 ", -1)]]),
|
|
1535
1535
|
_: 1
|
|
@@ -1553,8 +1553,8 @@ var ge = (e) => {
|
|
|
1553
1553
|
_: 1
|
|
1554
1554
|
})
|
|
1555
1555
|
])
|
|
1556
|
-
], 12,
|
|
1557
|
-
])) : (h(), i("span",
|
|
1556
|
+
], 12, Te)])) : r("", !0)])) : r("", !0)
|
|
1557
|
+
])) : (h(), i("span", B)), f?.resizable && !f.children?.length ? (h(), i("div", {
|
|
1558
1558
|
key: 4,
|
|
1559
1559
|
style: {
|
|
1560
1560
|
position: "absolute",
|
|
@@ -1565,15 +1565,15 @@ var ge = (e) => {
|
|
|
1565
1565
|
cursor: "col-resize"
|
|
1566
1566
|
},
|
|
1567
1567
|
onMousedown: D((e) => S(lt)(e, f), ["prevent", "stop"])
|
|
1568
|
-
}, null, 40,
|
|
1569
|
-
S(
|
|
1568
|
+
}, null, 40, Ae)) : r("", !0)], 12, be))), 128))], 64))), 128))], 4),
|
|
1569
|
+
S(P).length == 0 ? (h(), i("div", {
|
|
1570
1570
|
key: 0,
|
|
1571
1571
|
style: u([{
|
|
1572
1572
|
display: "flex",
|
|
1573
1573
|
"align-items": "center",
|
|
1574
1574
|
position: "absolute",
|
|
1575
1575
|
left: "calc(50% - 35px)"
|
|
1576
|
-
}, { minHeight: `${S($) - S(
|
|
1576
|
+
}, { minHeight: `${S($) - S(N) - S(ve) - 30}px` }])
|
|
1577
1577
|
}, " 暂无数据 ", 4)) : r("", !0),
|
|
1578
1578
|
a("div", {
|
|
1579
1579
|
class: "pretextTable-grid",
|
|
@@ -1584,13 +1584,13 @@ var ge = (e) => {
|
|
|
1584
1584
|
contain: "layout paint style",
|
|
1585
1585
|
position: "relative"
|
|
1586
1586
|
}, {
|
|
1587
|
-
minHeight: S($) - S(
|
|
1588
|
-
height: `${S(
|
|
1587
|
+
minHeight: S($) - S(N) - S(ve) - S(he) - p.heightOffset + "px",
|
|
1588
|
+
height: `${S(pe)}px`
|
|
1589
1589
|
}])
|
|
1590
1590
|
}, [a("div", {
|
|
1591
1591
|
class: "pretextTable-grid-empty",
|
|
1592
|
-
style: u({ height: `${S(
|
|
1593
|
-
}, null, 4), (h(!0), i(e, null, _(S(
|
|
1592
|
+
style: u({ height: `${S(oe)}px` })
|
|
1593
|
+
}, null, 4), (h(!0), i(e, null, _(S(P), (t, d) => (h(), i(e, { key: t[S(m).id] }, [p.expandConfig?.isExpand && t[S(m).isExpandRow] ? (h(), i("div", {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
class: "pretextTable-grid-item",
|
|
1596
1596
|
style: u([{
|
|
@@ -1600,7 +1600,7 @@ var ge = (e) => {
|
|
|
1600
1600
|
}, [a("div", { style: u({
|
|
1601
1601
|
position: "sticky",
|
|
1602
1602
|
left: p.expandConfig?.mode == "inside" ? "0px" : void 0,
|
|
1603
|
-
width: p.expandConfig?.mode == "inside" ? `${S(
|
|
1603
|
+
width: p.expandConfig?.mode == "inside" ? `${S(ht) - 15}px` : "100%"
|
|
1604
1604
|
}) }, [v(c.$slots, p.expandConfig?.slotName, {
|
|
1605
1605
|
row: t,
|
|
1606
1606
|
rowIndex: d
|
|
@@ -1612,8 +1612,8 @@ var ge = (e) => {
|
|
|
1612
1612
|
"min-width": "100%",
|
|
1613
1613
|
"align-content": "start",
|
|
1614
1614
|
contain: "layout style paint"
|
|
1615
|
-
}, { gridTemplateColumns: S(
|
|
1616
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1615
|
+
}, { gridTemplateColumns: S(I) }])
|
|
1616
|
+
}, [(h(!0), i(e, null, _(S(ce), (f, g) => (h(), i("div", {
|
|
1617
1617
|
key: "item_" + f.field,
|
|
1618
1618
|
class: l(["pretextTable-grid-item pretextTable-flex-align-items-center", {
|
|
1619
1619
|
"pretextTable-grid-item-hover": p.rowConfig?.isHover && S(Ue)[S(m).id] == t[S(m).id],
|
|
@@ -1621,23 +1621,23 @@ var ge = (e) => {
|
|
|
1621
1621
|
"pretextTable-grid-item-stripe": p.stripe && t[S(m).stripe]
|
|
1622
1622
|
}]),
|
|
1623
1623
|
style: u({
|
|
1624
|
-
fontWeight: S(
|
|
1625
|
-
fontSize: S(
|
|
1624
|
+
fontWeight: S(W).fontWeight,
|
|
1625
|
+
fontSize: S(W).fontSize,
|
|
1626
1626
|
zIndex: +(f.fixed == "left" || f.fixed == "right"),
|
|
1627
1627
|
position: f.fixed == "left" || f.fixed == "right" ? "sticky" : "static",
|
|
1628
|
-
left: f.fixed == "left" ? S(
|
|
1629
|
-
right: f.fixed == "right" ? S(
|
|
1628
|
+
left: f.fixed == "left" ? S(K)[g] : "",
|
|
1629
|
+
right: f.fixed == "right" ? S(q)[g] : "",
|
|
1630
1630
|
borderLeft: f.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1631
|
-
boxShadow: f.fixed == "left" && g == S(
|
|
1631
|
+
boxShadow: f.fixed == "left" && g == S(G) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : f.fixed == "right" && g == S(Re) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1632
1632
|
height: `${t[S(m).height]}px`,
|
|
1633
1633
|
justifyContent: f.type == "checkbox" ? "center" : ""
|
|
1634
1634
|
}),
|
|
1635
1635
|
onClick: (e) => S(Ve)(t, f),
|
|
1636
1636
|
onMouseenter: (e) => S(We)(t)
|
|
1637
|
-
}, [f.fixed == "left" || f.fixed == "right" || g >= S(
|
|
1638
|
-
marginLeft: (Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || S(
|
|
1639
|
-
paddingLeft: S(
|
|
1640
|
-
}) }, null, 4), p.treeConfig?.showIcon === !1 ? r("", !0) : (h(), i(e, { key: 0 }, [t[p.treeConfig?.childrenField || S(
|
|
1637
|
+
}, [f.fixed == "left" || f.fixed == "right" || g >= S(se) && g <= S(F) ? (h(), i(e, { key: 0 }, [p.treeConfig?.isOpenTree && f.treeNode ? (h(), i(e, { key: 0 }, [a("span", { style: u({
|
|
1638
|
+
marginLeft: (Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || S(ft).indent) + "px",
|
|
1639
|
+
paddingLeft: S(W).paddingLeft
|
|
1640
|
+
}) }, null, 4), p.treeConfig?.showIcon === !1 ? r("", !0) : (h(), i(e, { key: 0 }, [t[p.treeConfig?.childrenField || S(ft).childrenField]?.length > 0 || p.treeConfig?.lazy && t[p.treeConfig?.hasChildField || S(ft).hasChildField] ? (h(), i(e, { key: 0 }, [
|
|
1641
1641
|
E(s(S(A), {
|
|
1642
1642
|
name: "spinner",
|
|
1643
1643
|
roll: ""
|
|
@@ -1667,25 +1667,25 @@ var ge = (e) => {
|
|
|
1667
1667
|
key: 0,
|
|
1668
1668
|
style: u({
|
|
1669
1669
|
marginLeft: `${(Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || 20)}px`,
|
|
1670
|
-
paddingLeft: S(
|
|
1670
|
+
paddingLeft: S(W).paddingLeft
|
|
1671
1671
|
})
|
|
1672
|
-
}, null, 4)) : r("", !0), o(" " + b(t.pretextSeq), 1)], 64)) : f.type == "expand" ? (h(), i("span",
|
|
1672
|
+
}, null, 4)) : r("", !0), o(" " + b(t.pretextSeq), 1)], 64)) : f.type == "expand" ? (h(), i("span", je, [E(s(S(A), {
|
|
1673
1673
|
name: "arrow-right",
|
|
1674
1674
|
style: {},
|
|
1675
1675
|
class: "pretextTable-icon",
|
|
1676
|
-
onClick: D((e) => S(
|
|
1676
|
+
onClick: D((e) => S(Q)([t], !0), ["stop"])
|
|
1677
1677
|
}, null, 8, ["onClick"]), [[C, !t[S(m).isRowExpanded]]]), E(s(S(A), {
|
|
1678
1678
|
name: "arrow-down",
|
|
1679
1679
|
style: {},
|
|
1680
1680
|
class: "pretextTable-icon",
|
|
1681
|
-
onClick: D((e) => S(
|
|
1681
|
+
onClick: D((e) => S(Q)([t], !1), ["stop"])
|
|
1682
1682
|
}, null, 8, ["onClick"]), [[C, t[S(m).isRowExpanded]]])])) : f.slots?.defaultType == "a" ? (h(), i("span", {
|
|
1683
1683
|
key: 4,
|
|
1684
|
-
style: u({ paddingLeft: S(
|
|
1685
|
-
}, [a("a",
|
|
1684
|
+
style: u({ paddingLeft: S(W).paddingLeft })
|
|
1685
|
+
}, [a("a", { onClick: D((e) => f.slots?.defaultProps?.a?.onClick?.(t, g), ["stop"]) }, b(t[f.field] || ""), 9, Me)], 4)) : f.slots?.defaultType == "tag" ? (h(), i("span", {
|
|
1686
1686
|
key: 5,
|
|
1687
|
-
style: u({ paddingLeft: S(
|
|
1688
|
-
}, [(h(!0), i(e, null, _(f.slots?.defaultProps?.tag?.options || [], (a) => (h(), i(e, null, [a.value == t[f.field] ? (h(), n(S(
|
|
1687
|
+
style: u({ paddingLeft: S(W).paddingLeft })
|
|
1688
|
+
}, [(h(!0), i(e, null, _(f.slots?.defaultProps?.tag?.options || [], (a) => (h(), i(e, null, [a.value == t[f.field] ? (h(), n(S(ae), {
|
|
1689
1689
|
key: 0,
|
|
1690
1690
|
size: "mini",
|
|
1691
1691
|
border: !0,
|
|
@@ -1701,13 +1701,13 @@ var ge = (e) => {
|
|
|
1701
1701
|
"style"
|
|
1702
1702
|
])) : r("", !0)], 64))), 256))], 4)) : f.slots?.defaultType == "icon" ? (h(), i("span", {
|
|
1703
1703
|
key: 6,
|
|
1704
|
-
style: u({ paddingLeft: S(
|
|
1704
|
+
style: u({ paddingLeft: S(W).paddingLeft })
|
|
1705
1705
|
}, [E(s(S(A), {
|
|
1706
|
-
name: f.slots?.defaultProps?.icon?.name,
|
|
1707
|
-
style: u(f.slots?.defaultProps?.icon?.style || {})
|
|
1706
|
+
name: f.slots?.defaultProps?.icon?.nameField ? t[f.slots?.defaultProps?.icon?.nameField] || "" : f.slots?.defaultProps?.icon?.name || "",
|
|
1707
|
+
style: u(f.slots?.defaultProps?.icon?.styleField ? t[f.slots?.defaultProps?.icon?.styleField] || {} : f.slots?.defaultProps?.icon?.style || {})
|
|
1708
1708
|
}, null, 8, ["name", "style"]), [[C, t[f.field]]])], 4)) : f.slots?.defaultType == "buttons" ? (h(), i("span", {
|
|
1709
1709
|
key: 7,
|
|
1710
|
-
style: u({ paddingLeft: S(
|
|
1710
|
+
style: u({ paddingLeft: S(W).paddingLeft })
|
|
1711
1711
|
}, [f.slots?.defaultProps?.buttons?.options?.length ? (h(!0), i(e, { key: 0 }, _(f.slots?.defaultProps?.buttons?.options || [], (n) => (h(), i("div", Ne, [(h(!0), i(e, null, _(n, (n) => (h(), i(e, null, [!n.showField || t[n.showField] ? (h(), i("span", {
|
|
1712
1712
|
key: 0,
|
|
1713
1713
|
title: n.tip || ""
|
|
@@ -1732,8 +1732,8 @@ var ge = (e) => {
|
|
|
1732
1732
|
"onClick"
|
|
1733
1733
|
])], 8, Pe)) : r("", !0)], 64))), 256))]))), 256)) : r("", !0)], 4)) : f.slots?.defaultType == "switch" ? (h(), i("span", {
|
|
1734
1734
|
key: 8,
|
|
1735
|
-
style: u({ paddingLeft: S(
|
|
1736
|
-
}, [!f.slots?.defaultProps?.switch?.showField || t[f.slots?.defaultProps?.switch?.showField] ? (h(), n(S(
|
|
1735
|
+
style: u({ paddingLeft: S(W).paddingLeft })
|
|
1736
|
+
}, [!f.slots?.defaultProps?.switch?.showField || t[f.slots?.defaultProps?.switch?.showField] ? (h(), n(S(ie), {
|
|
1737
1737
|
key: 0,
|
|
1738
1738
|
size: "mini",
|
|
1739
1739
|
modelValue: t[f.field],
|
|
@@ -1764,14 +1764,14 @@ var ge = (e) => {
|
|
|
1764
1764
|
])])) : (h(), i("span", {
|
|
1765
1765
|
key: 10,
|
|
1766
1766
|
class: l({ "pretextTable-text-ellipsis": !!p.showOverflow }),
|
|
1767
|
-
style: u({ paddingLeft: S(
|
|
1767
|
+
style: u({ paddingLeft: S(W).paddingLeft }),
|
|
1768
1768
|
title: p.showOverflow && t[f.field] || ""
|
|
1769
|
-
}, [f.slots?.default ? (h(), i(e, { key: 0 }, [!p.lazyLoadSlot || t.slotShowTimestamp == S(
|
|
1769
|
+
}, [f.slots?.default ? (h(), i(e, { key: 0 }, [!p.lazyLoadSlot || t.slotShowTimestamp == S(pt) ? v(c.$slots, f.slots?.default, {
|
|
1770
1770
|
key: 0,
|
|
1771
1771
|
row: t,
|
|
1772
1772
|
column: f,
|
|
1773
1773
|
rowIndex: d
|
|
1774
|
-
}, () => [o(b(t[f.field] ?? ""), 1)]) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(b(t[f.field] ?? ""), 1)], 64))], 14, Ie))], 64)) : r("", !0)], 46,
|
|
1774
|
+
}, () => [o(b(t[f.field] ?? ""), 1)]) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(b(t[f.field] ?? ""), 1)], 64))], 14, Ie))], 64)) : r("", !0)], 46, U))), 128))], 4))], 64))), 128))], 4),
|
|
1775
1775
|
p.showFooter && S(R).length > 0 ? (h(), i("div", {
|
|
1776
1776
|
key: 1,
|
|
1777
1777
|
style: u([{
|
|
@@ -1783,17 +1783,17 @@ var ge = (e) => {
|
|
|
1783
1783
|
contain: "layout paint style",
|
|
1784
1784
|
bottom: "0",
|
|
1785
1785
|
"z-index": "1"
|
|
1786
|
-
}, { gridTemplateColumns: S(
|
|
1786
|
+
}, { gridTemplateColumns: S(I) }])
|
|
1787
1787
|
}, [(h(!0), i(e, null, _(S(R), (t) => (h(), i(e, null, [(h(!0), i(e, null, _(t, (e, t) => (h(), i("div", {
|
|
1788
1788
|
key: "footer_" + e.field,
|
|
1789
1789
|
class: "pretextTable-grid-footer",
|
|
1790
1790
|
style: u({
|
|
1791
|
-
fontSize: S(
|
|
1791
|
+
fontSize: S(me).fontSize,
|
|
1792
1792
|
zIndex: t == 0 ? 3 : e.fixed == "left" || e.fixed == "right" ? 2 : 1,
|
|
1793
|
-
left: e.fixed == "left" ? S(
|
|
1794
|
-
right: e.fixed == "right" ? S(
|
|
1793
|
+
left: e.fixed == "left" ? S(K)[t] : "",
|
|
1794
|
+
right: e.fixed == "right" ? S(q)[t] : "",
|
|
1795
1795
|
borderLeft: e.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1796
|
-
boxShadow: e.fixed == "left" && t == S(
|
|
1796
|
+
boxShadow: e.fixed == "left" && t == S(G) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : e.fixed == "right" && t == S(Re) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1797
1797
|
height: `${e.height}px`,
|
|
1798
1798
|
maxHeight: `${e.height}px`
|
|
1799
1799
|
})
|
|
@@ -1816,12 +1816,12 @@ var ge = (e) => {
|
|
|
1816
1816
|
transform: `translateX(${S(ct)}px)`,
|
|
1817
1817
|
height: S($) + "px"
|
|
1818
1818
|
}]) }, null, 4), [[C, S(st)]]),
|
|
1819
|
-
a("div", { style: u({ backgroundColor: S(
|
|
1819
|
+
a("div", { style: u({ backgroundColor: S(mt) ? "red" : "" }) }, null, 4)
|
|
1820
1820
|
], 512));
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1823
|
-
|
|
1824
|
-
e.component("HolyesTable",
|
|
1822
|
+
}), G = W;
|
|
1823
|
+
G.install = (e) => {
|
|
1824
|
+
e.component("HolyesTable", G);
|
|
1825
1825
|
};
|
|
1826
1826
|
//#endregion
|
|
1827
|
-
export {
|
|
1827
|
+
export { G as default, W as pretextTable };
|