holyes-table 1.0.24 → 1.0.25
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/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
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
|
|
3
|
+
import N, { debounce as oe, isNaN as P, orderBy as se, toArrayTree as ce } from "xe-utils";
|
|
4
4
|
//#region lib/pretextTable/worker/pretextTableGetItemHeight.ts?worker&inline
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var le = "(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()}})();", ue = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", le], { type: "text/javascript;charset=utf-8" });
|
|
6
|
+
function de(e) {
|
|
7
7
|
let t;
|
|
8
8
|
try {
|
|
9
|
-
if (t =
|
|
9
|
+
if (t = ue && (self.URL || self.webkitURL).createObjectURL(ue), !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(le), { name: e?.name });
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region lib/pretextTable/hook/useHeader.ts
|
|
20
|
-
function
|
|
20
|
+
function fe(e) {
|
|
21
21
|
let { pretextTableRef: t } = e, n = g(0), r = {
|
|
22
22
|
fontWeight: "600",
|
|
23
23
|
fontSize: "14px"
|
|
@@ -68,7 +68,7 @@ function de(e) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region lib/pretextTable/hook/useGridStyles.ts
|
|
71
|
-
var
|
|
71
|
+
var pe = (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 fe = (e) => {
|
|
|
93
93
|
a.value = o, t.value = s, n.value = c, r.value = l, i.value = u;
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, F = {
|
|
97
97
|
id: "pretextId",
|
|
98
98
|
seq: "pretextSeq",
|
|
99
99
|
stripe: "pretextStripe",
|
|
@@ -108,7 +108,7 @@ var fe = (e) => {
|
|
|
108
108
|
expandChildren: "pretextExpandChildren",
|
|
109
109
|
parentRow: "pretextParentRow",
|
|
110
110
|
checkedIndeterminate: "pretextCheckedIndeterminate_"
|
|
111
|
-
},
|
|
111
|
+
}, I = {
|
|
112
112
|
isOpenTree: !1,
|
|
113
113
|
transform: !0,
|
|
114
114
|
idField: "id",
|
|
@@ -123,8 +123,8 @@ var fe = (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, baseDataMap: a, emits: o, treeConfig: s } = e, c = s?.isOpenTree ??
|
|
126
|
+
function me(e) {
|
|
127
|
+
let { columns: t, blurAnyElement: n, nowDataSource: r, baseDataSource: i, baseDataMap: a, emits: o, treeConfig: s } = e, c = s?.isOpenTree ?? I.isOpenTree, l = F.filterChildren, u = s?.childrenField ?? I.childrenField, d = s?.checkStrictly ?? I.checkStrictly, f = [], p = () => {
|
|
128
128
|
f = [];
|
|
129
129
|
for (let e of t.value) e.type == "checkbox" && f.push(e.field);
|
|
130
130
|
return f;
|
|
@@ -142,7 +142,7 @@ function pe(e) {
|
|
|
142
142
|
}, v = (e) => {
|
|
143
143
|
let t = {}, n = [];
|
|
144
144
|
if (e ? n.push(e) : n = p(), d) {
|
|
145
|
-
for (let e of r.value) for (let r of n) e[
|
|
145
|
+
for (let e of r.value) for (let r of n) e[F.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) {
|
|
@@ -182,30 +182,30 @@ function pe(e) {
|
|
|
182
182
|
if (!c || !d) return;
|
|
183
183
|
let n = t ?? f[0];
|
|
184
184
|
if (!e) return;
|
|
185
|
-
let r = a.get(e?.[
|
|
185
|
+
let r = a.get(e?.[F.parentRow]) || null, i = [];
|
|
186
186
|
e?.[l]?.length ? i = e[l] : e?.[u]?.length && (i = e[u]);
|
|
187
187
|
let o = 0, s = 0;
|
|
188
188
|
if (i.length) {
|
|
189
|
-
for (let e of i) e[n] && o++, e[
|
|
189
|
+
for (let e of i) e[n] && o++, e[F.checkedIndeterminate + n] && s++;
|
|
190
190
|
switch (!0) {
|
|
191
191
|
case o == 0 && s == 0:
|
|
192
|
-
e[n] = !1, e[
|
|
192
|
+
e[n] = !1, e[F.checkedIndeterminate + n] = !1;
|
|
193
193
|
break;
|
|
194
194
|
case o == i.length && s == 0:
|
|
195
|
-
e[n] = !0, e[
|
|
195
|
+
e[n] = !0, e[F.checkedIndeterminate + n] = !1;
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
e[n] = !1, e[
|
|
198
|
+
e[n] = !1, e[F.checkedIndeterminate + n] = !0;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
y(r, n);
|
|
203
203
|
}, b = (e, t, n) => {
|
|
204
204
|
let r = n ?? f[0];
|
|
205
|
-
for (let n of e) n[r] = t, n[
|
|
205
|
+
for (let n of e) n[r] = t, n[F.checkedIndeterminate + r] = !1, c && d && (n[l]?.length ? b(n[l], t, r) : n[u]?.length && b(n[u], t, r));
|
|
206
206
|
}, x = (e, t, n) => {
|
|
207
207
|
let r = n ?? f[0];
|
|
208
|
-
for (let n of e) n[r] = t, n[
|
|
208
|
+
for (let n of e) n[r] = t, n[F.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
211
|
getCheckField: p,
|
|
@@ -219,8 +219,8 @@ function pe(e) {
|
|
|
219
219
|
let r = [];
|
|
220
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 = a.get(n?.[
|
|
223
|
-
t && e.set(t[
|
|
222
|
+
let t = a.get(n?.[F.parentRow]) || null;
|
|
223
|
+
t && e.set(t[F.id], t);
|
|
224
224
|
}
|
|
225
225
|
}, n = r.value;
|
|
226
226
|
for (let e of n) t(e);
|
|
@@ -257,7 +257,7 @@ function pe(e) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region lib/pretextTable/hook/useSort.ts
|
|
260
|
-
function
|
|
260
|
+
function he(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 = "";
|
|
@@ -293,7 +293,7 @@ function me(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, F.index, "asc")) : r(d(t.value, c, l.value)), n();
|
|
297
297
|
};
|
|
298
298
|
return {
|
|
299
299
|
sortField: s,
|
|
@@ -304,7 +304,7 @@ function me(e) {
|
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region lib/pretextTable/hook/useFilter.ts
|
|
307
|
-
function
|
|
307
|
+
function ge(e) {
|
|
308
308
|
let { columns: t, baseDataSource: n, setNowDataSource: r, scrollTo: i, refresh: a, afterFilter: o, treeConfig: s, defaultTreeConfig: c } = e, l = [{
|
|
309
309
|
label: "模糊搜索",
|
|
310
310
|
value: "模糊"
|
|
@@ -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[F.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[F.filterChildren] = [];
|
|
470
470
|
}, E = () => {
|
|
471
471
|
let e = [];
|
|
472
472
|
baseDataSourceFor: for (let t of n.value) {
|
|
@@ -501,7 +501,7 @@ function he(e) {
|
|
|
501
501
|
}
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region lib/pretextTable/hook/useHeaderResize.ts
|
|
504
|
-
var
|
|
504
|
+
var _e = (e) => {
|
|
505
505
|
let { pretextTableRef: t, afterResize: n } = e, r = g(!1), i = 0, a = g(0), o = 0, s = 0, c = null, l = (e, n) => {
|
|
506
506
|
e.preventDefault(), e.stopPropagation(), e.target && (c = n, o = t.value?.getBoundingClientRect().left || 0, r.value = !0, i = e.clientX - o - 0, a.value = i, s = e.clientX - o - 0 - (n.width || n.minWidth || 0) + (n.minWidth || 100), document.body.classList.add("pretextTable-resize-dragging"), document.addEventListener("mousemove", d), document.addEventListener("mouseup", f));
|
|
507
507
|
}, u = null, d = (e) => {
|
|
@@ -523,7 +523,7 @@ var ge = (e) => {
|
|
|
523
523
|
dragLineLeft: a,
|
|
524
524
|
startResize: l
|
|
525
525
|
};
|
|
526
|
-
},
|
|
526
|
+
}, ve = (e) => {
|
|
527
527
|
let { showFooter: t, nowDataSource: n, columns: r } = e, i = g(0), a = g([]), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
528
528
|
if (s.clear(), !t) {
|
|
529
529
|
i.value = 0;
|
|
@@ -622,53 +622,53 @@ var ge = (e) => {
|
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
},
|
|
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[
|
|
625
|
+
}, ye = (e) => {
|
|
626
|
+
let { treeConfig: t, afterTreeExpand: n, insertChild: r } = e, i = t?.idField || I.idField, a = t?.parentField || I.parentField, o = t?.childrenField || I.childrenField, s = /* @__PURE__ */ new Map(), c = (e, n = !1) => {
|
|
627
|
+
let r = t?.childrenField || I.childrenField, i = t?.idField || F.id || "";
|
|
628
|
+
for (let t of e) s.get(t[i]) && (t[F.isCollapsed] = !0), n && t[r]?.length && c(t[r], !0);
|
|
629
629
|
};
|
|
630
630
|
return {
|
|
631
|
-
defaultTreeConfig:
|
|
631
|
+
defaultTreeConfig: I,
|
|
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 = ce(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[F.parentRow] = e[F.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 || I.hasChildField, o = t?.childrenField || I.childrenField, c = t?.idField || F.id;
|
|
652
|
+
for (let n of e) if (n[F.isCollapsed] = i, i) {
|
|
653
653
|
if (s.set(n[c], n), t?.lazy && n[a] && !n[o]?.length) {
|
|
654
|
-
n[
|
|
654
|
+
n[F.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[F.lazyLoading] = !1;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
} else s.delete(n[c]);
|
|
665
665
|
n(e, i);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
|
-
},
|
|
668
|
+
}, L = () => {
|
|
669
669
|
let e = document.activeElement;
|
|
670
670
|
e?.blur && e.blur();
|
|
671
|
-
},
|
|
671
|
+
}, be = (e) => {
|
|
672
672
|
let { expandConfig: t, afterRowExpand: n, insertExpandRow: r } = e, i = {
|
|
673
673
|
transform: !0,
|
|
674
674
|
parentField: "parentId",
|
|
@@ -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[F.isRowExpanded] = t, t ? (a.set(n[F.id], n), r(n)) : a.delete(n[F.id]);
|
|
695
695
|
n(e, t);
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
},
|
|
698
|
+
}, R = (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;
|
|
@@ -708,19 +708,19 @@ var ge = (e) => {
|
|
|
708
708
|
i.value?.scrollTo(e);
|
|
709
709
|
}, m = /* @__PURE__ */ new Map(), h = y([]), _ = y([]), v = [], b = /* @__PURE__ */ new Map(), S = (t) => {
|
|
710
710
|
b.clear(), _.value = t, v = [], ne();
|
|
711
|
-
let n = 1, r = !1, i = 0, a = e.props.treeConfig?.childrenField ||
|
|
712
|
-
if (v.push(t), t[
|
|
711
|
+
let n = 1, r = !1, i = 0, a = e.props.treeConfig?.childrenField || J.childrenField, o = (t, n, r) => {
|
|
712
|
+
if (v.push(t), t[F.level] = r, e.props.treeConfig?.isOpenTree) {
|
|
713
713
|
let e = t?.[a] || [];
|
|
714
|
-
if (t?.[
|
|
714
|
+
if (t?.[F.filterChildren]?.length > 0 && (e = t[F.filterChildren]), e.length > 0 && t[F.isCollapsed]) {
|
|
715
715
|
let t = 1;
|
|
716
|
-
for (let i of e) i[
|
|
716
|
+
for (let i of e) i[F.stripe] = !1, i[F.seq] = n + "." + t, t++, o(i, i[F.seq], r + 1);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
if (e.props.expandConfig?.isExpand && t[
|
|
719
|
+
if (e.props.expandConfig?.isExpand && t[F.expandChildren]?.length > 0 && t[F.isRowExpanded]) for (let e of t[F.expandChildren]) v.push(e);
|
|
720
720
|
};
|
|
721
|
-
for (let e of _.value) e[
|
|
721
|
+
for (let e of _.value) e[F.seq] = n, o(e, `${n}`, 1), n++, e[F.stripe] = r, r = !r;
|
|
722
722
|
let s = 1;
|
|
723
|
-
for (let e of v) i += e[
|
|
723
|
+
for (let e of v) i += e[F.height] || 0, b.set(s, {
|
|
724
724
|
totalHeight: i,
|
|
725
725
|
row: e
|
|
726
726
|
}), s++;
|
|
@@ -744,25 +744,25 @@ var ge = (e) => {
|
|
|
744
744
|
treeNode: t.treeNode || !1
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
let o = await
|
|
747
|
+
let o = await I({
|
|
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
|
+
R(o.heightDatas);
|
|
754
|
+
let t = e.props.treeConfig?.childrenField || J.childrenField;
|
|
755
755
|
i[t] = n;
|
|
756
756
|
}
|
|
757
757
|
}, T = (t) => {
|
|
758
758
|
let n = null;
|
|
759
|
-
if (n = typeof t == "string" ? m.get(t) : t, n[
|
|
759
|
+
if (n = typeof t == "string" ? m.get(t) : t, n[F.expandChildren]?.length) return;
|
|
760
760
|
let r = {
|
|
761
|
-
[
|
|
762
|
-
[
|
|
761
|
+
[F.isExpandRow]: !0,
|
|
762
|
+
[F.height]: e.props.expandConfig?.height || 0
|
|
763
763
|
};
|
|
764
|
-
Z([r]), n[
|
|
765
|
-
}, { headerHeight: E, headerStyles: ee, createHeader: D, headerRef: O, getHeaderRefHeight: k } =
|
|
764
|
+
Z([r]), n[F.expandChildren] = [r];
|
|
765
|
+
}, { headerHeight: E, headerStyles: ee, createHeader: D, headerRef: O, getHeaderRefHeight: k } = fe({ pretextTableRef: r }), { footerHeight: te, footerColumns: A, getFooterHeight: j, updateFooter: ne, updateFooterCellLabel: re } = ve({
|
|
766
766
|
showFooter: e.props.showFooter,
|
|
767
767
|
nowDataSource: _,
|
|
768
768
|
columns: t
|
|
@@ -772,53 +772,53 @@ var ge = (e) => {
|
|
|
772
772
|
ie.value = e;
|
|
773
773
|
}, P = () => {
|
|
774
774
|
let e = 0;
|
|
775
|
-
for (let t of v) e += t[
|
|
775
|
+
for (let t of v) e += t[F.height] || 0;
|
|
776
776
|
M.value = e;
|
|
777
|
-
}, se = (e, t) => e ? isNaN(Number(e)) ? /^\d+px$/.test(e) ? e : t : e + "px" : t,
|
|
777
|
+
}, se = (e, t) => e ? isNaN(Number(e)) ? /^\d+px$/.test(e) ? e : t : e + "px" : t, ce = {
|
|
778
778
|
fontWeight: "400",
|
|
779
779
|
fontSize: se(e.props.cellStyle?.fontSize, "14px"),
|
|
780
780
|
paddingLeft: se(e.props.cellStyle?.paddingLeft, "0px")
|
|
781
|
-
},
|
|
782
|
-
let i = new
|
|
781
|
+
}, le = !!e.props.showOverflow, ue = e.props.cellMinHeight || 22, I = (t) => new Promise((n, r) => {
|
|
782
|
+
let i = new de(), 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: ce,
|
|
788
788
|
divLineHeight: 22,
|
|
789
|
-
keyNames:
|
|
790
|
-
isNoAutoWrap:
|
|
791
|
-
cellMinHeight:
|
|
789
|
+
keyNames: F,
|
|
790
|
+
isNoAutoWrap: le,
|
|
791
|
+
cellMinHeight: ue,
|
|
792
792
|
treeConfig: {
|
|
793
793
|
...e.props.treeConfig,
|
|
794
794
|
loadMethod: void 0
|
|
795
795
|
},
|
|
796
|
-
defaultTreeConfig: { ...
|
|
796
|
+
defaultTreeConfig: { ...J }
|
|
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
|
+
}), R = (e) => {
|
|
804
804
|
for (let t of e) {
|
|
805
805
|
let e = m.get(t.id);
|
|
806
|
-
e && (e[
|
|
806
|
+
e && (e[F.height] = t.pretextHeight);
|
|
807
807
|
}
|
|
808
|
-
},
|
|
808
|
+
}, xe = 0, z = !1, Se = async (e) => {
|
|
809
809
|
if (t.value?.length === 0) {
|
|
810
|
-
if (
|
|
810
|
+
if (xe++, xe > 50) {
|
|
811
811
|
console.error("表格没有设置 columns.value");
|
|
812
812
|
return;
|
|
813
813
|
}
|
|
814
814
|
setTimeout(() => {
|
|
815
|
-
|
|
815
|
+
Se(e);
|
|
816
816
|
}, 100);
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
let n = 0;
|
|
820
820
|
if (e.length === 0) {
|
|
821
|
-
S(e), P(),
|
|
821
|
+
S(e), P(), ke.value = [];
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
let r = [];
|
|
@@ -838,15 +838,15 @@ var ge = (e) => {
|
|
|
838
838
|
treeNode: t.treeNode || !1
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
|
-
if (e.length *
|
|
841
|
+
if (e.length * Ce >= we) {
|
|
842
842
|
let t = 5e3;
|
|
843
|
-
|
|
844
|
-
let i = await
|
|
843
|
+
z = !0;
|
|
844
|
+
let i = await I({
|
|
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, R(i.heightDatas), S(e), P(), H());
|
|
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,48 +859,48 @@ var ge = (e) => {
|
|
|
859
859
|
c++;
|
|
860
860
|
continue;
|
|
861
861
|
}
|
|
862
|
-
let t = await
|
|
862
|
+
let t = await I({
|
|
863
863
|
tempData: i.tempData,
|
|
864
864
|
index: i.tempI,
|
|
865
865
|
columns: r
|
|
866
866
|
});
|
|
867
|
-
t && (n += t.tempItemHeights, N(n), ae(n), c++,
|
|
867
|
+
t && (n += t.tempItemHeights, N(n), ae(n), c++, R(t.heightDatas), c == s && (S(e), P(), z = !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
|
+
z = !0;
|
|
874
|
+
let t = await I({
|
|
875
875
|
tempData: e,
|
|
876
876
|
index: 0,
|
|
877
877
|
columns: r
|
|
878
878
|
});
|
|
879
|
-
|
|
879
|
+
z = !1, t && (R(t.heightDatas), S(e), P(), H());
|
|
880
880
|
}
|
|
881
|
-
},
|
|
882
|
-
if (
|
|
883
|
-
|
|
884
|
-
|
|
881
|
+
}, Ce = 0, we = 1e4, B = 0, Te = 0, Ee = g(0), V = !1, De = (e) => {
|
|
882
|
+
if (Te = i.value?.scrollLeft || 0, B == i.value?.scrollTop) {
|
|
883
|
+
V ||= (window.requestAnimationFrame(() => {
|
|
884
|
+
Pe(), V = !1;
|
|
885
885
|
}), !0);
|
|
886
886
|
return;
|
|
887
887
|
}
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
B = i.value?.scrollTop || 0, e.preventDefault(), V ||= (window.requestAnimationFrame(() => {
|
|
889
|
+
H(), V = !1;
|
|
890
890
|
}), !0);
|
|
891
|
-
},
|
|
891
|
+
}, Oe = (e) => {
|
|
892
892
|
if (e.shiftKey) {
|
|
893
893
|
e.preventDefault(), e.stopPropagation(), e.deltaY > 0 || e.deltaX > 0 ? i.value?.scrollBy({ left: 100 }) : i.value?.scrollBy({ left: -100 });
|
|
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
|
-
},
|
|
897
|
+
}, ke = g([]), Ae = g(0), je = oe((e, t) => {
|
|
898
898
|
setTimeout(() => {
|
|
899
|
-
|
|
899
|
+
Ae.value = t, e.forEach((e) => {
|
|
900
900
|
e.slotShowTimestamp = t;
|
|
901
901
|
}), l();
|
|
902
902
|
}, 0);
|
|
903
|
-
}, 100),
|
|
903
|
+
}, 100), H = () => {
|
|
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) {
|
|
@@ -926,26 +926,26 @@ var ge = (e) => {
|
|
|
926
926
|
s = b.get(i) || {
|
|
927
927
|
totalHeight: 0,
|
|
928
928
|
row: {}
|
|
929
|
-
}, r = s.totalHeight,
|
|
929
|
+
}, r = s.totalHeight, Ee.value = r - s.row[F.height], o.push(s.row), n = e + t;
|
|
930
930
|
getHeightFor: for (let e = i; e < v.length; e++) {
|
|
931
931
|
let t = v[e];
|
|
932
|
-
if (r += t[
|
|
932
|
+
if (r += t[F.height], n) if (r <= n) o.push(t);
|
|
933
933
|
else break getHeightFor;
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
if (s == "遍历" || c) getHeightFor: for (let i = 0; i < v.length; i++) {
|
|
937
937
|
let a = v[i];
|
|
938
938
|
if (a) {
|
|
939
|
-
if (r += a[
|
|
940
|
-
|
|
939
|
+
if (r += a[F.height], e <= r && n == 0) {
|
|
940
|
+
Ee.value = r - a[F.height], o.push(a), n = e + t;
|
|
941
941
|
continue;
|
|
942
942
|
}
|
|
943
943
|
if (n) if (r <= n) o.push(a);
|
|
944
944
|
else break getHeightFor;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
|
|
948
|
-
},
|
|
947
|
+
ke.value = o, Pe(), je(o, Math.floor(performance.now()));
|
|
948
|
+
}, Me = g(0), Ne = g(0), Pe = () => {
|
|
949
949
|
if (!i.value) return;
|
|
950
950
|
let e = i.value.scrollLeft, n = i.value.clientWidth;
|
|
951
951
|
for (let e of t.value) (e.fixed == "left" || e.fixed == "right") && (n -= e.width || e.minWidth || 0);
|
|
@@ -963,17 +963,17 @@ var ge = (e) => {
|
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
r <= a && (
|
|
967
|
-
},
|
|
968
|
-
e.props.rowConfig?.isCurrent &&
|
|
969
|
-
},
|
|
970
|
-
if (
|
|
971
|
-
let r = e.props.treeConfig.childrenField ||
|
|
966
|
+
r <= a && (Me.value = r, Ne.value = a);
|
|
967
|
+
}, Fe = oe(H, 200), { fixedColumnsLeft: Ie, fixedColumnsRight: Le, fixedLeftIndex: Re, fixedRightIndex: U, reflashGridTemplateColumns: W, gridTemplateColumns: ze, getGridStyles: G } = pe({ columns: t }), K = y({}), Be = (t, n = !0) => {
|
|
968
|
+
e.props.rowConfig?.isCurrent && K.value != t && (K.value = t, n && e.emits("currentChange", { newValue: t }));
|
|
969
|
+
}, Ve = (t, n) => {
|
|
970
|
+
if (Be(t), e.props.treeConfig?.isOpenTree) {
|
|
971
|
+
let r = e.props.treeConfig.childrenField || J.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
|
-
|
|
976
|
+
ct([t], !t[F.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
|
-
|
|
984
|
+
ut([t], !t[F.isRowExpanded]);
|
|
985
985
|
break;
|
|
986
986
|
default: break;
|
|
987
987
|
}
|
|
@@ -989,165 +989,168 @@ var ge = (e) => {
|
|
|
989
989
|
row: t,
|
|
990
990
|
column: n
|
|
991
991
|
});
|
|
992
|
-
},
|
|
993
|
-
e.emits && e.emits("headerCellClick", { column: t }), e.props.sortConfig?.trigger == "cell" && t.sortable &&
|
|
994
|
-
},
|
|
995
|
-
e.props.rowConfig?.isHover && (
|
|
996
|
-
},
|
|
997
|
-
|
|
992
|
+
}, He = (t) => {
|
|
993
|
+
e.emits && e.emits("headerCellClick", { column: t }), e.props.sortConfig?.trigger == "cell" && t.sortable && gt(t.field, "auto"), e.emits && e.emits("cellClick", { column: t });
|
|
994
|
+
}, Ue = y({}), We = (t) => {
|
|
995
|
+
e.props.rowConfig?.isHover && (Ue.value = t);
|
|
996
|
+
}, Ge = (e) => {
|
|
997
|
+
let { cellClassName: t } = e.column;
|
|
998
|
+
return typeof t == "function" ? t(e) : t || "";
|
|
999
|
+
}, { getCheckField: Ke, headerChecked: qe, headerCheckedIndeterminate: Je, onHeaderChecked: Ye, upDataHeaderChecked: Xe, upDataAllRowCheckedDeep: Ze, onCellChecked: Qe, getCheckboxRecords: $e, clearCheckboxRowInit: et } = me({
|
|
1000
|
+
pretextId: F.id,
|
|
998
1001
|
columns: t,
|
|
999
|
-
blurAnyElement:
|
|
1002
|
+
blurAnyElement: L,
|
|
1000
1003
|
nowDataSource: _,
|
|
1001
1004
|
baseDataSource: h,
|
|
1002
1005
|
baseDataMap: m,
|
|
1003
1006
|
emits: e.emits,
|
|
1004
1007
|
treeConfig: e.props.treeConfig
|
|
1005
|
-
}),
|
|
1006
|
-
|
|
1008
|
+
}), tt = (e) => {
|
|
1009
|
+
et();
|
|
1007
1010
|
let t = [];
|
|
1008
|
-
if (t = e ? [e] :
|
|
1009
|
-
}, { isDragging:
|
|
1011
|
+
if (t = e ? [e] : Ke(), t) for (let e of _.value) for (let n of t) e[n] = !1;
|
|
1012
|
+
}, { isDragging: nt, dragLineLeft: rt, startResize: it } = _e({
|
|
1010
1013
|
pretextTableRef: r,
|
|
1011
1014
|
afterResize: (t) => {
|
|
1012
|
-
|
|
1015
|
+
W(), e.emits("resizableChange", {
|
|
1013
1016
|
column: { ...t.column },
|
|
1014
1017
|
resizeWidth: t.column.width
|
|
1015
1018
|
});
|
|
1016
1019
|
}
|
|
1017
|
-
}),
|
|
1018
|
-
S(_.value), P(),
|
|
1019
|
-
},
|
|
1020
|
+
}), at = () => {
|
|
1021
|
+
S(_.value), P(), H();
|
|
1022
|
+
}, q = (t) => {
|
|
1020
1023
|
if (t) {
|
|
1021
|
-
let t = e.props.treeConfig?.childrenField ||
|
|
1024
|
+
let t = e.props.treeConfig?.childrenField || J.childrenField, n = [], r = (e) => {
|
|
1022
1025
|
if (e[t]?.length) {
|
|
1023
1026
|
n.push(e);
|
|
1024
1027
|
for (let n of e[t]) r(n);
|
|
1025
1028
|
}
|
|
1026
1029
|
};
|
|
1027
1030
|
for (let e of _.value) r(e);
|
|
1028
|
-
|
|
1029
|
-
} else
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1032
|
-
e[
|
|
1033
|
-
}),
|
|
1034
|
-
}, { defaultTreeConfig:
|
|
1031
|
+
ct(n, !0);
|
|
1032
|
+
} else ot();
|
|
1033
|
+
}, ot = () => {
|
|
1034
|
+
Y.forEach((e) => {
|
|
1035
|
+
e[F.isCollapsed] = !1;
|
|
1036
|
+
}), Y.clear(), S(_.value), P(), H();
|
|
1037
|
+
}, { defaultTreeConfig: J, treeExpandMap: Y, handleTree: st, setTreeExpand: ct } = ye({
|
|
1035
1038
|
treeConfig: e.props.treeConfig,
|
|
1036
|
-
afterTreeExpand:
|
|
1039
|
+
afterTreeExpand: at,
|
|
1037
1040
|
insertChild: C
|
|
1038
|
-
}), { handleExpand:
|
|
1041
|
+
}), { handleExpand: lt, setRowExpand: ut } = be({
|
|
1039
1042
|
expandConfig: e.props.expandConfig,
|
|
1040
1043
|
afterRowExpand: (t, n) => {
|
|
1041
|
-
S(_.value), P(),
|
|
1044
|
+
S(_.value), P(), H(), e.emits("toggleRowExpand", {
|
|
1042
1045
|
expanded: n,
|
|
1043
1046
|
rows: t
|
|
1044
1047
|
});
|
|
1045
1048
|
},
|
|
1046
1049
|
insertExpandRow: T
|
|
1047
|
-
}),
|
|
1048
|
-
h.value = [], S([]), m.clear(),
|
|
1050
|
+
}), dt = 0, X = () => {
|
|
1051
|
+
h.value = [], S([]), m.clear(), K.value = {}, Ue.value = {}, et(), ht.value = "", $.value = null, Et(), dt = 0, xe = 0;
|
|
1049
1052
|
}, Z = (t) => {
|
|
1050
|
-
let n =
|
|
1053
|
+
let n = dt;
|
|
1051
1054
|
for (let r of t) {
|
|
1052
|
-
r[
|
|
1053
|
-
let t = e.props.treeConfig?.childrenField ||
|
|
1055
|
+
r[F.id] = Math.random().toString(36).substring(2), r[F.index] = n, n++, dt++, m.set(r[F.id], r);
|
|
1056
|
+
let t = e.props.treeConfig?.childrenField || J.childrenField;
|
|
1054
1057
|
e.props.treeConfig?.isOpenTree && r?.[t]?.length > 0 && Z(r[t]);
|
|
1055
1058
|
}
|
|
1056
|
-
},
|
|
1057
|
-
|
|
1058
|
-
n >= 50 ||
|
|
1059
|
+
}, ft = (e, t, n = 0) => {
|
|
1060
|
+
z ? setTimeout(() => {
|
|
1061
|
+
n >= 50 || ft(e, t, n + 1);
|
|
1059
1062
|
}, 100) : u({
|
|
1060
1063
|
top: e,
|
|
1061
1064
|
left: t
|
|
1062
1065
|
});
|
|
1063
|
-
},
|
|
1064
|
-
let t =
|
|
1065
|
-
await Q(e),
|
|
1066
|
+
}, pt = async (e) => {
|
|
1067
|
+
let t = B, n = Te;
|
|
1068
|
+
await Q(e), ft(t, n);
|
|
1066
1069
|
}, Q = async (e) => {
|
|
1067
1070
|
try {
|
|
1068
|
-
u({ top: 0 }),
|
|
1071
|
+
u({ top: 0 }), X(), Z(e || []), h.value = st(e || []) || [], Se(h.value);
|
|
1069
1072
|
} catch (e) {
|
|
1070
1073
|
console.error(e);
|
|
1071
1074
|
}
|
|
1072
|
-
},
|
|
1073
|
-
let e = v.filter((e) => !e[
|
|
1075
|
+
}, mt = () => {
|
|
1076
|
+
let e = v.filter((e) => !e[F.isExpandRow]);
|
|
1074
1077
|
return {
|
|
1075
1078
|
fullData: h.value,
|
|
1076
1079
|
visibleData: e,
|
|
1077
1080
|
baseDataMap: m
|
|
1078
1081
|
};
|
|
1079
|
-
}, { sortField:
|
|
1082
|
+
}, { sortField: ht, sortOrder: $, sort: gt, handleSort: _t } = he({
|
|
1080
1083
|
nowDataSource: _,
|
|
1081
|
-
getVisibleData:
|
|
1084
|
+
getVisibleData: H,
|
|
1082
1085
|
setNowDataSource: S,
|
|
1083
1086
|
treeConfig: e.props.treeConfig,
|
|
1084
|
-
defaultTreeConfig:
|
|
1087
|
+
defaultTreeConfig: J,
|
|
1085
1088
|
columns: t
|
|
1086
|
-
}), { filterPopupWidth:
|
|
1089
|
+
}), { filterPopupWidth: vt, filterPopupId: yt, inputFilterOptions: bt, numberFilterOptions: xt, filterFields: St, getFilterFields: Ct, filterClick: wt, setFilter: Tt, clearFilter: Et } = ge({
|
|
1087
1090
|
columns: t,
|
|
1088
1091
|
baseDataSource: h,
|
|
1089
1092
|
setNowDataSource: S,
|
|
1090
1093
|
scrollTo: u,
|
|
1091
1094
|
refresh: l,
|
|
1092
1095
|
afterFilter: () => {
|
|
1093
|
-
P(),
|
|
1096
|
+
P(), _t(), Ze();
|
|
1094
1097
|
},
|
|
1095
1098
|
treeConfig: e.props.treeConfig,
|
|
1096
|
-
defaultTreeConfig:
|
|
1097
|
-
}),
|
|
1098
|
-
|
|
1099
|
-
},
|
|
1099
|
+
defaultTreeConfig: J
|
|
1100
|
+
}), Dt = (e) => {
|
|
1101
|
+
L(), e.listFilter.selectedValue.length == e.listFilter.listOptions.length ? e.listFilter.selectedValue = [] : e.listFilter.selectedValue = e.listFilter.listOptions.map((e) => e.value);
|
|
1102
|
+
}, Ot = (i) => {
|
|
1100
1103
|
if (!r.value) {
|
|
1101
1104
|
setTimeout(() => {
|
|
1102
|
-
|
|
1105
|
+
Ot(i);
|
|
1103
1106
|
}, 100);
|
|
1104
1107
|
return;
|
|
1105
1108
|
}
|
|
1106
1109
|
let a = D(i) || [];
|
|
1107
|
-
a.finalColumns.length == 0 || a.realColumns.length == 0 || (
|
|
1110
|
+
a.finalColumns.length == 0 || a.realColumns.length == 0 || (lt(), Ce = a.finalColumns.length, P(), t.value = a.finalColumns, n.value = a.realColumns, setTimeout(() => {
|
|
1108
1111
|
k();
|
|
1109
|
-
}, 0), j(e.props.footerProps),
|
|
1112
|
+
}, 0), j(e.props.footerProps), Ke(), G(), Ct(), l());
|
|
1110
1113
|
};
|
|
1111
1114
|
w(() => e.props.columns, (e) => {
|
|
1112
|
-
|
|
1115
|
+
Ot(e);
|
|
1113
1116
|
}, { immediate: !0 }), w(() => e.props.footerProps, (e) => {
|
|
1114
1117
|
j(e);
|
|
1115
1118
|
}), w(() => e.props.height, (e) => {
|
|
1116
|
-
a.value = e,
|
|
1119
|
+
a.value = e, Fe();
|
|
1117
1120
|
}, { immediate: !0 });
|
|
1118
|
-
let
|
|
1121
|
+
let kt = () => {
|
|
1119
1122
|
r.value && (o.value = r.value.clientWidth);
|
|
1120
|
-
},
|
|
1123
|
+
}, At = oe(kt, 100), jt = () => {
|
|
1121
1124
|
if (!r.value) {
|
|
1122
1125
|
setTimeout(() => {
|
|
1123
|
-
|
|
1126
|
+
jt();
|
|
1124
1127
|
}, 100);
|
|
1125
1128
|
return;
|
|
1126
1129
|
}
|
|
1127
|
-
window.addEventListener("resize",
|
|
1130
|
+
window.addEventListener("resize", At), kt();
|
|
1128
1131
|
};
|
|
1129
1132
|
return p(() => {
|
|
1130
|
-
|
|
1133
|
+
jt();
|
|
1131
1134
|
}), d(() => {
|
|
1132
1135
|
u({
|
|
1133
|
-
top:
|
|
1134
|
-
left:
|
|
1135
|
-
}),
|
|
1136
|
+
top: B,
|
|
1137
|
+
left: Te
|
|
1138
|
+
}), H();
|
|
1136
1139
|
}), f(() => {}), {
|
|
1137
|
-
keyNames:
|
|
1140
|
+
keyNames: F,
|
|
1138
1141
|
nowDataSource: _,
|
|
1139
1142
|
pretextTableRef: r,
|
|
1140
1143
|
tableRef: i,
|
|
1141
1144
|
isLoading: s,
|
|
1142
|
-
visibleData:
|
|
1143
|
-
visibleWidthStartColumnIndex:
|
|
1144
|
-
visibleWidthEndColumnIndex:
|
|
1145
|
-
gridTemplateColumns:
|
|
1146
|
-
blurAnyElement:
|
|
1145
|
+
visibleData: ke,
|
|
1146
|
+
visibleWidthStartColumnIndex: Me,
|
|
1147
|
+
visibleWidthEndColumnIndex: Ne,
|
|
1148
|
+
gridTemplateColumns: ze,
|
|
1149
|
+
blurAnyElement: L,
|
|
1147
1150
|
columns: t,
|
|
1148
|
-
onScroll:
|
|
1149
|
-
onWheel:
|
|
1150
|
-
topEmptyHeight:
|
|
1151
|
+
onScroll: De,
|
|
1152
|
+
onWheel: Oe,
|
|
1153
|
+
topEmptyHeight: Ee,
|
|
1151
1154
|
scrollbarHeight: M,
|
|
1152
1155
|
headerHeight: E,
|
|
1153
1156
|
headerStyles: ee,
|
|
@@ -1158,58 +1161,59 @@ var ge = (e) => {
|
|
|
1158
1161
|
footerHeight: te,
|
|
1159
1162
|
footerColumns: A,
|
|
1160
1163
|
getFooterHeight: j,
|
|
1161
|
-
itemStyles:
|
|
1162
|
-
fixedLeftIndex:
|
|
1163
|
-
fixedRightIndex:
|
|
1164
|
-
fixedColumnsLeft:
|
|
1165
|
-
fixedColumnsRight:
|
|
1166
|
-
getGridStyles:
|
|
1164
|
+
itemStyles: ce,
|
|
1165
|
+
fixedLeftIndex: Re,
|
|
1166
|
+
fixedRightIndex: U,
|
|
1167
|
+
fixedColumnsLeft: Ie,
|
|
1168
|
+
fixedColumnsRight: Le,
|
|
1169
|
+
getGridStyles: G,
|
|
1167
1170
|
divLineHeightOffset: 20,
|
|
1168
|
-
currentRow:
|
|
1169
|
-
setCurrentRow:
|
|
1170
|
-
cellClick:
|
|
1171
|
-
headerClick:
|
|
1172
|
-
hoverRow:
|
|
1173
|
-
cellMousemove:
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1171
|
+
currentRow: K,
|
|
1172
|
+
setCurrentRow: Be,
|
|
1173
|
+
cellClick: Ve,
|
|
1174
|
+
headerClick: He,
|
|
1175
|
+
hoverRow: Ue,
|
|
1176
|
+
cellMousemove: We,
|
|
1177
|
+
resolveCellClassName: Ge,
|
|
1178
|
+
headerChecked: qe,
|
|
1179
|
+
headerCheckedIndeterminate: Je,
|
|
1180
|
+
onHeaderChecked: Ye,
|
|
1181
|
+
onCellChecked: Qe,
|
|
1182
|
+
getCheckboxRecords: $e,
|
|
1183
|
+
clearCheckboxRow: tt,
|
|
1184
|
+
sortField: ht,
|
|
1181
1185
|
sortOrder: $,
|
|
1182
|
-
sort:
|
|
1183
|
-
filterPopupWidth:
|
|
1184
|
-
filterPopupId:
|
|
1185
|
-
inputFilterOptions:
|
|
1186
|
-
numberFilterOptions:
|
|
1187
|
-
filterFields:
|
|
1188
|
-
getFilterFields:
|
|
1189
|
-
filterClick:
|
|
1190
|
-
setFilter:
|
|
1191
|
-
clearFilter:
|
|
1192
|
-
setListFilterAll:
|
|
1193
|
-
isDragging:
|
|
1194
|
-
dragLineLeft:
|
|
1195
|
-
startResize:
|
|
1196
|
-
setTreeExpand:
|
|
1197
|
-
setAllTreeExpand:
|
|
1198
|
-
clearTreeExpand:
|
|
1199
|
-
defaultTreeConfig:
|
|
1200
|
-
setRowExpand:
|
|
1201
|
-
slotShowTimestamp:
|
|
1186
|
+
sort: gt,
|
|
1187
|
+
filterPopupWidth: vt,
|
|
1188
|
+
filterPopupId: yt,
|
|
1189
|
+
inputFilterOptions: bt,
|
|
1190
|
+
numberFilterOptions: xt,
|
|
1191
|
+
filterFields: St,
|
|
1192
|
+
getFilterFields: Ct,
|
|
1193
|
+
filterClick: wt,
|
|
1194
|
+
setFilter: Tt,
|
|
1195
|
+
clearFilter: Et,
|
|
1196
|
+
setListFilterAll: Dt,
|
|
1197
|
+
isDragging: nt,
|
|
1198
|
+
dragLineLeft: rt,
|
|
1199
|
+
startResize: it,
|
|
1200
|
+
setTreeExpand: ct,
|
|
1201
|
+
setAllTreeExpand: q,
|
|
1202
|
+
clearTreeExpand: ot,
|
|
1203
|
+
defaultTreeConfig: J,
|
|
1204
|
+
setRowExpand: ut,
|
|
1205
|
+
slotShowTimestamp: Ae,
|
|
1202
1206
|
isRefresh: c,
|
|
1203
1207
|
realTableHeight: a,
|
|
1204
1208
|
realTableWidth: o,
|
|
1205
|
-
loadData:
|
|
1209
|
+
loadData: pt,
|
|
1206
1210
|
reloadData: Q,
|
|
1207
|
-
getTableData:
|
|
1211
|
+
getTableData: mt
|
|
1208
1212
|
};
|
|
1209
|
-
},
|
|
1213
|
+
}, xe = ["onClick"], z = { key: 0 }, Se = { key: 1 }, Ce = { key: 2 }, we = {
|
|
1210
1214
|
key: 3,
|
|
1211
1215
|
style: { "text-align": "center" }
|
|
1212
|
-
},
|
|
1216
|
+
}, B = {
|
|
1213
1217
|
key: 0,
|
|
1214
1218
|
style: {
|
|
1215
1219
|
display: "inline-flex",
|
|
@@ -1220,36 +1224,36 @@ var ge = (e) => {
|
|
|
1220
1224
|
padding: "0px",
|
|
1221
1225
|
width: "14px"
|
|
1222
1226
|
}
|
|
1223
|
-
},
|
|
1227
|
+
}, Te = { key: 1 }, Ee = ["id"], V = { style: {
|
|
1224
1228
|
"text-align": "center",
|
|
1225
1229
|
"font-weight": "bold"
|
|
1226
|
-
} },
|
|
1230
|
+
} }, De = { style: {
|
|
1227
1231
|
display: "flex",
|
|
1228
1232
|
"justify-content": "center",
|
|
1229
1233
|
"margin-top": "5px"
|
|
1230
|
-
} },
|
|
1234
|
+
} }, Oe = { style: {
|
|
1231
1235
|
display: "flex",
|
|
1232
1236
|
"justify-content": "center",
|
|
1233
1237
|
"margin-top": "5px"
|
|
1234
|
-
} },
|
|
1238
|
+
} }, ke = { style: { margin: "0 0 4px" } }, Ae = { style: {
|
|
1235
1239
|
display: "flex",
|
|
1236
1240
|
"justify-content": "center",
|
|
1237
1241
|
"margin-top": "5px",
|
|
1238
1242
|
padding: "5px 0",
|
|
1239
1243
|
"border-top": "1px solid #e0e0e0"
|
|
1240
|
-
} },
|
|
1244
|
+
} }, je = ["onMousedown"], H = ["onClick", "onMouseenter"], Me = {
|
|
1241
1245
|
key: 3,
|
|
1242
1246
|
style: { "margin-left": "6px" }
|
|
1243
|
-
},
|
|
1247
|
+
}, Ne = ["onClick"], Pe = { style: {
|
|
1244
1248
|
display: "flex",
|
|
1245
1249
|
gap: "4px"
|
|
1246
|
-
} },
|
|
1250
|
+
} }, Fe = ["title"], Ie = {
|
|
1247
1251
|
key: 9,
|
|
1248
1252
|
style: {
|
|
1249
1253
|
width: "100%",
|
|
1250
1254
|
"text-align": "center"
|
|
1251
1255
|
}
|
|
1252
|
-
},
|
|
1256
|
+
}, Le = ["title"], Re = { key: 1 }, U = /* @__PURE__ */ c({
|
|
1253
1257
|
inheritAttrs: !1,
|
|
1254
1258
|
name: "pretextTable",
|
|
1255
1259
|
props: {
|
|
@@ -1325,23 +1329,23 @@ var ge = (e) => {
|
|
|
1325
1329
|
"toggleRowExpand"
|
|
1326
1330
|
],
|
|
1327
1331
|
setup(c, { expose: d, emit: f }) {
|
|
1328
|
-
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight: N, topEmptyHeight: oe, visibleData: P, visibleWidthStartColumnIndex: se, visibleWidthEndColumnIndex:
|
|
1332
|
+
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight: N, topEmptyHeight: oe, visibleData: P, visibleWidthStartColumnIndex: se, visibleWidthEndColumnIndex: ce, columns: le, realColumns: ue, headerRef: de, onScroll: fe, onWheel: pe, gridTemplateColumns: F, blurAnyElement: I, scrollbarHeight: me, headerStyles: he, divLineHeightOffset: ge, updateFooter: _e, updateFooterCellLabel: ve, footerHeight: ye, footerColumns: L, getFooterHeight: be, itemStyles: U, fixedLeftIndex: W, fixedRightIndex: ze, fixedColumnsLeft: G, fixedColumnsRight: K, currentRow: Be, setCurrentRow: Ve, cellClick: He, headerClick: Ue, hoverRow: We, cellMousemove: Ge, resolveCellClassName: Ke, headerChecked: qe, headerCheckedIndeterminate: Je, onHeaderChecked: Ye, onCellChecked: Xe, getCheckboxRecords: Ze, clearCheckboxRow: Qe, sortField: $e, sortOrder: et, sort: tt, filterPopupWidth: nt, filterPopupId: rt, inputFilterOptions: it, numberFilterOptions: at, filterFields: q, getFilterFields: ot, filterClick: J, setFilter: Y, clearFilter: st, setListFilterAll: ct, isDragging: lt, dragLineLeft: ut, startResize: dt, setTreeExpand: X, setAllTreeExpand: Z, clearTreeExpand: ft, defaultTreeConfig: pt, setRowExpand: Q, slotShowTimestamp: mt, isRefresh: ht, realTableHeight: $, realTableWidth: gt, loadData: _t, reloadData: vt, getTableData: yt } = R({
|
|
1329
1333
|
props: p,
|
|
1330
1334
|
emits: f
|
|
1331
1335
|
});
|
|
1332
1336
|
return d({
|
|
1333
|
-
loadData:
|
|
1334
|
-
reloadData:
|
|
1335
|
-
setCurrentRow:
|
|
1336
|
-
getCheckboxRecords:
|
|
1337
|
-
clearCheckboxRow:
|
|
1338
|
-
updateFooter:
|
|
1339
|
-
updateFooterCellLabel:
|
|
1340
|
-
getFooterHeight:
|
|
1341
|
-
getTableData:
|
|
1342
|
-
setTreeExpand:
|
|
1337
|
+
loadData: _t,
|
|
1338
|
+
reloadData: vt,
|
|
1339
|
+
setCurrentRow: Ve,
|
|
1340
|
+
getCheckboxRecords: Ze,
|
|
1341
|
+
clearCheckboxRow: Qe,
|
|
1342
|
+
updateFooter: _e,
|
|
1343
|
+
updateFooterCellLabel: ve,
|
|
1344
|
+
getFooterHeight: be,
|
|
1345
|
+
getTableData: yt,
|
|
1346
|
+
setTreeExpand: X,
|
|
1343
1347
|
setAllTreeExpand: Z,
|
|
1344
|
-
clearTreeExpand:
|
|
1348
|
+
clearTreeExpand: ft,
|
|
1345
1349
|
setRowExpand: Q
|
|
1346
1350
|
}), (c, d) => (h(), i("div", {
|
|
1347
1351
|
class: "cName-pretextTable",
|
|
@@ -1363,12 +1367,12 @@ var ge = (e) => {
|
|
|
1363
1367
|
}, { height: `${S($)}px` }]),
|
|
1364
1368
|
ref_key: "tableRef",
|
|
1365
1369
|
ref: x,
|
|
1366
|
-
onScroll: d[1] ||= (...e) => S(
|
|
1367
|
-
onWheel: d[2] ||= (...e) => S(
|
|
1370
|
+
onScroll: d[1] ||= (...e) => S(fe) && S(fe)(...e),
|
|
1371
|
+
onWheel: d[2] ||= (...e) => S(pe) && S(pe)(...e)
|
|
1368
1372
|
}, [
|
|
1369
1373
|
a("div", {
|
|
1370
1374
|
ref_key: "headerRef",
|
|
1371
|
-
ref:
|
|
1375
|
+
ref: de,
|
|
1372
1376
|
style: u([{
|
|
1373
1377
|
display: "grid",
|
|
1374
1378
|
width: "max-content",
|
|
@@ -1379,65 +1383,65 @@ var ge = (e) => {
|
|
|
1379
1383
|
top: "0",
|
|
1380
1384
|
left: "0",
|
|
1381
1385
|
"z-index": "1"
|
|
1382
|
-
}, { gridTemplateColumns: S(
|
|
1383
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1386
|
+
}, { gridTemplateColumns: S(F) }])
|
|
1387
|
+
}, [(h(!0), i(e, null, _(S(ue), (f, p) => (h(), i(e, { key: "headerRow_" + p }, [(h(!0), i(e, null, _(f, (f, m) => (h(), i("div", {
|
|
1384
1388
|
key: "header_" + (f?.field || "null") + "_" + m,
|
|
1385
|
-
class: "pretextTable-grid-header",
|
|
1389
|
+
class: l(["pretextTable-grid-header", "pretextTable-grid-header" + (f?.field || "") + "_" + p]),
|
|
1386
1390
|
style: u(f ? {
|
|
1387
|
-
fontWeight: S(
|
|
1388
|
-
fontSize: S(
|
|
1391
|
+
fontWeight: S(he).fontWeight,
|
|
1392
|
+
fontSize: S(he).fontSize,
|
|
1389
1393
|
gridRow: f?.style?.gridRow || "",
|
|
1390
1394
|
gridColumn: f?.style?.gridColumn || "",
|
|
1391
1395
|
zIndex: m == 0 ? 3 : f.fixed == "left" || f.fixed == "right" ? 2 : 1,
|
|
1392
|
-
left: f.fixed == "left" ? S(
|
|
1393
|
-
right: f.fixed == "right" ? S(
|
|
1396
|
+
left: f.fixed == "left" ? S(G)[m] : "",
|
|
1397
|
+
right: f.fixed == "right" ? S(K)[m] : "",
|
|
1394
1398
|
borderLeft: f.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1395
|
-
boxShadow: f.fixed == "left" && m == S(
|
|
1399
|
+
boxShadow: f.fixed == "left" && m == S(W) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : f.fixed == "right" && m == S(ze) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1396
1400
|
borderBottom: f ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1397
1401
|
minHeight: "30px"
|
|
1398
1402
|
} : {}),
|
|
1399
|
-
onClick: (e) => S(
|
|
1400
|
-
}, [f ? f.type == "checkbox" && p == 0 ? (h(), i("span",
|
|
1401
|
-
modelValue: S(
|
|
1402
|
-
indeterminate: S(
|
|
1403
|
+
onClick: (e) => S(Ue)(f)
|
|
1404
|
+
}, [f ? f.type == "checkbox" && p == 0 ? (h(), i("span", Se, [s(S(k), {
|
|
1405
|
+
modelValue: S(qe)[f.field],
|
|
1406
|
+
indeterminate: S(Je)[f.field],
|
|
1403
1407
|
content: "",
|
|
1404
|
-
onChange: (e) => S(
|
|
1408
|
+
onChange: (e) => S(Ye)(f.field)
|
|
1405
1409
|
}, null, 8, [
|
|
1406
1410
|
"modelValue",
|
|
1407
1411
|
"indeterminate",
|
|
1408
1412
|
"onChange"
|
|
1409
|
-
])])) : f?.type == "seq" && p == 0 ? (h(), i("div",
|
|
1413
|
+
])])) : f?.type == "seq" && p == 0 ? (h(), i("div", Ce, b(f.title || "序号"), 1)) : (h(), i("span", we, [
|
|
1410
1414
|
a("span", null, [f.slots?.header ? v(c.$slots, f.slots?.header, {
|
|
1411
1415
|
key: 0,
|
|
1412
1416
|
column: f,
|
|
1413
1417
|
text: f.title
|
|
1414
1418
|
}, () => [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",
|
|
1419
|
+
f.sortable && !f.children?.length ? (h(), i("span", B, [s(S(A), {
|
|
1416
1420
|
name: "caret-up",
|
|
1417
1421
|
style: {
|
|
1418
1422
|
position: "absolute",
|
|
1419
1423
|
top: "-0.8em"
|
|
1420
1424
|
},
|
|
1421
|
-
class: l(["pretextTable-sort-icon", { "pretextTable-sort-icon-active": S(
|
|
1422
|
-
onClick: D((e) => S(
|
|
1425
|
+
class: l(["pretextTable-sort-icon", { "pretextTable-sort-icon-active": S($e) == f.field && S(et) == "asc" }]),
|
|
1426
|
+
onClick: D((e) => S(tt)(f.field, "asc"), ["stop"])
|
|
1423
1427
|
}, null, 8, ["class", "onClick"]), s(S(A), {
|
|
1424
1428
|
name: "caret-down",
|
|
1425
1429
|
style: {
|
|
1426
1430
|
position: "absolute",
|
|
1427
1431
|
top: "-0.2em"
|
|
1428
1432
|
},
|
|
1429
|
-
class: l(["pretextTable-sort-icon", { "pretextTable-sort-icon-active": S(
|
|
1430
|
-
onClick: D((e) => S(
|
|
1433
|
+
class: l(["pretextTable-sort-icon", { "pretextTable-sort-icon-active": S($e) == f.field && S(et) == "desc" }]),
|
|
1434
|
+
onClick: D((e) => S(tt)(f.field, "desc"), ["stop"])
|
|
1431
1435
|
}, null, 8, ["class", "onClick"])])) : r("", !0),
|
|
1432
|
-
S(
|
|
1436
|
+
S(q)[m]?.type && !f.children?.length ? (h(), i("span", Te, [s(S(A), {
|
|
1433
1437
|
name: "funnel",
|
|
1434
|
-
class: l(["pretextTable-filter-icon", { "pretextTable-filter-icon-active": S(
|
|
1435
|
-
onClick: D((e) => S(
|
|
1436
|
-
}, null, 8, ["class", "onClick"]), S(
|
|
1438
|
+
class: l(["pretextTable-filter-icon", { "pretextTable-filter-icon-active": S(q)[m].isActive }]),
|
|
1439
|
+
onClick: D((e) => S(J)(m, e), ["stop"])
|
|
1440
|
+
}, null, 8, ["class", "onClick"]), S(q)[m].isShow ? (h(), n(t, {
|
|
1437
1441
|
key: 0,
|
|
1438
1442
|
to: "body"
|
|
1439
1443
|
}, [a("div", {
|
|
1440
|
-
id: S(
|
|
1444
|
+
id: S(rt) + f.field,
|
|
1441
1445
|
class: "pretextTable-filter-popup",
|
|
1442
1446
|
style: u([{
|
|
1443
1447
|
"background-color": "#fff",
|
|
@@ -1447,52 +1451,52 @@ var ge = (e) => {
|
|
|
1447
1451
|
"z-index": "99999"
|
|
1448
1452
|
}, {
|
|
1449
1453
|
position: "absolute",
|
|
1450
|
-
top: S(
|
|
1451
|
-
left: S(
|
|
1454
|
+
top: S(q)[m].clientY + "px",
|
|
1455
|
+
left: S(q)[m].clientX + "px"
|
|
1452
1456
|
}])
|
|
1453
1457
|
}, [
|
|
1454
|
-
a("div",
|
|
1455
|
-
S(
|
|
1458
|
+
a("div", V, b(f.title), 1),
|
|
1459
|
+
S(q)[m].type == "inputFilter" ? (h(), i("div", {
|
|
1456
1460
|
key: 0,
|
|
1457
|
-
style: u({ width: S(
|
|
1461
|
+
style: u({ width: S(nt) + "px" })
|
|
1458
1462
|
}, [a("div", null, [s(S(j), {
|
|
1459
|
-
modelValue: S(
|
|
1460
|
-
"onUpdate:modelValue": (e) => S(
|
|
1463
|
+
modelValue: S(q)[m].value,
|
|
1464
|
+
"onUpdate:modelValue": (e) => S(q)[m].value = e,
|
|
1461
1465
|
placeholder: "按回车筛选",
|
|
1462
1466
|
trim: !0,
|
|
1463
1467
|
style: { width: "100%" },
|
|
1464
|
-
onKeyup: ee((e) => S(
|
|
1468
|
+
onKeyup: ee((e) => S(Y)(f.field), ["enter"])
|
|
1465
1469
|
}, null, 8, [
|
|
1466
1470
|
"modelValue",
|
|
1467
1471
|
"onUpdate:modelValue",
|
|
1468
1472
|
"onKeyup"
|
|
1469
|
-
])]), a("div",
|
|
1470
|
-
modelValue: S(
|
|
1471
|
-
"onUpdate:modelValue": (e) => S(
|
|
1472
|
-
options: S(
|
|
1473
|
+
])]), a("div", De, [s(S(M), {
|
|
1474
|
+
modelValue: S(q)[m].inputFilter.type,
|
|
1475
|
+
"onUpdate:modelValue": (e) => S(q)[m].inputFilter.type = e,
|
|
1476
|
+
options: S(it)
|
|
1473
1477
|
}, null, 8, [
|
|
1474
1478
|
"modelValue",
|
|
1475
1479
|
"onUpdate:modelValue",
|
|
1476
1480
|
"options"
|
|
1477
1481
|
])])], 4)) : r("", !0),
|
|
1478
|
-
S(
|
|
1482
|
+
S(q)[m].type == "numberFilter" || S(q)[m].type == "numberFilter%" ? (h(), i("div", {
|
|
1479
1483
|
key: 1,
|
|
1480
|
-
style: u({ width: S(
|
|
1481
|
-
}, [a("div",
|
|
1482
|
-
modelValue: S(
|
|
1483
|
-
"onUpdate:modelValue": (e) => S(
|
|
1484
|
-
options: S(
|
|
1484
|
+
style: u({ width: S(nt) + "px" })
|
|
1485
|
+
}, [a("div", Oe, [s(S(M), {
|
|
1486
|
+
modelValue: S(q)[m].numberFilter.type,
|
|
1487
|
+
"onUpdate:modelValue": (e) => S(q)[m].numberFilter.type = e,
|
|
1488
|
+
options: S(at)
|
|
1485
1489
|
}, null, 8, [
|
|
1486
1490
|
"modelValue",
|
|
1487
1491
|
"onUpdate:modelValue",
|
|
1488
1492
|
"options"
|
|
1489
1493
|
])]), a("div", null, [s(S(re), {
|
|
1490
|
-
modelValue: S(
|
|
1491
|
-
"onUpdate:modelValue": (e) => S(
|
|
1494
|
+
modelValue: S(q)[m].value,
|
|
1495
|
+
"onUpdate:modelValue": (e) => S(q)[m].value = e,
|
|
1492
1496
|
placeholder: "按回车筛选",
|
|
1493
1497
|
controlConfig: { showButton: !1 },
|
|
1494
1498
|
style: { width: "100%" },
|
|
1495
|
-
onKeyup: ee((e) => S(
|
|
1499
|
+
onKeyup: ee((e) => S(Y)(f.field), ["enter"])
|
|
1496
1500
|
}, {
|
|
1497
1501
|
suffix: T(() => [...d[3] ||= [o("%", -1)]]),
|
|
1498
1502
|
_: 1
|
|
@@ -1501,35 +1505,35 @@ var ge = (e) => {
|
|
|
1501
1505
|
"onUpdate:modelValue",
|
|
1502
1506
|
"onKeyup"
|
|
1503
1507
|
])])], 4)) : r("", !0),
|
|
1504
|
-
S(
|
|
1508
|
+
S(q)[m].type == "listFilter" ? (h(), i("div", {
|
|
1505
1509
|
key: 2,
|
|
1506
|
-
style: u({ maxWidth: S(
|
|
1507
|
-
}, [a("div",
|
|
1508
|
-
modelValue: S(
|
|
1509
|
-
indeterminate: S(
|
|
1510
|
+
style: u({ maxWidth: S(nt) + "px" })
|
|
1511
|
+
}, [a("div", ke, [s(S(k), {
|
|
1512
|
+
modelValue: S(q)[m].listFilter.selectedValue.length == S(q)[m].listFilter.listOptions.length,
|
|
1513
|
+
indeterminate: S(q)[m].listFilter.selectedValue.length > 0 && S(q)[m].listFilter.selectedValue.length < S(q)[m].listFilter.listOptions.length,
|
|
1510
1514
|
content: "全部",
|
|
1511
|
-
onChange: (e) => S(
|
|
1515
|
+
onChange: (e) => S(ct)(S(q)[m])
|
|
1512
1516
|
}, null, 8, [
|
|
1513
1517
|
"modelValue",
|
|
1514
1518
|
"indeterminate",
|
|
1515
1519
|
"onChange"
|
|
1516
1520
|
])]), s(S(te), {
|
|
1517
|
-
modelValue: S(
|
|
1518
|
-
"onUpdate:modelValue": (e) => S(
|
|
1519
|
-
options: S(
|
|
1520
|
-
onChange: S(
|
|
1521
|
+
modelValue: S(q)[m].listFilter.selectedValue,
|
|
1522
|
+
"onUpdate:modelValue": (e) => S(q)[m].listFilter.selectedValue = e,
|
|
1523
|
+
options: S(q)[m].listFilter.listOptions,
|
|
1524
|
+
onChange: S(I)
|
|
1521
1525
|
}, null, 8, [
|
|
1522
1526
|
"modelValue",
|
|
1523
1527
|
"onUpdate:modelValue",
|
|
1524
1528
|
"options",
|
|
1525
1529
|
"onChange"
|
|
1526
1530
|
])], 4)) : r("", !0),
|
|
1527
|
-
a("div",
|
|
1531
|
+
a("div", Ae, [
|
|
1528
1532
|
s(S(O), {
|
|
1529
1533
|
type: "primary",
|
|
1530
1534
|
size: "small",
|
|
1531
1535
|
mode: "text",
|
|
1532
|
-
onClick: (e) => S(
|
|
1536
|
+
onClick: (e) => S(Y)(f.field)
|
|
1533
1537
|
}, {
|
|
1534
1538
|
default: T(() => [...d[4] ||= [o(" 筛选 ", -1)]]),
|
|
1535
1539
|
_: 1
|
|
@@ -1538,7 +1542,7 @@ var ge = (e) => {
|
|
|
1538
1542
|
type: "primary",
|
|
1539
1543
|
size: "small",
|
|
1540
1544
|
mode: "text",
|
|
1541
|
-
onClick: (e) => S(
|
|
1545
|
+
onClick: (e) => S(st)(f.field)
|
|
1542
1546
|
}, {
|
|
1543
1547
|
default: T(() => [...d[5] ||= [o(" 重置 ", -1)]]),
|
|
1544
1548
|
_: 1
|
|
@@ -1547,14 +1551,14 @@ var ge = (e) => {
|
|
|
1547
1551
|
type: "primary",
|
|
1548
1552
|
size: "small",
|
|
1549
1553
|
mode: "text",
|
|
1550
|
-
onClick: d[0] ||= (e) => S(
|
|
1554
|
+
onClick: d[0] ||= (e) => S(st)()
|
|
1551
1555
|
}, {
|
|
1552
1556
|
default: T(() => [...d[6] ||= [o(" 重置所有 ", -1)]]),
|
|
1553
1557
|
_: 1
|
|
1554
1558
|
})
|
|
1555
1559
|
])
|
|
1556
|
-
], 12,
|
|
1557
|
-
])) : (h(), i("span",
|
|
1560
|
+
], 12, Ee)])) : r("", !0)])) : r("", !0)
|
|
1561
|
+
])) : (h(), i("span", z)), f?.resizable && !f.children?.length ? (h(), i("div", {
|
|
1558
1562
|
key: 4,
|
|
1559
1563
|
style: {
|
|
1560
1564
|
position: "absolute",
|
|
@@ -1564,8 +1568,8 @@ var ge = (e) => {
|
|
|
1564
1568
|
height: "100%",
|
|
1565
1569
|
cursor: "col-resize"
|
|
1566
1570
|
},
|
|
1567
|
-
onMousedown: D((e) => S(
|
|
1568
|
-
}, null, 40,
|
|
1571
|
+
onMousedown: D((e) => S(dt)(e, f), ["prevent", "stop"])
|
|
1572
|
+
}, null, 40, je)) : r("", !0)], 14, xe))), 128))], 64))), 128))], 4),
|
|
1569
1573
|
S(P).length == 0 ? (h(), i("div", {
|
|
1570
1574
|
key: 0,
|
|
1571
1575
|
style: u([{
|
|
@@ -1573,7 +1577,7 @@ var ge = (e) => {
|
|
|
1573
1577
|
"align-items": "center",
|
|
1574
1578
|
position: "absolute",
|
|
1575
1579
|
left: "calc(50% - 35px)"
|
|
1576
|
-
}, { minHeight: `${S($) - S(N) - S(
|
|
1580
|
+
}, { minHeight: `${S($) - S(N) - S(ye) - 30}px` }])
|
|
1577
1581
|
}, " 暂无数据 ", 4)) : r("", !0),
|
|
1578
1582
|
a("div", {
|
|
1579
1583
|
class: "pretextTable-grid",
|
|
@@ -1584,8 +1588,8 @@ var ge = (e) => {
|
|
|
1584
1588
|
contain: "layout paint style",
|
|
1585
1589
|
position: "relative"
|
|
1586
1590
|
}, {
|
|
1587
|
-
minHeight: S($) - S(N) - S(
|
|
1588
|
-
height: `${S(
|
|
1591
|
+
minHeight: S($) - S(N) - S(ye) - S(ge) - p.heightOffset + "px",
|
|
1592
|
+
height: `${S(me)}px`
|
|
1589
1593
|
}])
|
|
1590
1594
|
}, [a("div", {
|
|
1591
1595
|
class: "pretextTable-grid-empty",
|
|
@@ -1600,7 +1604,7 @@ var ge = (e) => {
|
|
|
1600
1604
|
}, [a("div", { style: u({
|
|
1601
1605
|
position: "sticky",
|
|
1602
1606
|
left: p.expandConfig?.mode == "inside" ? "0px" : void 0,
|
|
1603
|
-
width: p.expandConfig?.mode == "inside" ? `${S(
|
|
1607
|
+
width: p.expandConfig?.mode == "inside" ? `${S(gt) - 15}px` : "100%"
|
|
1604
1608
|
}) }, [v(c.$slots, p.expandConfig?.slotName, {
|
|
1605
1609
|
row: t,
|
|
1606
1610
|
rowIndex: d
|
|
@@ -1612,32 +1616,43 @@ var ge = (e) => {
|
|
|
1612
1616
|
"min-width": "100%",
|
|
1613
1617
|
"align-content": "start",
|
|
1614
1618
|
contain: "layout style paint"
|
|
1615
|
-
}, { gridTemplateColumns: S(
|
|
1616
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1619
|
+
}, { gridTemplateColumns: S(F) }])
|
|
1620
|
+
}, [(h(!0), i(e, null, _(S(le), (f, g) => (h(), i("div", {
|
|
1617
1621
|
key: "item_" + f.field,
|
|
1618
1622
|
class: l(["pretextTable-grid-item pretextTable-flex-align-items-center", {
|
|
1619
|
-
"pretextTable-grid-item-hover": p.rowConfig?.isHover && S(
|
|
1620
|
-
"pretextTable-grid-item-current": p.rowConfig?.isCurrent && S(
|
|
1623
|
+
"pretextTable-grid-item-hover": p.rowConfig?.isHover && S(We)[S(m).id] == t[S(m).id],
|
|
1624
|
+
"pretextTable-grid-item-current": p.rowConfig?.isCurrent && S(Be)[S(m).id] == t[S(m).id],
|
|
1621
1625
|
"pretextTable-grid-item-stripe": p.stripe && t[S(m).stripe]
|
|
1622
1626
|
}]),
|
|
1623
1627
|
style: u({
|
|
1624
|
-
fontWeight: S(
|
|
1625
|
-
fontSize: S(
|
|
1628
|
+
fontWeight: S(U).fontWeight,
|
|
1629
|
+
fontSize: S(U).fontSize,
|
|
1626
1630
|
zIndex: +(f.fixed == "left" || f.fixed == "right"),
|
|
1627
1631
|
position: f.fixed == "left" || f.fixed == "right" ? "sticky" : "static",
|
|
1628
|
-
left: f.fixed == "left" ? S(
|
|
1629
|
-
right: f.fixed == "right" ? S(
|
|
1632
|
+
left: f.fixed == "left" ? S(G)[g] : "",
|
|
1633
|
+
right: f.fixed == "right" ? S(K)[g] : "",
|
|
1630
1634
|
borderLeft: f.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1631
|
-
boxShadow: f.fixed == "left" && g == S(
|
|
1635
|
+
boxShadow: f.fixed == "left" && g == S(W) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : f.fixed == "right" && g == S(ze) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1632
1636
|
height: `${t[S(m).height]}px`,
|
|
1633
|
-
justifyContent: f.type == "checkbox" ? "center" : ""
|
|
1637
|
+
justifyContent: f.type == "checkbox" || f.slots?.defaultType == "checkbox" ? "center" : ""
|
|
1634
1638
|
}),
|
|
1635
|
-
onClick: (e) => S(
|
|
1636
|
-
onMouseenter: (e) => S(
|
|
1637
|
-
}, [f.fixed == "left" || f.fixed == "right" || g >= S(se) && g <= S(
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1639
|
+
onClick: (e) => S(He)(t, f),
|
|
1640
|
+
onMouseenter: (e) => S(Ge)(t)
|
|
1641
|
+
}, [f.fixed == "left" || f.fixed == "right" || g >= S(se) && g <= S(ce) ? (h(), i("div", {
|
|
1642
|
+
key: 0,
|
|
1643
|
+
class: l([
|
|
1644
|
+
"pretextTable-grid-cell",
|
|
1645
|
+
"pretextTable-grid-cell" + f.field,
|
|
1646
|
+
f.cellClassName ? S(Ke)({
|
|
1647
|
+
column: f,
|
|
1648
|
+
row: t,
|
|
1649
|
+
index: g
|
|
1650
|
+
}) : ""
|
|
1651
|
+
])
|
|
1652
|
+
}, [p.treeConfig?.isOpenTree && f.treeNode ? (h(), i(e, { key: 0 }, [a("span", { style: u({
|
|
1653
|
+
marginLeft: (Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || S(pt).indent) + "px",
|
|
1654
|
+
paddingLeft: S(U).paddingLeft
|
|
1655
|
+
}) }, null, 4), p.treeConfig?.showIcon === !1 ? r("", !0) : (h(), i(e, { key: 0 }, [t[p.treeConfig?.childrenField || S(pt).childrenField]?.length > 0 || p.treeConfig?.lazy && t[p.treeConfig?.hasChildField || S(pt).hasChildField] ? (h(), i(e, { key: 0 }, [
|
|
1641
1656
|
E(s(S(A), {
|
|
1642
1657
|
name: "spinner",
|
|
1643
1658
|
roll: ""
|
|
@@ -1646,19 +1661,19 @@ var ge = (e) => {
|
|
|
1646
1661
|
name: "caret-right",
|
|
1647
1662
|
style: {},
|
|
1648
1663
|
class: "pretextTable-icon",
|
|
1649
|
-
onClick: D((e) => S(
|
|
1664
|
+
onClick: D((e) => S(X)([t], !0), ["stop"])
|
|
1650
1665
|
}, null, 8, ["onClick"]), [[C, !t[S(m).isCollapsed] && !t[S(m).lazyLoading]]]),
|
|
1651
1666
|
E(s(S(A), {
|
|
1652
1667
|
name: "caret-down",
|
|
1653
1668
|
style: {},
|
|
1654
1669
|
class: "pretextTable-icon",
|
|
1655
|
-
onClick: D((e) => S(
|
|
1670
|
+
onClick: D((e) => S(X)([t], !1), ["stop"])
|
|
1656
1671
|
}, null, 8, ["onClick"]), [[C, t[S(m).isCollapsed] && !t[S(m).lazyLoading]]])
|
|
1657
1672
|
], 64)) : r("", !0)], 64))], 64)) : r("", !0), f.type == "checkbox" ? (h(), n(S(k), {
|
|
1658
1673
|
key: 1,
|
|
1659
1674
|
modelValue: t[f.field],
|
|
1660
1675
|
indeterminate: t[S(m).checkedIndeterminate + f.field],
|
|
1661
|
-
onChange: (e) => S(
|
|
1676
|
+
onChange: (e) => S(Xe)(t, f.field)
|
|
1662
1677
|
}, null, 8, [
|
|
1663
1678
|
"modelValue",
|
|
1664
1679
|
"indeterminate",
|
|
@@ -1667,9 +1682,9 @@ var ge = (e) => {
|
|
|
1667
1682
|
key: 0,
|
|
1668
1683
|
style: u({
|
|
1669
1684
|
marginLeft: `${(Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || 20)}px`,
|
|
1670
|
-
paddingLeft: S(
|
|
1685
|
+
paddingLeft: S(U).paddingLeft
|
|
1671
1686
|
})
|
|
1672
|
-
}, null, 4)) : r("", !0), o(" " + b(t.pretextSeq), 1)], 64)) : f.type == "expand" ? (h(), i("span",
|
|
1687
|
+
}, null, 4)) : r("", !0), o(" " + b(t.pretextSeq), 1)], 64)) : f.type == "expand" ? (h(), i("span", Me, [E(s(S(A), {
|
|
1673
1688
|
name: "arrow-right",
|
|
1674
1689
|
style: {},
|
|
1675
1690
|
class: "pretextTable-icon",
|
|
@@ -1681,10 +1696,10 @@ var ge = (e) => {
|
|
|
1681
1696
|
onClick: D((e) => S(Q)([t], !1), ["stop"])
|
|
1682
1697
|
}, null, 8, ["onClick"]), [[C, t[S(m).isRowExpanded]]])])) : f.slots?.defaultType == "a" ? (h(), i("span", {
|
|
1683
1698
|
key: 4,
|
|
1684
|
-
style: u({ paddingLeft: S(
|
|
1685
|
-
}, [a("a", { onClick: D((e) => f.slots?.defaultProps?.a?.onClick?.(t, g), ["stop"]) }, b(t[f.field] || ""), 9,
|
|
1699
|
+
style: u({ paddingLeft: S(U).paddingLeft })
|
|
1700
|
+
}, [a("a", { onClick: D((e) => f.slots?.defaultProps?.a?.onClick?.(t, g), ["stop"]) }, b(t[f.field] || ""), 9, Ne)], 4)) : f.slots?.defaultType == "tag" ? (h(), i("span", {
|
|
1686
1701
|
key: 5,
|
|
1687
|
-
style: u({ paddingLeft: S(
|
|
1702
|
+
style: u({ paddingLeft: S(U).paddingLeft })
|
|
1688
1703
|
}, [(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
1704
|
key: 0,
|
|
1690
1705
|
size: "mini",
|
|
@@ -1701,14 +1716,14 @@ var ge = (e) => {
|
|
|
1701
1716
|
"style"
|
|
1702
1717
|
])) : r("", !0)], 64))), 256))], 4)) : f.slots?.defaultType == "icon" ? (h(), i("span", {
|
|
1703
1718
|
key: 6,
|
|
1704
|
-
style: u({ paddingLeft: S(
|
|
1719
|
+
style: u({ paddingLeft: S(U).paddingLeft })
|
|
1705
1720
|
}, [E(s(S(A), {
|
|
1706
1721
|
name: f.slots?.defaultProps?.icon?.nameField ? t[f.slots?.defaultProps?.icon?.nameField] || "" : f.slots?.defaultProps?.icon?.name || "",
|
|
1707
1722
|
style: u(f.slots?.defaultProps?.icon?.styleField ? t[f.slots?.defaultProps?.icon?.styleField] || {} : f.slots?.defaultProps?.icon?.style || {})
|
|
1708
1723
|
}, null, 8, ["name", "style"]), [[C, t[f.field]]])], 4)) : f.slots?.defaultType == "buttons" ? (h(), i("span", {
|
|
1709
1724
|
key: 7,
|
|
1710
|
-
style: u({ paddingLeft: S(
|
|
1711
|
-
}, [f.slots?.defaultProps?.buttons?.options?.length ? (h(!0), i(e, { key: 0 }, _(f.slots?.defaultProps?.buttons?.options || [], (n) => (h(), i("div",
|
|
1725
|
+
style: u({ paddingLeft: S(U).paddingLeft })
|
|
1726
|
+
}, [f.slots?.defaultProps?.buttons?.options?.length ? (h(!0), i(e, { key: 0 }, _(f.slots?.defaultProps?.buttons?.options || [], (n) => (h(), i("div", Pe, [(h(!0), i(e, null, _(n, (n) => (h(), i(e, null, [!n.showField || t[n.showField] ? (h(), i("span", {
|
|
1712
1727
|
key: 0,
|
|
1713
1728
|
title: n.tip || ""
|
|
1714
1729
|
}, [s(S(O), {
|
|
@@ -1730,9 +1745,9 @@ var ge = (e) => {
|
|
|
1730
1745
|
"disabled",
|
|
1731
1746
|
"loading",
|
|
1732
1747
|
"onClick"
|
|
1733
|
-
])], 8,
|
|
1748
|
+
])], 8, Fe)) : r("", !0)], 64))), 256))]))), 256)) : r("", !0)], 4)) : f.slots?.defaultType == "switch" ? (h(), i("span", {
|
|
1734
1749
|
key: 8,
|
|
1735
|
-
style: u({ paddingLeft: S(
|
|
1750
|
+
style: u({ paddingLeft: S(U).paddingLeft })
|
|
1736
1751
|
}, [!f.slots?.defaultProps?.switch?.showField || t[f.slots?.defaultProps?.switch?.showField] ? (h(), n(S(ie), {
|
|
1737
1752
|
key: 0,
|
|
1738
1753
|
size: "mini",
|
|
@@ -1751,7 +1766,7 @@ var ge = (e) => {
|
|
|
1751
1766
|
"closeValue",
|
|
1752
1767
|
"disabled",
|
|
1753
1768
|
"onChange"
|
|
1754
|
-
])) : r("", !0)], 4)) : f.slots?.defaultType == "checkbox" ? (h(), i("span",
|
|
1769
|
+
])) : r("", !0)], 4)) : f.slots?.defaultType == "checkbox" ? (h(), i("span", Ie, [s(S(k), {
|
|
1755
1770
|
modelValue: t[f.field],
|
|
1756
1771
|
indeterminate: f.slots?.defaultProps?.checkbox?.checkedIndeterminateField ? t[f.slots?.defaultProps?.checkbox?.checkedIndeterminateField] : !1,
|
|
1757
1772
|
disabled: f.slots?.defaultProps?.checkbox?.disabledField && t[f.slots?.defaultProps?.checkbox?.disabledField],
|
|
@@ -1764,15 +1779,15 @@ var ge = (e) => {
|
|
|
1764
1779
|
])])) : (h(), i("span", {
|
|
1765
1780
|
key: 10,
|
|
1766
1781
|
class: l({ "pretextTable-text-ellipsis": !!p.showOverflow }),
|
|
1767
|
-
style: u({ paddingLeft: S(
|
|
1782
|
+
style: u({ paddingLeft: S(U).paddingLeft }),
|
|
1768
1783
|
title: p.showOverflow && t[f.field] || ""
|
|
1769
|
-
}, [f.slots?.default ? (h(), i(e, { key: 0 }, [!p.lazyLoadSlot || t.slotShowTimestamp == S(
|
|
1784
|
+
}, [f.slots?.default ? (h(), i(e, { key: 0 }, [!p.lazyLoadSlot || t.slotShowTimestamp == S(mt) ? v(c.$slots, f.slots?.default, {
|
|
1770
1785
|
key: 0,
|
|
1771
1786
|
row: t,
|
|
1772
1787
|
column: f,
|
|
1773
1788
|
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,
|
|
1775
|
-
p.showFooter && S(
|
|
1789
|
+
}, () => [o(b(t[f.field] ?? ""), 1)]) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(b(t[f.field] ?? ""), 1)], 64))], 14, Le))], 2)) : r("", !0)], 46, H))), 128))], 4))], 64))), 128))], 4),
|
|
1790
|
+
p.showFooter && S(L).length > 0 ? (h(), i("div", {
|
|
1776
1791
|
key: 1,
|
|
1777
1792
|
style: u([{
|
|
1778
1793
|
display: "grid",
|
|
@@ -1783,17 +1798,17 @@ var ge = (e) => {
|
|
|
1783
1798
|
contain: "layout paint style",
|
|
1784
1799
|
bottom: "0",
|
|
1785
1800
|
"z-index": "1"
|
|
1786
|
-
}, { gridTemplateColumns: S(
|
|
1787
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1801
|
+
}, { gridTemplateColumns: S(F) }])
|
|
1802
|
+
}, [(h(!0), i(e, null, _(S(L), (t) => (h(), i(e, null, [(h(!0), i(e, null, _(t, (e, t) => (h(), i("div", {
|
|
1788
1803
|
key: "footer_" + e.field,
|
|
1789
|
-
class: "pretextTable-grid-footer",
|
|
1804
|
+
class: l(["pretextTable-grid-footer", "pretextTable-grid-footer" + e.field]),
|
|
1790
1805
|
style: u({
|
|
1791
|
-
fontSize: S(
|
|
1806
|
+
fontSize: S(he).fontSize,
|
|
1792
1807
|
zIndex: t == 0 ? 3 : e.fixed == "left" || e.fixed == "right" ? 2 : 1,
|
|
1793
|
-
left: e.fixed == "left" ? S(
|
|
1794
|
-
right: e.fixed == "right" ? S(
|
|
1808
|
+
left: e.fixed == "left" ? S(G)[t] : "",
|
|
1809
|
+
right: e.fixed == "right" ? S(K)[t] : "",
|
|
1795
1810
|
borderLeft: e.fixed == "right" ? "1px solid var(--pretextTable-border-color)" : "",
|
|
1796
|
-
boxShadow: e.fixed == "left" && t == S(
|
|
1811
|
+
boxShadow: e.fixed == "left" && t == S(W) ? "var(--pretextTable-shadow-color) 2px 0px 5px -1px" : e.fixed == "right" && t == S(ze) ? "var(--pretextTable-shadow-color) -2px 0px 5px -1px" : "",
|
|
1797
1812
|
height: `${e.height}px`,
|
|
1798
1813
|
maxHeight: `${e.height}px`
|
|
1799
1814
|
})
|
|
@@ -1802,7 +1817,7 @@ var ge = (e) => {
|
|
|
1802
1817
|
footerColumn: e,
|
|
1803
1818
|
footerData: e.data,
|
|
1804
1819
|
footerRowIndex: t
|
|
1805
|
-
}, () => [o(b(e.data ?? ""), 1)]) : (h(), i("span",
|
|
1820
|
+
}, () => [o(b(e.data ?? ""), 1)]) : (h(), i("span", Re, b(e.data ?? ""), 1))], 6))), 128))], 64))), 256))], 4)) : r("", !0)
|
|
1806
1821
|
], 36),
|
|
1807
1822
|
E(a("div", { style: u([{
|
|
1808
1823
|
position: "absolute",
|
|
@@ -1813,15 +1828,15 @@ var ge = (e) => {
|
|
|
1813
1828
|
"z-index": "99999",
|
|
1814
1829
|
"box-shadow": "0 0 2px rgba(64, 158, 255, 0.5)"
|
|
1815
1830
|
}, {
|
|
1816
|
-
transform: `translateX(${S(
|
|
1831
|
+
transform: `translateX(${S(ut)}px)`,
|
|
1817
1832
|
height: S($) + "px"
|
|
1818
|
-
}]) }, null, 4), [[C, S(
|
|
1819
|
-
a("div", { style: u({ backgroundColor: S(
|
|
1833
|
+
}]) }, null, 4), [[C, S(lt)]]),
|
|
1834
|
+
a("div", { style: u({ backgroundColor: S(ht) ? "red" : "" }) }, null, 4)
|
|
1820
1835
|
], 512));
|
|
1821
1836
|
}
|
|
1822
|
-
}),
|
|
1823
|
-
|
|
1824
|
-
e.component("HolyesTable",
|
|
1837
|
+
}), W = U;
|
|
1838
|
+
W.install = (e) => {
|
|
1839
|
+
e.component("HolyesTable", W);
|
|
1825
1840
|
};
|
|
1826
1841
|
//#endregion
|
|
1827
|
-
export {
|
|
1842
|
+
export { W as default, U as pretextTable };
|