@wx-design/components 1.1.28 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +706 -705
- package/es/style.css +1 -1
- package/lib/index.js +5 -5
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -3572,7 +3572,7 @@ const sn = {
|
|
|
3572
3572
|
*/
|
|
3573
3573
|
renderTreeIcon(e, t) {
|
|
3574
3574
|
const { $table: n, isHidden: o } = e, { reactData: s, internalData: l } = n, { computeTreeOpts: a } = n.getComputeMaps(), { treeExpandedMaps: c, treeExpandLazyLoadedMaps: d } = s, { fullAllDataRowIdData: u } = l, f = a.value, { row: p, column: b, level: v } = e, { slots: O } = b, { indent: D, lazy: h, trigger: g, iconLoaded: E, showIcon: C, iconOpen: x, iconClose: w } = f, y = f.children || f.childrenField, $ = f.hasChild || f.hasChildField, N = p[y], H = N && N.length, G = O ? O.icon : null;
|
|
3575
|
-
let j = !1, oe = !1, K = !1,
|
|
3575
|
+
let j = !1, oe = !1, K = !1, _ = !1;
|
|
3576
3576
|
const ge = {};
|
|
3577
3577
|
if (G)
|
|
3578
3578
|
return n.callSlot(G, e);
|
|
@@ -3580,7 +3580,7 @@ const sn = {
|
|
|
3580
3580
|
const ae = St(n, p);
|
|
3581
3581
|
if (oe = !!c[ae], h) {
|
|
3582
3582
|
const F = u[ae];
|
|
3583
|
-
K = !!d[ae], j = p[$],
|
|
3583
|
+
K = !!d[ae], j = p[$], _ = !!F.treeLoaded;
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
3586
3586
|
return (!g || g === "default") && (ge.onClick = (ae) => {
|
|
@@ -3594,7 +3594,7 @@ const sn = {
|
|
|
3594
3594
|
paddingLeft: `${v * D}px`
|
|
3595
3595
|
}
|
|
3596
3596
|
}, [
|
|
3597
|
-
C && (h ?
|
|
3597
|
+
C && (h ? _ ? H : j : H) ? [
|
|
3598
3598
|
r("div", Object.assign({ class: "vxe-tree--btn-wrapper" }, ge), [
|
|
3599
3599
|
r("i", {
|
|
3600
3600
|
class: ["vxe-tree--node-btn", K ? E || no().TABLE_TREE_LOADED : oe ? x || no().TABLE_TREE_OPEN : w || no().TABLE_TREE_CLOSE]
|
|
@@ -4106,7 +4106,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4106
4106
|
}
|
|
4107
4107
|
},
|
|
4108
4108
|
setup(e) {
|
|
4109
|
-
const t = gt("$xeTable", {}), n = gt("xesize", null), { xID: o, props: s, context: l, reactData: a, internalData: c } = t, { refTableBody: d, refTableHeader: u, refTableFooter: f, refTableLeftBody: p, refTableRightBody: b, refScrollXHandleElem: v, refScrollYHandleElem: O } = t.getRefMaps(), { computeEditOpts: D, computeMouseOpts: h, computeAreaOpts: g, computeSYOpts: E, computeEmptyOpts: C, computeKeyboardOpts: x, computeTooltipOpts: w, computeRadioOpts: y, computeExpandOpts: $, computeTreeOpts: N, computeCheckboxOpts: H, computeCellOpts: G, computeValidOpts: j, computeRowOpts: oe, computeColumnOpts: K, computeRowDragOpts:
|
|
4109
|
+
const t = gt("$xeTable", {}), n = gt("xesize", null), { xID: o, props: s, context: l, reactData: a, internalData: c } = t, { refTableBody: d, refTableHeader: u, refTableFooter: f, refTableLeftBody: p, refTableRightBody: b, refScrollXHandleElem: v, refScrollYHandleElem: O } = t.getRefMaps(), { computeEditOpts: D, computeMouseOpts: h, computeAreaOpts: g, computeSYOpts: E, computeEmptyOpts: C, computeKeyboardOpts: x, computeTooltipOpts: w, computeRadioOpts: y, computeExpandOpts: $, computeTreeOpts: N, computeCheckboxOpts: H, computeCellOpts: G, computeValidOpts: j, computeRowOpts: oe, computeColumnOpts: K, computeRowDragOpts: _, computeColumnDragOpts: ge } = t.getComputeMaps(), ae = Me(), F = Me(), W = Me(), k = Me(), I = Me(), Q = Me(), ie = Me(), U = () => {
|
|
4110
4110
|
if (n) {
|
|
4111
4111
|
const Ke = n.value;
|
|
4112
4112
|
if (Ke)
|
|
@@ -4148,7 +4148,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4148
4148
|
])
|
|
4149
4149
|
] : [];
|
|
4150
4150
|
}, L = (Ke, nt, rt, ft, ht, mt, Ne, Ce, Le, Te, Oe, M) => {
|
|
4151
|
-
const { fullAllDataRowIdData: ne } = c, { columnKey: ye, height: q, showOverflow: R, cellClassName: J, cellStyle: V, align: Z, spanMethod: be, mouseConfig: Se, editConfig: $e, editRules: Be, tooltipConfig: et } = s, { tableData: Ze, overflowX: Je, currentColumn: xt, scrollXLoad: pt, scrollYLoad: Et, mergeList: zt, editStore: Cn, isAllOverflow: rn, validErrorMaps: Nt } = a, { afterFullData: Ie } = c, We = G.value, ct = j.value, Ot = H.value, At = D.value, Jt = w.value, Pt = oe.value, jt =
|
|
4151
|
+
const { fullAllDataRowIdData: ne } = c, { columnKey: ye, height: q, showOverflow: R, cellClassName: J, cellStyle: V, align: Z, spanMethod: be, mouseConfig: Se, editConfig: $e, editRules: Be, tooltipConfig: et } = s, { tableData: Ze, overflowX: Je, currentColumn: xt, scrollXLoad: pt, scrollYLoad: Et, mergeList: zt, editStore: Cn, isAllOverflow: rn, validErrorMaps: Nt } = a, { afterFullData: Ie } = c, We = G.value, ct = j.value, Ot = H.value, At = D.value, Jt = w.value, Pt = oe.value, jt = _.value, { disabledMethod: Lt } = jt, z = E.value, en = K.value, tn = h.value, On = g.value, { selectCellToRow: Tn } = On, { type: Fn, cellRender: vn, editRender: dn, align: An, showOverflow: io, className: Eo, treeNode: vo, slots: Io } = Le, { verticalAlign: _o } = We, { actived: Po } = Cn, { rHeight: Ko } = z, { height: ir } = Pt, Wr = Le.id, os = dn || vn, Yo = os ? _g.get(os.name) : null, ws = Yo ? Yo.tableCellClassName || Yo.cellClassName : null, eo = Yo ? Yo.tableCellStyle || Yo.cellStyle : "", Mr = Jt.showAll, cr = t.getColumnIndex(Le), zr = t.getVTColumnIndex(Le), nr = gn(dn);
|
|
4152
4152
|
let ur = rt ? Le.fixed !== rt : Le.fixed && Je;
|
|
4153
4153
|
const ro = i.isUndefined(io) || i.isNull(io) ? R : io, Vo = ro === "ellipsis", Bo = ro === "title", Xo = ro === !0 || ro === "tooltip", jr = R || Bo || Xo || Vo;
|
|
4154
4154
|
let Es;
|
|
@@ -4390,7 +4390,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4390
4390
|
nt[`${rt}wrapper`] = null, nt[`${rt}table`] = null, nt[`${rt}colgroup`] = null, nt[`${rt}list`] = null, nt[`${rt}xSpace`] = null, nt[`${rt}ySpace`] = null, nt[`${rt}emptyBlock`] = null;
|
|
4391
4391
|
}), () => {
|
|
4392
4392
|
let { fixedColumn: Ke, fixedType: nt, tableColumn: rt } = e;
|
|
4393
|
-
const { keyboardConfig: ft, showOverflow: ht, spanMethod: mt, mouseConfig: Ne } = s, { tableData: Ce, mergeList: Le, scrollYLoad: Te, isAllOverflow: Oe, isDragRowMove: M } = a, { visibleColumn: ne } = c, { slots: ye } = l, q = oe.value, R = E.value, J = C.value, V = x.value, Z = h.value, be =
|
|
4393
|
+
const { keyboardConfig: ft, showOverflow: ht, spanMethod: mt, mouseConfig: Ne } = s, { tableData: Ce, mergeList: Le, scrollYLoad: Te, isAllOverflow: Oe, isDragRowMove: M } = a, { visibleColumn: ne } = c, { slots: ye } = l, q = oe.value, R = E.value, J = C.value, V = x.value, Z = h.value, be = _.value;
|
|
4394
4394
|
nt && (!a.expandColumn && (Te || ht && Oe) && !Le.length && !mt && !(ft && V.isMerge) ? rt = Ke : rt = ne);
|
|
4395
4395
|
let Se;
|
|
4396
4396
|
const $e = ye ? ye.empty : null;
|
|
@@ -4499,11 +4499,11 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4499
4499
|
const { isGroup: j } = s;
|
|
4500
4500
|
D.value = j ? CL(e.tableGroupColumn) : [];
|
|
4501
4501
|
}, $ = (j, oe) => {
|
|
4502
|
-
const { column: K } = oe, { fixedType:
|
|
4502
|
+
const { column: K } = oe, { fixedType: _ } = e, { visibleColumn: ge } = l, ae = O.value, F = c.value, W = a.value, k = d.value, I = u.value, Q = f.value, ie = p.value, { clientX: U } = j, ee = h.value, me = j.target, De = oe.cell = me.parentNode;
|
|
4503
4503
|
let le = 0;
|
|
4504
4504
|
const L = F.$el, Y = bL(me, ee), te = me.clientWidth, Ee = Math.floor(te / 2), ve = EL(oe) - Ee;
|
|
4505
4505
|
let ue = Y.left - De.clientWidth + te + ve, xe = Y.left + Ee;
|
|
4506
|
-
const je = document.onmousemove, Ge = document.onmouseup, ot =
|
|
4506
|
+
const je = document.onmousemove, Ge = document.onmouseup, ot = _ === "left", lt = _ === "right";
|
|
4507
4507
|
let Ke = 0;
|
|
4508
4508
|
if (ot || lt) {
|
|
4509
4509
|
const rt = ot ? "nextElementSibling" : "previousElementSibling";
|
|
@@ -4516,7 +4516,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4516
4516
|
rt.stopPropagation(), rt.preventDefault();
|
|
4517
4517
|
const ft = rt.clientX - U;
|
|
4518
4518
|
let ht = xe + ft;
|
|
4519
|
-
const mt =
|
|
4519
|
+
const mt = _ ? 0 : L.scrollLeft;
|
|
4520
4520
|
ot ? ht = Math.min(ht, (I ? I.offsetLeft : L.clientWidth) - Ke - ve) : lt ? (ue = (k ? k.clientWidth : 0) + Ke + ve, ht = Math.min(ht, xe + De.clientWidth - ve)) : ue = Math.max(L.scrollLeft, ue), le = Math.max(ht, ue);
|
|
4521
4521
|
const Ne = le - mt;
|
|
4522
4522
|
if (Q.style.left = `${Ne}px`, ae.showDragTip && ie) {
|
|
@@ -4535,7 +4535,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4535
4535
|
}), Cr(W, "drag--resize");
|
|
4536
4536
|
}, nt(j), t.closeMenu && t.closeMenu();
|
|
4537
4537
|
}, N = (j, oe) => {
|
|
4538
|
-
const { fixedType: K } = e, { resizable:
|
|
4538
|
+
const { fixedType: K } = e, { resizable: _, border: ge, columnKey: ae, headerCellClassName: F, headerCellStyle: W, showHeaderOverflow: k, headerAlign: I, align: Q, mouseConfig: ie } = o, { currentColumn: U, scrollXLoad: ee, scrollYLoad: me, overflowX: De, scrollbarWidth: le } = s, L = b.value, Y = v.value, { disabledMethod: te } = Y;
|
|
4539
4539
|
return j.map((Ee, ve) => {
|
|
4540
4540
|
const { type: ue, showHeaderOverflow: xe, headerAlign: je, align: Ge, headerClassName: ot, editRender: lt, cellRender: Ke } = Ee, nt = Ee.id, rt = lt || Ke, ft = rt ? FL.get(rt.name) : null, ht = Ee.children && Ee.children.length, mt = K ? Ee.fixed !== K && !ht : !!Ee.fixed && De, Ne = i.eqNull(xe) ? k : xe, Ce = je || (ft ? ft.tableHeaderCellAlign : "") || I || Ge || (ft ? ft.tableCellAlign : "") || Q;
|
|
4541
4541
|
let Le = Ne === "ellipsis";
|
|
@@ -4585,7 +4585,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4585
4585
|
/**
|
|
4586
4586
|
* 列宽拖动
|
|
4587
4587
|
*/
|
|
4588
|
-
!mt && !ht && (i.isBoolean(Ee.resizable) ? Ee.resizable : L.resizable ||
|
|
4588
|
+
!mt && !ht && (i.isBoolean(Ee.resizable) ? Ee.resizable : L.resizable || _) ? r("div", {
|
|
4589
4589
|
class: ["vxe-resizable", {
|
|
4590
4590
|
"is--line": !ge || ge === "none"
|
|
4591
4591
|
}],
|
|
@@ -4599,7 +4599,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4599
4599
|
})
|
|
4600
4600
|
] : []);
|
|
4601
4601
|
}, H = (j) => {
|
|
4602
|
-
const { fixedType: oe } = e, { headerRowClassName: K, headerRowStyle:
|
|
4602
|
+
const { fixedType: oe } = e, { headerRowClassName: K, headerRowStyle: _ } = o, { isDragColMove: ge } = s, ae = b.value, F = v.value;
|
|
4603
4603
|
return j.map((W, k) => {
|
|
4604
4604
|
const I = { $table: t, $rowIndex: k, fixed: oe, type: zg };
|
|
4605
4605
|
return ae.drag && F.animation ? r(sl, {
|
|
@@ -4610,7 +4610,7 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4610
4610
|
"vxe-header--row",
|
|
4611
4611
|
K ? i.isFunction(K) ? K(I) : K : ""
|
|
4612
4612
|
],
|
|
4613
|
-
style:
|
|
4613
|
+
style: _ ? i.isFunction(_) ? _(I) : _ : null
|
|
4614
4614
|
}, {
|
|
4615
4615
|
default: () => N(W, k)
|
|
4616
4616
|
}) : r("tr", {
|
|
@@ -4619,13 +4619,13 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4619
4619
|
"vxe-header--row",
|
|
4620
4620
|
K ? i.isFunction(K) ? K(I) : K : ""
|
|
4621
4621
|
],
|
|
4622
|
-
style:
|
|
4622
|
+
style: _ ? i.isFunction(_) ? _(I) : _ : null
|
|
4623
4623
|
}, N(W, k));
|
|
4624
4624
|
});
|
|
4625
4625
|
}, G = () => {
|
|
4626
|
-
const { fixedType: j, fixedColumn: oe, tableColumn: K } = e, { showHeaderOverflow:
|
|
4626
|
+
const { fixedType: j, fixedColumn: oe, tableColumn: K } = e, { showHeaderOverflow: _ } = o, { isGroup: ge, scrollXLoad: ae, scrollbarWidth: F } = s, { visibleColumn: W } = l;
|
|
4627
4627
|
let k = D.value, I = K;
|
|
4628
|
-
return ge ? I = W : (j && (ae ||
|
|
4628
|
+
return ge ? I = W : (j && (ae || _) && (I = oe), k = [I]), r("div", {
|
|
4629
4629
|
ref: h,
|
|
4630
4630
|
class: ["vxe-table--header-wrapper", j ? `fixed-${j}--wrapper` : "body--wrapper"],
|
|
4631
4631
|
xid: n
|
|
@@ -4673,12 +4673,12 @@ const PL = ed, { getI18n: VL, renderer: _g, renderEmptyElement: Bg } = we, Hl =
|
|
|
4673
4673
|
};
|
|
4674
4674
|
return at(() => e.tableColumn, y), En(() => {
|
|
4675
4675
|
fe(() => {
|
|
4676
|
-
const { fixedType: j } = e, { internalData: oe } = t, { elemStore: K } = oe,
|
|
4677
|
-
K[`${
|
|
4676
|
+
const { fixedType: j } = e, { internalData: oe } = t, { elemStore: K } = oe, _ = `${j || "main"}-header-`;
|
|
4677
|
+
K[`${_}wrapper`] = h, K[`${_}table`] = g, K[`${_}colgroup`] = E, K[`${_}list`] = C, K[`${_}xSpace`] = x, K[`${_}repair`] = w, y();
|
|
4678
4678
|
});
|
|
4679
4679
|
}), zn(() => {
|
|
4680
|
-
const { fixedType: j } = e, { internalData: oe } = t, { elemStore: K } = oe,
|
|
4681
|
-
K[`${
|
|
4680
|
+
const { fixedType: j } = e, { internalData: oe } = t, { elemStore: K } = oe, _ = `${j || "main"}-header-`;
|
|
4681
|
+
K[`${_}wrapper`] = null, K[`${_}table`] = null, K[`${_}colgroup`] = null, K[`${_}list`] = null, K[`${_}xSpace`] = null, K[`${_}repair`] = null;
|
|
4682
4682
|
}), G;
|
|
4683
4683
|
}
|
|
4684
4684
|
}), { renderer: RL } = we, tf = "footer";
|
|
@@ -4724,13 +4724,13 @@ const Hg = st({
|
|
|
4724
4724
|
const K = G ? G.$el : null;
|
|
4725
4725
|
if (!K)
|
|
4726
4726
|
return;
|
|
4727
|
-
const
|
|
4728
|
-
l.inFooterScroll = !0, yo(
|
|
4727
|
+
const _ = d.value, ge = oe.scrollLeft, ae = !0, F = !1, W = K.scrollTop;
|
|
4728
|
+
l.inFooterScroll = !0, yo(_, ge), yo(j, ge), yo(K, ge), t.triggerScrollXEvent(w), t.handleScrollEvent(w, F, ae, W, ge, {
|
|
4729
4729
|
type: tf,
|
|
4730
4730
|
fixed: N
|
|
4731
4731
|
});
|
|
4732
4732
|
}, E = (w, y, $, N, H) => {
|
|
4733
|
-
const { fixedType: G } = e, { footerCellClassName: j, footerCellStyle: oe, footerAlign: K, footerSpanMethod:
|
|
4733
|
+
const { fixedType: G } = e, { footerCellClassName: j, footerCellStyle: oe, footerAlign: K, footerSpanMethod: _, align: ge, columnKey: ae, showFooterOverflow: F } = o, { scrollXLoad: W, scrollYLoad: k, overflowX: I, scrollbarWidth: Q, currentColumn: ie, mergeFooterList: U } = s, ee = u.value, me = f.value;
|
|
4734
4734
|
return w.map((De, le) => {
|
|
4735
4735
|
const { type: L, showFooterOverflow: Y, footerAlign: te, align: Ee, footerClassName: ve, editRender: ue, cellRender: xe } = De, je = ue || xe, Ge = je ? RL.get(je.name) : null, ot = ee.showAll, lt = De.children && De.children.length, Ke = G ? De.fixed !== G && !lt : De.fixed && I, nt = i.eqNull(Y) ? F : Y, rt = te || (Ge ? Ge.tableFooterCellAlign : "") || K || Ee || (Ge ? Ge.tableCellAlign : "") || ge;
|
|
4736
4736
|
let ft = nt === "ellipsis";
|
|
@@ -4769,8 +4769,8 @@ const Hg = st({
|
|
|
4769
4769
|
return null;
|
|
4770
4770
|
R > 1 && (Ce.rowspan = R), J > 1 && (Ce.colspan = J);
|
|
4771
4771
|
}
|
|
4772
|
-
} else if (
|
|
4773
|
-
const { rowspan: q = 1, colspan: R = 1 } =
|
|
4772
|
+
} else if (_) {
|
|
4773
|
+
const { rowspan: q = 1, colspan: R = 1 } = _(ne) || {};
|
|
4774
4774
|
if (!q || !R)
|
|
4775
4775
|
return null;
|
|
4776
4776
|
q > 1 && (Ce.rowspan = q), R > 1 && (Ce.colspan = R);
|
|
@@ -4801,10 +4801,10 @@ const Hg = st({
|
|
|
4801
4801
|
] : []);
|
|
4802
4802
|
}, C = (w) => {
|
|
4803
4803
|
const { fixedType: y, tableColumn: $ } = e, { footerRowClassName: N, footerRowStyle: H } = o, { isDragColMove: G } = s, j = f.value, oe = p.value;
|
|
4804
|
-
return w.map((K,
|
|
4805
|
-
const ge =
|
|
4804
|
+
return w.map((K, _) => {
|
|
4805
|
+
const ge = _, ae = { $table: t, row: K, _rowIndex: ge, $rowIndex: _, fixed: y, type: tf };
|
|
4806
4806
|
return j.drag && oe.animation ? r(sl, {
|
|
4807
|
-
key:
|
|
4807
|
+
key: _,
|
|
4808
4808
|
name: `vxe-header--col-list${G ? "" : "-disabled"}`,
|
|
4809
4809
|
tag: "tr",
|
|
4810
4810
|
class: [
|
|
@@ -4813,20 +4813,20 @@ const Hg = st({
|
|
|
4813
4813
|
],
|
|
4814
4814
|
style: H ? i.isFunction(H) ? H(ae) : H : null
|
|
4815
4815
|
}, {
|
|
4816
|
-
default: () => E($, w, K,
|
|
4816
|
+
default: () => E($, w, K, _, ge)
|
|
4817
4817
|
}) : r("tr", {
|
|
4818
|
-
key:
|
|
4818
|
+
key: _,
|
|
4819
4819
|
class: [
|
|
4820
4820
|
"vxe-footer--row",
|
|
4821
4821
|
N ? i.isFunction(N) ? N(ae) : N : ""
|
|
4822
4822
|
],
|
|
4823
4823
|
style: H ? i.isFunction(H) ? H(ae) : H : null
|
|
4824
|
-
}, E($, w, K,
|
|
4824
|
+
}, E($, w, K, _, ge));
|
|
4825
4825
|
});
|
|
4826
4826
|
}, x = () => {
|
|
4827
4827
|
let { fixedType: w, fixedColumn: y, tableColumn: $, footerTableData: N } = e;
|
|
4828
|
-
const { footerSpanMethod: H, showFooterOverflow: G } = o, { visibleColumn: j } = l, { scrollXLoad: oe, scrollbarWidth: K, mergeFooterList:
|
|
4829
|
-
w && (!s.expandColumn && (oe || G) && (!
|
|
4828
|
+
const { footerSpanMethod: H, showFooterOverflow: G } = o, { visibleColumn: j } = l, { scrollXLoad: oe, scrollbarWidth: K, mergeFooterList: _ } = s;
|
|
4829
|
+
w && (!s.expandColumn && (oe || G) && (!_.length || !H) ? $ = y : $ = j);
|
|
4830
4830
|
const ge = {};
|
|
4831
4831
|
return w || (ge.onScroll = g), r("div", Object.assign({ ref: b, class: ["vxe-table--footer-wrapper", w ? `fixed-${w}--wrapper` : "body--wrapper"], xid: n }, ge), [
|
|
4832
4832
|
w ? Ve() : r("div", {
|
|
@@ -5242,11 +5242,11 @@ const Hg = st({
|
|
|
5242
5242
|
}).then((Ee) => {
|
|
5243
5243
|
Ee === "confirm" && oe(te);
|
|
5244
5244
|
}) : oe(te);
|
|
5245
|
-
},
|
|
5245
|
+
}, _ = (te) => {
|
|
5246
5246
|
const { customColumnList: Ee } = d, ve = i.findTree(Ee, (ue) => ue === te);
|
|
5247
5247
|
if (ve && ve.parent) {
|
|
5248
5248
|
const { parent: ue } = ve;
|
|
5249
|
-
ue.children && ue.children.length && (ue.renderVisible = ue.children.every((xe) => xe.renderVisible), ue.halfVisible = !ue.renderVisible && ue.children.some((xe) => xe.renderVisible || xe.halfVisible),
|
|
5249
|
+
ue.children && ue.children.length && (ue.renderVisible = ue.children.every((xe) => xe.renderVisible), ue.halfVisible = !ue.renderVisible && ue.children.some((xe) => xe.renderVisible || xe.halfVisible), _(ue));
|
|
5250
5250
|
}
|
|
5251
5251
|
}, ge = (te) => {
|
|
5252
5252
|
const Ee = !te.renderVisible;
|
|
@@ -5254,7 +5254,7 @@ const Hg = st({
|
|
|
5254
5254
|
ue.visible = Ee, ue.renderVisible = Ee, ue.halfVisible = !1;
|
|
5255
5255
|
}), d.isCustomStatus = !0, a.handleCustom(), a.saveCustomStore("update:visible")) : i.eachTree([te], (ue) => {
|
|
5256
5256
|
ue.renderVisible = Ee, ue.halfVisible = !1;
|
|
5257
|
-
}),
|
|
5257
|
+
}), _(te), a.checkCustomStatus();
|
|
5258
5258
|
}, ae = (te) => {
|
|
5259
5259
|
f.value.immediate && te.renderResizeWidth !== te.renderWidth && (te.resizeWidth = te.renderResizeWidth, te.renderWidth = te.renderResizeWidth, d.isCustomStatus = !0, a.handleCustom(), a.saveCustomStore("update:width"));
|
|
5260
5260
|
}, F = (te, Ee) => {
|
|
@@ -5908,7 +5908,7 @@ const Hg = st({
|
|
|
5908
5908
|
class: "vxe-table--filter-template"
|
|
5909
5909
|
}, wr(j(E, G)))
|
|
5910
5910
|
];
|
|
5911
|
-
const oe = y ? x.isAllSelected : !x.options.some((
|
|
5911
|
+
const oe = y ? x.isAllSelected : !x.options.some((_) => _._checked), K = y && x.isIndeterminate;
|
|
5912
5912
|
return [
|
|
5913
5913
|
r("ul", {
|
|
5914
5914
|
class: "vxe-table--filter-header"
|
|
@@ -5919,8 +5919,8 @@ const Hg = st({
|
|
|
5919
5919
|
"is--indeterminate": K
|
|
5920
5920
|
}],
|
|
5921
5921
|
title: mc(y ? "vxe.table.allTitle" : "vxe.table.allFilter"),
|
|
5922
|
-
onClick: (
|
|
5923
|
-
v(
|
|
5922
|
+
onClick: (_) => {
|
|
5923
|
+
v(_, !x.isAllSelected);
|
|
5924
5924
|
}
|
|
5925
5925
|
}, (y ? [
|
|
5926
5926
|
r("span", {
|
|
@@ -5937,15 +5937,15 @@ const Hg = st({
|
|
|
5937
5937
|
style: $ ? {
|
|
5938
5938
|
maxHeight: `${$}px`
|
|
5939
5939
|
} : {}
|
|
5940
|
-
}, x.options.map((
|
|
5941
|
-
const ge =
|
|
5940
|
+
}, x.options.map((_) => {
|
|
5941
|
+
const ge = _._checked;
|
|
5942
5942
|
return r("li", {
|
|
5943
5943
|
class: ["vxe-table--filter-option", {
|
|
5944
|
-
"is--checked":
|
|
5944
|
+
"is--checked": _._checked
|
|
5945
5945
|
}],
|
|
5946
|
-
title:
|
|
5946
|
+
title: _.label,
|
|
5947
5947
|
onClick: (ae) => {
|
|
5948
|
-
b(ae, !
|
|
5948
|
+
b(ae, !_._checked, _);
|
|
5949
5949
|
}
|
|
5950
5950
|
}, (y ? [
|
|
5951
5951
|
r("span", {
|
|
@@ -5954,7 +5954,7 @@ const Hg = st({
|
|
|
5954
5954
|
] : []).concat([
|
|
5955
5955
|
r("span", {
|
|
5956
5956
|
class: "vxe-checkbox--label"
|
|
5957
|
-
}, Co(
|
|
5957
|
+
}, Co(_.label, 1))
|
|
5958
5958
|
]));
|
|
5959
5959
|
}))
|
|
5960
5960
|
];
|
|
@@ -6189,34 +6189,34 @@ const Hg = st({
|
|
|
6189
6189
|
const { defaultOptions: oe } = e;
|
|
6190
6190
|
return !oe.original && ["xlsx"].indexOf(oe.type) > -1;
|
|
6191
6191
|
}), g = (oe) => {
|
|
6192
|
-
const { storeData: K } = e,
|
|
6193
|
-
if (
|
|
6194
|
-
const { parent: ge } =
|
|
6192
|
+
const { storeData: K } = e, _ = i.findTree(K.columns, (ge) => ge === oe);
|
|
6193
|
+
if (_ && _.parent) {
|
|
6194
|
+
const { parent: ge } = _;
|
|
6195
6195
|
ge.children && ge.children.length && (ge.checked = ge.children.every((ae) => ae.checked), ge.halfChecked = !ge.checked && ge.children.some((ae) => ae.checked || ae.halfChecked), g(ge));
|
|
6196
6196
|
}
|
|
6197
6197
|
}, E = () => {
|
|
6198
6198
|
const { storeData: oe } = e, K = oe.columns;
|
|
6199
|
-
u.isAll = K.every((
|
|
6199
|
+
u.isAll = K.every((_) => _.disabled || _.checked), u.isIndeterminate = !u.isAll && K.some((_) => !_.disabled && (_.checked || _.halfChecked));
|
|
6200
6200
|
}, C = (oe) => {
|
|
6201
6201
|
const K = !oe.checked;
|
|
6202
|
-
i.eachTree([oe], (
|
|
6203
|
-
|
|
6202
|
+
i.eachTree([oe], (_) => {
|
|
6203
|
+
_.checked = K, _.halfChecked = !1;
|
|
6204
6204
|
}), g(oe), E();
|
|
6205
6205
|
}, x = () => {
|
|
6206
6206
|
const { storeData: oe } = e, K = !u.isAll;
|
|
6207
|
-
i.eachTree(oe.columns, (
|
|
6208
|
-
|
|
6207
|
+
i.eachTree(oe.columns, (_) => {
|
|
6208
|
+
_.disabled || (_.checked = K, _.halfChecked = !1);
|
|
6209
6209
|
}), u.isAll = K, E();
|
|
6210
6210
|
}, w = () => {
|
|
6211
6211
|
fe(() => {
|
|
6212
|
-
const oe = p.value, K = b.value,
|
|
6212
|
+
const oe = p.value, K = b.value, _ = f.value, ge = oe || K || _;
|
|
6213
6213
|
ge && ge.focus();
|
|
6214
6214
|
}), E();
|
|
6215
6215
|
}, y = () => {
|
|
6216
|
-
const { storeData: oe, defaultOptions: K } = e, { hasMerge:
|
|
6216
|
+
const { storeData: oe, defaultOptions: K } = e, { hasMerge: _, columns: ge } = oe, ae = v.value, F = D.value, W = i.searchTree(ge, (k) => k.checked, { children: "children", mapChildren: "childNodes", original: !0 });
|
|
6217
6217
|
return Object.assign({}, K, {
|
|
6218
6218
|
columns: W,
|
|
6219
|
-
isMerge:
|
|
6219
|
+
isMerge: _ && F && ae ? K.isMerge : !1
|
|
6220
6220
|
});
|
|
6221
6221
|
}, $ = () => {
|
|
6222
6222
|
const { storeData: oe } = e, K = d.value;
|
|
@@ -6235,7 +6235,7 @@ const Hg = st({
|
|
|
6235
6235
|
const { storeData: oe } = e;
|
|
6236
6236
|
oe.isPrint ? $() : N();
|
|
6237
6237
|
}, j = () => {
|
|
6238
|
-
const { defaultOptions: oe, storeData: K } = e, { isAll:
|
|
6238
|
+
const { defaultOptions: oe, storeData: K } = e, { isAll: _, isIndeterminate: ge } = u, { hasTree: ae, hasMerge: F, isPrint: W, hasColgroup: k, columns: I } = K, { isHeader: Q } = oe, ie = [], U = v.value, ee = O.value, me = D.value, De = h.value, le = oe.slots || {}, L = le.top, Y = le.bottom, te = le.default, Ee = le.footer, ve = le.parameter;
|
|
6239
6239
|
return i.eachTree(I, (ue) => {
|
|
6240
6240
|
const xe = Co(ue.getTitle(), 1), je = ue.children && ue.children.length, Ge = ue.checked, ot = ue.halfChecked, lt = ue.type === "html";
|
|
6241
6241
|
ie.push(r("li", {
|
|
@@ -6377,14 +6377,14 @@ const Hg = st({
|
|
|
6377
6377
|
}, [
|
|
6378
6378
|
r("li", {
|
|
6379
6379
|
class: ["vxe-table-export--panel-column-option", {
|
|
6380
|
-
"is--checked":
|
|
6380
|
+
"is--checked": _,
|
|
6381
6381
|
"is--indeterminate": ge
|
|
6382
6382
|
}],
|
|
6383
6383
|
title: Zn("vxe.table.allTitle"),
|
|
6384
6384
|
onClick: x
|
|
6385
6385
|
}, [
|
|
6386
6386
|
r("span", {
|
|
6387
|
-
class: ["vxe-checkbox--icon", ge ? ql().TABLE_CHECKBOX_INDETERMINATE :
|
|
6387
|
+
class: ["vxe-checkbox--icon", ge ? ql().TABLE_CHECKBOX_INDETERMINATE : _ ? ql().TABLE_CHECKBOX_CHECKED : ql().TABLE_CHECKBOX_UNCHECKED]
|
|
6388
6388
|
}),
|
|
6389
6389
|
r("span", {
|
|
6390
6390
|
class: "vxe-checkbox--label"
|
|
@@ -6944,7 +6944,7 @@ const Hg = st({
|
|
|
6944
6944
|
isActivated: !1
|
|
6945
6945
|
};
|
|
6946
6946
|
let p = {}, b = {};
|
|
6947
|
-
const v = Me(), O = Me(), D = Me(), h = Me(), g = Me(), E = Me(), C = Me(), x = Me(), w = Me(), y = Me(), $ = Me(), N = Me(), H = Me(), G = Me(), j = Me(), oe = Me(), K = Me(),
|
|
6947
|
+
const v = Me(), O = Me(), D = Me(), h = Me(), g = Me(), E = Me(), C = Me(), x = Me(), w = Me(), y = Me(), $ = Me(), N = Me(), H = Me(), G = Me(), j = Me(), oe = Me(), K = Me(), _ = Me(), ge = Me(), ae = Me(), F = Me(), W = Me(), k = Me(), I = Me(), Q = Me(), ie = Me(), U = Me(), ee = Me(), me = Me(), De = Me(), le = gt("$xeGrid", null);
|
|
6948
6948
|
let L;
|
|
6949
6949
|
const Y = A(() => {
|
|
6950
6950
|
const { id: m } = e;
|
|
@@ -7004,8 +7004,8 @@ const Hg = st({
|
|
|
7004
7004
|
const { border: m } = e;
|
|
7005
7005
|
return m === !0 ? "full" : m || "default";
|
|
7006
7006
|
}), At = A(() => {
|
|
7007
|
-
const { tableData: m } = u, { tableFullData: S } = f, T = Ne.value, { strict: P, checkMethod:
|
|
7008
|
-
return P ? m.length || S.length ?
|
|
7007
|
+
const { tableData: m } = u, { tableFullData: S } = f, T = Ne.value, { strict: P, checkMethod: B } = T;
|
|
7008
|
+
return P ? m.length || S.length ? B ? S.every((ce) => !B({ row: ce })) : !1 : !0 : !1;
|
|
7009
7009
|
}), Jt = A(() => {
|
|
7010
7010
|
const { overflowX: m, scrollXLoad: S, overflowY: T, scrollYLoad: P } = u;
|
|
7011
7011
|
return {
|
|
@@ -7032,7 +7032,7 @@ const Hg = st({
|
|
|
7032
7032
|
refTableRightBody: j,
|
|
7033
7033
|
refTableRightFooter: oe,
|
|
7034
7034
|
refLeftContainer: K,
|
|
7035
|
-
refRightContainer:
|
|
7035
|
+
refRightContainer: _,
|
|
7036
7036
|
refCellResizeBar: ge,
|
|
7037
7037
|
refCellResizeTip: ae,
|
|
7038
7038
|
refScrollXVirtualElem: Q,
|
|
@@ -7093,11 +7093,11 @@ const Hg = st({
|
|
|
7093
7093
|
getComputeMaps: () => Lt,
|
|
7094
7094
|
xegrid: le
|
|
7095
7095
|
}, en = (m, S, T) => {
|
|
7096
|
-
const P = i.get(m, T),
|
|
7097
|
-
return ds(P) && ds(
|
|
7096
|
+
const P = i.get(m, T), B = i.get(S, T);
|
|
7097
|
+
return ds(P) && ds(B) ? !0 : i.isString(P) || i.isNumber(P) ? "" + P == "" + B : i.isEqual(P, B);
|
|
7098
7098
|
}, tn = (m) => {
|
|
7099
|
-
const S = M.value, { orders: T } = S, P = m.order || null,
|
|
7100
|
-
return T[
|
|
7099
|
+
const S = M.value, { orders: T } = S, P = m.order || null, B = T.indexOf(P) + 1;
|
|
7100
|
+
return T[B < T.length ? B : 0];
|
|
7101
7101
|
}, On = (m) => {
|
|
7102
7102
|
const S = Rn().version, T = i.toStringJSON(localStorage.getItem(Yg) || ""), P = T && T._v === S ? T : { _v: S };
|
|
7103
7103
|
return (m ? P[m] : P) || {};
|
|
@@ -7106,18 +7106,18 @@ const Hg = st({
|
|
|
7106
7106
|
P[m] = S || void 0, P._v = T, localStorage.setItem(Yg, i.toJSONString(P));
|
|
7107
7107
|
}, Fn = (m) => {
|
|
7108
7108
|
const { fullAllDataRowIdData: S } = f, T = {};
|
|
7109
|
-
return i.each(m, (P,
|
|
7110
|
-
S[
|
|
7109
|
+
return i.each(m, (P, B) => {
|
|
7110
|
+
S[B] && (T[B] = P);
|
|
7111
7111
|
}), T;
|
|
7112
7112
|
}, vn = (m) => {
|
|
7113
7113
|
const { fullDataRowIdData: S } = f, T = [];
|
|
7114
|
-
return i.each(m, (P,
|
|
7115
|
-
S[
|
|
7114
|
+
return i.each(m, (P, B) => {
|
|
7115
|
+
S[B] && z.findRowIndexOf(T, S[B].row) === -1 && T.push(S[B].row);
|
|
7116
7116
|
}), T;
|
|
7117
7117
|
}, dn = () => {
|
|
7118
7118
|
const { visibleColumn: m } = f, S = w.value, T = S ? S.$el : null;
|
|
7119
7119
|
if (T) {
|
|
7120
|
-
const { scrollLeft: P, clientWidth:
|
|
7120
|
+
const { scrollLeft: P, clientWidth: B } = T, ce = P + B;
|
|
7121
7121
|
let se = -1, pe = 0, he = 0;
|
|
7122
7122
|
for (let Pe = 0, ke = m.length; Pe < ke && (pe += m[Pe].renderWidth, se === -1 && P < pe && (se = Pe), !(se >= 0 && (he++, pe > ce))); Pe++)
|
|
7123
7123
|
;
|
|
@@ -7125,18 +7125,18 @@ const Hg = st({
|
|
|
7125
7125
|
}
|
|
7126
7126
|
return { toVisibleIndex: 0, visibleSize: 6 };
|
|
7127
7127
|
}, An = () => {
|
|
7128
|
-
const { showOverflow: m } = e, S = x.value, T = w.value, P = T ? T.$el : null,
|
|
7128
|
+
const { showOverflow: m } = e, S = x.value, T = w.value, P = T ? T.$el : null, B = d.value, ce = je.value;
|
|
7129
7129
|
let se = 24;
|
|
7130
7130
|
if (m && P) {
|
|
7131
7131
|
const pe = S ? S.$el : null;
|
|
7132
7132
|
let he;
|
|
7133
|
-
he = P.querySelector("tr"), !he && pe && (he = pe.querySelector("tr")), he && (se = he.clientHeight), se || (se = ce[
|
|
7133
|
+
he = P.querySelector("tr"), !he && pe && (he = pe.querySelector("tr")), he && (se = he.clientHeight), se || (se = ce[B || "default"]);
|
|
7134
7134
|
}
|
|
7135
7135
|
return se;
|
|
7136
7136
|
}, io = () => {
|
|
7137
|
-
const { scrollYStore: m, afterFullData: S, fullAllDataRowIdData: T } = f, P = w.value,
|
|
7138
|
-
if (
|
|
7139
|
-
const { scrollTop: se, clientHeight: pe } =
|
|
7137
|
+
const { scrollYStore: m, afterFullData: S, fullAllDataRowIdData: T } = f, P = w.value, B = P ? P.$el : null, { rowHeight: ce } = m;
|
|
7138
|
+
if (B) {
|
|
7139
|
+
const { scrollTop: se, clientHeight: pe } = B, he = se + pe;
|
|
7140
7140
|
let Pe = -1, ke = 0, _e = 0;
|
|
7141
7141
|
for (let Re = 0, Xe = S.length; Re < Xe; Re++) {
|
|
7142
7142
|
const qe = S[Re], He = St(z, qe), ut = T[He];
|
|
@@ -7147,16 +7147,16 @@ const Hg = st({
|
|
|
7147
7147
|
}
|
|
7148
7148
|
return { toVisibleIndex: 0, visibleSize: 8 };
|
|
7149
7149
|
}, Eo = (m, S, T) => {
|
|
7150
|
-
for (let P = 0,
|
|
7150
|
+
for (let P = 0, B = m.length; P < B; P++) {
|
|
7151
7151
|
const ce = m[P], { startIndex: se, endIndex: pe } = S, he = ce[T], Pe = ce[T + "span"], ke = he + Pe;
|
|
7152
7152
|
he < se && se < ke && (S.startIndex = he), he < pe && pe < ke && (S.endIndex = ke), (S.startIndex !== se || S.endIndex !== pe) && (P = -1);
|
|
7153
7153
|
}
|
|
7154
7154
|
}, vo = (m, S, T) => {
|
|
7155
7155
|
if (m) {
|
|
7156
|
-
const { treeConfig: P } = e, { visibleColumn:
|
|
7156
|
+
const { treeConfig: P } = e, { visibleColumn: B } = f;
|
|
7157
7157
|
i.isArray(m) || (m = [m]), P && m.length && Gt("vxe.error.noTree", ["merge-cells | merge-footer-items"]), m.forEach((ce) => {
|
|
7158
7158
|
let { row: se, col: pe, rowspan: he, colspan: Pe } = ce;
|
|
7159
|
-
if (T && i.isNumber(se) && (se = T[se]), i.isNumber(pe) && (pe =
|
|
7159
|
+
if (T && i.isNumber(se) && (se = T[se]), i.isNumber(pe) && (pe = B[pe]), (T ? se : i.isNumber(se)) && pe && (he || Pe) && (he = i.toNumber(he) || 1, Pe = i.toNumber(Pe) || 1, he > 1 || Pe > 1)) {
|
|
7160
7160
|
const ke = i.findIndexOf(S, (Re) => (Re._row === se || St(z, Re._row) === St(z, se)) && (Re._col.id === pe || Re._col.id === pe.id)), _e = S[ke];
|
|
7161
7161
|
if (_e)
|
|
7162
7162
|
_e.rowspan = he, _e.colspan = Pe, _e._rowspan = he, _e._colspan = Pe;
|
|
@@ -7179,8 +7179,8 @@ const Hg = st({
|
|
|
7179
7179
|
}, Io = (m, S, T) => {
|
|
7180
7180
|
const P = [];
|
|
7181
7181
|
if (m) {
|
|
7182
|
-
const { treeConfig:
|
|
7183
|
-
i.isArray(m) || (m = [m]),
|
|
7182
|
+
const { treeConfig: B } = e, { visibleColumn: ce } = f;
|
|
7183
|
+
i.isArray(m) || (m = [m]), B && m.length && Gt("vxe.error.noTree", ["merge-cells | merge-footer-items"]), m.forEach((se) => {
|
|
7184
7184
|
let { row: pe, col: he } = se;
|
|
7185
7185
|
T && i.isNumber(pe) && (pe = T[pe]), i.isNumber(he) && (he = ce[he]);
|
|
7186
7186
|
const Pe = i.findIndexOf(S, (ke) => (ke._row === pe || St(z, ke._row) === St(z, pe)) && (ke._col.id === he || ke._col.id === he.id));
|
|
@@ -7203,33 +7203,33 @@ const Hg = st({
|
|
|
7203
7203
|
if (T === "100%" || T === "auto")
|
|
7204
7204
|
P = S;
|
|
7205
7205
|
else {
|
|
7206
|
-
const
|
|
7207
|
-
si(T) ? P = Math.floor((i.toInteger(T) || 1) / 100 * S) : P = i.toNumber(T), P = Math.max(40, P -
|
|
7206
|
+
const B = z.getExcludeHeight();
|
|
7207
|
+
si(T) ? P = Math.floor((i.toInteger(T) || 1) / 100 * S) : P = i.toNumber(T), P = Math.max(40, P - B);
|
|
7208
7208
|
}
|
|
7209
7209
|
return P;
|
|
7210
7210
|
}, Ko = (m) => {
|
|
7211
7211
|
let { collectColumn: S } = f;
|
|
7212
|
-
const { resizableData: T, sortData: P, visibleData:
|
|
7212
|
+
const { resizableData: T, sortData: P, visibleData: B, fixedData: ce } = m;
|
|
7213
7213
|
let se = !1;
|
|
7214
|
-
T || P ||
|
|
7214
|
+
T || P || B || ce ? (i.eachTree(S, (pe, he, Pe, ke, _e) => {
|
|
7215
7215
|
const Re = pe.getKey();
|
|
7216
|
-
_e || (ce && ce[Re] && (pe.fixed = ce[Re]), P && i.isNumber(P[Re]) && (se = !0, pe.renderSortNumber = P[Re])), T && i.isNumber(T[Re]) && (pe.resizeWidth = T[Re]),
|
|
7216
|
+
_e || (ce && ce[Re] && (pe.fixed = ce[Re]), P && i.isNumber(P[Re]) && (se = !0, pe.renderSortNumber = P[Re])), T && i.isNumber(T[Re]) && (pe.resizeWidth = T[Re]), B && i.isBoolean(B[Re]) && (pe.visible = B[Re]);
|
|
7217
7217
|
}), se && (S = i.orderBy(S, "renderSortNumber"), f.collectColumn = S, f.tableFullColumn = ml(S)), u.isCustomStatus = !0) : u.isCustomStatus = !1;
|
|
7218
7218
|
}, ir = () => {
|
|
7219
|
-
const { customConfig: m } = e, S = Y.value, T = Nt.value, { storage: P, restoreStore:
|
|
7219
|
+
const { customConfig: m } = e, S = Y.value, T = Nt.value, { storage: P, restoreStore: B } = T, ce = P === !0, se = ce ? {} : Object.assign({}, P || {}), pe = ce || se.resizable, he = ce || se.visible, Pe = ce || se.fixed, ke = ce || se.sort;
|
|
7220
7220
|
if ((m ? gn(T) : T.enabled) && (pe || he || Pe || ke)) {
|
|
7221
7221
|
if (!S) {
|
|
7222
7222
|
Gt("vxe.error.reqProp", ["id"]);
|
|
7223
7223
|
return;
|
|
7224
7224
|
}
|
|
7225
7225
|
const _e = On(S);
|
|
7226
|
-
return
|
|
7226
|
+
return B ? Promise.resolve(B({ id: S, type: "restore", storeData: _e })).then((Re) => {
|
|
7227
7227
|
if (Re)
|
|
7228
7228
|
return Ko(Re);
|
|
7229
7229
|
}).catch((Re) => Re) : Ko(_e);
|
|
7230
7230
|
}
|
|
7231
7231
|
}, Wr = () => {
|
|
7232
|
-
const { tableFullColumn: m, collectColumn: S } = f, T = f.fullColumnIdData = {}, P = f.fullColumnFieldData = {},
|
|
7232
|
+
const { tableFullColumn: m, collectColumn: S } = f, T = f.fullColumnIdData = {}, P = f.fullColumnFieldData = {}, B = ye.value, ce = Ge.value, se = nt.value, { isCrossDrag: pe, isSelfToChildDrag: he } = se, Pe = lt.value, ke = S.some(ta);
|
|
7233
7233
|
let _e = !!e.showOverflow, Re, Xe, qe, He, ut;
|
|
7234
7234
|
const Dt = (Ye, Tt, qt, Kt, an) => {
|
|
7235
7235
|
const { id: nn, field: Sn, fixed: xn, type: cn, treeNode: Dn } = Ye, on = { $index: -1, _index: -1, column: Ye, colid: nn, index: Tt, items: qt, parent: an || null, width: 0 };
|
|
@@ -7237,7 +7237,7 @@ const Hg = st({
|
|
|
7237
7237
|
};
|
|
7238
7238
|
ke ? i.eachTree(S, (Ye, Tt, qt, Kt, an, nn) => {
|
|
7239
7239
|
Ye.level = nn.length, Dt(Ye, Tt, qt, Kt, an);
|
|
7240
|
-
}) : m.forEach(Dt), process.env.NODE_ENV === "development" && Re &&
|
|
7240
|
+
}) : m.forEach(Dt), process.env.NODE_ENV === "development" && Re && B.area && Gt("vxe.error.errConflicts", ["mouse-config.area", "column.type=expand"]), process.env.NODE_ENV === "development" && ut && (ce.useKey || Gt("vxe.error.reqProp", ["column-config.useKey & column.type=html"]), Pe.useKey || Gt("vxe.error.reqProp", ["row-config.useKey & column.type=html"])), u.isGroup = ke, u.treeNodeColumn = Xe, u.expandColumn = Re, u.isAllOverflow = _e;
|
|
7241
7241
|
}, os = () => {
|
|
7242
7242
|
f.customHeight = Po("height"), f.customMinHeight = Po("minHeight"), f.customMaxHeight = Po("maxHeight");
|
|
7243
7243
|
}, Yo = () => {
|
|
@@ -7245,7 +7245,7 @@ const Hg = st({
|
|
|
7245
7245
|
return u.isCalcColumn = !0, fe().then(() => {
|
|
7246
7246
|
const { fullColumnIdData: S } = f, T = v.value;
|
|
7247
7247
|
T && (m.forEach((P) => {
|
|
7248
|
-
const
|
|
7248
|
+
const B = P.id, ce = S[B], se = T.querySelectorAll(`.vxe-header--column.${P.id}>.vxe-cell,.vxe-body--column.${P.id}>.vxe-cell,.vxe-footer--column.${P.id}>.vxe-cell`), pe = se[0];
|
|
7249
7249
|
let he = 0;
|
|
7250
7250
|
if (pe) {
|
|
7251
7251
|
const ke = getComputedStyle(pe);
|
|
@@ -7268,7 +7268,7 @@ const Hg = st({
|
|
|
7268
7268
|
}), b.analyColumnWidth()), u.isCalcColumn = !1;
|
|
7269
7269
|
});
|
|
7270
7270
|
}, ws = () => {
|
|
7271
|
-
const m = x.value, S = w.value, T = y.value, P = S ? S.$el : null,
|
|
7271
|
+
const m = x.value, S = w.value, T = y.value, P = S ? S.$el : null, B = m ? m.$el : null, ce = T ? T.$el : null;
|
|
7272
7272
|
if (!P)
|
|
7273
7273
|
return;
|
|
7274
7274
|
let se = 0;
|
|
@@ -7317,17 +7317,17 @@ const Hg = st({
|
|
|
7317
7317
|
let nn = 0;
|
|
7318
7318
|
an && (nn = Math.max(P.offsetWidth - P.clientWidth, 0)), u.scrollbarWidth = nn, u.overflowY = an, f.tableWidth = se, f.tableHeight = Kt;
|
|
7319
7319
|
let Sn = 0;
|
|
7320
|
-
|
|
7321
|
-
|
|
7320
|
+
B && (Sn = B.clientHeight, fe(() => {
|
|
7321
|
+
B && P && B.scrollLeft !== P.scrollLeft && (B.scrollLeft = P.scrollLeft);
|
|
7322
7322
|
})), f.headerHeight = Sn;
|
|
7323
7323
|
let xn = !1, cn = 0, Dn = 0;
|
|
7324
7324
|
ce ? (cn = ce.offsetHeight, xn = se > ce.clientWidth, Dn = Math.max(cn - ce.clientHeight, 0)) : (xn = se > he, Dn = Math.max(Kt - P.clientHeight, 0)), f.footerHeight = cn, u.overflowX = xn, u.scrollbarHeight = Dn, os(), u.parentHeight = Math.max(f.headerHeight + cn + 20, b.getParentHeight()), xn && b.checkScrolling();
|
|
7325
7325
|
}, eo = () => {
|
|
7326
|
-
const { showOverflow: m } = e, { tableData: S, scrollXLoad: T, scrollYLoad: P } = u, { fullAllDataRowIdData:
|
|
7326
|
+
const { showOverflow: m } = e, { tableData: S, scrollXLoad: T, scrollYLoad: P } = u, { fullAllDataRowIdData: B } = f, ce = v.value;
|
|
7327
7327
|
if (!m && (T || P) && ce) {
|
|
7328
7328
|
let se = 0, pe = 0, he = !1;
|
|
7329
7329
|
S.forEach((Pe) => {
|
|
7330
|
-
const ke = St(z, Pe), _e =
|
|
7330
|
+
const ke = St(z, Pe), _e = B[ke], Re = ce.querySelectorAll(`.vxe-body--row[rowid="${ke}"]`);
|
|
7331
7331
|
if (_e && Re.length) {
|
|
7332
7332
|
let Xe = 0;
|
|
7333
7333
|
for (let qe = 0; qe < Re.length; qe++) {
|
|
@@ -7346,12 +7346,12 @@ const Hg = st({
|
|
|
7346
7346
|
}, Mr = (m) => {
|
|
7347
7347
|
const { sortBy: S, sortType: T } = m;
|
|
7348
7348
|
return (P) => {
|
|
7349
|
-
let
|
|
7350
|
-
return S ?
|
|
7349
|
+
let B;
|
|
7350
|
+
return S ? B = i.isFunction(S) ? S({ row: P, column: m }) : i.get(P, S) : B = p.getCellLabel(P, m), !T || T === "auto" ? isNaN(B) ? B : i.toNumber(B) : T === "number" ? i.toNumber(B) : T === "string" ? i.toValueString(B) : B;
|
|
7351
7351
|
};
|
|
7352
7352
|
}, cr = () => {
|
|
7353
|
-
const { treeConfig: m } = e, { afterFullData: S, fullDataRowIdData: T, fullAllDataRowIdData: P } = f,
|
|
7354
|
-
m &&
|
|
7353
|
+
const { treeConfig: m } = e, { afterFullData: S, fullDataRowIdData: T, fullAllDataRowIdData: P } = f, B = Et.value;
|
|
7354
|
+
m && B.transform && S.forEach((ce, se) => {
|
|
7355
7355
|
const pe = St(z, ce), he = P[pe];
|
|
7356
7356
|
if (he)
|
|
7357
7357
|
he._index = se;
|
|
@@ -7361,8 +7361,8 @@ const Hg = st({
|
|
|
7361
7361
|
}
|
|
7362
7362
|
});
|
|
7363
7363
|
}, zr = () => {
|
|
7364
|
-
const { treeConfig: m } = e, { afterFullData: S, fullDataRowIdData: T, fullAllDataRowIdData: P, afterTreeFullData:
|
|
7365
|
-
m ? (i.eachTree(
|
|
7364
|
+
const { treeConfig: m } = e, { afterFullData: S, fullDataRowIdData: T, fullAllDataRowIdData: P, afterTreeFullData: B } = f, ce = Et.value, se = ce.children || ce.childrenField, pe = {};
|
|
7365
|
+
m ? (i.eachTree(B, (he, Pe, ke, _e) => {
|
|
7366
7366
|
const Re = St(z, he), Xe = P[Re], qe = _e.map((He, ut) => ut % 2 === 0 ? Number(He) + 1 : ".").join("");
|
|
7367
7367
|
if (Xe)
|
|
7368
7368
|
Xe.seq = qe;
|
|
@@ -7382,7 +7382,7 @@ const Hg = st({
|
|
|
7382
7382
|
pe[ke] = he;
|
|
7383
7383
|
}), f.afterFullRowMaps = pe;
|
|
7384
7384
|
}, nr = () => {
|
|
7385
|
-
const { treeConfig: m } = e, { treeExpandedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Et.value,
|
|
7385
|
+
const { treeConfig: m } = e, { treeExpandedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Et.value, B = P.children || P.childrenField;
|
|
7386
7386
|
if (m && P.transform) {
|
|
7387
7387
|
const ce = [], se = {};
|
|
7388
7388
|
return i.eachTree(f.afterTreeFullData, (pe, he, Pe, ke, _e) => {
|
|
@@ -7391,11 +7391,11 @@ const Hg = st({
|
|
|
7391
7391
|
const qe = T[Re];
|
|
7392
7392
|
qe && (qe._index = ce.length), se[Re] = 1, ce.push(pe);
|
|
7393
7393
|
}
|
|
7394
|
-
}, { children:
|
|
7394
|
+
}, { children: B }), f.afterFullData = ce, Ll(ce), ce;
|
|
7395
7395
|
}
|
|
7396
7396
|
return f.afterFullData;
|
|
7397
7397
|
}, ur = () => {
|
|
7398
|
-
const { treeConfig: m } = e, { tableFullColumn: S, tableFullData: T, tableFullTreeData: P } = f,
|
|
7398
|
+
const { treeConfig: m } = e, { tableFullColumn: S, tableFullData: T, tableFullTreeData: P } = f, B = ne.value, ce = M.value, se = Et.value, pe = se.children || se.childrenField, { transform: he } = se, { remote: Pe, filterMethod: ke } = B, { remote: _e, sortMethod: Re, multiple: Xe, chronological: qe } = ce;
|
|
7399
7399
|
let He = [], ut = [];
|
|
7400
7400
|
if (!Pe || !_e) {
|
|
7401
7401
|
const Dt = [];
|
|
@@ -7452,7 +7452,7 @@ const Hg = st({
|
|
|
7452
7452
|
}), He = ut) : (He = m ? P.slice(0) : T.slice(0), ut = He);
|
|
7453
7453
|
f.afterFullData = He, f.afterTreeFullData = ut, zr();
|
|
7454
7454
|
}, ro = () => {
|
|
7455
|
-
const { border: m, showFooter: S, showOverflow: T, showHeaderOverflow: P, showFooterOverflow:
|
|
7455
|
+
const { border: m, showFooter: S, showOverflow: T, showHeaderOverflow: P, showFooterOverflow: B, mouseConfig: ce, spanMethod: se, footerSpanMethod: pe, keyboardConfig: he } = e, { isGroup: Pe, currentRow: ke, tableColumn: _e, scrollXLoad: Re, scrollYLoad: Xe, overflowX: qe, scrollbarWidth: He, scrollbarHeight: ut, columnStore: Dt, editStore: Ye, mergeList: Tt, mergeFooterList: qt, isAllOverflow: Kt } = u;
|
|
7456
7456
|
let { visibleColumn: an, fullColumnIdData: nn, tableHeight: Sn, tableWidth: xn, headerHeight: cn, footerHeight: Dn, elemStore: on, customHeight: fn, customMinHeight: Xn, customMaxHeight: Ir } = f;
|
|
7457
7457
|
const fr = ["main", "left", "right"], pr = F.value, qs = rn.value, hl = ye.value, Pr = R.value, Vr = tr(on["main-body-wrapper"]);
|
|
7458
7458
|
pr && (pr.style.top = `${cn}px`, pr.style.height = Vr ? `${Vr.offsetHeight - ut}px` : ""), fn > 0 && S && (fn += ut);
|
|
@@ -7467,7 +7467,7 @@ const Hg = st({
|
|
|
7467
7467
|
return fr.forEach((fo, or) => {
|
|
7468
7468
|
const _n = or > 0 ? fo : "", bo = ["header", "body", "footer"], jo = _n === "left";
|
|
7469
7469
|
let po = [], No;
|
|
7470
|
-
_n && (po = jo ? Dt.leftList : Dt.rightList, No = jo ? K.value :
|
|
7470
|
+
_n && (po = jo ? Dt.leftList : Dt.rightList, No = jo ? K.value : _.value), bo.forEach((co) => {
|
|
7471
7471
|
const Qo = tr(on[`${fo}-${co}-wrapper`]), mr = tr(on[`${fo}-${co}-table`]);
|
|
7472
7472
|
if (co === "header") {
|
|
7473
7473
|
let rr = xn, ko = _e;
|
|
@@ -7502,7 +7502,7 @@ const Hg = st({
|
|
|
7502
7502
|
_n && (!u.expandColumn && (Xe || T && Kt) && !Tt.length && !se && !(he && Pr.isMerge) ? rs = po : rs = an), ko = rs.reduce((mo, Ho) => mo + Ho.renderWidth, 0), mr && (mr.style.width = ko ? `${ko}px` : "", mr.style.paddingRight = He && _n && (na["-moz"] || na.safari) ? `${He}px` : ""), rr && (rr.style.width = ko ? `${ko}px` : "");
|
|
7503
7503
|
} else if (co === "footer") {
|
|
7504
7504
|
let rr = xn, ko = _e;
|
|
7505
|
-
_n && (!u.expandColumn && (Re ||
|
|
7505
|
+
_n && (!u.expandColumn && (Re || B) && (!qt.length || !pe) ? ko = po : ko = an), rr = ko.reduce((rs, mo) => rs + mo.renderWidth, 0), Jd(Qo) && (No && (Qo.style.top = `${fn > 0 ? fn - Dn : Sn + cn}px`), Qo.style.marginTop = `${-Math.max(1, ut)}px`), mr && (mr.style.width = rr ? `${rr + He}px` : "");
|
|
7506
7506
|
}
|
|
7507
7507
|
const za = tr(on[`${fo}-${co}-colgroup`]);
|
|
7508
7508
|
za && i.arrayEach(za.children, (rr) => {
|
|
@@ -7510,7 +7510,7 @@ const Hg = st({
|
|
|
7510
7510
|
if (ko === "col_gutter" && (rr.style.width = `${He}px`), nn[ko]) {
|
|
7511
7511
|
const mo = nn[ko].column, { showHeaderOverflow: Ho, showFooterOverflow: gr, showOverflow: bl } = mo;
|
|
7512
7512
|
let ss;
|
|
7513
|
-
rr.style.width = `${mo.renderWidth}px`, co === "header" ? ss = i.isUndefined(Ho) || i.isNull(Ho) ? P : Ho : co === "footer" ? ss = i.isUndefined(gr) || i.isNull(gr) ?
|
|
7513
|
+
rr.style.width = `${mo.renderWidth}px`, co === "header" ? ss = i.isUndefined(Ho) || i.isNull(Ho) ? P : Ho : co === "footer" ? ss = i.isUndefined(gr) || i.isNull(gr) ? B : gr : ss = i.isUndefined(bl) || i.isNull(bl) ? T : bl;
|
|
7514
7514
|
let nc = ss === "title" || (ss === !0 || ss === "tooltip") || ss === "ellipsis";
|
|
7515
7515
|
const Ha = tr(on[`${fo}-${co}-list`]);
|
|
7516
7516
|
Xe && !nc && (nc = !0), Ha && i.arrayEach(Ha.querySelectorAll(`.${mo.id}`), (qa) => {
|
|
@@ -7540,23 +7540,23 @@ const Hg = st({
|
|
|
7540
7540
|
if (m) {
|
|
7541
7541
|
const S = M.value;
|
|
7542
7542
|
let { defaultSort: T } = S;
|
|
7543
|
-
T && (i.isArray(T) || (T = [T]), T.length && ((m.multiple ? T : T.slice(0, 1)).forEach((P,
|
|
7543
|
+
T && (i.isArray(T) || (T = [T]), T.length && ((m.multiple ? T : T.slice(0, 1)).forEach((P, B) => {
|
|
7544
7544
|
const { field: ce, order: se } = P;
|
|
7545
7545
|
if (ce && se) {
|
|
7546
7546
|
const pe = p.getColumnByField(ce);
|
|
7547
|
-
pe && pe.sortable && (pe.order = se, pe.sortTime = Date.now() +
|
|
7547
|
+
pe && pe.sortable && (pe.order = se, pe.sortTime = Date.now() + B);
|
|
7548
7548
|
}
|
|
7549
7549
|
}), S.remote || b.handleTableData(!0).then(ro)));
|
|
7550
7550
|
}
|
|
7551
7551
|
}, jr = () => {
|
|
7552
7552
|
const { checkboxConfig: m } = e;
|
|
7553
7553
|
if (m) {
|
|
7554
|
-
const { fullDataRowIdData: S } = f, T = Ne.value, { checkAll: P, checkRowKeys:
|
|
7554
|
+
const { fullDataRowIdData: S } = f, T = Ne.value, { checkAll: P, checkRowKeys: B } = T;
|
|
7555
7555
|
if (P)
|
|
7556
7556
|
Ct(!0, !0);
|
|
7557
|
-
else if (
|
|
7557
|
+
else if (B) {
|
|
7558
7558
|
const ce = [];
|
|
7559
|
-
|
|
7559
|
+
B.forEach((se) => {
|
|
7560
7560
|
S[se] && ce.push(S[se].row);
|
|
7561
7561
|
}), Qe(ce, !0, !0);
|
|
7562
7562
|
}
|
|
@@ -7564,8 +7564,8 @@ const Hg = st({
|
|
|
7564
7564
|
}, Es = () => {
|
|
7565
7565
|
const { radioConfig: m } = e;
|
|
7566
7566
|
if (m) {
|
|
7567
|
-
const { fullDataRowIdData: S } = f, T = mt.value, { checkRowKey: P, reserve:
|
|
7568
|
-
if (P && (S[P] && ze(S[P].row, !0),
|
|
7567
|
+
const { fullDataRowIdData: S } = f, T = mt.value, { checkRowKey: P, reserve: B } = T;
|
|
7568
|
+
if (P && (S[P] && ze(S[P].row, !0), B)) {
|
|
7569
7569
|
const ce = ks(z);
|
|
7570
7570
|
f.radioReserveRow = { [ce]: P };
|
|
7571
7571
|
}
|
|
@@ -7573,12 +7573,12 @@ const Hg = st({
|
|
|
7573
7573
|
}, $r = () => {
|
|
7574
7574
|
const { expandConfig: m } = e;
|
|
7575
7575
|
if (m) {
|
|
7576
|
-
const { fullDataRowIdData: S } = f, T = pt.value, { expandAll: P, expandRowKeys:
|
|
7576
|
+
const { fullDataRowIdData: S } = f, T = pt.value, { expandAll: P, expandRowKeys: B } = T;
|
|
7577
7577
|
if (P)
|
|
7578
7578
|
p.setAllRowExpand(!0);
|
|
7579
|
-
else if (
|
|
7579
|
+
else if (B) {
|
|
7580
7580
|
const ce = [];
|
|
7581
|
-
|
|
7581
|
+
B.forEach((se) => {
|
|
7582
7582
|
S[se] && ce.push(S[se].row);
|
|
7583
7583
|
}), p.setRowExpand(ce, !0);
|
|
7584
7584
|
}
|
|
@@ -7588,40 +7588,40 @@ const Hg = st({
|
|
|
7588
7588
|
}, de = (m, S) => {
|
|
7589
7589
|
const { checkboxReserveRowMap: T } = f;
|
|
7590
7590
|
if (Ne.value.reserve) {
|
|
7591
|
-
const
|
|
7592
|
-
S ? T[
|
|
7591
|
+
const B = St(z, m);
|
|
7592
|
+
S ? T[B] = m : T[B] && delete T[B];
|
|
7593
7593
|
}
|
|
7594
7594
|
}, ze = (m, S) => {
|
|
7595
7595
|
const T = mt.value, { checkMethod: P } = T;
|
|
7596
7596
|
return m && (S || !P || P({ row: m })) && (u.selectRadioRow = m, pl(m)), fe();
|
|
7597
7597
|
}, Qe = (m, S, T) => (m && !i.isArray(m) && (m = [m]), z.handleBatchSelectRows(m, !!S, T), z.checkSelectionStatus(), fe()), Ct = (m, S) => {
|
|
7598
|
-
const { treeConfig: T } = e, { selectCheckboxMaps: P } = u, { afterFullData:
|
|
7598
|
+
const { treeConfig: T } = e, { selectCheckboxMaps: P } = u, { afterFullData: B, checkboxReserveRowMap: ce } = f, se = Et.value, pe = se.children || se.childrenField, he = Ne.value, { checkField: Pe, reserve: ke, checkMethod: _e } = he, Re = he.indeterminateField || he.halfField, Xe = {};
|
|
7599
7599
|
if (Pe) {
|
|
7600
7600
|
const qe = (He) => {
|
|
7601
7601
|
(S || !_e || _e({ row: He })) && (m && (Xe[St(z, He)] = He), i.set(He, Pe, m)), T && Re && i.set(He, Re, !1);
|
|
7602
7602
|
};
|
|
7603
|
-
T ? i.eachTree(
|
|
7603
|
+
T ? i.eachTree(B, qe, { children: pe }) : B.forEach(qe);
|
|
7604
7604
|
} else
|
|
7605
|
-
T ? m ? i.eachTree(
|
|
7605
|
+
T ? m ? i.eachTree(B, (qe) => {
|
|
7606
7606
|
(S || !_e || _e({ row: qe })) && (Xe[St(z, qe)] = qe);
|
|
7607
|
-
}, { children: pe }) : !S && _e && i.eachTree(
|
|
7607
|
+
}, { children: pe }) : !S && _e && i.eachTree(B, (qe) => {
|
|
7608
7608
|
const He = St(z, qe);
|
|
7609
7609
|
!_e({ row: qe }) && P[He] && (Xe[He] = qe);
|
|
7610
|
-
}, { children: pe }) : m ? !S && _e ?
|
|
7610
|
+
}, { children: pe }) : m ? !S && _e ? B.forEach((qe) => {
|
|
7611
7611
|
const He = St(z, qe);
|
|
7612
7612
|
(P[He] || _e({ row: qe })) && (Xe[He] = qe);
|
|
7613
|
-
}) :
|
|
7613
|
+
}) : B.forEach((qe) => {
|
|
7614
7614
|
Xe[St(z, qe)] = qe;
|
|
7615
|
-
}) : !S && _e &&
|
|
7615
|
+
}) : !S && _e && B.forEach((qe) => {
|
|
7616
7616
|
const He = St(z, qe);
|
|
7617
7617
|
!_e({ row: qe }) && P[He] && (Xe[He] = qe);
|
|
7618
7618
|
});
|
|
7619
7619
|
return ke && (m ? i.each(Xe, (qe, He) => {
|
|
7620
7620
|
ce[He] = qe;
|
|
7621
|
-
}) :
|
|
7621
|
+
}) : B.forEach((qe) => de(qe, !1))), u.selectCheckboxMaps = Pe ? {} : Xe, u.isAllSelected = m, u.isIndeterminate = !1, u.treeIndeterminateMaps = {}, f.treeIndeterminateRowMaps = {}, b.checkSelectionStatus(), fe();
|
|
7622
7622
|
}, It = () => {
|
|
7623
|
-
const { treeConfig: m } = e, { expandColumn: S, currentRow: T, selectCheckboxMaps: P, selectRadioRow:
|
|
7624
|
-
if (
|
|
7623
|
+
const { treeConfig: m } = e, { expandColumn: S, currentRow: T, selectCheckboxMaps: P, selectRadioRow: B, rowExpandedMaps: ce, treeExpandedMaps: se } = u, { fullDataRowIdData: pe, fullAllDataRowIdData: he, radioReserveRow: Pe } = f, ke = pt.value, _e = Et.value, Re = mt.value, Xe = Ne.value;
|
|
7624
|
+
if (B && !he[St(z, B)] && (u.selectRadioRow = null), Re.reserve && Pe) {
|
|
7625
7625
|
const qe = St(z, Pe);
|
|
7626
7626
|
pe[qe] && ze(pe[qe].row, !0);
|
|
7627
7627
|
}
|
|
@@ -7629,23 +7629,23 @@ const Hg = st({
|
|
|
7629
7629
|
}, Mt = () => {
|
|
7630
7630
|
const { treeConfig: m } = e;
|
|
7631
7631
|
if (m) {
|
|
7632
|
-
const { tableFullData: S } = f, T = Et.value, { expandAll: P, expandRowKeys:
|
|
7632
|
+
const { tableFullData: S } = f, T = Et.value, { expandAll: P, expandRowKeys: B } = T, ce = T.children || T.childrenField;
|
|
7633
7633
|
if (P)
|
|
7634
7634
|
p.setAllTreeExpand(!0);
|
|
7635
|
-
else if (
|
|
7635
|
+
else if (B) {
|
|
7636
7636
|
const se = [], pe = ks(z);
|
|
7637
|
-
|
|
7637
|
+
B.forEach((he) => {
|
|
7638
7638
|
const Pe = i.findTree(S, (ke) => he === i.get(ke, pe), { children: ce });
|
|
7639
7639
|
Pe && se.push(Pe.item);
|
|
7640
7640
|
}), p.setTreeExpand(se, !0);
|
|
7641
7641
|
}
|
|
7642
7642
|
}
|
|
7643
7643
|
}, Ht = (m) => {
|
|
7644
|
-
const S = Et.value, T = Ne.value, { transform: P, loadMethod:
|
|
7644
|
+
const S = Et.value, T = Ne.value, { transform: P, loadMethod: B } = S, { checkStrictly: ce } = T;
|
|
7645
7645
|
return new Promise((se) => {
|
|
7646
|
-
if (
|
|
7646
|
+
if (B) {
|
|
7647
7647
|
const { treeExpandLazyLoadedMaps: pe } = u, { fullAllDataRowIdData: he } = f, Pe = St(z, m), ke = he[Pe];
|
|
7648
|
-
pe[Pe] = m, Promise.resolve(
|
|
7648
|
+
pe[Pe] = m, Promise.resolve(B({ $table: z, row: m })).then((_e) => {
|
|
7649
7649
|
if (ke && (ke.treeLoaded = !0), pe[Pe] && delete pe[Pe], i.isArray(_e) || (_e = []), _e)
|
|
7650
7650
|
return p.loadTreeChildren(m, _e).then((Re) => {
|
|
7651
7651
|
const { treeExpandedMaps: Xe } = u;
|
|
@@ -7666,13 +7666,13 @@ const Hg = st({
|
|
|
7666
7666
|
}, Wt = (m, S) => {
|
|
7667
7667
|
const { treeExpandedReserveRowMap: T } = f;
|
|
7668
7668
|
if (Et.value.reserve) {
|
|
7669
|
-
const
|
|
7670
|
-
S ? T[
|
|
7669
|
+
const B = St(z, m);
|
|
7670
|
+
S ? T[B] = m : T[B] && delete T[B];
|
|
7671
7671
|
}
|
|
7672
7672
|
}, it = (m) => new Promise((S) => {
|
|
7673
7673
|
const T = pt.value, { loadMethod: P } = T;
|
|
7674
7674
|
if (P) {
|
|
7675
|
-
const { fullAllDataRowIdData:
|
|
7675
|
+
const { fullAllDataRowIdData: B } = f, { rowExpandLazyLoadedMaps: ce } = u, se = St(z, m), pe = B[se];
|
|
7676
7676
|
ce[se] = m, P({ $table: z, row: m, rowIndex: p.getRowIndex(m), $rowIndex: p.getVMRowIndex(m) }).then(() => {
|
|
7677
7677
|
const { rowExpandedMaps: he } = u;
|
|
7678
7678
|
pe && (pe.expandLoaded = !0), he[se] = m;
|
|
@@ -7687,8 +7687,8 @@ const Hg = st({
|
|
|
7687
7687
|
}), Bt = (m, S) => {
|
|
7688
7688
|
const { rowExpandedReserveRowMap: T } = f;
|
|
7689
7689
|
if (pt.value.reserve) {
|
|
7690
|
-
const
|
|
7691
|
-
S ? T[
|
|
7690
|
+
const B = St(z, m);
|
|
7691
|
+
S ? T[B] = m : T[B] && delete T[B];
|
|
7692
7692
|
}
|
|
7693
7693
|
}, ln = () => {
|
|
7694
7694
|
const { mergeCells: m } = e;
|
|
@@ -7697,7 +7697,7 @@ const Hg = st({
|
|
|
7697
7697
|
const { mergeFooterItems: m } = e;
|
|
7698
7698
|
m && p.setMergeFooterItems(m);
|
|
7699
7699
|
}, $n = () => fe().then(() => {
|
|
7700
|
-
const { scrollXLoad: m, scrollYLoad: S } = u, { scrollXStore: T, scrollYStore: P } = f,
|
|
7700
|
+
const { scrollXLoad: m, scrollYLoad: S } = u, { scrollXStore: T, scrollYStore: P } = f, B = ue.value, ce = Ee.value;
|
|
7701
7701
|
if (m) {
|
|
7702
7702
|
const { visibleSize: he } = dn(), Pe = Math.max(0, ce.oSize ? i.toNumber(ce.oSize) : na.edge ? 5 : 0);
|
|
7703
7703
|
T.offsetSize = Pe, T.visibleSize = he, T.endIndex = Math.max(T.startIndex + T.visibleSize + Pe, T.endIndex), b.updateScrollXData();
|
|
@@ -7708,7 +7708,7 @@ const Hg = st({
|
|
|
7708
7708
|
P.rowHeight = se, u.rowHeight = se;
|
|
7709
7709
|
const { visibleSize: pe } = io();
|
|
7710
7710
|
if (S) {
|
|
7711
|
-
const he = Math.max(0,
|
|
7711
|
+
const he = Math.max(0, B.oSize ? i.toNumber(B.oSize) : na.edge ? 10 : 0);
|
|
7712
7712
|
P.offsetSize = he, P.visibleSize = pe, P.endIndex = Math.max(P.startIndex + pe + he, P.endIndex), b.updateScrollYData();
|
|
7713
7713
|
} else
|
|
7714
7714
|
b.updateScrollYSpace();
|
|
@@ -7720,14 +7720,14 @@ const Hg = st({
|
|
|
7720
7720
|
return eo(), Yo(), ws(), $n();
|
|
7721
7721
|
}));
|
|
7722
7722
|
}, Oo = (m) => {
|
|
7723
|
-
const { keepSource: S, treeConfig: T, showOverflow: P } = e, { editStore:
|
|
7723
|
+
const { keepSource: S, treeConfig: T, showOverflow: P } = e, { editStore: B, scrollYLoad: ce } = u, { scrollYStore: se, scrollXStore: pe, lastScrollLeft: he, lastScrollTop: Pe } = f, ke = Et.value, _e = lt.value, { transform: Re } = ke, Xe = ke.children || ke.childrenField;
|
|
7724
7724
|
let qe = [], He = Ft(m ? m.slice(0) : []);
|
|
7725
7725
|
T && (Re ? (process.env.NODE_ENV === "development" && (ke.rowField || Gt("vxe.error.reqProp", ["tree-config.rowField"]), ke.parentField || Gt("vxe.error.reqProp", ["tree-config.parentField"]), Xe || Gt("vxe.error.reqProp", ["tree-config.childrenField"]), ke.mapChildrenField || Gt("vxe.error.reqProp", ["tree-config.mapChildrenField"]), Xe === ke.mapChildrenField && Gt("vxe.error.errConflicts", ["tree-config.childrenField", "tree-config.mapChildrenField"])), qe = i.toArrayTree(He, {
|
|
7726
7726
|
key: ke.rowField,
|
|
7727
7727
|
parentKey: ke.parentField,
|
|
7728
7728
|
children: Xe,
|
|
7729
7729
|
mapChildren: ke.mapChildrenField
|
|
7730
|
-
}), He = qe.slice(0)) : qe = He.slice(0)), se.startIndex = 0, se.endIndex = 1, pe.startIndex = 0, pe.endIndex = 1, u.scrollVMLoading = !1,
|
|
7730
|
+
}), He = qe.slice(0)) : qe = He.slice(0)), se.startIndex = 0, se.endIndex = 1, pe.startIndex = 0, pe.endIndex = 1, u.scrollVMLoading = !1, B.insertMaps = {}, B.removeMaps = {};
|
|
7731
7731
|
const ut = Ll(He);
|
|
7732
7732
|
if (u.scrollYLoad = ut, u.isDragRowMove = !1, f.tableFullData = He, f.tableFullTreeData = qe, b.cacheRowMap(!0), f.tableSynchData = m, S && b.cacheSourceMap(He), ut) {
|
|
7733
7733
|
if (P && !_e.height) {
|
|
@@ -7752,40 +7752,40 @@ const Hg = st({
|
|
|
7752
7752
|
}, so = () => {
|
|
7753
7753
|
Xo();
|
|
7754
7754
|
}, Ro = () => {
|
|
7755
|
-
const { scrollXLoad: m } = u, { visibleColumn: S, scrollXStore: T, fullColumnIdData: P } = f,
|
|
7756
|
-
|
|
7755
|
+
const { scrollXLoad: m } = u, { visibleColumn: S, scrollXStore: T, fullColumnIdData: P } = f, B = m ? S.slice(T.startIndex, T.endIndex) : S.slice(0);
|
|
7756
|
+
B.forEach((ce, se) => {
|
|
7757
7757
|
const pe = ce.id, he = P[pe];
|
|
7758
7758
|
he && (he.$index = se);
|
|
7759
|
-
}), u.tableColumn =
|
|
7759
|
+
}), u.tableColumn = B;
|
|
7760
7760
|
}, Ss = () => {
|
|
7761
|
-
const { mergeList: m, mergeFooterList: S } = u, { scrollXStore: T } = f, { startIndex: P, endIndex:
|
|
7761
|
+
const { mergeList: m, mergeFooterList: S } = u, { scrollXStore: T } = f, { startIndex: P, endIndex: B, offsetSize: ce } = T, { toVisibleIndex: se, visibleSize: pe } = dn(), he = {
|
|
7762
7762
|
startIndex: Math.max(0, se - 1 - ce),
|
|
7763
7763
|
endIndex: se + pe + ce
|
|
7764
7764
|
};
|
|
7765
7765
|
Eo(m.concat(S), he, "col");
|
|
7766
7766
|
const { startIndex: Pe, endIndex: ke } = he;
|
|
7767
|
-
(se <= P || se >=
|
|
7767
|
+
(se <= P || se >= B - pe - 1) && (P !== Pe || B !== ke) && (T.startIndex = Pe, T.endIndex = ke, b.updateScrollXData()), p.closeTooltip();
|
|
7768
7768
|
}, ml = (m) => {
|
|
7769
7769
|
const S = [];
|
|
7770
7770
|
return m.forEach((T) => {
|
|
7771
7771
|
S.push(...T.children && T.children.length ? ml(T.children) : [T]);
|
|
7772
7772
|
}), S;
|
|
7773
7773
|
}, Aa = () => {
|
|
7774
|
-
const { showOverflow: m } = e, S = lt.value, T = [], P = [],
|
|
7774
|
+
const { showOverflow: m } = e, S = lt.value, T = [], P = [], B = [], { isGroup: ce, columnStore: se } = u, pe = Ee.value, { collectColumn: he, tableFullColumn: Pe, scrollXStore: ke, fullColumnIdData: _e } = f;
|
|
7775
7775
|
if (ce) {
|
|
7776
7776
|
const qe = [], He = [], ut = [];
|
|
7777
7777
|
i.eachTree(he, (Dt, Ye, Tt, qt, Kt) => {
|
|
7778
7778
|
const an = ta(Dt);
|
|
7779
|
-
Kt && Kt.fixed && (Dt.fixed = Kt.fixed), Kt && Dt.fixed !== Kt.fixed && Gt("vxe.error.groupFixed"), an ? Dt.visible = !!i.findTree(Dt.children, (nn) => ta(nn) ? !1 : nn.visible) : Dt.visible && (Dt.fixed === "left" ? T.push(Dt) : Dt.fixed === "right" ?
|
|
7779
|
+
Kt && Kt.fixed && (Dt.fixed = Kt.fixed), Kt && Dt.fixed !== Kt.fixed && Gt("vxe.error.groupFixed"), an ? Dt.visible = !!i.findTree(Dt.children, (nn) => ta(nn) ? !1 : nn.visible) : Dt.visible && (Dt.fixed === "left" ? T.push(Dt) : Dt.fixed === "right" ? B.push(Dt) : P.push(Dt));
|
|
7780
7780
|
}), he.forEach((Dt) => {
|
|
7781
7781
|
Dt.visible && (Dt.fixed === "left" ? qe.push(Dt) : Dt.fixed === "right" ? ut.push(Dt) : He.push(Dt));
|
|
7782
7782
|
}), u.tableGroupColumn = qe.concat(He).concat(ut);
|
|
7783
7783
|
} else
|
|
7784
7784
|
Pe.forEach((qe) => {
|
|
7785
|
-
qe.visible && (qe.fixed === "left" ? T.push(qe) : qe.fixed === "right" ?
|
|
7785
|
+
qe.visible && (qe.fixed === "left" ? T.push(qe) : qe.fixed === "right" ? B.push(qe) : P.push(qe));
|
|
7786
7786
|
});
|
|
7787
|
-
const Re = T.concat(P).concat(
|
|
7788
|
-
if (u.hasFixedColumn = T.length > 0 ||
|
|
7787
|
+
const Re = T.concat(P).concat(B), Xe = !!pe.enabled && pe.gt > -1 && (pe.gt === 0 || pe.gt < Pe.length);
|
|
7788
|
+
if (u.hasFixedColumn = T.length > 0 || B.length > 0, Object.assign(se, { leftList: T, centerList: P, rightList: B }), Xe) {
|
|
7789
7789
|
if (m && !S.height) {
|
|
7790
7790
|
const He = f.tableFullColumn.find((ut) => ut.showOverflow === !1);
|
|
7791
7791
|
He && Gt("vxe.error.errProp", [`column[field="${He.field}"].show-overflow=false`, "show-overflow=true"]);
|
|
@@ -7814,11 +7814,11 @@ const Hg = st({
|
|
|
7814
7814
|
$table: z
|
|
7815
7815
|
}), z.handleUpdateCustomColumn && z.handleUpdateCustomColumn(), p.recalculate()))));
|
|
7816
7816
|
}, Ll = (m) => {
|
|
7817
|
-
const { treeConfig: S } = e, T = ue.value, P = Et.value, { transform:
|
|
7817
|
+
const { treeConfig: S } = e, T = ue.value, P = Et.value, { transform: B } = P, ce = m || f.tableFullData, se = (B || !S) && !!T.enabled && T.gt > -1 && (T.gt === 0 || T.gt < ce.length);
|
|
7818
7818
|
return u.scrollYLoad = se, se;
|
|
7819
7819
|
}, Ji = (m, S) => {
|
|
7820
|
-
const { treeExpandedMaps: T, treeExpandLazyLoadedMaps: P, treeNodeColumn:
|
|
7821
|
-
let Ye = Re ? m.filter((Tt) => Re({ $table: z, expanded: S, column:
|
|
7820
|
+
const { treeExpandedMaps: T, treeExpandLazyLoadedMaps: P, treeNodeColumn: B } = u, ce = Object.assign({}, T), { fullAllDataRowIdData: se, tableFullData: pe } = f, he = Et.value, { reserve: Pe, lazy: ke, accordion: _e, toggleMethod: Re } = he, Xe = he.children || he.childrenField, qe = he.hasChild || he.hasChildField, He = [], ut = p.getColumnIndex(B), Dt = p.getVMColumnIndex(B);
|
|
7821
|
+
let Ye = Re ? m.filter((Tt) => Re({ $table: z, expanded: S, column: B, columnIndex: ut, $columnIndex: Dt, row: Tt })) : m;
|
|
7822
7822
|
if (_e) {
|
|
7823
7823
|
Ye = Ye.length ? [Ye[Ye.length - 1]] : [];
|
|
7824
7824
|
const Tt = i.findTree(pe, (qt) => qt === Ye[0], { children: Xe });
|
|
@@ -7851,19 +7851,19 @@ const Hg = st({
|
|
|
7851
7851
|
checked: S
|
|
7852
7852
|
}, m);
|
|
7853
7853
|
}, La = () => {
|
|
7854
|
-
const { showOverflow: m } = e, { mergeList: S } = u, { tableHeight: T, scrollYStore: P } = f, { startIndex:
|
|
7854
|
+
const { showOverflow: m } = e, { mergeList: S } = u, { tableHeight: T, scrollYStore: P } = f, { startIndex: B, endIndex: ce, offsetSize: se } = P, pe = m ? se : se + Math.min(8, Math.ceil(T / 200)), { toVisibleIndex: he, visibleSize: Pe } = io(), ke = {
|
|
7855
7855
|
startIndex: Math.max(0, he - 1 - pe),
|
|
7856
7856
|
endIndex: he + Pe + pe
|
|
7857
7857
|
};
|
|
7858
7858
|
Eo(S, ke, "row");
|
|
7859
7859
|
const { startIndex: _e, endIndex: Re } = ke;
|
|
7860
|
-
(he <=
|
|
7860
|
+
(he <= B || he >= ce - Pe - 1) && (B !== _e || ce !== Re) && (P.startIndex = _e, P.endIndex = Re, b.updateScrollYData());
|
|
7861
7861
|
}, _l = (m) => function(S) {
|
|
7862
7862
|
const { fullAllDataRowIdData: T } = f;
|
|
7863
7863
|
if (S) {
|
|
7864
|
-
const P = St(z, S),
|
|
7865
|
-
if (
|
|
7866
|
-
return
|
|
7864
|
+
const P = St(z, S), B = T[P];
|
|
7865
|
+
if (B)
|
|
7866
|
+
return B[m];
|
|
7867
7867
|
}
|
|
7868
7868
|
return -1;
|
|
7869
7869
|
}, ec = (m) => function(S) {
|
|
@@ -7875,20 +7875,20 @@ const Hg = st({
|
|
|
7875
7875
|
}
|
|
7876
7876
|
return -1;
|
|
7877
7877
|
}, Sd = () => {
|
|
7878
|
-
const { lxTimeout: m, lxRunTime: S, scrollXStore: T } = f, { visibleSize: P } = T,
|
|
7879
|
-
m && clearTimeout(m), (!S || S +
|
|
7878
|
+
const { lxTimeout: m, lxRunTime: S, scrollXStore: T } = f, { visibleSize: P } = T, B = Math.min(80, Math.floor(P * 3));
|
|
7879
|
+
m && clearTimeout(m), (!S || S + B < Date.now()) && (f.lxRunTime = Date.now(), Ss()), f.lxTimeout = setTimeout(() => {
|
|
7880
7880
|
f.lxRunTime = void 0, f.lxRunTime = void 0, Ss();
|
|
7881
|
-
},
|
|
7881
|
+
}, B);
|
|
7882
7882
|
}, X = () => {
|
|
7883
|
-
const { lyTimeout: m, lyRunTime: S, scrollYStore: T } = f, { visibleSize: P } = T,
|
|
7884
|
-
m && clearTimeout(m), (!S || S +
|
|
7883
|
+
const { lyTimeout: m, lyRunTime: S, scrollYStore: T } = f, { visibleSize: P } = T, B = Math.min(80, Math.floor(P));
|
|
7884
|
+
m && clearTimeout(m), (!S || S + B < Date.now()) && (f.lyRunTime = Date.now(), La()), f.lyTimeout = setTimeout(() => {
|
|
7885
7885
|
f.lyTimeout = void 0, f.lyRunTime = void 0, La();
|
|
7886
|
-
},
|
|
7886
|
+
}, B);
|
|
7887
7887
|
}, Ae = (m) => {
|
|
7888
7888
|
const { inFooterScroll: S, inBodyScroll: T, lastScrollTop: P } = f;
|
|
7889
7889
|
if (S || T)
|
|
7890
7890
|
return;
|
|
7891
|
-
const
|
|
7891
|
+
const B = x.value, ce = w.value, se = y.value, pe = ce.$el, he = B ? B.$el : null, Pe = se ? se.$el : null, ke = ee.value, _e = m.currentTarget, { scrollLeft: Re } = _e, Xe = ke || pe;
|
|
7892
7892
|
let qe = 0;
|
|
7893
7893
|
Xe && (qe = Xe.scrollTop);
|
|
7894
7894
|
const He = !0, ut = qe !== P;
|
|
@@ -7900,7 +7900,7 @@ const Hg = st({
|
|
|
7900
7900
|
const { inFooterScroll: S, inBodyScroll: T, lastScrollLeft: P } = f;
|
|
7901
7901
|
if (S || T)
|
|
7902
7902
|
return;
|
|
7903
|
-
const
|
|
7903
|
+
const B = w.value, ce = N.value, se = j.value, pe = B.$el, he = ce ? ce.$el : null, Pe = se ? se.$el : null, ke = U.value, _e = m.currentTarget, { scrollTop: Re } = _e, Xe = ke || pe;
|
|
7904
7904
|
let qe = 0;
|
|
7905
7905
|
Xe && (qe = Xe.scrollLeft);
|
|
7906
7906
|
const He = qe !== P, ut = !0;
|
|
@@ -7909,8 +7909,8 @@ const Hg = st({
|
|
|
7909
7909
|
fixed: ""
|
|
7910
7910
|
});
|
|
7911
7911
|
}, vt = (m, S) => {
|
|
7912
|
-
const { scrollXLoad: T, scrollYLoad: P } = u, { lcsTimeout:
|
|
7913
|
-
|
|
7912
|
+
const { scrollXLoad: T, scrollYLoad: P } = u, { lcsTimeout: B } = f;
|
|
7913
|
+
B && clearTimeout(B), f.lcsTimeout = setTimeout(() => {
|
|
7914
7914
|
f.lcsTimeout = void 0, f.inVirtualScroll = !1, f.inBodyScroll = !1, f.bodyScrollType = "", f.inFooterScroll = !1, m && T && b.updateScrollXData(), S && P && b.updateScrollYData(), p.updateCellAreas();
|
|
7915
7915
|
}, 200);
|
|
7916
7916
|
};
|
|
@@ -7973,9 +7973,9 @@ const Hg = st({
|
|
|
7973
7973
|
let T = m;
|
|
7974
7974
|
i.isArray(m) || (T = [m]);
|
|
7975
7975
|
const P = ks(z);
|
|
7976
|
-
T.forEach((
|
|
7977
|
-
const ce = St(z,
|
|
7978
|
-
i.set(se, P, ce), Object.assign(
|
|
7976
|
+
T.forEach((B) => {
|
|
7977
|
+
const ce = St(z, B), se = i.clone(Object.assign({}, S), !0);
|
|
7978
|
+
i.set(se, P, ce), Object.assign(B, se);
|
|
7979
7979
|
});
|
|
7980
7980
|
}
|
|
7981
7981
|
return fe();
|
|
@@ -7988,7 +7988,7 @@ const Hg = st({
|
|
|
7988
7988
|
* @param {String} field 字段名
|
|
7989
7989
|
*/
|
|
7990
7990
|
reloadRow(m, S, T) {
|
|
7991
|
-
const { keepSource: P } = e, { tableData:
|
|
7991
|
+
const { keepSource: P } = e, { tableData: B } = u, { tableSourceData: ce } = f;
|
|
7992
7992
|
if (P) {
|
|
7993
7993
|
const se = p.getRowIndex(m), pe = ce[se];
|
|
7994
7994
|
if (pe && m)
|
|
@@ -7999,7 +7999,7 @@ const Hg = st({
|
|
|
7999
7999
|
const he = ks(z), Pe = St(z, m), ke = i.clone(Object.assign({}, S), !0);
|
|
8000
8000
|
i.set(ke, he, Pe), i.destructuring(pe, Object.assign(m, ke));
|
|
8001
8001
|
}
|
|
8002
|
-
u.tableData =
|
|
8002
|
+
u.tableData = B.slice(0);
|
|
8003
8003
|
} else
|
|
8004
8004
|
process.env.NODE_ENV === "development" && un("vxe.error.reqProp", ["keep-source"]);
|
|
8005
8005
|
return fe();
|
|
@@ -8011,7 +8011,7 @@ const Hg = st({
|
|
|
8011
8011
|
* 用于树结构,给行数据加载子节点
|
|
8012
8012
|
*/
|
|
8013
8013
|
loadTreeChildren(m, S) {
|
|
8014
|
-
const { keepSource: T } = e, { tableSourceData: P, fullDataRowIdData:
|
|
8014
|
+
const { keepSource: T } = e, { tableSourceData: P, fullDataRowIdData: B, fullAllDataRowIdData: ce, sourceDataRowIdData: se } = f, pe = Et.value, { transform: he, mapChildrenField: Pe } = pe, ke = pe.children || pe.childrenField, _e = ce[St(z, m)], Re = _e ? _e.level : 0;
|
|
8015
8015
|
return p.createData(S).then((Xe) => {
|
|
8016
8016
|
if (T) {
|
|
8017
8017
|
const qe = St(z, m), He = i.findTree(P, (ut) => qe === St(z, ut), { children: ke });
|
|
@@ -8022,7 +8022,7 @@ const Hg = st({
|
|
|
8022
8022
|
}
|
|
8023
8023
|
return i.eachTree(Xe, (qe, He, ut, Dt, Ye, Tt) => {
|
|
8024
8024
|
const qt = St(z, qe), Kt = Ye || _e.row, an = { row: qe, rowid: qt, seq: -1, index: He, _index: -1, $index: -1, items: ut, parent: Kt, level: Re + Tt.length, height: 0 };
|
|
8025
|
-
|
|
8025
|
+
B[qt] = an, ce[qt] = an;
|
|
8026
8026
|
}, { children: ke }), m[ke] = Xe, he && (m[Pe] = i.clone(Xe, !1)), zr(), Xe;
|
|
8027
8027
|
});
|
|
8028
8028
|
},
|
|
@@ -8162,13 +8162,13 @@ const Hg = st({
|
|
|
8162
8162
|
* 如果还额外传了 field 则还原指定的单元格数据
|
|
8163
8163
|
*/
|
|
8164
8164
|
revertData(m, S) {
|
|
8165
|
-
const { keepSource: T } = e, { tableSourceData: P, sourceDataRowIdData:
|
|
8165
|
+
const { keepSource: T } = e, { tableSourceData: P, sourceDataRowIdData: B } = f;
|
|
8166
8166
|
if (!T)
|
|
8167
8167
|
return process.env.NODE_ENV === "development" && un("vxe.error.reqProp", ["keep-source"]), fe();
|
|
8168
8168
|
let ce = m;
|
|
8169
8169
|
return m ? i.isArray(m) || (ce = [m]) : ce = i.toArray(z.getUpdateRecords()), ce.length && ce.forEach((se) => {
|
|
8170
8170
|
if (!p.isInsertByRow(se)) {
|
|
8171
|
-
const pe = St(z, se), he =
|
|
8171
|
+
const pe = St(z, se), he = B[pe];
|
|
8172
8172
|
he && se && (S ? i.set(se, S, i.clone(i.get(he, S), !0)) : i.destructuring(se, i.clone(he, !0)));
|
|
8173
8173
|
}
|
|
8174
8174
|
}), m ? fe() : p.reloadData(P);
|
|
@@ -8184,9 +8184,9 @@ const Hg = st({
|
|
|
8184
8184
|
*/
|
|
8185
8185
|
clearData(m, S) {
|
|
8186
8186
|
const { tableFullData: T, visibleColumn: P } = f;
|
|
8187
|
-
return arguments.length ? m && !i.isArray(m) && (m = [m]) : m = T, S ? m.forEach((
|
|
8187
|
+
return arguments.length ? m && !i.isArray(m) && (m = [m]) : m = T, S ? m.forEach((B) => i.set(B, S, null)) : m.forEach((B) => {
|
|
8188
8188
|
P.forEach((ce) => {
|
|
8189
|
-
ce.field && ps(
|
|
8189
|
+
ce.field && ps(B, ce, null);
|
|
8190
8190
|
});
|
|
8191
8191
|
}), fe();
|
|
8192
8192
|
},
|
|
@@ -8194,22 +8194,22 @@ const Hg = st({
|
|
|
8194
8194
|
const T = go(z, S);
|
|
8195
8195
|
if (!T)
|
|
8196
8196
|
return null;
|
|
8197
|
-
const P = St(z, m),
|
|
8197
|
+
const P = St(z, m), B = w.value, ce = N.value, se = j.value;
|
|
8198
8198
|
let pe;
|
|
8199
|
-
return T && (T.fixed && (T.fixed === "left" ? ce && (pe = ce.$el) : se && (pe = se.$el)), pe || (pe =
|
|
8199
|
+
return T && (T.fixed && (T.fixed === "left" ? ce && (pe = ce.$el) : se && (pe = se.$el)), pe || (pe = B.$el), pe) ? pe.querySelector(`.vxe-body--row[rowid="${P}"] .${T.id}`) : null;
|
|
8200
8200
|
},
|
|
8201
8201
|
getCellLabel(m, S) {
|
|
8202
8202
|
const T = go(z, S);
|
|
8203
8203
|
if (!T)
|
|
8204
8204
|
return null;
|
|
8205
|
-
const P = T.formatter,
|
|
8206
|
-
let ce =
|
|
8205
|
+
const P = T.formatter, B = Fo(m, T);
|
|
8206
|
+
let ce = B;
|
|
8207
8207
|
if (P) {
|
|
8208
8208
|
let se;
|
|
8209
8209
|
const { fullAllDataRowIdData: pe } = f, he = St(z, m), Pe = T.id, ke = pe[he];
|
|
8210
|
-
if (ke && (se = ke.formatData, se || (se = pe[he].formatData = {}), ke && se[Pe] && se[Pe].value ===
|
|
8210
|
+
if (ke && (se = ke.formatData, se || (se = pe[he].formatData = {}), ke && se[Pe] && se[Pe].value === B))
|
|
8211
8211
|
return se[Pe].label;
|
|
8212
|
-
const _e = { cellValue:
|
|
8212
|
+
const _e = { cellValue: B, row: m, rowIndex: p.getRowIndex(m), column: T, columnIndex: p.getColumnIndex(T) };
|
|
8213
8213
|
if (i.isString(P)) {
|
|
8214
8214
|
const Re = Gg.get(P), Xe = Re ? Re.tableCellFormatMethod || Re.cellFormatMethod : null;
|
|
8215
8215
|
ce = Xe ? Xe(_e) : "";
|
|
@@ -8218,7 +8218,7 @@ const Hg = st({
|
|
|
8218
8218
|
ce = Xe ? Xe(_e, ...P.slice(1)) : "";
|
|
8219
8219
|
} else
|
|
8220
8220
|
ce = P(_e);
|
|
8221
|
-
se && (se[Pe] = { value:
|
|
8221
|
+
se && (se[Pe] = { value: B, label: ce });
|
|
8222
8222
|
}
|
|
8223
8223
|
return ce;
|
|
8224
8224
|
},
|
|
@@ -8244,10 +8244,10 @@ const Hg = st({
|
|
|
8244
8244
|
* @param {String} field 字段名
|
|
8245
8245
|
*/
|
|
8246
8246
|
isUpdateByRow(m, S) {
|
|
8247
|
-
const { keepSource: T } = e, { tableFullColumn: P, fullDataRowIdData:
|
|
8247
|
+
const { keepSource: T } = e, { tableFullColumn: P, fullDataRowIdData: B, sourceDataRowIdData: ce } = f;
|
|
8248
8248
|
if (T) {
|
|
8249
8249
|
const se = St(z, m);
|
|
8250
|
-
if (!
|
|
8250
|
+
if (!B[se])
|
|
8251
8251
|
return !1;
|
|
8252
8252
|
const pe = ce[se];
|
|
8253
8253
|
if (pe) {
|
|
@@ -8327,9 +8327,9 @@ const Hg = st({
|
|
|
8327
8327
|
* 用于多选行,获取已选中的数据
|
|
8328
8328
|
*/
|
|
8329
8329
|
getCheckboxRecords(m) {
|
|
8330
|
-
const { treeConfig: S } = e, { tableFullData: T, afterFullData: P, afterTreeFullData:
|
|
8330
|
+
const { treeConfig: S } = e, { tableFullData: T, afterFullData: P, afterTreeFullData: B, tableFullTreeData: ce, fullDataRowIdData: se, afterFullRowMaps: pe } = f, he = Et.value, Pe = Ne.value, { transform: ke, mapChildrenField: _e } = he, { checkField: Re } = Pe, Xe = he.children || he.childrenField;
|
|
8331
8331
|
let qe = [];
|
|
8332
|
-
const He = m ? ke ? ce : T : ke ?
|
|
8332
|
+
const He = m ? ke ? ce : T : ke ? B : P;
|
|
8333
8333
|
if (Re)
|
|
8334
8334
|
S ? qe = i.filterTree(He, (ut) => i.get(ut, Re), { children: ke ? _e : Xe }) : qe = He.filter((ut) => i.get(ut, Re));
|
|
8335
8335
|
else {
|
|
@@ -8344,13 +8344,13 @@ const Hg = st({
|
|
|
8344
8344
|
* 只对 tree-config 有效,获取行的子级
|
|
8345
8345
|
*/
|
|
8346
8346
|
getTreeRowChildren(m) {
|
|
8347
|
-
const { treeConfig: S } = e, { fullDataRowIdData: T } = f, P = Et.value, { transform:
|
|
8347
|
+
const { treeConfig: S } = e, { fullDataRowIdData: T } = f, P = Et.value, { transform: B, mapChildrenField: ce } = P, se = P.children || P.childrenField;
|
|
8348
8348
|
if (m && S) {
|
|
8349
8349
|
let pe;
|
|
8350
8350
|
if (i.isString(m) ? pe = m : pe = St(z, m), pe) {
|
|
8351
8351
|
const he = T[pe], Pe = he ? he.row : null;
|
|
8352
8352
|
if (Pe)
|
|
8353
|
-
return Pe[
|
|
8353
|
+
return Pe[B ? ce : se] || [];
|
|
8354
8354
|
}
|
|
8355
8355
|
}
|
|
8356
8356
|
return [];
|
|
@@ -8363,8 +8363,8 @@ const Hg = st({
|
|
|
8363
8363
|
if (m && S) {
|
|
8364
8364
|
let P;
|
|
8365
8365
|
if (i.isString(m) ? P = m : P = St(z, m), P) {
|
|
8366
|
-
const
|
|
8367
|
-
return
|
|
8366
|
+
const B = T[P];
|
|
8367
|
+
return B ? B.parent : null;
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
8370
|
return null;
|
|
@@ -8393,9 +8393,9 @@ const Hg = st({
|
|
|
8393
8393
|
* 如果存在排序,继续处理
|
|
8394
8394
|
*/
|
|
8395
8395
|
getTableData() {
|
|
8396
|
-
const { tableData: m, footerTableData: S } = u, { tableFullData: T, afterFullData: P, tableFullTreeData:
|
|
8396
|
+
const { tableData: m, footerTableData: S } = u, { tableFullData: T, afterFullData: P, tableFullTreeData: B } = f;
|
|
8397
8397
|
return {
|
|
8398
|
-
fullData: e.treeConfig ?
|
|
8398
|
+
fullData: e.treeConfig ? B.slice(0) : T.slice(0),
|
|
8399
8399
|
visibleData: P.slice(0),
|
|
8400
8400
|
tableData: m.slice(0),
|
|
8401
8401
|
footerData: S.slice(0)
|
|
@@ -8407,8 +8407,8 @@ const Hg = st({
|
|
|
8407
8407
|
getFullData() {
|
|
8408
8408
|
const { treeConfig: m } = e, { tableFullData: S, tableFullTreeData: T } = f;
|
|
8409
8409
|
if (m) {
|
|
8410
|
-
const P = Et.value, { transform:
|
|
8411
|
-
return
|
|
8410
|
+
const P = Et.value, { transform: B, mapChildrenField: ce } = P, se = P.children || P.childrenField;
|
|
8411
|
+
return B ? i.toArrayTree(i.toTreeArray(T, {
|
|
8412
8412
|
children: ce
|
|
8413
8413
|
}), { children: se }) : T.slice(0);
|
|
8414
8414
|
}
|
|
@@ -8419,14 +8419,14 @@ const Hg = st({
|
|
|
8419
8419
|
*/
|
|
8420
8420
|
setColumnFixed(m, S) {
|
|
8421
8421
|
let T = !1;
|
|
8422
|
-
const P = i.isArray(m) ? m : [m],
|
|
8422
|
+
const P = i.isArray(m) ? m : [m], B = Ge.value, ce = ct.value;
|
|
8423
8423
|
for (let se = 0; se < P.length; se++) {
|
|
8424
8424
|
const pe = P[se], he = go(z, pe), Pe = Vg(z, he);
|
|
8425
8425
|
if (Pe && Pe.fixed !== S) {
|
|
8426
8426
|
if (!Pe.fixed && ce)
|
|
8427
8427
|
return we.modal && we.modal.message({
|
|
8428
8428
|
status: "error",
|
|
8429
|
-
content: Zs("vxe.table.maxFixedCol", [
|
|
8429
|
+
content: Zs("vxe.table.maxFixedCol", [B.maxFixedSize])
|
|
8430
8430
|
}), fe();
|
|
8431
8431
|
i.eachTree([Pe], (ke) => {
|
|
8432
8432
|
ke.fixed = S;
|
|
@@ -8441,7 +8441,7 @@ const Hg = st({
|
|
|
8441
8441
|
clearColumnFixed(m) {
|
|
8442
8442
|
let S = !1;
|
|
8443
8443
|
return (i.isArray(m) ? m : [m]).forEach((P) => {
|
|
8444
|
-
const
|
|
8444
|
+
const B = go(z, P), ce = Vg(z, B);
|
|
8445
8445
|
ce && ce.fixed && (i.eachTree([ce], (se) => {
|
|
8446
8446
|
se.fixed = null;
|
|
8447
8447
|
}), b.saveCustomStore("update:fixed"), S || (S = !0));
|
|
@@ -8453,8 +8453,8 @@ const Hg = st({
|
|
|
8453
8453
|
hideColumn(m) {
|
|
8454
8454
|
let S = !1;
|
|
8455
8455
|
return (i.isArray(m) ? m : [m]).forEach((P) => {
|
|
8456
|
-
const
|
|
8457
|
-
|
|
8456
|
+
const B = go(z, P);
|
|
8457
|
+
B && B.visible && (B.visible = !1, S || (S = !0));
|
|
8458
8458
|
}), S ? b.handleCustom() : fe();
|
|
8459
8459
|
},
|
|
8460
8460
|
/**
|
|
@@ -8463,14 +8463,14 @@ const Hg = st({
|
|
|
8463
8463
|
showColumn(m) {
|
|
8464
8464
|
let S = !1;
|
|
8465
8465
|
return (i.isArray(m) ? m : [m]).forEach((P) => {
|
|
8466
|
-
const
|
|
8467
|
-
|
|
8466
|
+
const B = go(z, P);
|
|
8467
|
+
B && !B.visible && (B.visible = !0, S || (S = !0));
|
|
8468
8468
|
}), S ? b.handleCustom() : fe();
|
|
8469
8469
|
},
|
|
8470
8470
|
setColumnWidth(m, S) {
|
|
8471
8471
|
let T = !1;
|
|
8472
|
-
return (i.isArray(m) ? m : [m]).forEach((
|
|
8473
|
-
const ce = go(z,
|
|
8472
|
+
return (i.isArray(m) ? m : [m]).forEach((B) => {
|
|
8473
|
+
const ce = go(z, B);
|
|
8474
8474
|
if (ce) {
|
|
8475
8475
|
const se = i.toInteger(S);
|
|
8476
8476
|
let pe = se;
|
|
@@ -8512,7 +8512,7 @@ const Hg = st({
|
|
|
8512
8512
|
* 刷新滚动操作,手动同步滚动相关位置(对于某些特殊的操作,比如滚动条错位、固定列不同步)
|
|
8513
8513
|
*/
|
|
8514
8514
|
refreshScroll() {
|
|
8515
|
-
const { lastScrollLeft: m, lastScrollTop: S } = f, T = w.value, P = y.value,
|
|
8515
|
+
const { lastScrollLeft: m, lastScrollTop: S } = f, T = w.value, P = y.value, B = N.value, ce = j.value, se = T ? T.$el : null, pe = B ? B.$el : null, he = ce ? ce.$el : null, Pe = P ? P.$el : null;
|
|
8516
8516
|
return new Promise((ke) => {
|
|
8517
8517
|
if (m || S)
|
|
8518
8518
|
return Qd(z, m, S).then().then(() => {
|
|
@@ -8570,10 +8570,10 @@ const Hg = st({
|
|
|
8570
8570
|
getCheckboxIndeterminateRecords(m) {
|
|
8571
8571
|
const { treeConfig: S } = e, { fullDataRowIdData: T } = f, { treeIndeterminateMaps: P } = u;
|
|
8572
8572
|
if (S) {
|
|
8573
|
-
const
|
|
8573
|
+
const B = [], ce = [];
|
|
8574
8574
|
return i.each(P, (se, pe) => {
|
|
8575
|
-
se && (
|
|
8576
|
-
}), m ?
|
|
8575
|
+
se && (B.push(se), T[pe] && ce.push(se));
|
|
8576
|
+
}), m ? B : ce;
|
|
8577
8577
|
}
|
|
8578
8578
|
return [];
|
|
8579
8579
|
},
|
|
@@ -8589,8 +8589,8 @@ const Hg = st({
|
|
|
8589
8589
|
const { fullAllDataRowIdData: T } = f;
|
|
8590
8590
|
i.isArray(m) || (m = [m]);
|
|
8591
8591
|
const P = [];
|
|
8592
|
-
return m.forEach((
|
|
8593
|
-
const ce = T[
|
|
8592
|
+
return m.forEach((B) => {
|
|
8593
|
+
const ce = T[B];
|
|
8594
8594
|
ce && P.push(ce.row);
|
|
8595
8595
|
}), Qe(P, S, !0);
|
|
8596
8596
|
},
|
|
@@ -8599,10 +8599,10 @@ const Hg = st({
|
|
|
8599
8599
|
return P ? i.get(m, P) : !!S[St(z, m)];
|
|
8600
8600
|
},
|
|
8601
8601
|
isCheckedByCheckboxRowKey(m) {
|
|
8602
|
-
const { selectCheckboxMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Ne.value, { checkField:
|
|
8603
|
-
if (
|
|
8602
|
+
const { selectCheckboxMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Ne.value, { checkField: B } = P;
|
|
8603
|
+
if (B) {
|
|
8604
8604
|
const ce = T[m];
|
|
8605
|
-
return ce ? i.get(ce.row,
|
|
8605
|
+
return ce ? i.get(ce.row, B) : !1;
|
|
8606
8606
|
}
|
|
8607
8607
|
return !!S[m];
|
|
8608
8608
|
},
|
|
@@ -8618,8 +8618,8 @@ const Hg = st({
|
|
|
8618
8618
|
* 多选,切换某一行的选中状态
|
|
8619
8619
|
*/
|
|
8620
8620
|
toggleCheckboxRow(m) {
|
|
8621
|
-
const { selectCheckboxMaps: S } = u, T = Ne.value, { checkField: P } = T,
|
|
8622
|
-
return b.handleBatchSelectRows([m],
|
|
8621
|
+
const { selectCheckboxMaps: S } = u, T = Ne.value, { checkField: P } = T, B = P ? !i.get(m, P) : !S[St(z, m)];
|
|
8622
|
+
return b.handleBatchSelectRows([m], B, !0), b.checkSelectionStatus(), fe();
|
|
8623
8623
|
},
|
|
8624
8624
|
/**
|
|
8625
8625
|
* 用于多选行,设置所有行的选中状态
|
|
@@ -8632,7 +8632,7 @@ const Hg = st({
|
|
|
8632
8632
|
* 获取单选框保留选中的行
|
|
8633
8633
|
*/
|
|
8634
8634
|
getRadioReserveRecord(m) {
|
|
8635
|
-
const { treeConfig: S } = e, { fullDataRowIdData: T, radioReserveRow: P, afterFullData:
|
|
8635
|
+
const { treeConfig: S } = e, { fullDataRowIdData: T, radioReserveRow: P, afterFullData: B } = f, ce = mt.value, se = Et.value, pe = se.children || se.childrenField;
|
|
8636
8636
|
if (ce.reserve && P) {
|
|
8637
8637
|
const he = St(z, P);
|
|
8638
8638
|
if (m) {
|
|
@@ -8641,9 +8641,9 @@ const Hg = st({
|
|
|
8641
8641
|
} else {
|
|
8642
8642
|
const Pe = ks(z);
|
|
8643
8643
|
if (S) {
|
|
8644
|
-
if (i.findTree(
|
|
8644
|
+
if (i.findTree(B, (_e) => he === i.get(_e, Pe), { children: pe }))
|
|
8645
8645
|
return P;
|
|
8646
|
-
} else if (!
|
|
8646
|
+
} else if (!B.some((ke) => he === i.get(ke, Pe)))
|
|
8647
8647
|
return P;
|
|
8648
8648
|
}
|
|
8649
8649
|
}
|
|
@@ -8656,14 +8656,14 @@ const Hg = st({
|
|
|
8656
8656
|
* 获取复选框保留选中的行
|
|
8657
8657
|
*/
|
|
8658
8658
|
getCheckboxReserveRecords(m) {
|
|
8659
|
-
const { treeConfig: S } = e, { afterFullData: T, fullDataRowIdData: P, checkboxReserveRowMap:
|
|
8659
|
+
const { treeConfig: S } = e, { afterFullData: T, fullDataRowIdData: P, checkboxReserveRowMap: B } = f, ce = Ne.value, se = Et.value, pe = se.children || se.childrenField, he = [];
|
|
8660
8660
|
if (ce.reserve) {
|
|
8661
8661
|
const Pe = {};
|
|
8662
8662
|
S ? i.eachTree(T, (ke) => {
|
|
8663
8663
|
Pe[St(z, ke)] = 1;
|
|
8664
8664
|
}, { children: pe }) : T.forEach((ke) => {
|
|
8665
8665
|
Pe[St(z, ke)] = 1;
|
|
8666
|
-
}), i.each(
|
|
8666
|
+
}), i.each(B, (ke, _e) => {
|
|
8667
8667
|
ke && (m ? P[_e] || he.push(ke) : Pe[_e] || he.push(ke));
|
|
8668
8668
|
});
|
|
8669
8669
|
}
|
|
@@ -8683,7 +8683,7 @@ const Hg = st({
|
|
|
8683
8683
|
* 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
|
|
8684
8684
|
*/
|
|
8685
8685
|
clearCheckboxRow() {
|
|
8686
|
-
const { treeConfig: m } = e, { tableFullData: S } = f, T = Et.value, P = T.children || T.childrenField,
|
|
8686
|
+
const { treeConfig: m } = e, { tableFullData: S } = f, T = Et.value, P = T.children || T.childrenField, B = Ne.value, { checkField: ce, reserve: se } = B, pe = B.indeterminateField || B.halfField;
|
|
8687
8687
|
if (ce) {
|
|
8688
8688
|
const he = (Pe) => {
|
|
8689
8689
|
m && pe && i.set(Pe, pe, !1), i.set(Pe, ce, !1);
|
|
@@ -8748,11 +8748,11 @@ const Hg = st({
|
|
|
8748
8748
|
getRadioRecord(m) {
|
|
8749
8749
|
const { fullDataRowIdData: S, afterFullRowMaps: T } = f, { selectRadioRow: P } = u;
|
|
8750
8750
|
if (P) {
|
|
8751
|
-
const
|
|
8751
|
+
const B = St(z, P);
|
|
8752
8752
|
if (m) {
|
|
8753
|
-
if (S[
|
|
8753
|
+
if (S[B])
|
|
8754
8754
|
return P;
|
|
8755
|
-
} else if (T[
|
|
8755
|
+
} else if (T[B])
|
|
8756
8756
|
return P;
|
|
8757
8757
|
}
|
|
8758
8758
|
return null;
|
|
@@ -8776,11 +8776,11 @@ const Hg = st({
|
|
|
8776
8776
|
setPendingRow(m, S) {
|
|
8777
8777
|
const T = Object.assign({}, u.pendingRowMaps);
|
|
8778
8778
|
return m && !i.isArray(m) && (m = [m]), S ? m.forEach((P) => {
|
|
8779
|
-
const
|
|
8780
|
-
|
|
8779
|
+
const B = St(z, P);
|
|
8780
|
+
B && !T[B] && (T[B] = P);
|
|
8781
8781
|
}) : m.forEach((P) => {
|
|
8782
|
-
const
|
|
8783
|
-
|
|
8782
|
+
const B = St(z, P);
|
|
8783
|
+
B && T[B] && delete T[B];
|
|
8784
8784
|
}), u.pendingRowMaps = T, fe();
|
|
8785
8785
|
},
|
|
8786
8786
|
togglePendingRow(m) {
|
|
@@ -8799,31 +8799,31 @@ const Hg = st({
|
|
|
8799
8799
|
},
|
|
8800
8800
|
getPendingRecords() {
|
|
8801
8801
|
const { pendingRowMaps: m } = u, { fullAllDataRowIdData: S } = f, T = [];
|
|
8802
|
-
return i.each(m, (P,
|
|
8803
|
-
S[
|
|
8802
|
+
return i.each(m, (P, B) => {
|
|
8803
|
+
S[B] && T.push(P);
|
|
8804
8804
|
}), T;
|
|
8805
8805
|
},
|
|
8806
8806
|
clearPendingRow() {
|
|
8807
8807
|
return u.pendingRowMaps = {}, fe();
|
|
8808
8808
|
},
|
|
8809
8809
|
sort(m, S) {
|
|
8810
|
-
const T = M.value, { multiple: P, remote:
|
|
8810
|
+
const T = M.value, { multiple: P, remote: B, orders: ce } = T;
|
|
8811
8811
|
return m && i.isString(m) && (m = [
|
|
8812
8812
|
{ field: m, order: S }
|
|
8813
8813
|
]), i.isArray(m) || (m = [m]), m.length ? (P || _o(), (P ? m : [m[0]]).forEach((se, pe) => {
|
|
8814
8814
|
let { field: he, order: Pe } = se, ke = he;
|
|
8815
8815
|
i.isString(he) && (ke = p.getColumnByField(he)), ke && ke.sortable && (ce.indexOf(Pe) === -1 && (Pe = tn(ke)), ke.order !== Pe && (ke.order = Pe), ke.sortTime = Date.now() + pe);
|
|
8816
|
-
}),
|
|
8816
|
+
}), B || b.handleTableData(!0), fe().then(() => (p.updateCellAreas(), ro()))) : fe();
|
|
8817
8817
|
},
|
|
8818
8818
|
setSort(m, S) {
|
|
8819
|
-
const T = M.value, { multiple: P, remote:
|
|
8819
|
+
const T = M.value, { multiple: P, remote: B, orders: ce } = T;
|
|
8820
8820
|
if (i.isArray(m) || (m = [m]), m && m.length) {
|
|
8821
8821
|
P || (m = [m[0]], _o());
|
|
8822
8822
|
let se = null;
|
|
8823
8823
|
return m.forEach((pe, he) => {
|
|
8824
8824
|
let { field: Pe, order: ke } = pe, _e = Pe;
|
|
8825
8825
|
i.isString(Pe) && (_e = p.getColumnByField(Pe)), se || (se = _e), _e && _e.sortable && (ce.indexOf(ke) === -1 && (ke = tn(_e)), _e.order !== ke && (_e.order = ke), _e.sortTime = Date.now() + he);
|
|
8826
|
-
}), S && (
|
|
8826
|
+
}), S && (B || b.handleTableData(!0), z.handleColumnSortEvent(new Event("click"), se)), fe().then(() => (p.updateCellAreas(), ro()));
|
|
8827
8827
|
}
|
|
8828
8828
|
return fe();
|
|
8829
8829
|
},
|
|
@@ -8849,8 +8849,8 @@ const Hg = st({
|
|
|
8849
8849
|
return p.getSortColumns().length > 0;
|
|
8850
8850
|
},
|
|
8851
8851
|
getSortColumns() {
|
|
8852
|
-
const m = M.value, { multiple: S, chronological: T } = m, P = [], { tableFullColumn:
|
|
8853
|
-
return
|
|
8852
|
+
const m = M.value, { multiple: S, chronological: T } = m, P = [], { tableFullColumn: B } = f;
|
|
8853
|
+
return B.forEach((ce) => {
|
|
8854
8854
|
const { field: se, order: pe } = ce;
|
|
8855
8855
|
ce.sortable && pe && P.push({ column: ce, field: se, property: se, order: pe, sortTime: ce.sortTime });
|
|
8856
8856
|
}), S && T && P.length > 1 ? i.orderBy(P, "sortTime") : P;
|
|
@@ -8888,16 +8888,16 @@ const Hg = st({
|
|
|
8888
8888
|
return T && !!T.expandLoaded;
|
|
8889
8889
|
},
|
|
8890
8890
|
clearRowExpandLoaded(m) {
|
|
8891
|
-
const { rowExpandLazyLoadedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = pt.value, { lazy:
|
|
8892
|
-
return
|
|
8891
|
+
const { rowExpandLazyLoadedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = pt.value, { lazy: B } = P, ce = St(z, m), se = T[ce];
|
|
8892
|
+
return B && se && (se.expandLoaded = !1, delete S[ce]), fe();
|
|
8893
8893
|
},
|
|
8894
8894
|
/**
|
|
8895
8895
|
* 重新懒加载展开行,并展开内容
|
|
8896
8896
|
* @param {Row} row 行对象
|
|
8897
8897
|
*/
|
|
8898
8898
|
reloadRowExpand(m) {
|
|
8899
|
-
const { rowExpandLazyLoadedMaps: S } = u, T = pt.value, { lazy: P } = T,
|
|
8900
|
-
return P && !S[
|
|
8899
|
+
const { rowExpandLazyLoadedMaps: S } = u, T = pt.value, { lazy: P } = T, B = St(z, m);
|
|
8900
|
+
return P && !S[B] && p.clearRowExpandLoaded(m).then(() => it(m)), fe();
|
|
8901
8901
|
},
|
|
8902
8902
|
reloadExpandContent(m) {
|
|
8903
8903
|
return process.env.NODE_ENV === "development" && un("vxe.error.delFunc", ["reloadExpandContent", "reloadRowExpand"]), p.reloadRowExpand(m);
|
|
@@ -8913,11 +8913,11 @@ const Hg = st({
|
|
|
8913
8913
|
* @param {Boolean} expanded 是否展开
|
|
8914
8914
|
*/
|
|
8915
8915
|
setAllRowExpand(m) {
|
|
8916
|
-
const S = Et.value, { tableFullData: T, tableFullTreeData: P } = f,
|
|
8916
|
+
const S = Et.value, { tableFullData: T, tableFullTreeData: P } = f, B = S.children || S.childrenField;
|
|
8917
8917
|
let ce = [];
|
|
8918
8918
|
return e.treeConfig ? i.eachTree(P, (se) => {
|
|
8919
8919
|
ce.push(se);
|
|
8920
|
-
}, { children:
|
|
8920
|
+
}, { children: B }) : ce = T, p.setRowExpand(ce, m);
|
|
8921
8921
|
},
|
|
8922
8922
|
/**
|
|
8923
8923
|
* 设置展开行,二个参数设置这一行展开与否
|
|
@@ -8927,12 +8927,12 @@ const Hg = st({
|
|
|
8927
8927
|
* @param {Boolean} expanded 是否展开
|
|
8928
8928
|
*/
|
|
8929
8929
|
setRowExpand(m, S) {
|
|
8930
|
-
const { rowExpandedMaps: T, rowExpandLazyLoadedMaps: P, expandColumn:
|
|
8930
|
+
const { rowExpandedMaps: T, rowExpandLazyLoadedMaps: P, expandColumn: B } = u, { fullAllDataRowIdData: ce } = f;
|
|
8931
8931
|
let se = Object.assign({}, T);
|
|
8932
|
-
const pe = pt.value, { reserve: he, lazy: Pe, accordion: ke, toggleMethod: _e } = pe, Re = [], Xe = p.getColumnIndex(
|
|
8932
|
+
const pe = pt.value, { reserve: he, lazy: Pe, accordion: ke, toggleMethod: _e } = pe, Re = [], Xe = p.getColumnIndex(B), qe = p.getVMColumnIndex(B);
|
|
8933
8933
|
if (m) {
|
|
8934
8934
|
i.isArray(m) || (m = [m]), ke && (se = {}, m = m.slice(m.length - 1, m.length));
|
|
8935
|
-
const He = _e ? m.filter((ut) => _e({ $table: z, expanded: S, column:
|
|
8935
|
+
const He = _e ? m.filter((ut) => _e({ $table: z, expanded: S, column: B, columnIndex: Xe, $columnIndex: qe, row: ut, rowIndex: p.getRowIndex(ut), $rowIndex: p.getVMRowIndex(ut) })) : m;
|
|
8936
8936
|
S ? He.forEach((ut) => {
|
|
8937
8937
|
const Dt = St(z, ut);
|
|
8938
8938
|
if (!se[Dt]) {
|
|
@@ -8962,7 +8962,7 @@ const Hg = st({
|
|
|
8962
8962
|
*/
|
|
8963
8963
|
clearRowExpand() {
|
|
8964
8964
|
const { tableFullData: m } = f, S = pt.value, { reserve: T } = S, P = p.getRowExpandRecords();
|
|
8965
|
-
return u.rowExpandedMaps = {}, T && m.forEach((
|
|
8965
|
+
return u.rowExpandedMaps = {}, T && m.forEach((B) => Bt(B, !1)), fe().then(() => {
|
|
8966
8966
|
P.length && p.recalculate();
|
|
8967
8967
|
});
|
|
8968
8968
|
},
|
|
@@ -8990,20 +8990,20 @@ const Hg = st({
|
|
|
8990
8990
|
return T && !!T.treeLoaded;
|
|
8991
8991
|
},
|
|
8992
8992
|
clearTreeExpandLoaded(m) {
|
|
8993
|
-
const { treeExpandedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Et.value, { transform:
|
|
8993
|
+
const { treeExpandedMaps: S } = u, { fullAllDataRowIdData: T } = f, P = Et.value, { transform: B } = P;
|
|
8994
8994
|
return m && (i.isArray(m) || (m = [m]), m.forEach((ce) => {
|
|
8995
8995
|
const se = St(z, ce), pe = T[se];
|
|
8996
8996
|
pe && (pe.treeLoaded = !1, S[se] && delete S[se]);
|
|
8997
|
-
})),
|
|
8997
|
+
})), B ? (nr(), b.handleTableData()) : fe();
|
|
8998
8998
|
},
|
|
8999
8999
|
/**
|
|
9000
9000
|
* 重新懒加载树节点,并展开该节点
|
|
9001
9001
|
* @param {Row} row 行对象
|
|
9002
9002
|
*/
|
|
9003
9003
|
reloadTreeExpand(m) {
|
|
9004
|
-
const { treeExpandLazyLoadedMaps: S } = u, T = Et.value, P = T.hasChild || T.hasChildField, { transform:
|
|
9004
|
+
const { treeExpandLazyLoadedMaps: S } = u, T = Et.value, P = T.hasChild || T.hasChildField, { transform: B, lazy: ce } = T, se = St(z, m);
|
|
9005
9005
|
return ce && m[P] && !S[se] ? p.clearTreeExpandLoaded(m).then(() => Ht(m)).then(() => {
|
|
9006
|
-
if (
|
|
9006
|
+
if (B)
|
|
9007
9007
|
return nr(), b.handleTableData();
|
|
9008
9008
|
}).then(() => p.recalculate()) : fe();
|
|
9009
9009
|
},
|
|
@@ -9021,10 +9021,10 @@ const Hg = st({
|
|
|
9021
9021
|
* @param {Boolean} expanded 是否展开
|
|
9022
9022
|
*/
|
|
9023
9023
|
setAllTreeExpand(m) {
|
|
9024
|
-
const { tableFullData: S } = f, T = Et.value, { transform: P, lazy:
|
|
9024
|
+
const { tableFullData: S } = f, T = Et.value, { transform: P, lazy: B } = T, ce = T.children || T.childrenField, se = [];
|
|
9025
9025
|
return i.eachTree(S, (pe) => {
|
|
9026
9026
|
const he = pe[ce];
|
|
9027
|
-
(
|
|
9027
|
+
(B || he && he.length) && se.push(pe);
|
|
9028
9028
|
}, { children: ce }), p.setTreeExpand(se, m).then(() => {
|
|
9029
9029
|
if (P)
|
|
9030
9030
|
return nr(), p.recalculate();
|
|
@@ -9053,8 +9053,8 @@ const Hg = st({
|
|
|
9053
9053
|
* 手动清空树形节点的展开状态,数据会恢复成未展开的状态
|
|
9054
9054
|
*/
|
|
9055
9055
|
clearTreeExpand() {
|
|
9056
|
-
const { tableFullTreeData: m } = f, S = Et.value, T = S.children || S.childrenField, { transform: P, reserve:
|
|
9057
|
-
return u.treeExpandedMaps = {},
|
|
9056
|
+
const { tableFullTreeData: m } = f, S = Et.value, T = S.children || S.childrenField, { transform: P, reserve: B } = S, ce = p.getTreeExpandRecords();
|
|
9057
|
+
return u.treeExpandedMaps = {}, B && i.eachTree(m, (se) => Wt(se, !1), { children: T }), b.handleTableData().then(() => {
|
|
9058
9058
|
if (P)
|
|
9059
9059
|
return nr(), b.handleTableData();
|
|
9060
9060
|
}).then(() => {
|
|
@@ -9083,7 +9083,7 @@ const Hg = st({
|
|
|
9083
9083
|
* @param {Number} scrollTop 上距离
|
|
9084
9084
|
*/
|
|
9085
9085
|
scrollTo(m, S) {
|
|
9086
|
-
const T = w.value, P = x.value,
|
|
9086
|
+
const T = w.value, P = x.value, B = y.value, ce = N.value, se = j.value, pe = T ? T.$el : null, he = ce ? ce.$el : null, Pe = se ? se.$el : null, ke = P ? P.$el : null, _e = B ? B.$el : null;
|
|
9087
9087
|
if (i.isNumber(m)) {
|
|
9088
9088
|
const Re = U.value;
|
|
9089
9089
|
Re ? yo(Re, m) : (yo(pe, m), yo(ke, m), yo(_e, m));
|
|
@@ -9120,7 +9120,7 @@ const Hg = st({
|
|
|
9120
9120
|
* 手动清除滚动相关信息,还原到初始状态
|
|
9121
9121
|
*/
|
|
9122
9122
|
clearScroll() {
|
|
9123
|
-
const { scrollXStore: m, scrollYStore: S } = f, T = w.value, P = x.value,
|
|
9123
|
+
const { scrollXStore: m, scrollYStore: S } = f, T = w.value, P = x.value, B = y.value, ce = N.value, se = j.value, pe = ce ? ce.$el : null, he = T ? T.$el : null, Pe = se ? se.$el : null, ke = P ? P.$el : null, _e = B ? B.$el : null, Re = U.value;
|
|
9124
9124
|
Re ? yo(Re, 0) : (yo(he, 0), yo(ke, 0), yo(_e, 0));
|
|
9125
9125
|
const Xe = ee.value;
|
|
9126
9126
|
return Xe ? uo(Xe, 0) : (uo(he, 0), uo(pe, 0), uo(Pe, 0)), m.startIndex = 0, m.endIndex = m.visibleSize, S.startIndex = 0, S.endIndex = S.visibleSize, fe().then(() => {
|
|
@@ -9131,9 +9131,9 @@ const Hg = st({
|
|
|
9131
9131
|
* 更新表尾合计
|
|
9132
9132
|
*/
|
|
9133
9133
|
updateFooter() {
|
|
9134
|
-
const { showFooter: m, footerData: S, footerMethod: T } = e, { visibleColumn: P, afterFullData:
|
|
9134
|
+
const { showFooter: m, footerData: S, footerMethod: T } = e, { visibleColumn: P, afterFullData: B } = f;
|
|
9135
9135
|
let ce = [];
|
|
9136
|
-
return m && S && S.length ? ce = S.slice(0) : m && T && (ce = P.length ? T({ columns: P, data:
|
|
9136
|
+
return m && S && S.length ? ce = S.slice(0) : m && T && (ce = P.length ? T({ columns: P, data: B, $table: z, $grid: le }) : []), u.footerTableData = ce, fe();
|
|
9137
9137
|
},
|
|
9138
9138
|
/**
|
|
9139
9139
|
* 更新列状态 updateStatus({ row, column }, cellValue)
|
|
@@ -9143,14 +9143,14 @@ const Hg = st({
|
|
|
9143
9143
|
updateStatus(m, S) {
|
|
9144
9144
|
const T = !i.isUndefined(S);
|
|
9145
9145
|
return fe().then(() => {
|
|
9146
|
-
const { editRules: P } = e, { validStore:
|
|
9146
|
+
const { editRules: P } = e, { validStore: B } = u, ce = w.value;
|
|
9147
9147
|
if (m && ce && P) {
|
|
9148
9148
|
const { row: se, column: pe } = m, he = "change";
|
|
9149
9149
|
if (z.hasCellRules && z.hasCellRules(he, se, pe)) {
|
|
9150
9150
|
const Pe = p.getCellElement(se, pe);
|
|
9151
9151
|
if (Pe)
|
|
9152
9152
|
return z.validCellRules(he, se, pe, S).then(() => {
|
|
9153
|
-
T &&
|
|
9153
|
+
T && B.visible && ps(se, pe, S), z.clearValidate(se, pe);
|
|
9154
9154
|
}).catch(({ rule: ke }) => {
|
|
9155
9155
|
T && ps(se, pe, S), z.showValidTooltip({ rule: ke, row: se, column: pe, cell: Pe });
|
|
9156
9156
|
});
|
|
@@ -9211,7 +9211,7 @@ const Hg = st({
|
|
|
9211
9211
|
return m && S.area && z.handleRecalculateCellAreas ? z.handleRecalculateCellAreas() : fe();
|
|
9212
9212
|
},
|
|
9213
9213
|
getCustomStoreData() {
|
|
9214
|
-
const { id: m } = e, S = Nt.value, { collectColumn: T } = f, { checkMethod: P } = S,
|
|
9214
|
+
const { id: m } = e, S = Nt.value, { collectColumn: T } = f, { checkMethod: P } = S, B = {}, ce = {}, se = {}, pe = {}, he = {
|
|
9215
9215
|
resizableData: void 0,
|
|
9216
9216
|
sortData: void 0,
|
|
9217
9217
|
visibleData: void 0,
|
|
@@ -9230,7 +9230,7 @@ const Hg = st({
|
|
|
9230
9230
|
}
|
|
9231
9231
|
if (Xe.resizeWidth) {
|
|
9232
9232
|
const Ye = Xe.getKey();
|
|
9233
|
-
Ye && (Pe = 1,
|
|
9233
|
+
Ye && (Pe = 1, B[Ye] = Xe.renderWidth);
|
|
9234
9234
|
}
|
|
9235
9235
|
if (!P || P({ column: Xe })) {
|
|
9236
9236
|
if (!Xe.visible && Xe.defaultVisible) {
|
|
@@ -9241,7 +9241,7 @@ const Hg = st({
|
|
|
9241
9241
|
Ye && (Re = 1, se[Ye] = !0);
|
|
9242
9242
|
}
|
|
9243
9243
|
}
|
|
9244
|
-
}), Pe && (he.resizableData =
|
|
9244
|
+
}), Pe && (he.resizableData = B), ke && (he.sortData = ce), _e && (he.fixedData = pe), Re && (he.visibleData = se), he;
|
|
9245
9245
|
},
|
|
9246
9246
|
focus() {
|
|
9247
9247
|
return f.isActivated = !0, fe();
|
|
@@ -9258,8 +9258,8 @@ const Hg = st({
|
|
|
9258
9258
|
}
|
|
9259
9259
|
};
|
|
9260
9260
|
const _t = (m) => {
|
|
9261
|
-
const { editStore: S, ctxMenuStore: T, filterStore: P, customStore:
|
|
9262
|
-
if (Xe && (Vn(m, pe, "vxe-cell--filter").flag || Vn(m, Xe.$el).flag || Vn(m, document.body, "vxe-table--ignore-clear").flag || b.preventEvent(m, "event.clearFilter", P.args, p.closeFilter)), qe && (
|
|
9261
|
+
const { editStore: S, ctxMenuStore: T, filterStore: P, customStore: B } = u, { mouseConfig: ce, editRules: se } = e, pe = v.value, he = Oe.value, Pe = te.value, ke = q.value, { actived: _e } = S, Re = h.value, Xe = E.value, qe = C.value, He = g.value;
|
|
9262
|
+
if (Xe && (Vn(m, pe, "vxe-cell--filter").flag || Vn(m, Xe.$el).flag || Vn(m, document.body, "vxe-table--ignore-clear").flag || b.preventEvent(m, "event.clearFilter", P.args, p.closeFilter)), qe && (B.btnEl === m.target || Vn(m, document.body, "vxe-toolbar-custom-target").flag || Vn(m, qe.$el).flag || Vn(m, document.body, "vxe-table--ignore-clear").flag || b.preventEvent(m, "event.clearCustom", {}, () => {
|
|
9263
9263
|
z.closeCustom && z.closeCustom();
|
|
9264
9264
|
})), _e.row) {
|
|
9265
9265
|
if (he.autoClear !== !1) {
|
|
@@ -9297,11 +9297,11 @@ const Hg = st({
|
|
|
9297
9297
|
}, Vt = () => {
|
|
9298
9298
|
p.closeTooltip(), z.closeMenu && z.closeMenu();
|
|
9299
9299
|
}, mn = (m) => {
|
|
9300
|
-
const { mouseConfig: S, keyboardConfig: T } = e, { filterStore: P, ctxMenuStore:
|
|
9300
|
+
const { mouseConfig: S, keyboardConfig: T } = e, { filterStore: P, ctxMenuStore: B, editStore: ce } = u, se = ye.value, pe = R.value, { actived: he } = ce;
|
|
9301
9301
|
qn.hasKey(m, hr.ESCAPE) && b.preventEvent(m, "event.keydown", null, () => {
|
|
9302
9302
|
if (yt("keydown-start", {}, m), T && S && se.area && z.handleKeyboardCellAreaEvent)
|
|
9303
9303
|
z.handleKeyboardCellAreaEvent(m);
|
|
9304
|
-
else if ((he.row || P.visible ||
|
|
9304
|
+
else if ((he.row || P.visible || B.visible) && (m.stopPropagation(), z.closeMenu && z.closeMenu(), p.closeFilter(), T && pe.isEsc && he.row)) {
|
|
9305
9305
|
const ke = he.args;
|
|
9306
9306
|
z.handleClearEdit(m), se.selected && fe(() => z.handleSelected(ke, m));
|
|
9307
9307
|
}
|
|
@@ -9309,7 +9309,7 @@ const Hg = st({
|
|
|
9309
9309
|
});
|
|
9310
9310
|
}, wn = (m) => {
|
|
9311
9311
|
f.isActivated && b.preventEvent(m, "event.keydown", null, () => {
|
|
9312
|
-
const { mouseConfig: S, keyboardConfig: T, treeConfig: P, editConfig:
|
|
9312
|
+
const { mouseConfig: S, keyboardConfig: T, treeConfig: P, editConfig: B, highlightCurrentRow: ce } = e, { ctxMenuStore: se, editStore: pe, currentRow: he } = u, { afterFullData: Pe } = f, ke = Be.value, _e = Se.value, Re = R.value, Xe = ye.value, qe = Oe.value, He = Et.value, ut = et.value, Dt = lt.value, { selected: Ye, actived: Tt } = pe, qt = He.children || He.childrenField, Kt = m.keyCode, an = qn.hasKey(m, hr.ESCAPE), nn = qn.hasKey(m, hr.BACKSPACE), Sn = qn.hasKey(m, hr.TAB), xn = qn.hasKey(m, hr.ENTER), cn = qn.hasKey(m, hr.SPACEBAR), Dn = qn.hasKey(m, hr.ARROW_LEFT), on = qn.hasKey(m, hr.ARROW_UP), fn = qn.hasKey(m, hr.ARROW_RIGHT), Xn = qn.hasKey(m, hr.ARROW_DOWN), Ir = qn.hasKey(m, hr.DELETE), fr = qn.hasKey(m, hr.F2), pr = qn.hasKey(m, hr.CONTEXT_MENU), qs = m.metaKey, hl = m.ctrlKey, Pr = m.shiftKey, Vr = m.altKey, vl = Dn || on || fn || Xn, Os = ke && se.visible && (xn || cn || vl), fo = gn(B) && Tt.column && Tt.row, or = qe.beforeEditMethod || qe.activeMethod;
|
|
9313
9313
|
if (Os)
|
|
9314
9314
|
m.preventDefault(), se.showChild && ta(se.selected) ? z.moveCtxMenu(m, se, "selectChild", Dn, !1, se.selected.children) : z.moveCtxMenu(m, se, "selected", fn, !0, ut);
|
|
9315
9315
|
else if (T && S && Xe.area && z.handleKeyboardCellAreaEvent)
|
|
@@ -9321,7 +9321,7 @@ const Hg = st({
|
|
|
9321
9321
|
}
|
|
9322
9322
|
} else if (cn && T && Re.isChecked && Ye.row && Ye.column && (Ye.column.type === "checkbox" || Ye.column.type === "radio"))
|
|
9323
9323
|
m.preventDefault(), Ye.column.type === "checkbox" ? b.handleToggleCheckRowEvent(m, Ye.args) : b.triggerRadioRowEvent(m, Ye.args);
|
|
9324
|
-
else if (fr && gn(
|
|
9324
|
+
else if (fr && gn(B))
|
|
9325
9325
|
fo || Ye.row && Ye.column && (m.preventDefault(), z.handleEdit(Ye.args, m));
|
|
9326
9326
|
else if (pr)
|
|
9327
9327
|
f._keyCtx = Ye.row && Ye.column && _e.length, clearTimeout($t), $t = setTimeout(() => {
|
|
@@ -9381,7 +9381,7 @@ const Hg = st({
|
|
|
9381
9381
|
fo || (Ye.row && Ye.column ? z.moveSelected(Ye.args, Dn, on, fn, Xn, m) : (on || Xn) && (Dt.isCurrent || ce) && z.moveCurrentRow(on, Xn, m));
|
|
9382
9382
|
else if (Sn && T && Re.isTab)
|
|
9383
9383
|
Ye.row || Ye.column ? z.moveTabSelected(Ye.args, Pr, m) : (Tt.row || Tt.column) && z.moveTabSelected(Tt.args, Pr, m);
|
|
9384
|
-
else if (T && Re.isDel && Ir && gn(
|
|
9384
|
+
else if (T && Re.isDel && Ir && gn(B) && (Ye.row || Ye.column)) {
|
|
9385
9385
|
if (!fo) {
|
|
9386
9386
|
const { delMethod: _n } = Re, bo = {
|
|
9387
9387
|
row: Ye.row,
|
|
@@ -9393,10 +9393,10 @@ const Hg = st({
|
|
|
9393
9393
|
};
|
|
9394
9394
|
(!or || or(bo)) && (_n ? _n(bo) : ps(Ye.row, Ye.column, null), p.updateFooter(), yt("cell-delete-value", bo, m));
|
|
9395
9395
|
}
|
|
9396
|
-
} else if (nn && T && Re.isBack && gn(
|
|
9396
|
+
} else if (nn && T && Re.isBack && gn(B) && (Ye.row || Ye.column)) {
|
|
9397
9397
|
if (!fo) {
|
|
9398
9398
|
const { backMethod: _n } = Re;
|
|
9399
|
-
if (Re.isDel && gn(
|
|
9399
|
+
if (Re.isDel && gn(B) && (Ye.row || Ye.column)) {
|
|
9400
9400
|
const bo = {
|
|
9401
9401
|
row: Ye.row,
|
|
9402
9402
|
rowIndex: p.getRowIndex(Ye.row),
|
|
@@ -9421,7 +9421,7 @@ const Hg = st({
|
|
|
9421
9421
|
};
|
|
9422
9422
|
p.setTreeExpand(_n, !1).then(() => p.scrollToRow(_n)).then(() => b.triggerCurrentRowEvent(m, bo));
|
|
9423
9423
|
}
|
|
9424
|
-
} else if (T && gn(
|
|
9424
|
+
} else if (T && gn(B) && Re.isEdit && !hl && !qs && (cn || Kt >= 48 && Kt <= 57 || Kt >= 65 && Kt <= 90 || Kt >= 96 && Kt <= 111 || Kt >= 186 && Kt <= 192 || Kt >= 219 && Kt <= 222)) {
|
|
9425
9425
|
const { editMode: _n, editMethod: bo } = Re;
|
|
9426
9426
|
if (Ye.column && Ye.row && gn(Ye.column.editRender)) {
|
|
9427
9427
|
const jo = qe.beforeEditMethod || qe.activeMethod, po = {
|
|
@@ -9438,14 +9438,14 @@ const Hg = st({
|
|
|
9438
9438
|
yt("keydown", {}, m);
|
|
9439
9439
|
});
|
|
9440
9440
|
}, Yn = (m) => {
|
|
9441
|
-
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore:
|
|
9442
|
-
ce && !
|
|
9441
|
+
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore: B } = u, { isActivated: ce } = f, se = ye.value, pe = R.value, { actived: he } = P;
|
|
9442
|
+
ce && !B.visible && (he.row || he.column || S && pe.isClip && T && se.area && z.handlePasteCellAreaEvent && z.handlePasteCellAreaEvent(m), yt("paste", {}, m));
|
|
9443
9443
|
}, Wo = (m) => {
|
|
9444
|
-
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore:
|
|
9445
|
-
ce && !
|
|
9444
|
+
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore: B } = u, { isActivated: ce } = f, se = ye.value, pe = R.value, { actived: he } = P;
|
|
9445
|
+
ce && !B.visible && (he.row || he.column || S && pe.isClip && T && se.area && z.handleCopyCellAreaEvent && z.handleCopyCellAreaEvent(m), yt("copy", {}, m));
|
|
9446
9446
|
}, dr = (m) => {
|
|
9447
|
-
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore:
|
|
9448
|
-
ce && !
|
|
9447
|
+
const { keyboardConfig: S, mouseConfig: T } = e, { editStore: P, filterStore: B } = u, { isActivated: ce } = f, se = ye.value, pe = R.value, { actived: he } = P;
|
|
9448
|
+
ce && !B.visible && (he.row || he.column || S && pe.isClip && T && se.area && z.handleCutCellAreaEvent && z.handleCutCellAreaEvent(m), yt("cut", {}, m));
|
|
9449
9449
|
}, zo = () => {
|
|
9450
9450
|
z.closeMenu && z.closeMenu();
|
|
9451
9451
|
const m = v.value;
|
|
@@ -9467,12 +9467,12 @@ const Hg = st({
|
|
|
9467
9467
|
const S = v.value;
|
|
9468
9468
|
if (S) {
|
|
9469
9469
|
const T = "row--drag-origin", P = St(z, m);
|
|
9470
|
-
i.arrayEach(S.querySelectorAll(`[rowid="${P}"]`), (
|
|
9471
|
-
fs(
|
|
9470
|
+
i.arrayEach(S.querySelectorAll(`[rowid="${P}"]`), (B) => {
|
|
9471
|
+
fs(B, T);
|
|
9472
9472
|
});
|
|
9473
9473
|
}
|
|
9474
9474
|
}, Dd = (m) => {
|
|
9475
|
-
const { dragConfig: S } = e, { dragRow: T } = u, P = Ke.value, { tooltipMethod:
|
|
9475
|
+
const { dragConfig: S } = e, { dragRow: T } = u, P = Ke.value, { tooltipMethod: B } = P, ce = B || (S ? S.rowTooltipMethod : null);
|
|
9476
9476
|
let se = "";
|
|
9477
9477
|
ce ? se = `${ce({
|
|
9478
9478
|
row: T
|
|
@@ -9481,12 +9481,12 @@ const Hg = st({
|
|
|
9481
9481
|
const S = v.value;
|
|
9482
9482
|
if (S) {
|
|
9483
9483
|
const T = [];
|
|
9484
|
-
i.eachTree([m], (
|
|
9485
|
-
T.push(`[colid="${
|
|
9484
|
+
i.eachTree([m], (B) => {
|
|
9485
|
+
T.push(`[colid="${B.id}"]`);
|
|
9486
9486
|
});
|
|
9487
9487
|
const P = "col--drag-origin";
|
|
9488
|
-
i.arrayEach(S.querySelectorAll(T.join(",")), (
|
|
9489
|
-
fs(
|
|
9488
|
+
i.arrayEach(S.querySelectorAll(T.join(",")), (B) => {
|
|
9489
|
+
fs(B, P);
|
|
9490
9490
|
});
|
|
9491
9491
|
}
|
|
9492
9492
|
}, _a = () => {
|
|
@@ -9499,11 +9499,11 @@ const Hg = st({
|
|
|
9499
9499
|
}
|
|
9500
9500
|
}, tc = (m) => {
|
|
9501
9501
|
const { dragCol: S } = u, T = nt.value, { tooltipMethod: P } = T;
|
|
9502
|
-
let
|
|
9503
|
-
P ?
|
|
9502
|
+
let B = "";
|
|
9503
|
+
P ? B = `${P({
|
|
9504
9504
|
column: S
|
|
9505
|
-
}) || ""}` :
|
|
9506
|
-
}, gl = (m, S, T, P,
|
|
9505
|
+
}) || ""}` : B = Zs("vxe.table.dragTip", [m.textContent || ""]), u.dragTipText = B;
|
|
9506
|
+
}, gl = (m, S, T, P, B) => {
|
|
9507
9507
|
const ce = v.value;
|
|
9508
9508
|
if (!ce)
|
|
9509
9509
|
return;
|
|
@@ -9513,7 +9513,7 @@ const Hg = st({
|
|
|
9513
9513
|
if (_e)
|
|
9514
9514
|
if (P) {
|
|
9515
9515
|
const Re = S.getBoundingClientRect();
|
|
9516
|
-
_e.style.display = "block", _e.style.top = `${Math.max(1, Re.y - Pe.y)}px`, _e.style.height = `${Re.height}px`, _e.style.width = `${Pe.width - se}px`, _e.setAttribute("drag-pos",
|
|
9516
|
+
_e.style.display = "block", _e.style.top = `${Math.max(1, Re.y - Pe.y)}px`, _e.style.height = `${Re.height}px`, _e.style.width = `${Pe.width - se}px`, _e.setAttribute("drag-pos", B), _e.setAttribute("drag-to-child", he ? "y" : "n");
|
|
9517
9517
|
} else
|
|
9518
9518
|
_e.style.display = "";
|
|
9519
9519
|
} else if (T) {
|
|
@@ -9521,7 +9521,7 @@ const Hg = st({
|
|
|
9521
9521
|
if (_e)
|
|
9522
9522
|
if (P) {
|
|
9523
9523
|
const Re = T.getBoundingClientRect(), Xe = Math.max(0, Re.y - Pe.y);
|
|
9524
|
-
_e.style.display = "block", _e.style.top = `${Xe}px`, _e.style.left = `${Math.max(1, Re.x - Pe.x)}px`, _e.style.width = `${Re.width}px`, he ? _e.style.height = `${Re.height}px` : _e.style.height = `${Pe.height - Xe - pe}px`, _e.setAttribute("drag-pos",
|
|
9524
|
+
_e.style.display = "block", _e.style.top = `${Xe}px`, _e.style.left = `${Math.max(1, Re.x - Pe.x)}px`, _e.style.width = `${Re.width}px`, he ? _e.style.height = `${Re.height}px` : _e.style.height = `${Pe.height - Xe - pe}px`, _e.setAttribute("drag-pos", B), _e.setAttribute("drag-to-child", he ? "y" : "n");
|
|
9525
9525
|
} else
|
|
9526
9526
|
_e.style.display = "";
|
|
9527
9527
|
}
|
|
@@ -9530,9 +9530,9 @@ const Hg = st({
|
|
|
9530
9530
|
}, Ds = () => {
|
|
9531
9531
|
const m = W.value, S = k.value, T = I.value;
|
|
9532
9532
|
m && (m.style.display = ""), S && (S.style.display = ""), T && (T.style.display = "");
|
|
9533
|
-
}, Td = (m, S, T, P,
|
|
9534
|
-
|
|
9535
|
-
const { tooltipStore: ce } = u, se = Ce.value, { column: pe, row: he } =
|
|
9533
|
+
}, Td = (m, S, T, P, B) => {
|
|
9534
|
+
B.cell = S;
|
|
9535
|
+
const { tooltipStore: ce } = u, se = Ce.value, { column: pe, row: he } = B, { showAll: Pe, contentMethod: ke } = se, _e = ke ? ke(B) : null, Re = ke && !i.eqNull(_e), Xe = Re ? _e : i.toString(pe.type === "html" ? T.innerText : T.textContent).trim(), qe = T.scrollWidth > T.clientWidth;
|
|
9536
9536
|
return Xe && (Pe || Re || qe) && (Object.assign(ce, {
|
|
9537
9537
|
row: he,
|
|
9538
9538
|
column: pe,
|
|
@@ -9592,7 +9592,7 @@ const Hg = st({
|
|
|
9592
9592
|
* @param {Row} records 行数据
|
|
9593
9593
|
*/
|
|
9594
9594
|
defineField(m) {
|
|
9595
|
-
const { treeConfig: S } = e, T = pt.value, P = Et.value,
|
|
9595
|
+
const { treeConfig: S } = e, T = pt.value, P = Et.value, B = mt.value, ce = Ne.value, se = P.children || P.childrenField, pe = ks(z);
|
|
9596
9596
|
return i.isArray(m) || (m = [m]), m.map((he) => (f.tableFullColumn.forEach((ke) => {
|
|
9597
9597
|
const { field: _e, editRender: Re } = ke;
|
|
9598
9598
|
if (_e && !i.has(he, _e) && !he[_e]) {
|
|
@@ -9603,15 +9603,15 @@ const Hg = st({
|
|
|
9603
9603
|
}
|
|
9604
9604
|
i.set(he, _e, Xe);
|
|
9605
9605
|
}
|
|
9606
|
-
}), [
|
|
9606
|
+
}), [B.labelField, ce.checkField, ce.labelField, T.labelField].forEach((ke) => {
|
|
9607
9607
|
ke && ds(i.get(he, ke)) && i.set(he, ke, null);
|
|
9608
9608
|
}), S && P.lazy && i.isUndefined(he[se]) && (he[se] = null), ds(i.get(he, pe)) && i.set(he, pe, ef()), he));
|
|
9609
9609
|
},
|
|
9610
9610
|
handleTableData(m) {
|
|
9611
9611
|
const { scrollYLoad: S } = u, { scrollYStore: T, fullDataRowIdData: P } = f;
|
|
9612
|
-
let
|
|
9613
|
-
m && (ur(),
|
|
9614
|
-
const ce = S ?
|
|
9612
|
+
let B = f.afterFullData;
|
|
9613
|
+
m && (ur(), B = nr());
|
|
9614
|
+
const ce = S ? B.slice(T.startIndex, T.endIndex) : B.slice(0);
|
|
9615
9615
|
return ce.forEach((se, pe) => {
|
|
9616
9616
|
const he = St(z, se), Pe = P[he];
|
|
9617
9617
|
Pe && (Pe.$index = pe);
|
|
@@ -9622,19 +9622,19 @@ const Hg = st({
|
|
|
9622
9622
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
9623
9623
|
*/
|
|
9624
9624
|
cacheRowMap(m) {
|
|
9625
|
-
const { treeConfig: S } = e, T = Et.value, { fullAllDataRowIdData: P, tableFullData:
|
|
9625
|
+
const { treeConfig: S } = e, T = Et.value, { fullAllDataRowIdData: P, tableFullData: B, tableFullTreeData: ce } = f, se = T.children || T.childrenField, pe = T.hasChild || T.hasChildField, he = ks(z), Pe = S && T.lazy, ke = {}, _e = {}, Re = (Xe, qe, He, ut, Dt, Ye) => {
|
|
9626
9626
|
let Tt = St(z, Xe);
|
|
9627
9627
|
const qt = S && ut ? wL(ut) : qe + 1, Kt = Ye ? Ye.length - 1 : 0;
|
|
9628
9628
|
ds(Tt) && (Tt = ef(), i.set(Xe, he, Tt)), Pe && Xe[pe] && i.isUndefined(Xe[se]) && (Xe[se] = null);
|
|
9629
9629
|
let an = P[Tt];
|
|
9630
9630
|
an || (an = { row: Xe, rowid: Tt, seq: qt, index: -1, _index: -1, $index: -1, items: He, parent: Dt, level: Kt, height: 0 }), an.row = Xe, an.items = He, an.parent = Dt, an.level = Kt, an.index = S && Dt ? -1 : qe, m && (_e[Tt] = an), ke[Tt] = an;
|
|
9631
9631
|
};
|
|
9632
|
-
m && (f.fullDataRowIdData = _e), f.fullAllDataRowIdData = ke, S ? i.eachTree(ce, Re, { children: se }) :
|
|
9632
|
+
m && (f.fullDataRowIdData = _e), f.fullAllDataRowIdData = ke, S ? i.eachTree(ce, Re, { children: se }) : B.forEach(Re);
|
|
9633
9633
|
},
|
|
9634
9634
|
cacheSourceMap(m) {
|
|
9635
9635
|
const { treeConfig: S } = e, T = Et.value;
|
|
9636
9636
|
let { sourceDataRowIdData: P } = f;
|
|
9637
|
-
const
|
|
9637
|
+
const B = i.clone(m, !0), ce = ks(z);
|
|
9638
9638
|
P = f.sourceDataRowIdData = {};
|
|
9639
9639
|
const se = (pe) => {
|
|
9640
9640
|
let he = St(z, pe);
|
|
@@ -9642,22 +9642,22 @@ const Hg = st({
|
|
|
9642
9642
|
};
|
|
9643
9643
|
if (S) {
|
|
9644
9644
|
const pe = T.children || T.childrenField;
|
|
9645
|
-
i.eachTree(
|
|
9645
|
+
i.eachTree(B, se, { children: T.transform ? T.mapChildrenField : pe });
|
|
9646
9646
|
} else
|
|
9647
|
-
|
|
9648
|
-
f.tableSourceData =
|
|
9647
|
+
B.forEach(se);
|
|
9648
|
+
f.tableSourceData = B;
|
|
9649
9649
|
},
|
|
9650
9650
|
/**
|
|
9651
9651
|
* 指定列宽的列进行拆分
|
|
9652
9652
|
*/
|
|
9653
9653
|
analyColumnWidth() {
|
|
9654
|
-
const { tableFullColumn: m } = f, S = Ge.value, { width: T, minWidth: P } = S,
|
|
9654
|
+
const { tableFullColumn: m } = f, S = Ge.value, { width: T, minWidth: P } = S, B = [], ce = [], se = [], pe = [], he = [], Pe = [], ke = [], _e = [];
|
|
9655
9655
|
m.forEach((Re) => {
|
|
9656
|
-
T && !Re.width && (Re.width = T), P && !Re.minWidth && (Re.minWidth = P), Re.visible && (Re.resizeWidth ?
|
|
9657
|
-
}), Object.assign(u.columnStore, { resizeList:
|
|
9656
|
+
T && !Re.width && (Re.width = T), P && !Re.minWidth && (Re.minWidth = P), Re.visible && (Re.resizeWidth ? B.push(Re) : Re.width === "auto" ? ke.push(Re) : Ff(Re.width) ? ce.push(Re) : si(Re.width) ? he.push(Re) : Ff(Re.minWidth) ? se.push(Re) : Re.minWidth === "auto" ? pe.push(Re) : si(Re.minWidth) ? Pe.push(Re) : _e.push(Re));
|
|
9657
|
+
}), Object.assign(u.columnStore, { resizeList: B, pxList: ce, pxMinList: se, autoMinList: pe, scaleList: he, scaleMinList: Pe, autoList: ke, remainList: _e });
|
|
9658
9658
|
},
|
|
9659
9659
|
saveCustomStore(m) {
|
|
9660
|
-
const { customConfig: S } = e, T = Y.value, P = Nt.value, { updateStore:
|
|
9660
|
+
const { customConfig: S } = e, T = Y.value, P = Nt.value, { updateStore: B, storage: ce } = P, se = ce === !0, pe = se ? {} : Object.assign({}, ce || {}), he = se || pe.resizable, Pe = se || pe.visible, ke = se || pe.fixed, _e = se || pe.sort;
|
|
9661
9661
|
if ((S ? gn(P) : P.enabled) && (he || Pe || ke || _e)) {
|
|
9662
9662
|
if (!T)
|
|
9663
9663
|
return Gt("vxe.error.reqProp", ["id"]), fe();
|
|
@@ -9667,8 +9667,8 @@ const Hg = st({
|
|
|
9667
9667
|
visibleData: {},
|
|
9668
9668
|
fixedData: {}
|
|
9669
9669
|
} : p.getCustomStoreData();
|
|
9670
|
-
if (
|
|
9671
|
-
return
|
|
9670
|
+
if (B)
|
|
9671
|
+
return B({
|
|
9672
9672
|
id: T,
|
|
9673
9673
|
type: m,
|
|
9674
9674
|
storeData: Re
|
|
@@ -9687,14 +9687,14 @@ const Hg = st({
|
|
|
9687
9687
|
handleRefreshColumnQueue() {
|
|
9688
9688
|
u.reColumnFlag++;
|
|
9689
9689
|
},
|
|
9690
|
-
preventEvent(m, S, T, P,
|
|
9690
|
+
preventEvent(m, S, T, P, B) {
|
|
9691
9691
|
let ce = Kg.get(S);
|
|
9692
9692
|
!ce.length && S === "event.clearEdit" && (ce = Kg.get("event.clearActived"), process.env.NODE_ENV === "development" && ce.length && un("vxe.error.delEvent", ["event.clearActived", "event.clearEdit"]));
|
|
9693
9693
|
let se;
|
|
9694
|
-
return ce.some((pe) => pe(Object.assign({ $grid: le, $table: z, $event: m }, T)) === !1) || P && (se = P()),
|
|
9694
|
+
return ce.some((pe) => pe(Object.assign({ $grid: le, $table: z, $event: m }, T)) === !1) || P && (se = P()), B && B(), se;
|
|
9695
9695
|
},
|
|
9696
9696
|
updateCheckboxStatus() {
|
|
9697
|
-
const { treeConfig: m } = e, { selectCheckboxMaps: S, treeIndeterminateMaps: T } = u, P = Object.assign({}, S),
|
|
9697
|
+
const { treeConfig: m } = e, { selectCheckboxMaps: S, treeIndeterminateMaps: T } = u, P = Object.assign({}, S), B = Object.assign({}, T), ce = Et.value, { transform: se, mapChildrenField: pe } = ce, he = ce.children || ce.childrenField, Pe = Ne.value, { checkField: ke, checkStrictly: _e, checkMethod: Re } = Pe, { afterTreeFullData: Xe } = f;
|
|
9698
9698
|
if (!_e) {
|
|
9699
9699
|
if (m) {
|
|
9700
9700
|
const qe = {}, He = [];
|
|
@@ -9706,27 +9706,27 @@ const Hg = st({
|
|
|
9706
9706
|
let qt = 0, Kt = 0, an = 0;
|
|
9707
9707
|
Tt.forEach(Re ? (xn) => {
|
|
9708
9708
|
const cn = St(z, xn), Dn = ke ? i.get(xn, ke) : P[cn];
|
|
9709
|
-
Re({ row: xn }) ? (Dn ? qt++ :
|
|
9709
|
+
Re({ row: xn }) ? (Dn ? qt++ : B[cn] && Kt++, an++) : Dn ? qt++ : B[cn] && Kt++;
|
|
9710
9710
|
} : (xn) => {
|
|
9711
9711
|
const cn = St(z, xn);
|
|
9712
|
-
(ke ? i.get(xn, ke) : P[cn]) ? qt++ :
|
|
9712
|
+
(ke ? i.get(xn, ke) : P[cn]) ? qt++ : B[cn] && Kt++, an++;
|
|
9713
9713
|
});
|
|
9714
9714
|
const nn = qt >= an, Sn = !nn && (qt >= 1 || Kt >= 1);
|
|
9715
|
-
ke && i.get(Dt, ke, nn), nn ? (ke || (P[Ye] = Dt),
|
|
9715
|
+
ke && i.get(Dt, ke, nn), nn ? (ke || (P[Ye] = Dt), B[Ye] && delete B[Ye]) : (ke || P[Ye] && delete P[Ye], Sn ? B[Ye] = Dt : B[Ye] && delete B[Ye]);
|
|
9716
9716
|
});
|
|
9717
9717
|
}
|
|
9718
|
-
u.selectCheckboxMaps = P, u.treeIndeterminateMaps =
|
|
9718
|
+
u.selectCheckboxMaps = P, u.treeIndeterminateMaps = B;
|
|
9719
9719
|
}
|
|
9720
9720
|
},
|
|
9721
9721
|
updateAllCheckboxStatus() {
|
|
9722
|
-
const { treeConfig: m } = e, { selectCheckboxMaps: S, treeIndeterminateMaps: T } = u, P = Ne.value, { checkField:
|
|
9722
|
+
const { treeConfig: m } = e, { selectCheckboxMaps: S, treeIndeterminateMaps: T } = u, P = Ne.value, { checkField: B, checkMethod: ce } = P, { afterFullData: se, afterTreeFullData: pe } = f;
|
|
9723
9723
|
let he = 0, Pe = 0, ke = 0;
|
|
9724
9724
|
(m ? pe : se).forEach(ce ? (qe) => {
|
|
9725
|
-
const He = St(z, qe), ut =
|
|
9725
|
+
const He = St(z, qe), ut = B ? i.get(qe, B) : S[He];
|
|
9726
9726
|
ce({ row: qe }) ? (ut ? he++ : T[He] && Pe++, ke++) : ut ? he++ : T[He] && Pe++;
|
|
9727
9727
|
} : (qe) => {
|
|
9728
9728
|
const He = St(z, qe);
|
|
9729
|
-
(
|
|
9729
|
+
(B ? i.get(qe, B) : S[He]) ? he++ : T[He] && Pe++, ke++;
|
|
9730
9730
|
});
|
|
9731
9731
|
const Re = he >= ke, Xe = !Re && (he >= 1 || Pe >= 1);
|
|
9732
9732
|
u.isAllSelected = Re, u.isIndeterminate = Xe;
|
|
@@ -9739,7 +9739,7 @@ const Hg = st({
|
|
|
9739
9739
|
* 多选,行选中事件
|
|
9740
9740
|
*/
|
|
9741
9741
|
handleBatchSelectRows(m, S, T) {
|
|
9742
|
-
const { treeConfig: P } = e, { selectCheckboxMaps:
|
|
9742
|
+
const { treeConfig: P } = e, { selectCheckboxMaps: B } = u, ce = Object.assign({}, B), se = Et.value, { transform: pe, mapChildrenField: he } = se, Pe = se.children || se.childrenField, ke = Ne.value, { checkField: _e, checkStrictly: Re, checkMethod: Xe } = ke, qe = ke.indeterminateField || ke.halfField;
|
|
9743
9743
|
if (_e) {
|
|
9744
9744
|
if (P && !Re) {
|
|
9745
9745
|
i.eachTree(m, (He) => {
|
|
@@ -9775,8 +9775,8 @@ const Hg = st({
|
|
|
9775
9775
|
triggerHeaderTitleEvent(m, S, T) {
|
|
9776
9776
|
const P = S.content || S.message;
|
|
9777
9777
|
if (P) {
|
|
9778
|
-
const { tooltipStore:
|
|
9779
|
-
lo(!0),
|
|
9778
|
+
const { tooltipStore: B } = u, { column: ce } = T, se = vs(P);
|
|
9779
|
+
lo(!0), B.row = null, B.column = ce, B.visible = !0, B.currOpts = S, fe(() => {
|
|
9780
9780
|
const pe = O.value;
|
|
9781
9781
|
pe && pe.open && pe.open(m.currentTarget, se);
|
|
9782
9782
|
});
|
|
@@ -9786,15 +9786,15 @@ const Hg = st({
|
|
|
9786
9786
|
* 触发表头 tooltip 事件
|
|
9787
9787
|
*/
|
|
9788
9788
|
triggerHeaderTooltipEvent(m, S) {
|
|
9789
|
-
const { tooltipStore: T } = u, { column: P } = S,
|
|
9790
|
-
lo(!0), (T.column !== P || !T.visible) && Td(m,
|
|
9789
|
+
const { tooltipStore: T } = u, { column: P } = S, B = m.currentTarget;
|
|
9790
|
+
lo(!0), (T.column !== P || !T.visible) && Td(m, B, B, null, S);
|
|
9791
9791
|
},
|
|
9792
9792
|
/**
|
|
9793
9793
|
* 触发单元格 tooltip 事件
|
|
9794
9794
|
*/
|
|
9795
9795
|
triggerBodyTooltipEvent(m, S) {
|
|
9796
|
-
const { editConfig: T } = e, { editStore: P } = u, { tooltipStore:
|
|
9797
|
-
if (lo(
|
|
9796
|
+
const { editConfig: T } = e, { editStore: P } = u, { tooltipStore: B } = u, ce = Oe.value, { actived: se } = P, { row: pe, column: he } = S, Pe = m.currentTarget;
|
|
9797
|
+
if (lo(B.column !== he || B.row !== pe), !(he.editRender && gn(T) && (ce.mode === "row" && se.row === pe || se.row === pe && se.column === he)) && (B.column !== he || B.row !== pe || !B.visible)) {
|
|
9798
9798
|
let ke, _e;
|
|
9799
9799
|
he.treeNode ? (ke = Pe.querySelector(".vxe-tree-cell"), he.type === "html" && (_e = Pe.querySelector(".vxe-cell--html"))) : _e = Pe.querySelector(he.type === "html" ? ".vxe-cell--html" : ".vxe-cell--label"), Td(m, Pe, ke || Pe.children[0], _e, S);
|
|
9800
9800
|
}
|
|
@@ -9803,8 +9803,8 @@ const Hg = st({
|
|
|
9803
9803
|
* 触发表尾 tooltip 事件
|
|
9804
9804
|
*/
|
|
9805
9805
|
triggerFooterTooltipEvent(m, S) {
|
|
9806
|
-
const { column: T } = S, { tooltipStore: P } = u,
|
|
9807
|
-
lo(P.column !== T || !!P.row), (P.column !== T || !P.visible) && Td(m,
|
|
9806
|
+
const { column: T } = S, { tooltipStore: P } = u, B = m.currentTarget;
|
|
9807
|
+
lo(P.column !== T || !!P.row), (P.column !== T || !P.visible) && Td(m, B, B.querySelector(".vxe-cell--item") || B.children[0], null, S);
|
|
9808
9808
|
},
|
|
9809
9809
|
handleTargetLeaveEvent() {
|
|
9810
9810
|
const m = Ce.value;
|
|
@@ -9814,8 +9814,8 @@ const Hg = st({
|
|
|
9814
9814
|
}, m.leaveDelay) : p.closeTooltip();
|
|
9815
9815
|
},
|
|
9816
9816
|
triggerHeaderCellClickEvent(m, S) {
|
|
9817
|
-
const { _lastResizeTime: T } = f, P = M.value,
|
|
9818
|
-
P.trigger === "cell" && !(pe || he || Pe) && b.triggerSortEvent(m, ce, tn(ce)), yt("header-cell-click", Object.assign({ triggerResizable: pe, triggerSort: he, triggerFilter: Pe, cell: se }, S), m), (
|
|
9817
|
+
const { _lastResizeTime: T } = f, P = M.value, B = Ge.value, { column: ce } = S, se = m.currentTarget, pe = T && T > Date.now() - 300, he = Vn(m, se, "vxe-cell--sort").flag, Pe = Vn(m, se, "vxe-cell--filter").flag;
|
|
9818
|
+
P.trigger === "cell" && !(pe || he || Pe) && b.triggerSortEvent(m, ce, tn(ce)), yt("header-cell-click", Object.assign({ triggerResizable: pe, triggerSort: he, triggerFilter: Pe, cell: se }, S), m), (B.isCurrent || e.highlightCurrentColumn) && b.triggerCurrentColumnEvent(m, S);
|
|
9819
9819
|
},
|
|
9820
9820
|
triggerHeaderCellDblclickEvent(m, S) {
|
|
9821
9821
|
yt("header-cell-dblclick", Object.assign({ cell: m.currentTarget }, S), m);
|
|
@@ -9826,7 +9826,7 @@ const Hg = st({
|
|
|
9826
9826
|
* 如果是双击模式,则单击后选中状态
|
|
9827
9827
|
*/
|
|
9828
9828
|
triggerCellClickEvent(m, S) {
|
|
9829
|
-
const { highlightCurrentRow: T, editConfig: P } = e, { editStore:
|
|
9829
|
+
const { highlightCurrentRow: T, editConfig: P } = e, { editStore: B } = u, ce = pt.value, se = Oe.value, pe = Et.value, he = mt.value, Pe = Ne.value, ke = R.value, _e = lt.value, { actived: Re, focused: Xe } = B, { row: qe, column: He } = S, { type: ut, treeNode: Dt } = He, Ye = ut === "radio", Tt = ut === "checkbox", qt = ut === "expand", Kt = m.currentTarget, an = Ye && Vn(m, Kt, "vxe-cell--radio").flag, nn = Tt && Vn(m, Kt, "vxe-cell--checkbox").flag, Sn = Dt && Vn(m, Kt, "vxe-tree--btn-wrapper").flag, xn = qt && Vn(m, Kt, "vxe-table--expanded").flag;
|
|
9830
9830
|
S = Object.assign({ cell: Kt, triggerRadio: an, triggerCheckbox: nn, triggerTreeNode: Sn, triggerExpandNode: xn }, S), !nn && !an && (!xn && (ce.trigger === "row" || qt && ce.trigger === "cell") && b.triggerRowExpandEvent(m, S), (pe.trigger === "row" || Dt && pe.trigger === "cell") && b.triggerTreeExpandEvent(m, S)), Sn || (xn || ((_e.isCurrent || T) && !nn && !an && b.triggerCurrentRowEvent(m, S), !an && (he.trigger === "row" || Ye && he.trigger === "cell") && b.triggerRadioRowEvent(m, S), !nn && (Pe.trigger === "row" || Tt && Pe.trigger === "cell") && b.handleToggleCheckRowEvent(m, S)), gn(P) && (ke.arrowCursorLock && m && se.mode === "cell" && m.target && /^input|textarea$/i.test(m.target.tagName) && (Xe.column = He, Xe.row = qe), se.trigger === "manual" ? Re.args && Re.row === qe && He !== Re.column && Bo(m, S) : (!Re.args || qe !== Re.row || He !== Re.column) && (se.trigger === "click" || se.trigger === "dblclick" && se.mode === "row" && Re.row === qe) && Bo(m, S))), gn(P) && se.trigger === "dblclick" && Re.row && Re.column && (se.mode === "row" ? z.eqRow(Re.row, qe) || z.handleClearEdit(m) : se.mode === "cell" && (!z.eqRow(Re.row, qe) || Re.column.id !== He.id) && z.handleClearEdit(m)), yt("cell-click", S, m);
|
|
9831
9831
|
},
|
|
9832
9832
|
/**
|
|
@@ -9834,25 +9834,25 @@ const Hg = st({
|
|
|
9834
9834
|
* 如果是双击模式,则激活为编辑状态
|
|
9835
9835
|
*/
|
|
9836
9836
|
triggerCellDblclickEvent(m, S) {
|
|
9837
|
-
const { editConfig: T } = e, { editStore: P } = u,
|
|
9838
|
-
S = Object.assign({ cell: se }, S), gn(T) &&
|
|
9837
|
+
const { editConfig: T } = e, { editStore: P } = u, B = Oe.value, { actived: ce } = P, se = m.currentTarget;
|
|
9838
|
+
S = Object.assign({ cell: se }, S), gn(T) && B.trigger === "dblclick" && (!ce.args || m.currentTarget !== ce.args.cell) && (B.mode === "row" ? Vo("blur").catch((pe) => pe).then(() => {
|
|
9839
9839
|
z.handleEdit(S, m).then(() => Vo("change")).catch((pe) => pe);
|
|
9840
|
-
}) :
|
|
9840
|
+
}) : B.mode === "cell" && z.handleEdit(S, m).then(() => Vo("change")).catch((pe) => pe)), yt("cell-dblclick", S, m);
|
|
9841
9841
|
},
|
|
9842
9842
|
handleToggleCheckRowEvent(m, S) {
|
|
9843
|
-
const { selectCheckboxMaps: T } = u, P = Ne.value, { checkField:
|
|
9843
|
+
const { selectCheckboxMaps: T } = u, P = Ne.value, { checkField: B, trigger: ce } = P, { row: se } = S;
|
|
9844
9844
|
if (ce === "manual")
|
|
9845
9845
|
return;
|
|
9846
9846
|
let pe = !1;
|
|
9847
|
-
|
|
9847
|
+
B ? pe = !i.get(se, B) : pe = !T[St(z, se)], m ? b.triggerCheckRowEvent(m, S, pe) : (b.handleBatchSelectRows([se], pe), b.checkSelectionStatus());
|
|
9848
9848
|
},
|
|
9849
9849
|
triggerCheckRowEvent(m, S, T) {
|
|
9850
|
-
const P = Ne.value, { row:
|
|
9850
|
+
const P = Ne.value, { row: B } = S, { afterFullData: ce } = f, { checkMethod: se, trigger: pe } = P;
|
|
9851
9851
|
if (pe !== "manual") {
|
|
9852
9852
|
if (m.stopPropagation(), P.isShiftKey && m.shiftKey && !e.treeConfig) {
|
|
9853
9853
|
const he = p.getCheckboxRecords();
|
|
9854
9854
|
if (he.length) {
|
|
9855
|
-
const Pe = he[0], ke = p.getVTRowIndex(
|
|
9855
|
+
const Pe = he[0], ke = p.getVTRowIndex(B), _e = p.getVTRowIndex(Pe);
|
|
9856
9856
|
if (ke !== _e) {
|
|
9857
9857
|
p.setAllCheckboxRow(!1);
|
|
9858
9858
|
const Re = ke < _e ? ce.slice(ke, _e + 1) : ce.slice(_e, ke + 1);
|
|
@@ -9861,7 +9861,7 @@ const Hg = st({
|
|
|
9861
9861
|
}
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
9864
|
-
(!se || se({ row:
|
|
9864
|
+
(!se || se({ row: B })) && (b.handleBatchSelectRows([B], T), b.checkSelectionStatus(), yt("checkbox-change", Object.assign({
|
|
9865
9865
|
records: p.getCheckboxRecords(),
|
|
9866
9866
|
reserves: p.getCheckboxReserveRecords(),
|
|
9867
9867
|
indeterminates: p.getCheckboxIndeterminateRecords(),
|
|
@@ -9880,26 +9880,26 @@ const Hg = st({
|
|
|
9880
9880
|
* 单选,行选中事件
|
|
9881
9881
|
*/
|
|
9882
9882
|
triggerRadioRowEvent(m, S) {
|
|
9883
|
-
const { selectRadioRow: T } = u, { row: P } = S,
|
|
9883
|
+
const { selectRadioRow: T } = u, { row: P } = S, B = mt.value, { trigger: ce } = B;
|
|
9884
9884
|
if (ce === "manual")
|
|
9885
9885
|
return;
|
|
9886
9886
|
m.stopPropagation();
|
|
9887
9887
|
let se = P, pe = T !== se;
|
|
9888
|
-
pe ? ze(se) :
|
|
9888
|
+
pe ? ze(se) : B.strict || (pe = T === se, pe && (se = null, p.clearRadioRow())), pe && yt("radio-change", Object.assign({ oldValue: T, newValue: se }, S), m);
|
|
9889
9889
|
},
|
|
9890
9890
|
triggerCurrentColumnEvent(m, S) {
|
|
9891
|
-
const T = Ge.value, { currentMethod: P } = T, { column:
|
|
9892
|
-
(!P || P({ column:
|
|
9891
|
+
const T = Ge.value, { currentMethod: P } = T, { column: B } = S;
|
|
9892
|
+
(!P || P({ column: B })) && p.setCurrentColumn(B);
|
|
9893
9893
|
},
|
|
9894
9894
|
triggerCurrentRowEvent(m, S) {
|
|
9895
|
-
const { currentRow: T } = u, P = lt.value, { currentMethod:
|
|
9896
|
-
(!
|
|
9895
|
+
const { currentRow: T } = u, P = lt.value, { currentMethod: B } = P, { row: ce } = S, se = T !== ce;
|
|
9896
|
+
(!B || B({ row: ce })) && (p.setCurrentRow(ce), se && yt("current-change", Object.assign({ oldValue: T, newValue: ce }, S), m));
|
|
9897
9897
|
},
|
|
9898
9898
|
/**
|
|
9899
9899
|
* 展开行事件
|
|
9900
9900
|
*/
|
|
9901
9901
|
triggerRowExpandEvent(m, S) {
|
|
9902
|
-
const { rowExpandLazyLoadedMaps: T, expandColumn: P } = u,
|
|
9902
|
+
const { rowExpandLazyLoadedMaps: T, expandColumn: P } = u, B = pt.value, { row: ce } = S, { lazy: se, trigger: pe } = B;
|
|
9903
9903
|
if (pe === "manual")
|
|
9904
9904
|
return;
|
|
9905
9905
|
m.stopPropagation();
|
|
@@ -9921,20 +9921,20 @@ const Hg = st({
|
|
|
9921
9921
|
* 展开树节点事件
|
|
9922
9922
|
*/
|
|
9923
9923
|
triggerTreeExpandEvent(m, S) {
|
|
9924
|
-
const { treeExpandLazyLoadedMaps: T } = u, P = Et.value, { row:
|
|
9924
|
+
const { treeExpandLazyLoadedMaps: T } = u, P = Et.value, { row: B, column: ce } = S, { lazy: se, trigger: pe } = P;
|
|
9925
9925
|
if (pe === "manual")
|
|
9926
9926
|
return;
|
|
9927
9927
|
m.stopPropagation();
|
|
9928
|
-
const he = St(z,
|
|
9928
|
+
const he = St(z, B);
|
|
9929
9929
|
if (!se || !T[he]) {
|
|
9930
|
-
const Pe = !p.isTreeExpandByRow(
|
|
9931
|
-
p.setTreeExpand(
|
|
9930
|
+
const Pe = !p.isTreeExpandByRow(B), ke = p.getColumnIndex(ce), _e = p.getVMColumnIndex(ce);
|
|
9931
|
+
p.setTreeExpand(B, Pe), yt("toggle-tree-expand", { expanded: Pe, column: ce, columnIndex: ke, $columnIndex: _e, row: B }, m);
|
|
9932
9932
|
}
|
|
9933
9933
|
},
|
|
9934
9934
|
handleColumnSortEvent(m, S) {
|
|
9935
|
-
const { mouseConfig: T } = e, P = ye.value, { field:
|
|
9935
|
+
const { mouseConfig: T } = e, P = ye.value, { field: B, sortable: ce } = S;
|
|
9936
9936
|
if (ce) {
|
|
9937
|
-
const se = { $table: z, $event: m, column: S, field:
|
|
9937
|
+
const se = { $table: z, $event: m, column: S, field: B, property: B, order: S.order, sortList: p.getSortColumns(), sortTime: S.sortTime };
|
|
9938
9938
|
T && P.area && z.handleSortEvent && z.handleSortEvent(m, se), yt("sort-change", se, m);
|
|
9939
9939
|
}
|
|
9940
9940
|
},
|
|
@@ -9942,24 +9942,24 @@ const Hg = st({
|
|
|
9942
9942
|
* 点击排序事件
|
|
9943
9943
|
*/
|
|
9944
9944
|
triggerSortEvent(m, S, T) {
|
|
9945
|
-
const P = M.value, { field:
|
|
9946
|
-
ce && (!T || S.order === T ? p.clearSort(P.multiple ? S : null) : p.sort({ field:
|
|
9945
|
+
const P = M.value, { field: B, sortable: ce } = S;
|
|
9946
|
+
ce && (!T || S.order === T ? p.clearSort(P.multiple ? S : null) : p.sort({ field: B, order: T }), z.handleColumnSortEvent(m, S));
|
|
9947
9947
|
},
|
|
9948
9948
|
/**
|
|
9949
9949
|
* 表头单元格按下事件
|
|
9950
9950
|
*/
|
|
9951
9951
|
triggerHeaderCellMousedownEvent(m, S) {
|
|
9952
|
-
const { mouseConfig: T } = e, P = ye.value,
|
|
9952
|
+
const { mouseConfig: T } = e, P = ye.value, B = Ge.value, ce = nt.value, { trigger: se, disabledMethod: pe } = ce, he = m.currentTarget, Pe = he && he.tagName && he.tagName.toLowerCase() === "input", ke = Vn(m, he, "vxe-cell--checkbox").flag, _e = Vn(m, he, "vxe-cell--sort").flag, Re = Vn(m, he, "vxe-cell--filter").flag;
|
|
9953
9953
|
let Xe = !1;
|
|
9954
|
-
Pe || ke || _e || Re ||
|
|
9954
|
+
Pe || ke || _e || Re || B.drag && se === "cell" && !(pe && pe(S)) && (Xe = !0, z.handleHeaderCellDragMousedownEvent(m, S)), !Xe && T && P.area && z.handleHeaderCellAreaEvent && z.handleHeaderCellAreaEvent(m, Object.assign({ cell: he, triggerSort: _e, triggerFilter: Re }, S)), z.focus(), z.closeMenu && z.closeMenu();
|
|
9955
9955
|
},
|
|
9956
9956
|
/**
|
|
9957
9957
|
* 单元格按下事件
|
|
9958
9958
|
*/
|
|
9959
9959
|
triggerCellMousedownEvent(m, S) {
|
|
9960
|
-
const { column: T } = S, { type: P, treeNode:
|
|
9960
|
+
const { column: T } = S, { type: P, treeNode: B } = T, ce = P === "radio", se = P === "checkbox", pe = P === "expand", he = lt.value, Pe = Ke.value, { trigger: ke, disabledMethod: _e } = Pe, Re = m.currentTarget;
|
|
9961
9961
|
S.cell = Re;
|
|
9962
|
-
const Xe = Re && Re.tagName && Re.tagName.toLowerCase() === "input", qe = ce && Vn(m, Re, "vxe-cell--radio").flag, He = se && Vn(m, Re, "vxe-cell--checkbox").flag, ut =
|
|
9962
|
+
const Xe = Re && Re.tagName && Re.tagName.toLowerCase() === "input", qe = ce && Vn(m, Re, "vxe-cell--radio").flag, He = se && Vn(m, Re, "vxe-cell--checkbox").flag, ut = B && Vn(m, Re, "vxe-tree--btn-wrapper").flag, Dt = pe && Vn(m, Re, "vxe-table--expanded").flag;
|
|
9963
9963
|
let Ye = !1;
|
|
9964
9964
|
he.drag && (Ye = ke === "row" || T.dragSort && ke === "cell");
|
|
9965
9965
|
let Tt = !1;
|
|
@@ -9975,7 +9975,7 @@ const Hg = st({
|
|
|
9975
9975
|
}
|
|
9976
9976
|
},
|
|
9977
9977
|
handleRowDragDragendEvent(m) {
|
|
9978
|
-
const { treeConfig: S, dragConfig: T } = e, P = Ke.value, { fullAllDataRowIdData:
|
|
9978
|
+
const { treeConfig: S, dragConfig: T } = e, P = Ke.value, { fullAllDataRowIdData: B, prevDragToChild: ce } = f, { isCrossDrag: se, isSelfToChildDrag: pe, dragEndMethod: he } = P, Pe = Et.value, { transform: ke, rowField: _e, mapChildrenField: Re, parentField: Xe } = Pe, qe = Pe.children || Pe.childrenField, { dragRow: He } = u, { afterFullData: ut, tableFullData: Dt, prevDragRow: Ye, prevDragPos: Tt } = f, qt = he || (T ? T.dragEndMethod : null), Kt = Tt === "bottom" ? 1 : 0;
|
|
9979
9979
|
Ye && He && Ye !== He && Promise.resolve(qt ? qt({
|
|
9980
9980
|
oldRow: He,
|
|
9981
9981
|
newRow: Ye,
|
|
@@ -9987,7 +9987,7 @@ const Hg = st({
|
|
|
9987
9987
|
let nn = -1, Sn = -1;
|
|
9988
9988
|
if (S) {
|
|
9989
9989
|
if (ke) {
|
|
9990
|
-
const xn = St(z, He), cn =
|
|
9990
|
+
const xn = St(z, He), cn = B[xn], Dn = St(z, Ye), on = B[Dn];
|
|
9991
9991
|
if (cn && on) {
|
|
9992
9992
|
const { level: fn } = cn, { level: Xn } = on, Ir = {};
|
|
9993
9993
|
i.eachTree([He], (Vr) => {
|
|
@@ -10058,7 +10058,7 @@ const Hg = st({
|
|
|
10058
10058
|
}, 500);
|
|
10059
10059
|
},
|
|
10060
10060
|
handleRowDragDragoverEvent(m) {
|
|
10061
|
-
const { treeConfig: S } = e, { fullAllDataRowIdData: T } = f, { dragRow: P } = u,
|
|
10061
|
+
const { treeConfig: S } = e, { fullAllDataRowIdData: T } = f, { dragRow: P } = u, B = Et.value, { transform: ce } = B, se = Ke.value, { isCrossDrag: pe, isToChildDrag: he } = se;
|
|
10062
10062
|
if (!P) {
|
|
10063
10063
|
m.preventDefault();
|
|
10064
10064
|
return;
|
|
@@ -10082,7 +10082,7 @@ const Hg = st({
|
|
|
10082
10082
|
handleCellDragMousedownEvent(m, S) {
|
|
10083
10083
|
var T;
|
|
10084
10084
|
m.stopPropagation();
|
|
10085
|
-
const { dragConfig: P } = e,
|
|
10085
|
+
const { dragConfig: P } = e, B = Ke.value, { trigger: ce, dragStartMethod: se } = B, { row: pe } = S, he = m.currentTarget, Pe = ce === "cell" || ce === "row" ? he : (T = he.parentElement) === null || T === void 0 ? void 0 : T.parentElement, ke = Pe.parentElement, _e = se || (P ? P.dragStartMethod : null);
|
|
10086
10086
|
if (Jo(), _e && !_e(S)) {
|
|
10087
10087
|
ke.draggable = !1, u.dragRow = null, u.dragCol = null, Ds();
|
|
10088
10088
|
return;
|
|
@@ -10101,14 +10101,14 @@ const Hg = st({
|
|
|
10101
10101
|
S.src = kf, m.dataTransfer.setDragImage(S, 0, 0);
|
|
10102
10102
|
}
|
|
10103
10103
|
},
|
|
10104
|
-
handleColDragSwapEvent(m, S, T, P,
|
|
10105
|
-
const { mouseConfig: se } = e, pe = nt.value, { isCrossDrag: he, isSelfToChildDrag: Pe, isToChildDrag: ke, dragEndMethod: _e } = pe, { collectColumn: Re } = f, Xe =
|
|
10104
|
+
handleColDragSwapEvent(m, S, T, P, B, ce) {
|
|
10105
|
+
const { mouseConfig: se } = e, pe = nt.value, { isCrossDrag: he, isSelfToChildDrag: Pe, isToChildDrag: ke, dragEndMethod: _e } = pe, { collectColumn: Re } = f, Xe = B === "right" ? 1 : 0;
|
|
10106
10106
|
if (P && T && P !== T) {
|
|
10107
10107
|
const qe = T, He = P;
|
|
10108
10108
|
return Promise.resolve(_e ? _e({
|
|
10109
10109
|
oldColumn: qe,
|
|
10110
10110
|
newColumn: He,
|
|
10111
|
-
dragPos:
|
|
10111
|
+
dragPos: B,
|
|
10112
10112
|
offsetIndex: Xe
|
|
10113
10113
|
}) : !0).then((ut) => {
|
|
10114
10114
|
if (!ut)
|
|
@@ -10168,7 +10168,7 @@ const Hg = st({
|
|
|
10168
10168
|
}), u.isDragColMove = !0, se && (z.clearSelected && z.clearSelected(), z.clearCellAreas && (z.clearCellAreas(), z.clearCopyCellArea())), yt("column-dragend", {
|
|
10169
10169
|
oldColumn: qe,
|
|
10170
10170
|
newColumn: He,
|
|
10171
|
-
dragPos:
|
|
10171
|
+
dragPos: B,
|
|
10172
10172
|
offsetIndex: Xe,
|
|
10173
10173
|
_index: {
|
|
10174
10174
|
newIndex: Ye,
|
|
@@ -10182,13 +10182,13 @@ const Hg = st({
|
|
|
10182
10182
|
return Promise.resolve();
|
|
10183
10183
|
},
|
|
10184
10184
|
handleHeaderCellDragDragendEvent(m) {
|
|
10185
|
-
const { dragCol: S } = u, { prevDragCol: T, prevDragPos: P, prevDragToChild:
|
|
10186
|
-
z.handleColDragSwapEvent(m, !0, S, T, P,
|
|
10185
|
+
const { dragCol: S } = u, { prevDragCol: T, prevDragPos: P, prevDragToChild: B } = f;
|
|
10186
|
+
z.handleColDragSwapEvent(m, !0, S, T, P, B), Ds(), _a(), f.prevDragToChild = !1, u.dragRow = null, u.dragCol = null, setTimeout(() => {
|
|
10187
10187
|
u.isDragColMove = !1;
|
|
10188
10188
|
}, 500);
|
|
10189
10189
|
},
|
|
10190
10190
|
handleHeaderCellDragDragoverEvent(m) {
|
|
10191
|
-
const { dragCol: S } = u, T = nt.value, { isToChildDrag: P, isCrossDrag:
|
|
10191
|
+
const { dragCol: S } = u, T = nt.value, { isToChildDrag: P, isCrossDrag: B } = T;
|
|
10192
10192
|
if (!S) {
|
|
10193
10193
|
m.preventDefault();
|
|
10194
10194
|
return;
|
|
@@ -10197,7 +10197,7 @@ const Hg = st({
|
|
|
10197
10197
|
if (he) {
|
|
10198
10198
|
m.preventDefault();
|
|
10199
10199
|
const { dragCol: Pe } = u, _e = m.clientX - se.getBoundingClientRect().x < se.clientWidth / 2 ? "left" : "right";
|
|
10200
|
-
if (Pe && Pe.id === he.id || !
|
|
10200
|
+
if (Pe && Pe.id === he.id || !B && he.parentId) {
|
|
10201
10201
|
gl(m, null, se, !1, _e);
|
|
10202
10202
|
return;
|
|
10203
10203
|
}
|
|
@@ -10211,7 +10211,7 @@ const Hg = st({
|
|
|
10211
10211
|
handleHeaderCellDragMousedownEvent(m, S) {
|
|
10212
10212
|
var T;
|
|
10213
10213
|
m.stopPropagation();
|
|
10214
|
-
const P = nt.value, { trigger:
|
|
10214
|
+
const P = nt.value, { trigger: B, dragStartMethod: ce } = P, { column: se } = S, pe = m.currentTarget, he = B === "cell" ? pe : (T = pe.parentElement) === null || T === void 0 ? void 0 : T.parentElement;
|
|
10215
10215
|
if (u.isDragColMove = !1, _a(), ce && !ce(S)) {
|
|
10216
10216
|
he.draggable = !1, u.dragRow = null, u.dragCol = null, Ds();
|
|
10217
10217
|
return;
|
|
@@ -10221,12 +10221,12 @@ const Hg = st({
|
|
|
10221
10221
|
handleHeaderCellDragMouseupEvent() {
|
|
10222
10222
|
_a(), Ds(), u.dragRow = null, u.dragCol = null, u.isDragColMove = !1;
|
|
10223
10223
|
},
|
|
10224
|
-
handleScrollEvent(m, S, T, P,
|
|
10224
|
+
handleScrollEvent(m, S, T, P, B, ce) {
|
|
10225
10225
|
const { highlightHoverRow: se } = e, { lastScrollLeft: pe, lastScrollTop: he } = f, Pe = w.value, ke = Pe ? Pe.$el : null, _e = lt.value, Re = h.value, Xe = O.value, qe = ke ? ke.clientHeight : 0, He = ke ? ke.clientWidth : 0, ut = ke ? ke.scrollHeight : 0, Dt = ke ? ke.scrollWidth : 0;
|
|
10226
10226
|
let Ye = !1, Tt = !1, qt = !1, Kt = !1, an = "", nn = !1, Sn = !1, xn = !1, cn = !1;
|
|
10227
10227
|
if (T) {
|
|
10228
10228
|
const on = ve.value;
|
|
10229
|
-
qt =
|
|
10229
|
+
qt = B <= 0, qt || (Kt = B + He >= Dt), B > pe ? (an = "right", B + He >= Dt - on && (cn = !0)) : (an = "left", B <= on && (xn = !0)), b.checkScrolling(), f.lastScrollLeft = B;
|
|
10230
10230
|
}
|
|
10231
10231
|
if (S) {
|
|
10232
10232
|
const on = xe.value;
|
|
@@ -10235,7 +10235,7 @@ const Hg = st({
|
|
|
10235
10235
|
u.isDragColMove = !1, u.isDragRowMove = !1, u.lastScrollTime = Date.now();
|
|
10236
10236
|
const Dn = Object.assign({
|
|
10237
10237
|
scrollTop: P,
|
|
10238
|
-
scrollLeft:
|
|
10238
|
+
scrollLeft: B,
|
|
10239
10239
|
bodyHeight: qe,
|
|
10240
10240
|
bodyWidth: He,
|
|
10241
10241
|
scrollHeight: ut,
|
|
@@ -10270,7 +10270,7 @@ const Hg = st({
|
|
|
10270
10270
|
scrollToTreeRow(m) {
|
|
10271
10271
|
const { treeConfig: S } = e, { tableFullData: T } = f, P = [];
|
|
10272
10272
|
if (S) {
|
|
10273
|
-
const
|
|
10273
|
+
const B = Et.value, ce = B.children || B.childrenField, se = i.findTree(T, (pe) => z.eqRow(pe, m), { children: ce });
|
|
10274
10274
|
if (se) {
|
|
10275
10275
|
const pe = se.nodes;
|
|
10276
10276
|
pe.forEach((he, Pe) => {
|
|
@@ -10283,9 +10283,9 @@ const Hg = st({
|
|
|
10283
10283
|
updateScrollYStatus: Ll,
|
|
10284
10284
|
// 更新横向 X 可视渲染上下剩余空间大小
|
|
10285
10285
|
updateScrollXSpace() {
|
|
10286
|
-
const { isGroup: m, scrollXLoad: S, scrollbarWidth: T } = u, { visibleColumn: P, scrollXStore:
|
|
10286
|
+
const { isGroup: m, scrollXLoad: S, scrollbarWidth: T } = u, { visibleColumn: P, scrollXStore: B, elemStore: ce, tableWidth: se } = f, pe = x.value, he = w.value, Pe = y.value, ke = he ? he.$el : null;
|
|
10287
10287
|
if (ke) {
|
|
10288
|
-
const _e = pe ? pe.$el : null, Re = Pe ? Pe.$el : null, Xe = _e ? _e.querySelector(".vxe-table--header") : null, qe = ke.querySelector(".vxe-table--body"), He = Re ? Re.querySelector(".vxe-table--footer") : null, ut = P.slice(0,
|
|
10288
|
+
const _e = pe ? pe.$el : null, Re = Pe ? Pe.$el : null, Xe = _e ? _e.querySelector(".vxe-table--header") : null, qe = ke.querySelector(".vxe-table--body"), He = Re ? Re.querySelector(".vxe-table--footer") : null, ut = P.slice(0, B.startIndex).reduce((qt, Kt) => qt + Kt.renderWidth, 0);
|
|
10289
10289
|
let Dt = "";
|
|
10290
10290
|
S && (Dt = `${ut}px`), Xe && (Xe.style.marginLeft = m ? "" : Dt), qe.style.marginLeft = Dt, He && (He.style.marginLeft = Dt), ["main"].forEach((qt) => {
|
|
10291
10291
|
["header", "body", "footer"].forEach((an) => {
|
|
@@ -10299,20 +10299,20 @@ const Hg = st({
|
|
|
10299
10299
|
},
|
|
10300
10300
|
// 更新纵向 Y 可视渲染上下剩余空间大小
|
|
10301
10301
|
updateScrollYSpace() {
|
|
10302
|
-
const { showOverflow: m } = e, { scrollYLoad: S } = u, { scrollYStore: T, elemStore: P, afterFullData:
|
|
10302
|
+
const { showOverflow: m } = e, { scrollYLoad: S } = u, { scrollYStore: T, elemStore: P, afterFullData: B, fullAllDataRowIdData: ce } = f, { startIndex: se, rowHeight: pe } = T;
|
|
10303
10303
|
let he = 0, Pe = 0;
|
|
10304
10304
|
const ke = ["main", "left", "right"];
|
|
10305
10305
|
let _e = "", Re = "";
|
|
10306
10306
|
if (S) {
|
|
10307
10307
|
if (m)
|
|
10308
|
-
he =
|
|
10308
|
+
he = B.length * pe, Pe = Math.max(0, se * pe);
|
|
10309
10309
|
else {
|
|
10310
|
-
for (let qe = 0; qe <
|
|
10311
|
-
const He =
|
|
10310
|
+
for (let qe = 0; qe < B.length; qe++) {
|
|
10311
|
+
const He = B[qe], ut = St(z, He), Dt = ce[ut];
|
|
10312
10312
|
Dt && (he += Dt.height || pe);
|
|
10313
10313
|
}
|
|
10314
10314
|
for (let qe = 0; qe < se; qe++) {
|
|
10315
|
-
const He =
|
|
10315
|
+
const He = B[qe], ut = St(z, He), Dt = ce[ut];
|
|
10316
10316
|
Dt && (Pe += Dt.height || pe);
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
@@ -10343,7 +10343,7 @@ const Hg = st({
|
|
|
10343
10343
|
* 处理固定列的显示状态
|
|
10344
10344
|
*/
|
|
10345
10345
|
checkScrolling() {
|
|
10346
|
-
const m = K.value, S =
|
|
10346
|
+
const m = K.value, S = _.value, T = w.value, P = T ? T.$el : null, ce = U.value || P;
|
|
10347
10347
|
ce && (m && (ce.scrollLeft > 0 ? fs(m, "scrolling--middle") : Cr(m, "scrolling--middle")), S && (ce.clientWidth < ce.scrollWidth - Math.ceil(ce.scrollLeft) ? fs(S, "scrolling--middle") : Cr(S, "scrolling--middle")));
|
|
10348
10348
|
},
|
|
10349
10349
|
updateZindex() {
|
|
@@ -10387,16 +10387,16 @@ const Hg = st({
|
|
|
10387
10387
|
};
|
|
10388
10388
|
})), Object.assign(z, p, b);
|
|
10389
10389
|
const qp = (m) => {
|
|
10390
|
-
const { showHeader: S, showFooter: T } = e, { tableData: P, tableColumn:
|
|
10390
|
+
const { showHeader: S, showFooter: T } = e, { tableData: P, tableColumn: B, tableGroupColumn: ce, columnStore: se, footerTableData: pe } = u, he = m === "left", Pe = he ? se.leftList : se.rightList;
|
|
10391
10391
|
return r("div", {
|
|
10392
|
-
ref: he ? K :
|
|
10392
|
+
ref: he ? K : _,
|
|
10393
10393
|
class: `vxe-table--fixed-${m}-wrapper`
|
|
10394
10394
|
}, [
|
|
10395
10395
|
S ? r(jg, {
|
|
10396
10396
|
ref: he ? $ : G,
|
|
10397
10397
|
fixedType: m,
|
|
10398
10398
|
tableData: P,
|
|
10399
|
-
tableColumn:
|
|
10399
|
+
tableColumn: B,
|
|
10400
10400
|
tableGroupColumn: ce,
|
|
10401
10401
|
fixedColumn: Pe
|
|
10402
10402
|
}) : Lo(z),
|
|
@@ -10404,13 +10404,13 @@ const Hg = st({
|
|
|
10404
10404
|
ref: he ? N : j,
|
|
10405
10405
|
fixedType: m,
|
|
10406
10406
|
tableData: P,
|
|
10407
|
-
tableColumn:
|
|
10407
|
+
tableColumn: B,
|
|
10408
10408
|
fixedColumn: Pe
|
|
10409
10409
|
}),
|
|
10410
10410
|
T ? r(Hg, {
|
|
10411
10411
|
ref: he ? H : oe,
|
|
10412
10412
|
footerTableData: pe,
|
|
10413
|
-
tableColumn:
|
|
10413
|
+
tableColumn: B,
|
|
10414
10414
|
fixedColumn: Pe,
|
|
10415
10415
|
fixedType: m
|
|
10416
10416
|
}) : Lo(z)
|
|
@@ -10426,10 +10426,10 @@ const Hg = st({
|
|
|
10426
10426
|
}
|
|
10427
10427
|
return vs(e.emptyText) || Zs("vxe.table.emptyText");
|
|
10428
10428
|
}, Lw = () => {
|
|
10429
|
-
const { dragConfig: m } = e, { dragRow: S, dragCol: T, dragTipText: P } = u,
|
|
10429
|
+
const { dragConfig: m } = e, { dragRow: S, dragCol: T, dragTipText: P } = u, B = nt.value, pe = (Ke.value.slots || {}).tip || (m && m.slots ? m.slots.rowTip : null), Pe = (B.slots || {}).tip;
|
|
10430
10430
|
return S && pe ? Ba(pe, { row: S }) : T && Pe ? Ba(Pe, { column: T }) : [r("span", P)];
|
|
10431
10431
|
}, _w = () => {
|
|
10432
|
-
const { dragRow: m } = u, S = lt.value, T = Ge.value, P = Ke.value,
|
|
10432
|
+
const { dragRow: m } = u, S = lt.value, T = Ge.value, P = Ke.value, B = nt.value;
|
|
10433
10433
|
return S.drag || T.drag ? r("div", {
|
|
10434
10434
|
class: "vxe-table--drag-wrapper"
|
|
10435
10435
|
}, [
|
|
@@ -10442,7 +10442,7 @@ const Hg = st({
|
|
|
10442
10442
|
r("div", {
|
|
10443
10443
|
ref: I,
|
|
10444
10444
|
class: ["vxe-table--drag-col-line", {
|
|
10445
|
-
"is--guides":
|
|
10445
|
+
"is--guides": B.showGuidesStatus
|
|
10446
10446
|
}]
|
|
10447
10447
|
}),
|
|
10448
10448
|
r("div", {
|
|
@@ -10477,7 +10477,7 @@ const Hg = st({
|
|
|
10477
10477
|
m && m.clientWidth && m.clientHeight && p.recalculate();
|
|
10478
10478
|
}
|
|
10479
10479
|
const Bw = () => {
|
|
10480
|
-
const { loading: m, stripe: S, showHeader: T, height: P, treeConfig:
|
|
10480
|
+
const { loading: m, stripe: S, showHeader: T, height: P, treeConfig: B, mouseConfig: ce, showFooter: se, highlightCell: pe, highlightHoverRow: he, highlightHoverColumn: Pe, editConfig: ke, editRules: _e } = e, { isCalcColumn: Re, isGroup: Xe, overflowX: qe, overflowY: He, scrollXLoad: ut, scrollYLoad: Dt, scrollbarHeight: Ye, tableData: Tt, tableColumn: qt, tableGroupColumn: Kt, footerTableData: an, initStore: nn, columnStore: Sn, filterStore: xn, customStore: cn, tooltipStore: Dn } = u, { leftList: on, rightList: fn } = Sn, Xn = n.loading, Ir = Le.value, fr = te.value, pr = Ne.value, qs = Et.value, hl = lt.value, Pr = Ge.value, Vr = d.value, vl = Ot.value, Os = ye.value, fo = q.value, or = Te.value, _n = Cn.value, bo = Be.value, jo = u._isLoading || m, po = Jt.value, No = ft.value, co = ce && Os.area, Qo = Pt.value, mr = nt.value;
|
|
10481
10481
|
return r("div", {
|
|
10482
10482
|
ref: v,
|
|
10483
10483
|
class: ["vxe-table", "vxe-table--render-default", `tid_${s}`, `border--${vl}`, {
|
|
@@ -10498,13 +10498,13 @@ const Hg = st({
|
|
|
10498
10498
|
"is--header": T,
|
|
10499
10499
|
"is--footer": se,
|
|
10500
10500
|
"is--group": Xe,
|
|
10501
|
-
"is--tree-line":
|
|
10501
|
+
"is--tree-line": B && (qs.showLine || qs.line),
|
|
10502
10502
|
"is--fixed-left": on.length,
|
|
10503
10503
|
"is--fixed-right": fn.length,
|
|
10504
10504
|
"is--animat": !!e.animat,
|
|
10505
10505
|
"is--padding": e.padding,
|
|
10506
10506
|
"is--round": e.round,
|
|
10507
|
-
"is--stripe": !
|
|
10507
|
+
"is--stripe": !B && S,
|
|
10508
10508
|
"is--loading": jo,
|
|
10509
10509
|
"is--empty": !jo && !Tt.length,
|
|
10510
10510
|
"is--scroll-y": He,
|
|
@@ -10811,7 +10811,7 @@ const Hg = st({
|
|
|
10811
10811
|
f.isActivated = !1, b.preventEvent(null, "deactivated", { $table: z });
|
|
10812
10812
|
}), En(() => {
|
|
10813
10813
|
fe(() => {
|
|
10814
|
-
const { data: m, treeConfig: S, showOverflow: T } = e, { scrollXStore: P, scrollYStore:
|
|
10814
|
+
const { data: m, treeConfig: S, showOverflow: T } = e, { scrollXStore: P, scrollYStore: B } = f, ce = ue.value, se = Oe.value, pe = Et.value, he = mt.value, Pe = Ne.value, ke = pt.value, _e = lt.value;
|
|
10815
10815
|
if (process.env.NODE_ENV === "development") {
|
|
10816
10816
|
e.rowId && un("vxe.error.delProp", ["row-id", "row-config.keyField"]), e.rowKey && un("vxe.error.delProp", ["row-key", "row-config.useKey"]), e.columnKey && un("vxe.error.delProp", ["column-id", "column-config.useKey"]), !(e.rowId || _e.keyField) && (Pe.reserve || Pe.checkRowKeys || he.reserve || he.checkRowKey || ke.expandRowKeys || pe.expandRowKeys) && un("vxe.error.reqProp", ["row-config.keyField"]), e.editConfig && (se.showStatus || se.showUpdateStatus || se.showInsertStatus) && !e.keepSource && un("vxe.error.reqProp", ["keep-source"]), S && (pe.showLine || pe.line) && (!(e.rowKey || _e.useKey) || !T) && un("vxe.error.reqProp", ["row-config.useKey | show-overflow"]), S && !pe.transform && e.stripe && un("vxe.error.noTree", ["stripe"]), e.showFooter && !(e.footerMethod || e.footerData) && un("vxe.error.reqProp", ["footer-data | footer-method"]);
|
|
10817
10817
|
const { exportConfig: Re, importConfig: Xe } = e, qe = Ze.value, He = Je.value;
|
|
@@ -10825,7 +10825,7 @@ const Hg = st({
|
|
|
10825
10825
|
}
|
|
10826
10826
|
e.dragConfig && un("vxe.error.delProp", ["drag-config", "row-drag-config"]), e.treeConfig && pe.children && un("vxe.error.delProp", ["tree-config.children", "tree-config.childrenField"]), e.treeConfig && pe.line && un("vxe.error.delProp", ["tree-config.line", "tree-config.showLine"]), Xe.area && Xe.selected && un("vxe.error.errConflicts", ["mouse-config.area", "mouse-config.selected"]), Xe.area && e.treeConfig && !pe.transform && Gt("vxe.error.noTree", ["mouse-config.area"]), e.editConfig && se.activeMethod && un("vxe.error.delProp", ["edit-config.activeMethod", "edit-config.beforeEditMethod"]), e.treeConfig && Pe.isShiftKey && Gt("vxe.error.errConflicts", ["tree-config", "checkbox-config.isShiftKey"]), Pe.halfField && un("vxe.error.delProp", ["checkbox-config.halfField", "checkbox-config.indeterminateField"]);
|
|
10827
10827
|
}
|
|
10828
|
-
if (process.env.NODE_ENV === "development" && (e.editConfig && !z.insert && Gt("vxe.error.reqModule", ["Edit"]), e.editRules && !z.validate && Gt("vxe.error.reqModule", ["Validator"]), (Pe.range || e.keyboardConfig || e.mouseConfig) && !z.handleCellMousedownEvent && Gt("vxe.error.reqModule", ["Keyboard"]), (e.printConfig || e.importConfig || e.exportConfig) && !z.exportData && Gt("vxe.error.reqModule", ["Export"])), Object.assign(
|
|
10828
|
+
if (process.env.NODE_ENV === "development" && (e.editConfig && !z.insert && Gt("vxe.error.reqModule", ["Edit"]), e.editRules && !z.validate && Gt("vxe.error.reqModule", ["Validator"]), (Pe.range || e.keyboardConfig || e.mouseConfig) && !z.handleCellMousedownEvent && Gt("vxe.error.reqModule", ["Keyboard"]), (e.printConfig || e.importConfig || e.exportConfig) && !z.exportData && Gt("vxe.error.reqModule", ["Export"])), Object.assign(B, {
|
|
10829
10829
|
startIndex: 0,
|
|
10830
10830
|
endIndex: 0,
|
|
10831
10831
|
visibleSize: 0,
|
|
@@ -10928,10 +10928,10 @@ YL.add("tableFilterModule", {
|
|
|
10928
10928
|
column: h,
|
|
10929
10929
|
style: null
|
|
10930
10930
|
}), C.options.forEach((oe) => {
|
|
10931
|
-
const { _checked: K, checked:
|
|
10932
|
-
oe._checked =
|
|
10931
|
+
const { _checked: K, checked: _ } = oe;
|
|
10932
|
+
oe._checked = _, !_ && K !== _ && j && j({ option: oe, column: h, $table: e });
|
|
10933
10933
|
}), this.checkFilterOptions(), C.visible = !0, E.filter = !0, fe(() => {
|
|
10934
|
-
const oe = s.value, K = l.value,
|
|
10934
|
+
const oe = s.value, K = l.value, _ = oe ? oe.$el : null, ge = K.$el;
|
|
10935
10935
|
if (!ge)
|
|
10936
10936
|
return;
|
|
10937
10937
|
const ae = a.value, F = ae ? ae.$el : null;
|
|
@@ -10943,7 +10943,7 @@ YL.add("tableFilterModule", {
|
|
|
10943
10943
|
top: `${x.offsetTop + x.offsetParent.offsetTop + x.offsetHeight}px`
|
|
10944
10944
|
};
|
|
10945
10945
|
let L = null;
|
|
10946
|
-
const Y = ge.clientHeight - (
|
|
10946
|
+
const Y = ge.clientHeight - (_ ? _.clientHeight / 2 : 0);
|
|
10947
10947
|
if (k >= Y && (L = Math.max(40, Y - (Q ? Q.offsetHeight : 0) - (I ? I.offsetHeight : 0))), h.fixed === "left" ? me = x.offsetLeft + x.offsetParent.offsetLeft - ie : h.fixed === "right" ? De = x.offsetParent.offsetWidth - x.offsetLeft + (x.offsetParent.offsetParent.offsetWidth - x.offsetParent.offsetLeft) - h.renderWidth - ie : me = x.offsetLeft + x.offsetParent.offsetLeft - ie - ge.scrollLeft, me) {
|
|
10948
10948
|
const te = w + W - ie + U - y;
|
|
10949
10949
|
te > 0 && (me -= te), le.left = `${Math.min(ee, Math.max(U, me))}px`;
|
|
@@ -11084,7 +11084,7 @@ JL.add("tableMenuModule", {
|
|
|
11084
11084
|
O.preventDefault(), e.updateZindex();
|
|
11085
11085
|
const { scrollTop: N, scrollLeft: H, visibleHeight: G, visibleWidth: j } = Qu();
|
|
11086
11086
|
let oe = O.clientY + N, K = O.clientX + H;
|
|
11087
|
-
const
|
|
11087
|
+
const _ = () => {
|
|
11088
11088
|
s._currMenuParams = h, Object.assign(g, {
|
|
11089
11089
|
visible: !0,
|
|
11090
11090
|
list: y,
|
|
@@ -11107,8 +11107,8 @@ JL.add("tableMenuModule", {
|
|
|
11107
11107
|
const { boundingTop: k, boundingLeft: I } = $c(W);
|
|
11108
11108
|
oe = k + N + Math.floor(W.offsetHeight / 2), K = I + H + Math.floor(W.offsetWidth / 2);
|
|
11109
11109
|
}
|
|
11110
|
-
|
|
11111
|
-
}) :
|
|
11110
|
+
_();
|
|
11111
|
+
}) : _();
|
|
11112
11112
|
} else
|
|
11113
11113
|
p.closeMenu();
|
|
11114
11114
|
}));
|
|
@@ -11178,19 +11178,19 @@ JL.add("tableMenuModule", {
|
|
|
11178
11178
|
}
|
|
11179
11179
|
}
|
|
11180
11180
|
for (let j = 0; j < G.length; j++) {
|
|
11181
|
-
const oe = G[j], K = Vn(O, N, `vxe-${oe}--column`, (ge) => ge.parentNode.parentNode.parentNode.getAttribute("xid") === t),
|
|
11181
|
+
const oe = G[j], K = Vn(O, N, `vxe-${oe}--column`, (ge) => ge.parentNode.parentNode.parentNode.getAttribute("xid") === t), _ = { type: oe, $table: e, columns: C.slice(0), $event: O };
|
|
11182
11182
|
if (K.flag) {
|
|
11183
11183
|
const ge = K.targetElem, ae = e.getColumnNode(ge), F = ae ? ae.item : null;
|
|
11184
11184
|
let W = `${oe}-`;
|
|
11185
|
-
if (F && Object.assign(
|
|
11185
|
+
if (F && Object.assign(_, { column: F, columnIndex: e.getColumnIndex(F), cell: ge }), oe === "body") {
|
|
11186
11186
|
const I = e.getRowNode(ge.parentNode), Q = I ? I.item : null;
|
|
11187
|
-
W = "", Q && (
|
|
11187
|
+
W = "", Q && (_.row = Q, _.rowIndex = e.getRowIndex(Q));
|
|
11188
11188
|
}
|
|
11189
11189
|
const k = `${W}cell-menu`;
|
|
11190
|
-
v(O, oe,
|
|
11190
|
+
v(O, oe, _), e.dispatchEvent(k, _, O);
|
|
11191
11191
|
return;
|
|
11192
11192
|
} else if (Vn(O, N, `vxe-table--${oe}-wrapper`, (ge) => ge.getAttribute("xid") === t).flag) {
|
|
11193
|
-
$.trigger === "cell" ? O.preventDefault() : v(O, oe,
|
|
11193
|
+
$.trigger === "cell" ? O.preventDefault() : v(O, oe, _);
|
|
11194
11194
|
return;
|
|
11195
11195
|
}
|
|
11196
11196
|
}
|
|
@@ -11252,13 +11252,13 @@ n_.add("tableEditModule", {
|
|
|
11252
11252
|
(N || H) && (y.mode === "row" ? w.forEach((G) => v(N, G)) : v(N, H));
|
|
11253
11253
|
}
|
|
11254
11254
|
function h(x, w) {
|
|
11255
|
-
const { tableFullTreeData: y, afterFullData: $, fullDataRowIdData: N, fullAllDataRowIdData: H } = o, G = d.value, { rowField: j, parentField: oe, mapChildrenField: K } = G,
|
|
11255
|
+
const { tableFullTreeData: y, afterFullData: $, fullDataRowIdData: N, fullAllDataRowIdData: H } = o, G = d.value, { rowField: j, parentField: oe, mapChildrenField: K } = G, _ = G.children || G.childrenField, ge = w ? "push" : "unshift";
|
|
11256
11256
|
x.forEach((ae) => {
|
|
11257
11257
|
const F = ae[oe], W = St(e, ae), k = F ? i.findTree(y, (I) => F === I[j], { children: K }) : null;
|
|
11258
11258
|
if (k) {
|
|
11259
11259
|
const { item: I } = k, Q = H[St(e, I)], ie = Q ? Q.level : 0;
|
|
11260
|
-
let U = I[
|
|
11261
|
-
i.isArray(U) || (U = I[
|
|
11260
|
+
let U = I[_], ee = I[K];
|
|
11261
|
+
i.isArray(U) || (U = I[_] = []), i.isArray(ee) || (ee = I[_] = []), U[ge](ae), ee[ge](ae);
|
|
11262
11262
|
const me = { row: ae, rowid: W, seq: -1, index: -1, _index: -1, $index: -1, items: U, parent: I, level: ie + 1, height: 0 };
|
|
11263
11263
|
N[W] = me, H[W] = me;
|
|
11264
11264
|
} else {
|
|
@@ -11269,13 +11269,13 @@ n_.add("tableEditModule", {
|
|
|
11269
11269
|
});
|
|
11270
11270
|
}
|
|
11271
11271
|
const g = (x, w, y) => {
|
|
11272
|
-
const { treeConfig: $ } = t, { mergeList: N, editStore: H } = n, { tableFullTreeData: G, afterFullData: j, tableFullData: oe, fullDataRowIdData: K, fullAllDataRowIdData:
|
|
11272
|
+
const { treeConfig: $ } = t, { mergeList: N, editStore: H } = n, { tableFullTreeData: G, afterFullData: j, tableFullData: oe, fullDataRowIdData: K, fullAllDataRowIdData: _ } = o, ge = d.value, { transform: ae, rowField: F, mapChildrenField: W } = ge, k = ge.children || ge.childrenField;
|
|
11273
11273
|
i.isArray(x) || (x = [x]);
|
|
11274
11274
|
const I = Ft(e.defineField(x.map((ie) => Object.assign($ && ae ? { [W]: [], [k]: [] } : {}, ie))));
|
|
11275
11275
|
if (i.eqNull(w))
|
|
11276
11276
|
$ && ae ? h(I, !1) : (I.forEach((ie) => {
|
|
11277
11277
|
const U = St(e, ie), ee = { row: ie, rowid: U, seq: -1, index: -1, _index: -1, $index: -1, items: j, parent: null, level: 0, height: 0 };
|
|
11278
|
-
K[U] = ee,
|
|
11278
|
+
K[U] = ee, _[U] = ee, j.unshift(ie), oe.unshift(ie);
|
|
11279
11279
|
}), N.forEach((ie) => {
|
|
11280
11280
|
const { row: U } = ie;
|
|
11281
11281
|
U > 0 && (ie.row = U + I.length);
|
|
@@ -11283,7 +11283,7 @@ n_.add("tableEditModule", {
|
|
|
11283
11283
|
else if (w === -1)
|
|
11284
11284
|
$ && ae ? h(I, !0) : (I.forEach((ie) => {
|
|
11285
11285
|
const U = St(e, ie), ee = { row: ie, rowid: U, seq: -1, index: -1, _index: -1, $index: -1, items: j, parent: null, level: 0, height: 0 };
|
|
11286
|
-
K[U] = ee,
|
|
11286
|
+
K[U] = ee, _[U] = ee, j.push(ie), oe.push(ie);
|
|
11287
11287
|
}), N.forEach((ie) => {
|
|
11288
11288
|
const { row: U, rowspan: ee } = ie;
|
|
11289
11289
|
U + ee > j.length && (ie.rowspan = ee + I.length);
|
|
@@ -11291,14 +11291,14 @@ n_.add("tableEditModule", {
|
|
|
11291
11291
|
else if ($ && ae) {
|
|
11292
11292
|
const ie = i.findTree(G, (U) => w[F] === U[F], { children: W });
|
|
11293
11293
|
if (ie) {
|
|
11294
|
-
const { parent: U } = ie, ee = U ? U[W] : G, me =
|
|
11294
|
+
const { parent: U } = ie, ee = U ? U[W] : G, me = _[St(e, U)], De = me ? me.level : 0;
|
|
11295
11295
|
if (I.forEach((le, L) => {
|
|
11296
11296
|
const Y = St(e, le);
|
|
11297
11297
|
process.env.NODE_ENV === "development" && le[ge.parentField] && U && le[ge.parentField] !== U[F] && Gt("vxe.error.errProp", [`${ge.parentField}=${le[ge.parentField]}`, `${ge.parentField}=${U[F]}`]), U && (le[ge.parentField] = U[F]);
|
|
11298
11298
|
let te = ie.index + L;
|
|
11299
11299
|
y && (te = te + 1), ee.splice(te, 0, le);
|
|
11300
11300
|
const Ee = { row: le, rowid: Y, seq: -1, index: -1, _index: -1, $index: -1, items: ee, parent: U, level: De + 1, height: 0 };
|
|
11301
|
-
K[Y] = Ee,
|
|
11301
|
+
K[Y] = Ee, _[Y] = Ee;
|
|
11302
11302
|
}), U) {
|
|
11303
11303
|
const le = i.findTree(G, (L) => w[F] === L[F], { children: k });
|
|
11304
11304
|
if (le) {
|
|
@@ -11389,7 +11389,7 @@ n_.add("tableEditModule", {
|
|
|
11389
11389
|
* 如果为空则删除所有
|
|
11390
11390
|
*/
|
|
11391
11391
|
remove(x) {
|
|
11392
|
-
const { treeConfig: w } = t, { mergeList: y, editStore: $, selectCheckboxMaps: N } = n, { tableFullTreeData: H, afterFullData: G, tableFullData: j } = o, oe = c.value, K = d.value, { transform:
|
|
11392
|
+
const { treeConfig: w } = t, { mergeList: y, editStore: $, selectCheckboxMaps: N } = n, { tableFullTreeData: H, afterFullData: G, tableFullData: j } = o, oe = c.value, K = d.value, { transform: _, mapChildrenField: ge } = K, ae = K.children || K.childrenField, { actived: F, removeMaps: W } = $, k = Object.assign({}, $.insertMaps), I = Object.assign({}, n.pendingRowMaps), { checkField: Q } = oe;
|
|
11393
11393
|
let ie = [];
|
|
11394
11394
|
if (x ? i.isArray(x) || (x = [x]) : x = j, x.forEach((U) => {
|
|
11395
11395
|
if (!e.isInsertByRow(U)) {
|
|
@@ -11403,7 +11403,7 @@ n_.add("tableEditModule", {
|
|
|
11403
11403
|
U[me] && delete U[me];
|
|
11404
11404
|
}), n.selectCheckboxMaps = U;
|
|
11405
11405
|
}
|
|
11406
|
-
return j === x ? (x = ie = j.slice(0), o.tableFullData = [], o.afterFullData = [], e.clearMergeCells()) : w &&
|
|
11406
|
+
return j === x ? (x = ie = j.slice(0), o.tableFullData = [], o.afterFullData = [], e.clearMergeCells()) : w && _ ? x.forEach((U) => {
|
|
11407
11407
|
const ee = St(e, U), me = i.findTree(H, (L) => ee === St(e, L), { children: ge });
|
|
11408
11408
|
if (me) {
|
|
11409
11409
|
const L = me.items.splice(me.index, 1);
|
|
@@ -11427,7 +11427,7 @@ n_.add("tableEditModule", {
|
|
|
11427
11427
|
}), F.row && e.findRowIndexOf(x, F.row) > -1 && f.clearEdit(), x.forEach((U) => {
|
|
11428
11428
|
const ee = St(e, U);
|
|
11429
11429
|
k[ee] && delete k[ee], I[ee] && delete I[ee];
|
|
11430
|
-
}), $.insertMaps = k, n.pendingRowMaps = I, e.updateFooter(), e.cacheRowMap(), e.handleTableData(w &&
|
|
11430
|
+
}), $.insertMaps = k, n.pendingRowMaps = I, e.updateFooter(), e.cacheRowMap(), e.handleTableData(w && _), w && _ || e.updateAfterDataIndex(), e.checkSelectionStatus(), n.scrollYLoad && e.updateScrollYSpace(), fe().then(() => (e.updateCellAreas(), e.recalculate())).then(() => ({ row: ie.length ? ie[ie.length - 1] : null, rows: ie }));
|
|
11431
11431
|
},
|
|
11432
11432
|
/**
|
|
11433
11433
|
* 删除复选框选中的数据
|
|
@@ -11585,28 +11585,28 @@ n_.add("tableEditModule", {
|
|
|
11585
11585
|
* 处理激活编辑
|
|
11586
11586
|
*/
|
|
11587
11587
|
handleEdit(x, w) {
|
|
11588
|
-
const { editConfig: y, mouseConfig: $ } = t, { editStore: N, tableColumn: H } = n, G = a.value, { mode: j } = G, { actived: oe, focused: K } = N, { row:
|
|
11589
|
-
if (x.cell = F, F && gn(y) && gn(ae) && !e.isPendingByRow(
|
|
11590
|
-
if (oe.row !==
|
|
11588
|
+
const { editConfig: y, mouseConfig: $ } = t, { editStore: N, tableColumn: H } = n, G = a.value, { mode: j } = G, { actived: oe, focused: K } = N, { row: _, column: ge } = x, { editRender: ae } = ge, F = x.cell || e.getCellElement(_, ge), W = G.beforeEditMethod || G.activeMethod;
|
|
11589
|
+
if (x.cell = F, F && gn(y) && gn(ae) && !e.isPendingByRow(_)) {
|
|
11590
|
+
if (oe.row !== _ || j === "cell" && oe.column !== ge) {
|
|
11591
11591
|
let k = "edit-disabled";
|
|
11592
11592
|
if (!W || W(Object.assign(Object.assign({}, x), { $table: e, $grid: e.xegrid }))) {
|
|
11593
|
-
$ && (f.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(), oe.column && C(w), k = "edit-activated", ge.renderHeight = F.offsetHeight, oe.args = x, oe.row =
|
|
11593
|
+
$ && (f.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(), oe.column && C(w), k = "edit-activated", ge.renderHeight = F.offsetHeight, oe.args = x, oe.row = _, oe.column = ge, j === "row" ? H.forEach((Q) => b(_, Q)) : b(_, ge);
|
|
11594
11594
|
const I = G.afterEditMethod;
|
|
11595
11595
|
fe(() => {
|
|
11596
11596
|
p.handleFocus(x, w), I && I(Object.assign(Object.assign({}, x), { $table: e, $grid: e.xegrid }));
|
|
11597
11597
|
});
|
|
11598
11598
|
}
|
|
11599
11599
|
e.dispatchEvent(k, {
|
|
11600
|
-
row:
|
|
11601
|
-
rowIndex: e.getRowIndex(
|
|
11602
|
-
$rowIndex: e.getVMRowIndex(
|
|
11600
|
+
row: _,
|
|
11601
|
+
rowIndex: e.getRowIndex(_),
|
|
11602
|
+
$rowIndex: e.getVMRowIndex(_),
|
|
11603
11603
|
column: ge,
|
|
11604
11604
|
columnIndex: e.getColumnIndex(ge),
|
|
11605
11605
|
$columnIndex: e.getVMColumnIndex(ge)
|
|
11606
11606
|
}, w), k === "edit-activated" && e.dispatchEvent("edit-actived", {
|
|
11607
|
-
row:
|
|
11608
|
-
rowIndex: e.getRowIndex(
|
|
11609
|
-
$rowIndex: e.getVMRowIndex(
|
|
11607
|
+
row: _,
|
|
11608
|
+
rowIndex: e.getRowIndex(_),
|
|
11609
|
+
$rowIndex: e.getVMRowIndex(_),
|
|
11610
11610
|
column: ge,
|
|
11611
11611
|
columnIndex: e.getColumnIndex(ge),
|
|
11612
11612
|
$columnIndex: e.getVMColumnIndex(ge)
|
|
@@ -11615,7 +11615,7 @@ n_.add("tableEditModule", {
|
|
|
11615
11615
|
const { column: k } = oe;
|
|
11616
11616
|
if ($ && (f.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), k !== ge) {
|
|
11617
11617
|
const { model: I } = k;
|
|
11618
|
-
I.update && ps(
|
|
11618
|
+
I.update && ps(_, k, I.value), e.clearValidate && e.clearValidate(_, ge);
|
|
11619
11619
|
}
|
|
11620
11620
|
ge.renderHeight = F.offsetHeight, oe.args = x, oe.column = ge, setTimeout(() => {
|
|
11621
11621
|
p.handleFocus(x, w);
|
|
@@ -11649,8 +11649,8 @@ n_.add("tableEditModule", {
|
|
|
11649
11649
|
if (oe)
|
|
11650
11650
|
K.select();
|
|
11651
11651
|
else if (na.msie) {
|
|
11652
|
-
const
|
|
11653
|
-
|
|
11652
|
+
const _ = K.createTextRange();
|
|
11653
|
+
_.collapse(!1), _.select();
|
|
11654
11654
|
}
|
|
11655
11655
|
} else
|
|
11656
11656
|
H.autoPos && (y.fixed || e.scrollToRow(w, y));
|
|
@@ -11660,8 +11660,8 @@ n_.add("tableEditModule", {
|
|
|
11660
11660
|
* 处理选中源
|
|
11661
11661
|
*/
|
|
11662
11662
|
handleSelected(x, w) {
|
|
11663
|
-
const { mouseConfig: y } = t, { editStore: $ } = n, N = l.value, H = a.value, { actived: G, selected: j } = $, { row: oe, column: K } = x,
|
|
11664
|
-
return (() => (
|
|
11663
|
+
const { mouseConfig: y } = t, { editStore: $ } = n, N = l.value, H = a.value, { actived: G, selected: j } = $, { row: oe, column: K } = x, _ = y && N.selected;
|
|
11664
|
+
return (() => (_ && (j.row !== oe || j.column !== K) && (G.row !== oe || H.mode === "cell" && G.column !== K) && (C(w), f.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea()), j.args = x, j.row = oe, j.column = K, _ && p.addCellSelectedClass(), e.focus(), w && e.dispatchEvent("cell-selected", x, w)), fe()))();
|
|
11665
11665
|
},
|
|
11666
11666
|
addCellSelectedClass() {
|
|
11667
11667
|
const { editStore: x } = n, { selected: w } = x, { row: y, column: $ } = w;
|
|
@@ -12136,7 +12136,7 @@ a_.add("tableExportModule", {
|
|
|
12136
12136
|
const me = { status: !1 };
|
|
12137
12137
|
return Promise.reject(me);
|
|
12138
12138
|
});
|
|
12139
|
-
},
|
|
12139
|
+
}, _ = (k, I) => {
|
|
12140
12140
|
const { tableFullColumn: Q, _importResolve: ie, _importReject: U } = o;
|
|
12141
12141
|
let ee = { fields: [], rows: [] };
|
|
12142
12142
|
switch (I.type) {
|
|
@@ -12188,7 +12188,7 @@ a_.add("tableExportModule", {
|
|
|
12188
12188
|
ue.onerror = () => {
|
|
12189
12189
|
Gt("vxe.error.notType", [U]), te({ status: !1 });
|
|
12190
12190
|
}, ue.onload = (xe) => {
|
|
12191
|
-
|
|
12191
|
+
_(xe.target.result, Ee);
|
|
12192
12192
|
}, ue.readAsText(k, Ee.encoding || "UTF-8");
|
|
12193
12193
|
});
|
|
12194
12194
|
}
|
|
@@ -12506,14 +12506,14 @@ b_.add("tableKeyboardModule", {
|
|
|
12506
12506
|
return;
|
|
12507
12507
|
const y = w.querySelector(".vxe-table--checkbox-range"), $ = document.onmousemove, N = document.onmouseup, H = h.parentElement, G = e.getCheckboxRecords();
|
|
12508
12508
|
let j = [];
|
|
12509
|
-
const oe = 1, K = x_(v.target, w),
|
|
12509
|
+
const oe = 1, K = x_(v.target, w), _ = K.offsetTop + v.offsetY, ge = K.offsetLeft + v.offsetX, ae = w.scrollTop, F = H.offsetHeight, W = H.getBoundingClientRect(), k = x - W.y;
|
|
12510
12510
|
let I = null, Q = !1, ie = 1;
|
|
12511
12511
|
const U = (le, L) => {
|
|
12512
12512
|
e.dispatchEvent(`checkbox-range-${le}`, { records: e.getCheckboxRecords(), reserves: e.getCheckboxReserveRecords() }, L);
|
|
12513
12513
|
}, ee = (le) => {
|
|
12514
12514
|
const { clientX: L, clientY: Y } = le, te = L - C, Ee = Y - x + (w.scrollTop - ae);
|
|
12515
|
-
let ve = Math.abs(Ee), ue = Math.abs(te), xe =
|
|
12516
|
-
Ee < oe ? (xe += Ee, xe < oe && (xe = oe, ve =
|
|
12515
|
+
let ve = Math.abs(Ee), ue = Math.abs(te), xe = _, je = ge;
|
|
12516
|
+
Ee < oe ? (xe += Ee, xe < oe && (xe = oe, ve = _)) : ve = Math.min(ve, w.scrollHeight - _ - oe), te < oe ? (je += te, ue > ge && (je = oe, ue = ge)) : ue = Math.min(ue, w.clientWidth - ge - oe), y.style.height = `${ve}px`, y.style.width = `${ue}px`, y.style.left = `${je}px`, y.style.top = `${xe}px`, y.style.display = "block";
|
|
12517
12517
|
const Ge = u(le, O, H, W, k, Ee < oe ? -ve : ve);
|
|
12518
12518
|
ve > 10 && Ge.length !== j.length && (j = Ge, le.ctrlKey ? Ge.forEach((ot) => {
|
|
12519
12519
|
e.handleBatchSelectRows([ot], G.indexOf(ot) === -1);
|
|
@@ -12640,10 +12640,10 @@ w_.add("tableValidatorModule", {
|
|
|
12640
12640
|
o._lastCallTime = Date.now(), f = !1, d.clearValidate();
|
|
12641
12641
|
const K = {};
|
|
12642
12642
|
if (x) {
|
|
12643
|
-
const
|
|
12643
|
+
const _ = h && h.length ? h : e.getColumns(), ge = (ae) => {
|
|
12644
12644
|
if (E || !f) {
|
|
12645
12645
|
const F = [];
|
|
12646
|
-
|
|
12646
|
+
_.forEach((W) => {
|
|
12647
12647
|
const k = i.isString(W) ? W : W.field;
|
|
12648
12648
|
(E || !f) && i.has(x, k) && F.push(u.validCellRules("all", ae, W).catch(({ rule: I, rules: Q }) => {
|
|
12649
12649
|
const ie = {
|
|
@@ -12777,7 +12777,7 @@ w_.add("tableValidatorModule", {
|
|
|
12777
12777
|
const { type: G, trigger: j, required: oe, validator: K } = H;
|
|
12778
12778
|
if (D === "all" || !j || D === j)
|
|
12779
12779
|
if (K) {
|
|
12780
|
-
const
|
|
12780
|
+
const _ = {
|
|
12781
12781
|
cellValue: N,
|
|
12782
12782
|
rule: H,
|
|
12783
12783
|
rules: $,
|
|
@@ -12794,18 +12794,18 @@ w_.add("tableValidatorModule", {
|
|
|
12794
12794
|
const ae = C_.get(K);
|
|
12795
12795
|
if (ae) {
|
|
12796
12796
|
const F = ae.tableCellValidatorMethod || ae.cellValidatorMethod;
|
|
12797
|
-
F ? ge = F(
|
|
12797
|
+
F ? ge = F(_) : process.env.NODE_ENV === "development" && un("vxe.error.notValidators", [K]);
|
|
12798
12798
|
} else
|
|
12799
12799
|
process.env.NODE_ENV === "development" && Gt("vxe.error.notValidators", [K]);
|
|
12800
12800
|
} else
|
|
12801
|
-
ge = K(
|
|
12801
|
+
ge = K(_);
|
|
12802
12802
|
ge && (i.isError(ge) ? (f = !0, w.push(new ei({ type: "custom", trigger: j, content: ge.message, rule: new ei(H) }))) : ge.catch && y.push(ge.catch((ae) => {
|
|
12803
12803
|
f = !0, w.push(new ei({ type: "custom", trigger: j, content: ae && ae.message ? ae.message : H.content || H.message, rule: new ei(H) }));
|
|
12804
12804
|
})));
|
|
12805
12805
|
} else {
|
|
12806
|
-
const
|
|
12806
|
+
const _ = G === "array", ge = i.isArray(N);
|
|
12807
12807
|
let ae = !0;
|
|
12808
|
-
|
|
12808
|
+
_ || ge ? ae = !ge || !N.length : i.isString(N) ? ae = ds(N.trim()) : ae = ds(N), (oe ? ae || O(H, N) : !ae && O(H, N)) && (f = !0, w.push(new ei(H)));
|
|
12809
12809
|
}
|
|
12810
12810
|
});
|
|
12811
12811
|
}
|
|
@@ -12913,8 +12913,8 @@ we.hooks.add("tableCustomModule", {
|
|
|
12913
12913
|
}, p = () => {
|
|
12914
12914
|
const { customColumnList: g, customStore: E } = t, { oldSortMaps: C, oldFixedMaps: x, oldVisibleMaps: w } = E, y = o.value, { allowVisible: $, allowSort: N, allowFixed: H, allowResizable: G } = y;
|
|
12915
12915
|
return i.eachTree(g, (j) => {
|
|
12916
|
-
const oe = j.getKey(), K = !!w[oe],
|
|
12917
|
-
$ && (j.renderVisible = K, j.visible = K), H && (j.renderFixed =
|
|
12916
|
+
const oe = j.getKey(), K = !!w[oe], _ = x[oe] || "";
|
|
12917
|
+
$ && (j.renderVisible = K, j.visible = K), H && (j.renderFixed = _, j.fixed = _), N && (j.renderSortNumber = C[oe] || 0), G && (j.renderResizeWidth = j.renderWidth);
|
|
12918
12918
|
}, { children: "children" }), fe();
|
|
12919
12919
|
}, b = (g) => {
|
|
12920
12920
|
const { customStore: E } = t, { customColumnList: C } = t, x = o.value, { checkMethod: w, visibleMethod: y } = x, $ = !!g;
|
|
@@ -13636,7 +13636,7 @@ const Py = rd, { getConfig: Hr, getIcon: Js, getI18n: Yl, renderer: ih, commands
|
|
|
13636
13636
|
}
|
|
13637
13637
|
p.dispatchEvent("tool-click", xe, L);
|
|
13638
13638
|
}
|
|
13639
|
-
},
|
|
13639
|
+
}, _ = () => {
|
|
13640
13640
|
if (y()) {
|
|
13641
13641
|
const { connectTable: L } = d, Y = L;
|
|
13642
13642
|
Y && Y.openImport();
|
|
@@ -13761,7 +13761,7 @@ const Py = rd, { getConfig: Hr, getIcon: Js, getI18n: Yl, renderer: ih, commands
|
|
|
13761
13761
|
circle: !0,
|
|
13762
13762
|
icon: L.icon || Js().TOOLBAR_TOOLS_IMPORT,
|
|
13763
13763
|
title: Yl("vxe.toolbar.import"),
|
|
13764
|
-
onClick:
|
|
13764
|
+
onClick: _
|
|
13765
13765
|
}) : Ve();
|
|
13766
13766
|
}, ie = () => {
|
|
13767
13767
|
const L = h.value;
|
|
@@ -13904,13 +13904,13 @@ const N_ = sd, { getConfig: $s, getI18n: Xl, commands: A_, hooks: L_, useFns: __
|
|
|
13904
13904
|
const y = A(() => i.merge({}, i.clone($s().grid.proxyConfig, !0), e.proxyConfig)), $ = A(() => {
|
|
13905
13905
|
const q = y.value;
|
|
13906
13906
|
return i.isBoolean(q.message) ? q.message : q.showResponseMsg;
|
|
13907
|
-
}), N = A(() => y.value.showActiveMsg), H = A(() => Object.assign({}, $s().grid.pagerConfig, e.pagerConfig)), G = A(() => Object.assign({}, $s().grid.formConfig, e.formConfig)), j = A(() => Object.assign({}, $s().grid.toolbarConfig, e.toolbarConfig)), oe = A(() => Object.assign({}, $s().grid.zoomConfig, e.zoomConfig)), K = A(() => u.isZMax ? { zIndex: u.tZindex } : null),
|
|
13907
|
+
}), N = A(() => y.value.showActiveMsg), H = A(() => Object.assign({}, $s().grid.pagerConfig, e.pagerConfig)), G = A(() => Object.assign({}, $s().grid.formConfig, e.formConfig)), j = A(() => Object.assign({}, $s().grid.toolbarConfig, e.toolbarConfig)), oe = A(() => Object.assign({}, $s().grid.zoomConfig, e.zoomConfig)), K = A(() => u.isZMax ? { zIndex: u.tZindex } : null), _ = A(() => {
|
|
13908
13908
|
const q = {}, R = e;
|
|
13909
13909
|
return z_.forEach((J) => {
|
|
13910
13910
|
q[J] = R[J];
|
|
13911
13911
|
}), q;
|
|
13912
13912
|
}), ge = A(() => {
|
|
13913
|
-
const { seqConfig: q, pagerConfig: R, loading: J, editConfig: V, proxyConfig: Z } = e, { isZMax: be, tableLoading: Se, tablePage: $e, tableData: Be } = u, et =
|
|
13913
|
+
const { seqConfig: q, pagerConfig: R, loading: J, editConfig: V, proxyConfig: Z } = e, { isZMax: be, tableLoading: Se, tablePage: $e, tableData: Be } = u, et = _.value, Ze = y.value, Je = H.value, xt = Object.assign({}, et);
|
|
13914
13914
|
return be && (et.maxHeight ? xt.maxHeight = "100%" : xt.height = "100%"), Z && gn(Ze) && (xt.loading = J || Se, xt.data = Be, R && Ze.seq && gn(Je) && (xt.seqConfig = Object.assign({}, q, { startIndex: ($e.currentPage - 1) * $e.pageSize }))), V && (xt.editConfig = Object.assign({}, V)), xt;
|
|
13915
13915
|
}), ae = A(() => {
|
|
13916
13916
|
const { layouts: q } = e;
|
|
@@ -20289,9 +20289,9 @@ const ol = st({
|
|
|
20289
20289
|
const b = () => {
|
|
20290
20290
|
const { tipTarget: G, tipStore: j } = a;
|
|
20291
20291
|
if (G) {
|
|
20292
|
-
const { scrollTop: oe, scrollLeft: K, visibleWidth:
|
|
20292
|
+
const { scrollTop: oe, scrollLeft: K, visibleWidth: _ } = Ml(), { top: ge, left: ae } = js(G), F = d.value, W = 6, k = F.offsetHeight, I = F.offsetWidth;
|
|
20293
20293
|
let Q = ae, ie = ge - k - W;
|
|
20294
|
-
Q = Math.max(W, ae + Math.floor((G.offsetWidth - I) / 2)), Q + I + W > K +
|
|
20294
|
+
Q = Math.max(W, ae + Math.floor((G.offsetWidth - I) / 2)), Q + I + W > K + _ && (Q = K + _ - I - W), ge - k < oe + W && (j.placement = "bottom", ie = ge + G.offsetHeight + W), j.style.top = `${ie}px`, j.style.left = `${Q}px`, j.arrowStyle.left = `${ae - Q + G.offsetWidth / 2}px`;
|
|
20295
20295
|
}
|
|
20296
20296
|
}, v = (G) => {
|
|
20297
20297
|
G !== a.visible && (a.visible = G, a.isUpdate = !0, o("update:modelValue", G));
|
|
@@ -20324,8 +20324,8 @@ const ol = st({
|
|
|
20324
20324
|
if (!n.content && (j === "" || i.eqNull(j)))
|
|
20325
20325
|
return fe();
|
|
20326
20326
|
if (G) {
|
|
20327
|
-
const { showDelayTip: K } = c, { trigger:
|
|
20328
|
-
if (a.tipActive = !0, a.tipTarget = G, a.tipContent = j, ge &&
|
|
20327
|
+
const { showDelayTip: K } = c, { trigger: _, enterDelay: ge } = e;
|
|
20328
|
+
if (a.tipActive = !0, a.tipTarget = G, a.tipContent = j, ge && _ === "hover")
|
|
20329
20329
|
K && K();
|
|
20330
20330
|
else
|
|
20331
20331
|
return x();
|
|
@@ -20388,7 +20388,7 @@ const ol = st({
|
|
|
20388
20388
|
class: "vxe-table--tooltip-content"
|
|
20389
20389
|
}, `${j}`);
|
|
20390
20390
|
}, H = () => {
|
|
20391
|
-
const { popupClassName: G, theme: j, isArrow: oe, enterable: K } = e, { tipActive:
|
|
20391
|
+
const { popupClassName: G, theme: j, isArrow: oe, enterable: K } = e, { tipActive: _, visible: ge, tipStore: ae } = a, F = n.default, W = l.value;
|
|
20392
20392
|
let k;
|
|
20393
20393
|
return K && (k = {
|
|
20394
20394
|
onMouseenter: E,
|
|
@@ -20399,7 +20399,7 @@ const ol = st({
|
|
|
20399
20399
|
"is--enterable": K,
|
|
20400
20400
|
"is--visible": ge,
|
|
20401
20401
|
"is--arrow": oe,
|
|
20402
|
-
"is--active":
|
|
20402
|
+
"is--active": _
|
|
20403
20403
|
}], style: ae.style }, k), [
|
|
20404
20404
|
N(),
|
|
20405
20405
|
r("div", {
|
|
@@ -20424,8 +20424,8 @@ const ol = st({
|
|
|
20424
20424
|
a.tipContent = j, a.tipZindex = Sr(), i.arrayEach(oe.children, (ge, ae) => {
|
|
20425
20425
|
ae > 1 && (K.insertBefore(ge, oe), a.target || (a.target = ge));
|
|
20426
20426
|
}), K.removeChild(oe);
|
|
20427
|
-
const { target:
|
|
20428
|
-
|
|
20427
|
+
const { target: _ } = a;
|
|
20428
|
+
_ && (G === "hover" ? (_.onmouseenter = h, _.onmouseleave = g) : G === "click" && (_.onclick = D)), e.modelValue && y(_ || $(), j);
|
|
20429
20429
|
}
|
|
20430
20430
|
}
|
|
20431
20431
|
});
|
|
@@ -20583,7 +20583,7 @@ const ol = st({
|
|
|
20583
20583
|
return ue || (d ? d.props.circle : !1);
|
|
20584
20584
|
}), j = A(() => Object.assign({}, e.prefixTooltip)), oe = A(() => Object.assign({}, e.suffixTooltip)), K = () => {
|
|
20585
20585
|
b.panelIndex < Br() && (b.panelIndex = Sr());
|
|
20586
|
-
},
|
|
20586
|
+
}, _ = () => fe().then(() => {
|
|
20587
20587
|
const { placement: ue } = e, { panelIndex: xe } = b, je = D.value, Ge = h.value, ot = x.value;
|
|
20588
20588
|
if (Ge && je) {
|
|
20589
20589
|
const lt = je.offsetHeight, Ke = je.offsetWidth, nt = Ge.offsetHeight, rt = Ge.offsetWidth, ft = 5, ht = {
|
|
@@ -20614,8 +20614,8 @@ const ol = st({
|
|
|
20614
20614
|
}, W = () => {
|
|
20615
20615
|
const ue = h.value;
|
|
20616
20616
|
ue && (ue.dataset.active = "Y", b.isAniVisible = !0, setTimeout(() => {
|
|
20617
|
-
ue.dataset.active === "Y" && (b.visiblePanel = !0, K(),
|
|
20618
|
-
b.visiblePanel &&
|
|
20617
|
+
ue.dataset.active === "Y" && (b.visiblePanel = !0, K(), _(), setTimeout(() => {
|
|
20618
|
+
b.visiblePanel && _();
|
|
20619
20619
|
}, 50));
|
|
20620
20620
|
}, 20));
|
|
20621
20621
|
}, k = (ue) => {
|
|
@@ -21053,12 +21053,12 @@ const Bc = st({
|
|
|
21053
21053
|
be >= 6 ? be = 0 : be++, V.push(be);
|
|
21054
21054
|
}
|
|
21055
21055
|
return V;
|
|
21056
|
-
}),
|
|
21056
|
+
}), _ = A(() => v.value ? K.value.map((be) => ({
|
|
21057
21057
|
value: be,
|
|
21058
21058
|
label: Fe(`vxe.input.date.weeks.w${be}`)
|
|
21059
21059
|
})) : []), ge = A(() => {
|
|
21060
21060
|
if (v.value) {
|
|
21061
|
-
const Z =
|
|
21061
|
+
const Z = _.value;
|
|
21062
21062
|
return [{ label: Fe("vxe.input.date.weeks.w") }].concat(Z);
|
|
21063
21063
|
}
|
|
21064
21064
|
return [];
|
|
@@ -21249,7 +21249,7 @@ const Bc = st({
|
|
|
21249
21249
|
}
|
|
21250
21250
|
return `${Z || ""}`;
|
|
21251
21251
|
}, Te = () => {
|
|
21252
|
-
const { multiple: V } = e, { datePanelType: Z, datePanelValue: be } = l, Se = w.value, $e =
|
|
21252
|
+
const { multiple: V } = e, { datePanelType: Z, datePanelValue: be } = l, Se = w.value, $e = _.value, Be = ie.value, et = g.value, Ze = "yyyyMMdd";
|
|
21253
21253
|
return [
|
|
21254
21254
|
r("table", {
|
|
21255
21255
|
class: `vxe-calendar--date-${Z}-view`,
|
|
@@ -21887,12 +21887,12 @@ const zc = st({
|
|
|
21887
21887
|
modelValue: ae
|
|
21888
21888
|
})
|
|
21889
21889
|
]);
|
|
21890
|
-
},
|
|
21890
|
+
}, _ = Me(0);
|
|
21891
21891
|
at(() => e.options ? e.options.length : -1, () => {
|
|
21892
|
-
|
|
21892
|
+
_.value++;
|
|
21893
21893
|
}), at(() => e.options, () => {
|
|
21894
|
-
|
|
21895
|
-
}), at(
|
|
21894
|
+
_.value++;
|
|
21895
|
+
}), at(_, () => {
|
|
21896
21896
|
D(e.options);
|
|
21897
21897
|
});
|
|
21898
21898
|
const ge = Me(0);
|
|
@@ -22271,12 +22271,12 @@ const Hc = st({
|
|
|
22271
22271
|
}, h = (G) => {
|
|
22272
22272
|
const { activeNames: j } = c, oe = {};
|
|
22273
22273
|
G && G.length && G.forEach((K) => {
|
|
22274
|
-
const { name:
|
|
22275
|
-
if (
|
|
22276
|
-
const ae = j.includes(
|
|
22277
|
-
oe[`${
|
|
22274
|
+
const { name: _, preload: ge } = K || {};
|
|
22275
|
+
if (_) {
|
|
22276
|
+
const ae = j.includes(_);
|
|
22277
|
+
oe[`${_}`] = {
|
|
22278
22278
|
loading: !1
|
|
22279
|
-
}, ae && D(
|
|
22279
|
+
}, ae && D(_), ge && (ae || j.push(_));
|
|
22280
22280
|
}
|
|
22281
22281
|
}), c.activeNames = j ? j.slice(0) : [], c.cachePaneMaps = oe;
|
|
22282
22282
|
}, E = {
|
|
@@ -22286,22 +22286,22 @@ const Hc = st({
|
|
|
22286
22286
|
}, C = (G, j) => G && (i.isString(G) && (G = o[G] || null), i.isFunction(G)) ? Rt(G(j)) : [], x = (G, j) => {
|
|
22287
22287
|
const { activeNames: oe } = c, { name: K } = j;
|
|
22288
22288
|
if (K) {
|
|
22289
|
-
const
|
|
22290
|
-
|
|
22289
|
+
const _ = oe.indexOf(K);
|
|
22290
|
+
_ === -1 ? oe.push(K) : oe.splice(_, 1), D(K);
|
|
22291
22291
|
}
|
|
22292
22292
|
};
|
|
22293
22293
|
Object.assign(v, E, {});
|
|
22294
22294
|
const y = (G) => {
|
|
22295
22295
|
const { activeNames: j, initNames: oe } = c, K = p.value;
|
|
22296
|
-
return G.map((
|
|
22297
|
-
const { icon: ge, name: ae, title: F, slots: W } =
|
|
22296
|
+
return G.map((_) => {
|
|
22297
|
+
const { icon: ge, name: ae, title: F, slots: W } = _, k = W ? W.title : null, I = W ? W.default : null, Q = ae && j.includes(ae);
|
|
22298
22298
|
return r("div", {
|
|
22299
22299
|
class: "vxe-collapse-item"
|
|
22300
22300
|
}, [
|
|
22301
22301
|
r("div", {
|
|
22302
22302
|
class: "vxe-collapse--item-header",
|
|
22303
22303
|
onClick(ie) {
|
|
22304
|
-
x(ie,
|
|
22304
|
+
x(ie, _);
|
|
22305
22305
|
}
|
|
22306
22306
|
}, [
|
|
22307
22307
|
K.showIcon ? r("span", {
|
|
@@ -22336,7 +22336,7 @@ const Hc = st({
|
|
|
22336
22336
|
]);
|
|
22337
22337
|
});
|
|
22338
22338
|
}, $ = () => {
|
|
22339
|
-
const { padding: G } = e, j = l.value, oe = u.value, K = f.value,
|
|
22339
|
+
const { padding: G } = e, j = l.value, oe = u.value, K = f.value, _ = o.default, ge = _ ? K : oe;
|
|
22340
22340
|
return r("div", {
|
|
22341
22341
|
ref: a,
|
|
22342
22342
|
class: ["vxe-collapse", {
|
|
@@ -22346,7 +22346,7 @@ const Hc = st({
|
|
|
22346
22346
|
}, [
|
|
22347
22347
|
r("div", {
|
|
22348
22348
|
class: "vxe-collapse-slots"
|
|
22349
|
-
},
|
|
22349
|
+
}, _ ? _({}) : []),
|
|
22350
22350
|
y(ge)
|
|
22351
22351
|
]);
|
|
22352
22352
|
};
|
|
@@ -22609,8 +22609,8 @@ const Kr = st({
|
|
|
22609
22609
|
}), b = A(() => {
|
|
22610
22610
|
const { format: G } = e, j = p.value;
|
|
22611
22611
|
let oe = "";
|
|
22612
|
-
return G && (oe = `${G}`, i.each(j, (K,
|
|
22613
|
-
oe = oe.replace(new RegExp(
|
|
22612
|
+
return G && (oe = `${G}`, i.each(j, (K, _) => {
|
|
22613
|
+
oe = oe.replace(new RegExp(_, "g"), i.padStart(K, _.length, "0"));
|
|
22614
22614
|
})), oe;
|
|
22615
22615
|
}), v = A(() => Object.assign({}, e.prefixConfig, re().countdown.prefixConfig)), O = A(() => Object.assign({}, e.suffixConfig, re().countdown.suffixConfig)), D = {
|
|
22616
22616
|
computeSize: a
|
|
@@ -22648,28 +22648,28 @@ const Kr = st({
|
|
|
22648
22648
|
key: "format",
|
|
22649
22649
|
class: "vxe-countdown--content-format"
|
|
22650
22650
|
}, K)
|
|
22651
|
-
] : j.map((
|
|
22651
|
+
] : j.map((_, ge) => r("div", {
|
|
22652
22652
|
key: ge,
|
|
22653
22653
|
class: "vxe-countdown--content-item"
|
|
22654
22654
|
}, [
|
|
22655
22655
|
r("div", {
|
|
22656
22656
|
class: "vxe-countdown--content-num"
|
|
22657
|
-
}, `${oe[
|
|
22657
|
+
}, `${oe[_] || 0}`),
|
|
22658
22658
|
r("div", {
|
|
22659
22659
|
class: "vxe-countdown--content-unit"
|
|
22660
|
-
}, Fe(`vxe.countdown.formats.${
|
|
22660
|
+
}, Fe(`vxe.countdown.formats.${_}`))
|
|
22661
22661
|
]));
|
|
22662
22662
|
}, H = () => {
|
|
22663
|
-
const { prefixConfig: G, suffixConfig: j } = e, { currNum: oe } = c, K = a.value,
|
|
22663
|
+
const { prefixConfig: G, suffixConfig: j } = e, { currNum: oe } = c, K = a.value, _ = p.value, ge = v.value, ae = O.value, F = n.prefix, W = n.suffix, k = n.default;
|
|
22664
22664
|
return r("div", {
|
|
22665
22665
|
ref: l,
|
|
22666
|
-
class: ["vxe-countdown",
|
|
22666
|
+
class: ["vxe-countdown", _.done ? "is--progress" : "is-end", {
|
|
22667
22667
|
[`size--${K}`]: K
|
|
22668
22668
|
}]
|
|
22669
22669
|
}, [
|
|
22670
22670
|
F || G ? r("div", {
|
|
22671
22671
|
class: "vxe-countdown--prefix"
|
|
22672
|
-
}, F ? Rt(F({ currentValue: oe, diffConf:
|
|
22672
|
+
}, F ? Rt(F({ currentValue: oe, diffConf: _ })) : [
|
|
22673
22673
|
r(Kr, {
|
|
22674
22674
|
content: ge.content,
|
|
22675
22675
|
icon: ge.icon,
|
|
@@ -22678,10 +22678,10 @@ const Kr = st({
|
|
|
22678
22678
|
]) : Ve(),
|
|
22679
22679
|
r("div", {
|
|
22680
22680
|
class: "vxe-countdown--content"
|
|
22681
|
-
}, k ? Rt(k({ currentValue: oe, diffConf:
|
|
22681
|
+
}, k ? Rt(k({ currentValue: oe, diffConf: _ })) : N()),
|
|
22682
22682
|
W || j ? r("div", {
|
|
22683
22683
|
class: "vxe-countdown--suffix"
|
|
22684
|
-
}, W ? Rt(W({ currentValue: oe, diffConf:
|
|
22684
|
+
}, W ? Rt(W({ currentValue: oe, diffConf: _ })) : [
|
|
22685
22685
|
r(Kr, {
|
|
22686
22686
|
content: ae.content,
|
|
22687
22687
|
icon: ae.icon,
|
|
@@ -22864,17 +22864,17 @@ const oa = st({
|
|
|
22864
22864
|
}), N = A(() => {
|
|
22865
22865
|
const { type: de } = e;
|
|
22866
22866
|
return de === "time" || de === "datetime";
|
|
22867
|
-
}), H = A(() => N.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), G = A(() => e.clearable), j = A(() => e.startDate ? i.toStringDate(e.startDate) : null), oe = A(() => e.endDate ? i.toStringDate(e.endDate) : null), K = A(() => ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1),
|
|
22867
|
+
}), H = A(() => N.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), G = A(() => e.clearable), j = A(() => e.startDate ? i.toStringDate(e.startDate) : null), oe = A(() => e.endDate ? i.toStringDate(e.endDate) : null), K = A(() => ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), _ = A(() => {
|
|
22868
22868
|
const { modelValue: de, multiple: ze } = e, Qe = H.value, Ct = F.value;
|
|
22869
22869
|
return ze && de && Qe ? i.toValueString(de).split(",").map((It) => {
|
|
22870
22870
|
const Mt = Te(It, Ct);
|
|
22871
22871
|
return i.isValidDate(Mt), Mt;
|
|
22872
22872
|
}) : [];
|
|
22873
22873
|
}), ge = A(() => {
|
|
22874
|
-
const de =
|
|
22874
|
+
const de = _.value, ze = F.value;
|
|
22875
22875
|
return de.map((Qe) => i.toDateString(Qe, ze));
|
|
22876
22876
|
}), ae = A(() => {
|
|
22877
|
-
const de =
|
|
22877
|
+
const de = _.value, ze = U.value;
|
|
22878
22878
|
return de.map((Qe) => i.toDateString(Qe, ze)).join(", ");
|
|
22879
22879
|
}), F = A(() => {
|
|
22880
22880
|
const { type: de, valueFormat: ze } = e;
|
|
@@ -23130,7 +23130,7 @@ const oa = st({
|
|
|
23130
23130
|
if (et(de), Qe) {
|
|
23131
23131
|
const it = ge.value;
|
|
23132
23132
|
if (It) {
|
|
23133
|
-
const Bt = [...
|
|
23133
|
+
const Bt = [..._.value], ln = [], bn = i.findIndexOf(Bt, ($n) => i.isDateSame(de, $n, "yyyyMMdd"));
|
|
23134
23134
|
bn === -1 ? Bt.push(de) : Bt.splice(bn, 1), Bt.forEach(($n) => {
|
|
23135
23135
|
$n && (Ct && ($n.setHours(Ct.getHours()), $n.setMinutes(Ct.getMinutes()), $n.setSeconds(Ct.getSeconds())), ln.push($n));
|
|
23136
23136
|
}), M(ln.map(($n) => i.toDateString($n, Mt)).join(","), { type: "update" });
|
|
@@ -23230,7 +23230,7 @@ const oa = st({
|
|
|
23230
23230
|
if (de) {
|
|
23231
23231
|
const Mt = ge.value;
|
|
23232
23232
|
if (Ct) {
|
|
23233
|
-
const Ht = [...
|
|
23233
|
+
const Ht = [..._.value], Wt = [];
|
|
23234
23234
|
Ht.forEach((it) => {
|
|
23235
23235
|
it && (ze && (it.setHours(ze.getHours()), it.setMinutes(ze.getMinutes()), it.setSeconds(ze.getSeconds())), Wt.push(it));
|
|
23236
23236
|
}), M(Wt.map((it) => i.toDateString(it, It)).join(","), { type: "update" });
|
|
@@ -23380,7 +23380,7 @@ const oa = st({
|
|
|
23380
23380
|
}
|
|
23381
23381
|
return ze;
|
|
23382
23382
|
}, Mr = () => {
|
|
23383
|
-
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = L.value, Mt = Ge.value, Ht =
|
|
23383
|
+
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = L.value, Mt = Ge.value, Ht = _.value, Wt = "yyyyMMdd";
|
|
23384
23384
|
return [
|
|
23385
23385
|
r("table", {
|
|
23386
23386
|
class: `vxe-date-picker--date-${ze}-view`,
|
|
@@ -23407,7 +23407,7 @@ const oa = st({
|
|
|
23407
23407
|
])
|
|
23408
23408
|
];
|
|
23409
23409
|
}, cr = () => {
|
|
23410
|
-
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = Y.value, Mt = ot.value, Ht =
|
|
23410
|
+
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = Y.value, Mt = ot.value, Ht = _.value, Wt = "yyyyMMdd";
|
|
23411
23411
|
return [
|
|
23412
23412
|
r("table", {
|
|
23413
23413
|
class: `vxe-date-picker--date-${ze}-view`,
|
|
@@ -23438,7 +23438,7 @@ const oa = st({
|
|
|
23438
23438
|
])
|
|
23439
23439
|
];
|
|
23440
23440
|
}, zr = () => {
|
|
23441
|
-
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = xe.value, Mt =
|
|
23441
|
+
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = xe.value, Mt = _.value, Ht = "yyyyMM";
|
|
23442
23442
|
return [
|
|
23443
23443
|
r("table", {
|
|
23444
23444
|
class: `vxe-date-picker--date-${ze}-view`,
|
|
@@ -23462,7 +23462,7 @@ const oa = st({
|
|
|
23462
23462
|
])
|
|
23463
23463
|
];
|
|
23464
23464
|
}, nr = () => {
|
|
23465
|
-
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = ve.value, Mt =
|
|
23465
|
+
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = ve.value, Mt = _.value, Ht = "yyyyq";
|
|
23466
23466
|
return [
|
|
23467
23467
|
r("table", {
|
|
23468
23468
|
class: `vxe-date-picker--date-${ze}-view`,
|
|
@@ -23486,7 +23486,7 @@ const oa = st({
|
|
|
23486
23486
|
])
|
|
23487
23487
|
];
|
|
23488
23488
|
}, ur = () => {
|
|
23489
|
-
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = te.value, Mt =
|
|
23489
|
+
const { multiple: de } = e, { datePanelType: ze, datePanelValue: Qe } = p, Ct = W.value, It = te.value, Mt = _.value, Ht = "yyyy";
|
|
23490
23490
|
return [
|
|
23491
23491
|
r("table", {
|
|
23492
23492
|
class: `vxe-date-picker--date-${ze}-view`,
|
|
@@ -24044,7 +24044,7 @@ const Dl = [], Kc = st({
|
|
|
24044
24044
|
};
|
|
24045
24045
|
};
|
|
24046
24046
|
Object.assign(O, N, {});
|
|
24047
|
-
const
|
|
24047
|
+
const _ = () => {
|
|
24048
24048
|
const { slots: I = {}, showClose: Q, title: ie } = e, U = n.title || I.title, ee = n.corner || I.corner;
|
|
24049
24049
|
return [
|
|
24050
24050
|
r("div", {
|
|
@@ -24073,7 +24073,7 @@ const Dl = [], Kc = st({
|
|
|
24073
24073
|
class: ["vxe-drawer--header", {
|
|
24074
24074
|
"is--ellipsis": Q
|
|
24075
24075
|
}]
|
|
24076
|
-
}, ie ? Rt(ie({ $drawer: O })) :
|
|
24076
|
+
}, ie ? Rt(ie({ $drawer: O })) : _()) : Qn();
|
|
24077
24077
|
}, ae = () => {
|
|
24078
24078
|
const { slots: I = {}, content: Q } = e, ie = n.default || I.default, U = n.left || I.left, ee = n.right || I.right;
|
|
24079
24079
|
return r("div", {
|
|
@@ -24456,7 +24456,7 @@ function gv(e) {
|
|
|
24456
24456
|
]);
|
|
24457
24457
|
}
|
|
24458
24458
|
const Lp = (e, t, n) => {
|
|
24459
|
-
const o = e.props, s = e.reactData, { data: l, rules: a, readonly: c, disabled: d, span: u, titleBackground: f, titleBold: p, titleColon: b, titleAsterisk: v, vertical: O, padding: D } = o, { collapseAll: h } = s, { folding: g, field: E, itemRender: C, showError: x, className: w, vertical: y, padding: $, children: N, showContent: H } = t, G = Ar(C) ? Mn.get(C.name) : null, j = G ? G.formItemClassName || G.itemClassName : "", oe = t.span || u, K = i.eqNull($) ? D : $,
|
|
24459
|
+
const o = e.props, s = e.reactData, { data: l, rules: a, readonly: c, disabled: d, span: u, titleBackground: f, titleBold: p, titleColon: b, titleAsterisk: v, vertical: O, padding: D } = o, { collapseAll: h } = s, { folding: g, field: E, itemRender: C, showError: x, className: w, vertical: y, padding: $, children: N, showContent: H } = t, G = Ar(C) ? Mn.get(C.name) : null, j = G ? G.formItemClassName || G.itemClassName : "", oe = t.span || u, K = i.eqNull($) ? D : $, _ = i.eqNull(y) ? O : y, ge = i.eqNull(t.titleBackground) ? f : t.titleBackground, ae = i.eqNull(t.titleBold) ? p : t.titleBold, F = i.eqNull(t.titleColon) ? b : t.titleColon, W = i.eqNull(t.titleAsterisk) ? v : t.titleAsterisk, k = { data: l, disabled: d, readonly: c, field: E, property: E, item: t, $form: e, $grid: e.xegrid }, I = N && N.length > 0;
|
|
24460
24460
|
let Q = !1, ie = !1;
|
|
24461
24461
|
if (!c && a) {
|
|
24462
24462
|
const U = a[E];
|
|
@@ -24474,7 +24474,7 @@ const Lp = (e, t, n) => {
|
|
|
24474
24474
|
"is--tbg": ge,
|
|
24475
24475
|
"is--bold": ae,
|
|
24476
24476
|
"is--padding": K,
|
|
24477
|
-
"is--vertical":
|
|
24477
|
+
"is--vertical": _,
|
|
24478
24478
|
"is--asterisk": W,
|
|
24479
24479
|
"hide--content": H === !1,
|
|
24480
24480
|
"is--valid": ie,
|
|
@@ -24496,7 +24496,7 @@ const Lp = (e, t, n) => {
|
|
|
24496
24496
|
];
|
|
24497
24497
|
};
|
|
24498
24498
|
function Bp(e, t, n) {
|
|
24499
|
-
const o = e.props, { data: s, readonly: l, disabled: a, titleAlign: c, titleWidth: d, titleOverflow: u, vertical: f } = o, { slots: p, title: b, field: v, itemRender: O, titleOverflow: D, vertical: h, showTitle: g, titleClassName: E, titleStyle: C, titlePrefix: x, titleSuffix: w, children: y, showContent: $ } = t, { computeTooltipOpts: N } = e.getComputeMaps(), H = N.value, G = Ar(O) ? Mn.get(O.name) : null, j = G ? G.formItemTitleClassName || G.itemTitleClassName : "", oe = G ? G.formItemTitleStyle || G.itemTitleStyle : null, K = i.eqNull(h) ? f : h,
|
|
24499
|
+
const o = e.props, { data: s, readonly: l, disabled: a, titleAlign: c, titleWidth: d, titleOverflow: u, vertical: f } = o, { slots: p, title: b, field: v, itemRender: O, titleOverflow: D, vertical: h, showTitle: g, titleClassName: E, titleStyle: C, titlePrefix: x, titleSuffix: w, children: y, showContent: $ } = t, { computeTooltipOpts: N } = e.getComputeMaps(), H = N.value, G = Ar(O) ? Mn.get(O.name) : null, j = G ? G.formItemTitleClassName || G.itemTitleClassName : "", oe = G ? G.formItemTitleStyle || G.itemTitleStyle : null, K = i.eqNull(h) ? f : h, _ = i.eqNull(t.titleAlign) ? c : t.titleAlign, ge = K ? null : i.eqNull(t.titleWidth) ? d : t.titleWidth, ae = i.eqNull(D) ? u : D, F = ae === "ellipsis", W = ae === "title", k = ae === !0 || ae === "tooltip", I = W || k || F, Q = { data: s, disabled: a, readonly: l, field: v, property: v, item: t, $form: e, $grid: e.xegrid }, ie = p ? p.title : null, U = p ? p.extra : null, ee = g !== !1 && (b || ie), me = y && y.length > 0, De = [];
|
|
24500
24500
|
x && De.push(x.content || x.message ? r(ol, Object.assign(Object.assign(Object.assign({}, H), x), { content: Un(x.content || x.message) }), {
|
|
24501
24501
|
default: () => mv(x)
|
|
24502
24502
|
}) : mv(x));
|
|
@@ -24517,7 +24517,7 @@ function Bp(e, t, n) {
|
|
|
24517
24517
|
return ee ? r("div", Object.assign({ class: [
|
|
24518
24518
|
n || me ? "vxe-form--group-title" : "",
|
|
24519
24519
|
"vxe-form--item-title",
|
|
24520
|
-
|
|
24520
|
+
_ ? `align--${_}` : "",
|
|
24521
24521
|
I ? "is--ellipsis" : "",
|
|
24522
24522
|
j ? i.isFunction(j) ? j(Q) : j : "",
|
|
24523
24523
|
E ? i.isFunction(E) ? E(Q) : E : ""
|
|
@@ -24814,7 +24814,7 @@ const hv = (e, t) => {
|
|
|
24814
24814
|
}
|
|
24815
24815
|
}
|
|
24816
24816
|
}
|
|
24817
|
-
},
|
|
24817
|
+
}, _ = (L, Y, te) => {
|
|
24818
24818
|
const { data: Ee, rules: ve } = e, ue = {};
|
|
24819
24819
|
return i.isArray(Y) || (Y = [Y]), Promise.all(Y.map((xe) => {
|
|
24820
24820
|
const je = [], Ge = [];
|
|
@@ -24873,7 +24873,7 @@ const hv = (e, t) => {
|
|
|
24873
24873
|
const { data: Ee, rules: ve } = e, ue = b.value, xe = {}, je = [], Ge = [];
|
|
24874
24874
|
return clearTimeout(c.meTimeout), Ee && ve ? (L.forEach((ot) => {
|
|
24875
24875
|
const { field: lt } = ot;
|
|
24876
|
-
lt && !U5(g, ot) && XC(g, ot) && Ge.push(
|
|
24876
|
+
lt && !U5(g, ot) && XC(g, ot) && Ge.push(_(Y || "all", lt).then(() => {
|
|
24877
24877
|
ot.errRule = null;
|
|
24878
24878
|
}).catch((Ke) => {
|
|
24879
24879
|
const nt = Ke[lt];
|
|
@@ -24928,7 +24928,7 @@ const hv = (e, t) => {
|
|
|
24928
24928
|
Y && Y.setActived(!1), L.enterable ? c.stTimeout = setTimeout(() => {
|
|
24929
24929
|
Y = f.value, Y && !Y.isActived() && k();
|
|
24930
24930
|
}, L.leaveDelay) : k();
|
|
24931
|
-
}, ie = (L, Y, te) => Y ?
|
|
24931
|
+
}, ie = (L, Y, te) => Y ? _(L ? ["blur"].includes(L.type) ? "blur" : "change" : "all", Y, te).then(() => {
|
|
24932
24932
|
H(Y);
|
|
24933
24933
|
}).catch((Ee) => {
|
|
24934
24934
|
const ve = Ee[Y], ue = w(Y);
|
|
@@ -25823,7 +25823,7 @@ const n9 = st({
|
|
|
25823
25823
|
j(-1);
|
|
25824
25824
|
}, K = () => {
|
|
25825
25825
|
j(1);
|
|
25826
|
-
},
|
|
25826
|
+
}, _ = (ee) => {
|
|
25827
25827
|
const me = v.value, De = O.value;
|
|
25828
25828
|
return fe().then(() => {
|
|
25829
25829
|
const le = c.value;
|
|
@@ -25851,7 +25851,7 @@ const n9 = st({
|
|
|
25851
25851
|
return fe();
|
|
25852
25852
|
}, ae = {
|
|
25853
25853
|
dispatchEvent: x,
|
|
25854
|
-
scrollToTab:
|
|
25854
|
+
scrollToTab: _,
|
|
25855
25855
|
prev() {
|
|
25856
25856
|
return ge(!1);
|
|
25857
25857
|
},
|
|
@@ -26000,7 +26000,7 @@ const n9 = st({
|
|
|
26000
26000
|
at(() => e.modelValue, (ee) => {
|
|
26001
26001
|
w(ee, null), d.activeName = ee;
|
|
26002
26002
|
}), at(() => d.activeName, (ee) => {
|
|
26003
|
-
|
|
26003
|
+
_(ee), fe(() => {
|
|
26004
26004
|
d.resizeFlag++;
|
|
26005
26005
|
});
|
|
26006
26006
|
});
|
|
@@ -26295,11 +26295,11 @@ const gs = st({
|
|
|
26295
26295
|
}
|
|
26296
26296
|
}, Object.assign(u, p);
|
|
26297
26297
|
const w = () => {
|
|
26298
|
-
const { openIcon: y, closeIcon: $, openActiveIcon: N, closeActiveIcon: H } = e, G = a.value, j = D.value, oe = v.value, K = O.value,
|
|
26298
|
+
const { openIcon: y, closeIcon: $, openActiveIcon: N, closeActiveIcon: H } = e, G = a.value, j = D.value, oe = v.value, K = O.value, _ = b.value;
|
|
26299
26299
|
return r("div", {
|
|
26300
26300
|
class: ["vxe-switch", j ? "is--on" : "is--off", {
|
|
26301
26301
|
[`size--${G}`]: G,
|
|
26302
|
-
"is--disabled":
|
|
26302
|
+
"is--disabled": _,
|
|
26303
26303
|
"is--animat": c.hasAnimat
|
|
26304
26304
|
}]
|
|
26305
26305
|
}, [
|
|
@@ -26307,7 +26307,7 @@ const gs = st({
|
|
|
26307
26307
|
ref: f,
|
|
26308
26308
|
class: "vxe-switch--button",
|
|
26309
26309
|
type: "button",
|
|
26310
|
-
disabled:
|
|
26310
|
+
disabled: _,
|
|
26311
26311
|
onClick: g,
|
|
26312
26312
|
onFocus: C,
|
|
26313
26313
|
onBlur: x
|
|
@@ -26734,7 +26734,7 @@ const gs = st({
|
|
|
26734
26734
|
}, K = (Te) => {
|
|
26735
26735
|
const { confirmClosable: Oe } = e, M = "confirm";
|
|
26736
26736
|
rt(M, { type: M }, Te), Oe && j(M);
|
|
26737
|
-
},
|
|
26737
|
+
}, _ = (Te) => {
|
|
26738
26738
|
const { cancelClosable: Oe } = e, M = "cancel";
|
|
26739
26739
|
rt(M, { type: M }, Te), Oe && j(M);
|
|
26740
26740
|
}, ge = (Te) => {
|
|
@@ -27113,7 +27113,7 @@ const gs = st({
|
|
|
27113
27113
|
key: 1,
|
|
27114
27114
|
ref: b,
|
|
27115
27115
|
content: e.cancelButtonText || Fe("vxe.button.cancel"),
|
|
27116
|
-
onClick:
|
|
27116
|
+
onClick: _
|
|
27117
27117
|
})), (i.isBoolean(M) ? M : ne === "confirm" || ne === "alert") && J.push(r(Ln, {
|
|
27118
27118
|
key: 2,
|
|
27119
27119
|
ref: p,
|
|
@@ -27400,7 +27400,7 @@ const gs = st({
|
|
|
27400
27400
|
}
|
|
27401
27401
|
}, K = (F) => {
|
|
27402
27402
|
G("submit", F, F.$event);
|
|
27403
|
-
},
|
|
27403
|
+
}, _ = (F) => {
|
|
27404
27404
|
G("reset", F, F.$event);
|
|
27405
27405
|
};
|
|
27406
27406
|
Object.assign(b, oe, {});
|
|
@@ -27423,7 +27423,7 @@ const gs = st({
|
|
|
27423
27423
|
span: 24,
|
|
27424
27424
|
rules: Q,
|
|
27425
27425
|
onSubmit: K,
|
|
27426
|
-
onReset:
|
|
27426
|
+
onReset: _
|
|
27427
27427
|
}), {
|
|
27428
27428
|
default() {
|
|
27429
27429
|
const { readonly: L, disabled: Y } = e;
|
|
@@ -27670,18 +27670,18 @@ const Gn = st({
|
|
|
27670
27670
|
return X === null ? u ? u.props.disabled : !1 : X;
|
|
27671
27671
|
}), oe = A(() => {
|
|
27672
27672
|
const { maxLength: X, maxlength: Ae } = e, Ue = X || Ae;
|
|
27673
|
-
return
|
|
27673
|
+
return _.value && !i.toNumber(Ue) ? 16 : Ue;
|
|
27674
27674
|
}), K = A(() => {
|
|
27675
27675
|
const { type: X } = e;
|
|
27676
27676
|
return X === "time" || X === "datetime";
|
|
27677
|
-
}),
|
|
27677
|
+
}), _ = A(() => ["number", "integer", "float"].indexOf(e.type) > -1), ge = A(() => i.getSize(v.inputValue)), ae = A(() => {
|
|
27678
27678
|
const X = ge.value, Ae = oe.value;
|
|
27679
27679
|
return Ae && X > i.toNumber(Ae);
|
|
27680
27680
|
}), F = A(() => K.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), W = A(() => e.type === "password"), k = A(() => e.type === "search"), I = A(() => i.toInteger(e.digits) || 1), Q = A(() => {
|
|
27681
27681
|
const { type: X } = e, Ae = I.value, Ue = e.step;
|
|
27682
27682
|
return X === "integer" ? i.toInteger(Ue) || 1 : X === "float" ? i.toNumber(Ue) || 1 / Math.pow(10, Ae) : i.toNumber(Ue) || 1;
|
|
27683
27683
|
}), ie = A(() => {
|
|
27684
|
-
const { type: X } = e, Ae =
|
|
27684
|
+
const { type: X } = e, Ae = _.value, Ue = F.value, vt = W.value;
|
|
27685
27685
|
return e.clearable && (vt || Ae || Ue || X === "text" || X === "search");
|
|
27686
27686
|
}), U = A(() => e.startDate ? i.toStringDate(e.startDate) : null), ee = A(() => e.endDate ? i.toStringDate(e.endDate) : null), me = A(() => ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), De = A(() => {
|
|
27687
27687
|
const { modelValue: X, multiple: Ae } = e, Ue = F.value, vt = Y.value;
|
|
@@ -27871,7 +27871,7 @@ const Gn = st({
|
|
|
27871
27871
|
const { type: X, editable: Ae, multiple: Ue } = e;
|
|
27872
27872
|
return G.value || Ue || !Ae || X === "week" || X === "quarter";
|
|
27873
27873
|
}), V = A(() => {
|
|
27874
|
-
const { type: X } = e, { showPwd: Ae } = v, Ue =
|
|
27874
|
+
const { type: X } = e, { showPwd: Ae } = v, Ue = _.value, vt = F.value, $t = W.value;
|
|
27875
27875
|
return vt || Ue || $t && Ae || X === "number" ? "text" : X;
|
|
27876
27876
|
}), Z = A(() => {
|
|
27877
27877
|
const { placeholder: X } = e;
|
|
@@ -27884,12 +27884,12 @@ const Gn = st({
|
|
|
27884
27884
|
return Ae || !(X === "text" || X === "number" || X === "integer" || X === "float");
|
|
27885
27885
|
}), Se = A(() => {
|
|
27886
27886
|
const { type: X } = e, { inputValue: Ae } = v;
|
|
27887
|
-
return
|
|
27887
|
+
return _.value ? X === "integer" ? i.toInteger(kr(Ae)) : i.toNumber(kr(Ae)) : 0;
|
|
27888
27888
|
}), $e = A(() => {
|
|
27889
|
-
const { min: X } = e, { inputValue: Ae } = v, Ue =
|
|
27889
|
+
const { min: X } = e, { inputValue: Ae } = v, Ue = _.value, vt = Se.value;
|
|
27890
27890
|
return (Ae || Ae === 0) && Ue && X !== null ? vt <= i.toNumber(X) : !1;
|
|
27891
27891
|
}), Be = A(() => {
|
|
27892
|
-
const { max: X } = e, { inputValue: Ae } = v, Ue =
|
|
27892
|
+
const { max: X } = e, { inputValue: Ae } = v, Ue = _.value, vt = Se.value;
|
|
27893
27893
|
return (Ae || Ae === 0) && Ue && X !== null ? vt >= i.toNumber(X) : !1;
|
|
27894
27894
|
}), et = (X) => {
|
|
27895
27895
|
const { type: Ae, exponential: Ue } = e, vt = oe.value, $t = I.value, yt = Ae === "float" ? Lu(X, $t) : i.toValueString(X);
|
|
@@ -27922,7 +27922,7 @@ const Gn = st({
|
|
|
27922
27922
|
v.isAniVisible = !1, X();
|
|
27923
27923
|
}, 350);
|
|
27924
27924
|
}), Ie = (X, Ae) => {
|
|
27925
|
-
const { type: Ue } = e, vt =
|
|
27925
|
+
const { type: Ue } = e, vt = _.value;
|
|
27926
27926
|
F.value && Nt(), (vt || ["text", "search", "password"].indexOf(Ue) > -1) && focus(), Je("", X), y.dispatchEvent("clear", { value: Ae }, X);
|
|
27927
27927
|
}, We = (X) => {
|
|
27928
27928
|
if (!j.value) {
|
|
@@ -27979,7 +27979,7 @@ const Gn = st({
|
|
|
27979
27979
|
} else
|
|
27980
27980
|
i.isEqual(Ae, _t) || Je(_t, { type: "update" });
|
|
27981
27981
|
}, en = () => {
|
|
27982
|
-
const { type: X, min: Ae, max: Ue, exponential: vt } = e, { inputValue: $t, datetimePanelValue: yt } = v, Yt =
|
|
27982
|
+
const { type: X, min: Ae, max: Ue, exponential: vt } = e, { inputValue: $t, datetimePanelValue: yt } = v, Yt = _.value, _t = F.value, tt = je.value;
|
|
27983
27983
|
if (!J.value) {
|
|
27984
27984
|
if (Yt) {
|
|
27985
27985
|
if ($t) {
|
|
@@ -28035,7 +28035,7 @@ const Gn = st({
|
|
|
28035
28035
|
(Ae || Ue) && (X.preventDefault(), Ae ? dn(X) : Fn(X));
|
|
28036
28036
|
}, io = (X) => {
|
|
28037
28037
|
const { exponential: Ae, controls: Ue } = e;
|
|
28038
|
-
if (
|
|
28038
|
+
if (_.value) {
|
|
28039
28039
|
const $t = X.ctrlKey, yt = X.shiftKey, Yt = X.altKey, _t = X.keyCode, tt = dt.hasKey(X, Xt.ESCAPE), Vt = dt.hasKey(X, Xt.ARROW_UP), mn = dt.hasKey(X, Xt.ARROW_DOWN);
|
|
28040
28040
|
!$t && !yt && !Yt && (dt.hasKey(X, Xt.SPACEBAR) || (!Ae || _t !== 69) && _t >= 65 && _t <= 90 || _t >= 186 && _t <= 188 || _t >= 191) && X.preventDefault(), tt ? en() : (Vt || mn) && Ue && An(X);
|
|
28041
28041
|
}
|
|
@@ -28057,7 +28057,7 @@ const Gn = st({
|
|
|
28057
28057
|
}, 500);
|
|
28058
28058
|
}
|
|
28059
28059
|
}, Po = (X) => {
|
|
28060
|
-
if (
|
|
28060
|
+
if (_.value && e.controls && v.isActivated) {
|
|
28061
28061
|
const Ue = X.deltaY;
|
|
28062
28062
|
Ue > 0 ? Fn(X) : Ue < 0 && dn(X), X.preventDefault();
|
|
28063
28063
|
}
|
|
@@ -28616,7 +28616,7 @@ const Gn = st({
|
|
|
28616
28616
|
])
|
|
28617
28617
|
]) : null;
|
|
28618
28618
|
}, La = () => {
|
|
28619
|
-
const { suffixIcon: X } = e, { inputValue: Ae } = v, Ue = n.suffix, vt = j.value, $t =
|
|
28619
|
+
const { suffixIcon: X } = e, { inputValue: Ae } = v, Ue = n.suffix, vt = j.value, $t = _.value, yt = F.value, Yt = W.value, _t = k.value, tt = ie.value, Vt = Yt || $t || yt || _t;
|
|
28620
28620
|
return tt || Ue || X || Vt ? r("div", {
|
|
28621
28621
|
class: ["vxe-input--suffix", {
|
|
28622
28622
|
"is--clear": tt && !vt && !(Ae === "" || i.eqNull(Ae))
|
|
@@ -28641,7 +28641,7 @@ const Gn = st({
|
|
|
28641
28641
|
]) : Ve()
|
|
28642
28642
|
]) : null;
|
|
28643
28643
|
}, _l = () => {
|
|
28644
|
-
const { controls: X } = e, Ae =
|
|
28644
|
+
const { controls: X } = e, Ae = _.value, Ue = F.value, vt = W.value, $t = k.value;
|
|
28645
28645
|
return vt ? Ed() : Ae && X ? Zi() : Ue ? Ll() : $t ? Ji() : Ve();
|
|
28646
28646
|
};
|
|
28647
28647
|
y = {
|
|
@@ -29119,7 +29119,7 @@ const Rr = st({
|
|
|
29119
29119
|
return Un(Ie);
|
|
29120
29120
|
const We = re().select.placeholder;
|
|
29121
29121
|
return We ? Un(We) : Fe("vxe.base.pleaseSelect");
|
|
29122
|
-
}), H = A(() => Object.assign({}, e.optionProps)), G = A(() => Object.assign({}, e.optionGroupProps)), j = A(() => H.value.label || "label"), oe = A(() => H.value.value || "value"), K = A(() => G.value.label || "label"),
|
|
29122
|
+
}), H = A(() => Object.assign({}, e.optionProps)), G = A(() => Object.assign({}, e.optionGroupProps)), j = A(() => H.value.label || "label"), oe = A(() => H.value.value || "value"), K = A(() => G.value.label || "label"), _ = A(() => G.value.options || "options"), ge = A(() => {
|
|
29123
29123
|
const { modelValue: Ie, multiple: We, max: ct } = e;
|
|
29124
29124
|
return We && ct ? (i.isArray(Ie) ? Ie.length : i.eqNull(Ie) ? 0 : 1) >= i.toNumber(ct) : !1;
|
|
29125
29125
|
}), ae = A(() => Object.assign({}, re().select.scrollY, e.scrollY)), F = A(() => Object.assign({}, re().select.optionConfig, e.optionConfig)), W = A(() => i.toNumber(e.multiCharOverflow)), k = A(() => {
|
|
@@ -29145,7 +29145,7 @@ const Rr = st({
|
|
|
29145
29145
|
const { optFullValMaps: We } = E, ct = j.value, Ot = g.reactFlag ? We[Ie] : null;
|
|
29146
29146
|
return Ot ? Ot.item[ct] : i.toValueString(Ie);
|
|
29147
29147
|
}, le = (Ie) => {
|
|
29148
|
-
const We =
|
|
29148
|
+
const We = _.value, ct = oe.value, Ot = U(), At = {}, Jt = {}, Pt = [], jt = (Lt) => {
|
|
29149
29149
|
Pt.push(Lt);
|
|
29150
29150
|
let z = ee(Lt);
|
|
29151
29151
|
z || (z = d9(), Lt[Ot] = z), Jt[Lt[ct]] = {
|
|
@@ -30189,7 +30189,7 @@ const Rr = st({
|
|
|
30189
30189
|
return I;
|
|
30190
30190
|
}, K = () => {
|
|
30191
30191
|
d.formData = oe();
|
|
30192
|
-
},
|
|
30192
|
+
}, _ = () => {
|
|
30193
30193
|
y();
|
|
30194
30194
|
};
|
|
30195
30195
|
Object.assign(b, N, j);
|
|
@@ -30218,7 +30218,7 @@ const Rr = st({
|
|
|
30218
30218
|
status: "primary",
|
|
30219
30219
|
icon: bt().FORM_DESIGN_STYLE_SETTING,
|
|
30220
30220
|
content: Fe("vxe.formDesign.styleSetting.btn"),
|
|
30221
|
-
onClick:
|
|
30221
|
+
onClick: _
|
|
30222
30222
|
})
|
|
30223
30223
|
])
|
|
30224
30224
|
])
|
|
@@ -30419,17 +30419,17 @@ const ha = st({
|
|
|
30419
30419
|
const { placeholder: K } = e;
|
|
30420
30420
|
if (K)
|
|
30421
30421
|
return Un(K);
|
|
30422
|
-
const
|
|
30423
|
-
return
|
|
30422
|
+
const _ = re().textarea.placeholder;
|
|
30423
|
+
return _ ? Un(_) : Fe("vxe.base.pleaseInput");
|
|
30424
30424
|
}), g = A(() => {
|
|
30425
|
-
const { maxLength: K, maxlength:
|
|
30426
|
-
return K ||
|
|
30425
|
+
const { maxLength: K, maxlength: _ } = e;
|
|
30426
|
+
return K || _;
|
|
30427
30427
|
}), E = A(() => i.getSize(c.inputValue)), C = A(() => {
|
|
30428
|
-
const K = E.value,
|
|
30429
|
-
return
|
|
30428
|
+
const K = E.value, _ = g.value;
|
|
30429
|
+
return _ && K > i.toNumber(_);
|
|
30430
30430
|
}), x = A(() => Object.assign({ minRows: 1, maxRows: 10 }, re().textarea.autosize, e.autosize)), w = () => {
|
|
30431
|
-
const { size: K, autosize:
|
|
30432
|
-
if (
|
|
30431
|
+
const { size: K, autosize: _ } = e, { inputValue: ge } = c;
|
|
30432
|
+
if (_) {
|
|
30433
30433
|
Ps || (Ps = document.createElement("div")), Ps.parentNode || document.body.appendChild(Ps);
|
|
30434
30434
|
const ae = u.value;
|
|
30435
30435
|
if (!ae)
|
|
@@ -30440,31 +30440,31 @@ const ha = st({
|
|
|
30440
30440
|
}
|
|
30441
30441
|
}, y = () => {
|
|
30442
30442
|
e.autosize && fe(() => {
|
|
30443
|
-
const K = x.value, { minRows:
|
|
30443
|
+
const K = x.value, { minRows: _, maxRows: ge } = K, ae = u.value;
|
|
30444
30444
|
if (!ae)
|
|
30445
30445
|
return;
|
|
30446
30446
|
const F = Ps.clientHeight, W = getComputedStyle(ae), k = i.toNumber(W.lineHeight), I = i.toNumber(W.paddingTop), Q = i.toNumber(W.paddingBottom), ie = i.toNumber(W.borderTopWidth), U = i.toNumber(W.borderBottomWidth), ee = I + Q + ie + U, me = (F - ee) / k, De = me && /[0-9]/.test("" + me) ? me : Math.floor(me) + 1;
|
|
30447
30447
|
let le = De;
|
|
30448
|
-
De <
|
|
30448
|
+
De < _ ? le = _ : De > ge && (le = ge), ae.style.height = `${le * k + ee}px`;
|
|
30449
30449
|
});
|
|
30450
30450
|
}, $ = (K) => {
|
|
30451
|
-
const
|
|
30452
|
-
p.dispatchEvent(K.type, { value:
|
|
30453
|
-
}, N = (K,
|
|
30454
|
-
c.inputValue = K, n("update:modelValue", K), i.toValueString(e.modelValue) !== K && (b.dispatchEvent("change", { value: K },
|
|
30451
|
+
const _ = c.inputValue;
|
|
30452
|
+
p.dispatchEvent(K.type, { value: _ }, K);
|
|
30453
|
+
}, N = (K, _) => {
|
|
30454
|
+
c.inputValue = K, n("update:modelValue", K), i.toValueString(e.modelValue) !== K && (b.dispatchEvent("change", { value: K }, _), o && s && o.triggerItemEvent(_, s.itemConfig.field, K));
|
|
30455
30455
|
}, H = (K) => {
|
|
30456
|
-
const { immediate:
|
|
30457
|
-
c.inputValue = ae,
|
|
30456
|
+
const { immediate: _ } = e, ae = K.target.value;
|
|
30457
|
+
c.inputValue = ae, _ && N(ae, K), p.dispatchEvent("input", { value: ae }, K), y();
|
|
30458
30458
|
}, G = (K) => {
|
|
30459
|
-
const { immediate:
|
|
30460
|
-
|
|
30459
|
+
const { immediate: _ } = e;
|
|
30460
|
+
_ ? $(K) : N(c.inputValue, K);
|
|
30461
30461
|
}, j = (K) => {
|
|
30462
|
-
const { immediate:
|
|
30463
|
-
|
|
30462
|
+
const { immediate: _ } = e, { inputValue: ge } = c;
|
|
30463
|
+
_ || N(ge, K), p.dispatchEvent("blur", { value: ge }, K);
|
|
30464
30464
|
};
|
|
30465
30465
|
b = {
|
|
30466
|
-
dispatchEvent(K,
|
|
30467
|
-
n(K, Zt(ge, { $textarea: p },
|
|
30466
|
+
dispatchEvent(K, _, ge) {
|
|
30467
|
+
n(K, Zt(ge, { $textarea: p }, _));
|
|
30468
30468
|
},
|
|
30469
30469
|
focus() {
|
|
30470
30470
|
return u.value.focus(), fe();
|
|
@@ -30481,7 +30481,7 @@ const ha = st({
|
|
|
30481
30481
|
K && (w(), y());
|
|
30482
30482
|
});
|
|
30483
30483
|
const oe = () => {
|
|
30484
|
-
const { className: K, resize:
|
|
30484
|
+
const { className: K, resize: _, autosize: ge, showWordCount: ae, countMethod: F, rows: W, cols: k } = e, { inputValue: I } = c, Q = a.value, ie = O.value, U = C.value, ee = E.value, me = D.value, De = v.value, le = h.value, L = g.value;
|
|
30485
30485
|
return De ? r("div", {
|
|
30486
30486
|
ref: d,
|
|
30487
30487
|
class: ["vxe-textarea--readonly", K]
|
|
@@ -30508,8 +30508,8 @@ const ha = st({
|
|
|
30508
30508
|
disabled: ie,
|
|
30509
30509
|
rows: W,
|
|
30510
30510
|
cols: k,
|
|
30511
|
-
style:
|
|
30512
|
-
resize:
|
|
30511
|
+
style: _ ? {
|
|
30512
|
+
resize: _
|
|
30513
30513
|
} : null,
|
|
30514
30514
|
onInput: H,
|
|
30515
30515
|
onChange: G,
|
|
@@ -31601,11 +31601,11 @@ const v9 = (e) => Fe(`vxe.formDesign.widget.component.${e}`), $o = (e) => v9(e.n
|
|
|
31601
31601
|
};
|
|
31602
31602
|
const $ = x.renderFormDesignWidgetSubtableDefaultView, N = x.renderFormDesignWidgetSubtableCellView || $, H = x.renderFormDesignWidgetSubtableEditView, G = {};
|
|
31603
31603
|
($ || N) && (G.default = (j) => {
|
|
31604
|
-
const { isEdit: oe, column: K } = j, { editRender:
|
|
31605
|
-
return oe &&
|
|
31604
|
+
const { isEdit: oe, column: K } = j, { editRender: _, cellRender: ge } = K, ae = Object.assign({ widget: E }, j);
|
|
31605
|
+
return oe && _ && N ? Rt(N(_, ae)) : $ ? Rt($(ge || {}, ae)) : [];
|
|
31606
31606
|
}), H && (G.edit = (j) => {
|
|
31607
|
-
const { column: oe } = j, { editRender: K } = oe,
|
|
31608
|
-
return Rt(H(K,
|
|
31607
|
+
const { column: oe } = j, { editRender: K } = oe, _ = Object.assign({ widget: E }, j);
|
|
31608
|
+
return Rt(H(K, _));
|
|
31609
31609
|
}), y.slots = G, g.push(y);
|
|
31610
31610
|
}), h || g.push({
|
|
31611
31611
|
field: "action",
|
|
@@ -32347,7 +32347,7 @@ const v9 = (e) => Fe(`vxe.formDesign.widget.component.${e}`), $o = (e) => v9(e.n
|
|
|
32347
32347
|
}), oe = A(() => {
|
|
32348
32348
|
const { max: M } = e, { inputValue: ne } = d, ye = H.value;
|
|
32349
32349
|
return (ne || ne === 0) && M !== null ? ye >= i.toNumber(M) : !1;
|
|
32350
|
-
}), K = (M) => i.eqNull(M) ? "" : `${M}`,
|
|
32350
|
+
}), K = (M) => i.eqNull(M) ? "" : `${M}`, _ = (M) => {
|
|
32351
32351
|
const { type: ne, exponential: ye } = e, q = $.value, R = E.value, J = ne === "float" ? Lu(M, R) : K(M);
|
|
32352
32352
|
return ye && (M === J || K(M).toLowerCase() === i.toNumber(J).toExponential()) ? M : J.slice(0, q);
|
|
32353
32353
|
}, ge = (M) => {
|
|
@@ -32400,7 +32400,7 @@ const v9 = (e) => Fe(`vxe.formDesign.widget.component.${e}`), $o = (e) => v9(e.n
|
|
|
32400
32400
|
const be = K(R).toLowerCase();
|
|
32401
32401
|
be === i.toNumber(V).toExponential() && (V = be);
|
|
32402
32402
|
}
|
|
32403
|
-
const Z =
|
|
32403
|
+
const Z = _(V);
|
|
32404
32404
|
ae(ai(Z) ? null : Number(Z), Z, { type: "check" });
|
|
32405
32405
|
}
|
|
32406
32406
|
}
|
|
@@ -32410,7 +32410,7 @@ const v9 = (e) => Fe(`vxe.formDesign.widget.component.${e}`), $o = (e) => v9(e.n
|
|
|
32410
32410
|
}, Y = (M, ne) => {
|
|
32411
32411
|
const { min: ye, max: q, type: R } = e, { inputValue: J } = d, V = C.value, Z = R === "integer" ? i.toInteger(kr(J)) : i.toNumber(kr(J)), be = M ? i.add(Z, V) : i.subtract(Z, V);
|
|
32412
32412
|
let Se;
|
|
32413
|
-
De(be) ? me(be) ? Se = be : Se = q : Se = ye, F(
|
|
32413
|
+
De(be) ? me(be) ? Se = be : Se = q : Se = ye, F(_(Se), ne);
|
|
32414
32414
|
}, te = (M) => {
|
|
32415
32415
|
const ne = g.value, ye = h.value, q = j.value;
|
|
32416
32416
|
Ge(), !ne && !ye && !q && Y(!1, M), D.dispatchEvent("next-number", { value: d.inputValue }, M);
|
|
@@ -33330,7 +33330,7 @@ const gi = st({
|
|
|
33330
33330
|
}, oe = (M) => j(H(M)), K = (M) => {
|
|
33331
33331
|
const { selectCheckboxMaps: ne } = c;
|
|
33332
33332
|
return !!ne[M];
|
|
33333
|
-
},
|
|
33333
|
+
}, _ = (M) => K(H(M)), ge = (M) => {
|
|
33334
33334
|
const { indeterminateCheckboxMaps: ne } = c;
|
|
33335
33335
|
return !!ne[M];
|
|
33336
33336
|
}, ae = (M) => ge(H(M)), F = (M) => {
|
|
@@ -33519,7 +33519,7 @@ const gi = st({
|
|
|
33519
33519
|
isCheckedByRadioNode: oe,
|
|
33520
33520
|
isCheckedByCheckboxNodeId: K,
|
|
33521
33521
|
isIndeterminateByCheckboxNode: ae,
|
|
33522
|
-
isCheckedByCheckboxNode:
|
|
33522
|
+
isCheckedByCheckboxNode: _
|
|
33523
33523
|
}, L = () => {
|
|
33524
33524
|
const { treeList: M } = c, ne = b.value, ye = O.value, q = {};
|
|
33525
33525
|
i.eachTree(M, (R, J, V, Z, be, Se) => {
|
|
@@ -33921,7 +33921,7 @@ const hi = st({
|
|
|
33921
33921
|
}, Ce.radioConfig, {
|
|
33922
33922
|
trigger: "node"
|
|
33923
33923
|
});
|
|
33924
|
-
}), G = A(() => e.optionProps || {}), j = A(() => y.value.keyField || "id"), oe = A(() => G.value.label || "label"), K = A(() => G.value.value || "value"),
|
|
33924
|
+
}), G = A(() => e.optionProps || {}), j = A(() => y.value.keyField || "id"), oe = A(() => G.value.label || "label"), K = A(() => G.value.value || "value"), _ = A(() => G.value.children || "children"), ge = A(() => G.value.parent || "parentField"), ae = A(() => G.value.hasChild || "hasChild"), F = A(() => {
|
|
33925
33925
|
const { modelValue: Ce } = e, { fullNodeMaps: Le } = D, Te = oe.value;
|
|
33926
33926
|
return (i.isArray(Ce) ? Ce : [Ce]).map((Oe) => {
|
|
33927
33927
|
const M = Le[Oe];
|
|
@@ -33948,7 +33948,7 @@ const hi = st({
|
|
|
33948
33948
|
const Le = j.value, Te = Ce[Le];
|
|
33949
33949
|
return Te ? encodeURIComponent(Te) : "";
|
|
33950
33950
|
}, me = () => {
|
|
33951
|
-
const { options: Ce } = e, Le = j.value, Te =
|
|
33951
|
+
const { options: Ce } = e, Le = j.value, Te = _.value, Oe = K.value, M = {}, ne = {};
|
|
33952
33952
|
i.eachTree(Ce, (ye, q, R, J, V, Z) => {
|
|
33953
33953
|
let be = ee(ye);
|
|
33954
33954
|
be || (be = l7()), ne[be] && Go("vxe.error.repeatKey", [Le, be]), ne[be] = !0;
|
|
@@ -34033,7 +34033,7 @@ const hi = st({
|
|
|
34033
34033
|
};
|
|
34034
34034
|
Object.assign(I, U, {});
|
|
34035
34035
|
const Ne = () => {
|
|
34036
|
-
const { className: Ce, modelValue: Le, multiple: Te, options: Oe, loading: M } = e, { initialized: ne, isActivated: ye, isAniVisible: q, visiblePanel: R } = D, J = f.value, V = C.value, Z = F.value, be = x.value, Se = E.value, $e = W.value, Be = o.header, et = o.footer, Ze = o.prefix, xt = w.value.className || e.popupClassName, pt = y.value, Et = $.value, zt = N.value, Cn = H.value, rn = j.value, Nt = oe.value, Ie = K.value, We =
|
|
34036
|
+
const { className: Ce, modelValue: Le, multiple: Te, options: Oe, loading: M } = e, { initialized: ne, isActivated: ye, isAniVisible: q, visiblePanel: R } = D, J = f.value, V = C.value, Z = F.value, be = x.value, Se = E.value, $e = W.value, Be = o.header, et = o.footer, Ze = o.prefix, xt = w.value.className || e.popupClassName, pt = y.value, Et = $.value, zt = N.value, Cn = H.value, rn = j.value, Nt = oe.value, Ie = K.value, We = _.value, ct = ge.value, Ot = ae.value;
|
|
34037
34037
|
return Se ? r("div", {
|
|
34038
34038
|
ref: p,
|
|
34039
34039
|
class: ["vxe-tree-select--readonly", Ce]
|
|
@@ -34737,7 +34737,7 @@ const b7 = (e) => {
|
|
|
34737
34737
|
internalData: f,
|
|
34738
34738
|
getRefMaps: () => p,
|
|
34739
34739
|
getComputeMaps: () => oe
|
|
34740
|
-
},
|
|
34740
|
+
}, _ = () => i.uniqueId(), ge = (R) => {
|
|
34741
34741
|
const J = O.value;
|
|
34742
34742
|
return R[J];
|
|
34743
34743
|
}, ae = () => {
|
|
@@ -34749,11 +34749,11 @@ const b7 = (e) => {
|
|
|
34749
34749
|
[Se]: W(pt),
|
|
34750
34750
|
[$e]: xt,
|
|
34751
34751
|
[Be]: 0,
|
|
34752
|
-
[Z]:
|
|
34752
|
+
[Z]: _()
|
|
34753
34753
|
};
|
|
34754
34754
|
}
|
|
34755
34755
|
const Je = Ze[be] || "";
|
|
34756
|
-
return Ze[be] = Je, Ze[Se] = Ze[Se] || W(Je), Ze[$e] = Ze[$e] || "", Ze[Be] = Ze[Be] || 0, Ze[Z] = Ze[Z] ||
|
|
34756
|
+
return Ze[be] = Je, Ze[Se] = Ze[Se] || W(Je), Ze[$e] = Ze[$e] || "", Ze[Be] = Ze[Be] || 0, Ze[Z] = Ze[Z] || _(), Ze;
|
|
34757
34757
|
}) : [];
|
|
34758
34758
|
u.fileList = V || J ? et : et.slice(0, 1);
|
|
34759
34759
|
}, F = (R) => decodeURIComponent(`${R || ""}`).split("/").pop() || "", W = (R) => {
|
|
@@ -34888,7 +34888,7 @@ const b7 = (e) => {
|
|
|
34888
34888
|
}
|
|
34889
34889
|
const Cn = Object.assign({}, u.fileCacheMaps), rn = V ? be : [], Nt = [];
|
|
34890
34890
|
zt.forEach((Ie) => {
|
|
34891
|
-
const { name: We } = Ie, ct =
|
|
34891
|
+
const { name: We } = Ie, ct = _(), Ot = {
|
|
34892
34892
|
[Be]: We,
|
|
34893
34893
|
[et]: W(We),
|
|
34894
34894
|
[Je]: Ie.size,
|
|
@@ -35639,12 +35639,12 @@ const b7 = (e) => {
|
|
|
35639
35639
|
class: ["vxe-rte--item", {
|
|
35640
35640
|
"is--checked": K
|
|
35641
35641
|
}],
|
|
35642
|
-
onMouseenter(
|
|
35643
|
-
N || C(
|
|
35642
|
+
onMouseenter(_) {
|
|
35643
|
+
N || C(_, oe);
|
|
35644
35644
|
},
|
|
35645
35645
|
onMouseleave: x,
|
|
35646
|
-
onClick(
|
|
35647
|
-
N || w(
|
|
35646
|
+
onClick(_) {
|
|
35647
|
+
N || w(_, oe);
|
|
35648
35648
|
}
|
|
35649
35649
|
}, [
|
|
35650
35650
|
r("i", {
|
|
@@ -35849,7 +35849,7 @@ const b7 = (e) => {
|
|
|
35849
35849
|
}, K = (F) => {
|
|
35850
35850
|
const W = p.value, k = F.currentTarget;
|
|
35851
35851
|
oe(F, W ? W.offsetLeft < k.offsetLeft : !1);
|
|
35852
|
-
},
|
|
35852
|
+
}, _ = (F) => {
|
|
35853
35853
|
const W = f.value, k = F.currentTarget;
|
|
35854
35854
|
oe(F, W ? k.offsetLeft > W.offsetLeft : !0);
|
|
35855
35855
|
};
|
|
@@ -35884,7 +35884,7 @@ const b7 = (e) => {
|
|
|
35884
35884
|
I ? Qn() : r("div", {
|
|
35885
35885
|
ref: p,
|
|
35886
35886
|
class: "vxe-slider--bar-btn vxe-slider--end-btn",
|
|
35887
|
-
onMousedown:
|
|
35887
|
+
onMousedown: _
|
|
35888
35888
|
})
|
|
35889
35889
|
])
|
|
35890
35890
|
]);
|
|
@@ -36302,7 +36302,7 @@ const Jc = st({
|
|
|
36302
36302
|
f.selectIcon = L, L !== e.modelValue && (n("update:modelValue", L), g.dispatchEvent("change", { value: L }, le), a && c && a.triggerItemEvent(le, c.itemConfig.field, L));
|
|
36303
36303
|
}, K = () => {
|
|
36304
36304
|
C.value || f.visiblePanel || G();
|
|
36305
|
-
},
|
|
36305
|
+
}, _ = () => {
|
|
36306
36306
|
f.isActivated = !1;
|
|
36307
36307
|
}, ge = (le, L) => {
|
|
36308
36308
|
oe(le, L), g.dispatchEvent("clear", { value: L }, le);
|
|
@@ -36412,7 +36412,7 @@ const Jc = st({
|
|
|
36412
36412
|
ref: v,
|
|
36413
36413
|
class: "vxe-ico-picker--input",
|
|
36414
36414
|
onFocus: K,
|
|
36415
|
-
onBlur:
|
|
36415
|
+
onBlur: _
|
|
36416
36416
|
}),
|
|
36417
36417
|
xe ? r("div", {
|
|
36418
36418
|
class: "vxe-ico-picker--icon"
|
|
@@ -36645,7 +36645,7 @@ const xi = st({
|
|
|
36645
36645
|
j(U, De);
|
|
36646
36646
|
}).catch((te) => te) : oe(U, De));
|
|
36647
36647
|
});
|
|
36648
|
-
},
|
|
36648
|
+
}, _ = (U, ee) => {
|
|
36649
36649
|
const { activeIndex: me } = a;
|
|
36650
36650
|
if (p.value[me || 0])
|
|
36651
36651
|
switch (ee) {
|
|
@@ -36718,7 +36718,7 @@ const xi = st({
|
|
|
36718
36718
|
class: "vxe-image-preview--operation-btn",
|
|
36719
36719
|
title: Fe(`vxe.imagePreview.operBtn.${U}`),
|
|
36720
36720
|
onClick(me) {
|
|
36721
|
-
|
|
36721
|
+
_(me, U);
|
|
36722
36722
|
}
|
|
36723
36723
|
}, [
|
|
36724
36724
|
r("i", {
|
|
@@ -38278,10 +38278,10 @@ const Di = (e) => Object.assign({
|
|
|
38278
38278
|
getRefMaps: () => d,
|
|
38279
38279
|
getComputeMaps: () => u
|
|
38280
38280
|
}, p = [];
|
|
38281
|
-
Mn.forEach((K,
|
|
38281
|
+
Mn.forEach((K, _) => {
|
|
38282
38282
|
const { createListDesignSettingActionButtonConfig: ge } = K;
|
|
38283
38283
|
if (ge) {
|
|
38284
|
-
const ae = { name:
|
|
38284
|
+
const ae = { name: _ }, F = Object.assign(Di({ code: _ }), ge(ae));
|
|
38285
38285
|
F.type === "custom" || p.push(F);
|
|
38286
38286
|
}
|
|
38287
38287
|
});
|
|
@@ -38295,45 +38295,45 @@ const Di = (e) => Object.assign({
|
|
|
38295
38295
|
props: K.options
|
|
38296
38296
|
}
|
|
38297
38297
|
}), v = (K) => {
|
|
38298
|
-
const
|
|
38298
|
+
const _ = [];
|
|
38299
38299
|
if (K) {
|
|
38300
38300
|
const { widgetData: ge } = K;
|
|
38301
38301
|
ge && ge.forEach((ae) => {
|
|
38302
38302
|
const { name: F } = ae;
|
|
38303
38303
|
F && (F === "row" ? ae.children.forEach((W) => {
|
|
38304
|
-
W.name &&
|
|
38305
|
-
}) : F === "subtable" ||
|
|
38304
|
+
W.name && _.push(b(W));
|
|
38305
|
+
}) : F === "subtable" || _.push(b(ae)));
|
|
38306
38306
|
});
|
|
38307
38307
|
}
|
|
38308
|
-
return
|
|
38308
|
+
return _;
|
|
38309
38309
|
}, O = (K) => {
|
|
38310
38310
|
if (K) {
|
|
38311
|
-
const
|
|
38311
|
+
const _ = {};
|
|
38312
38312
|
return {
|
|
38313
|
-
items: K.map((ae) => (
|
|
38313
|
+
items: K.map((ae) => (_[ae.field] = null, {
|
|
38314
38314
|
field: ae.field,
|
|
38315
38315
|
title: ae.title,
|
|
38316
38316
|
folding: ae.folding,
|
|
38317
38317
|
itemRender: ae.itemRender
|
|
38318
38318
|
})),
|
|
38319
|
-
data:
|
|
38319
|
+
data: _
|
|
38320
38320
|
};
|
|
38321
38321
|
}
|
|
38322
38322
|
return { items: [], data: {} };
|
|
38323
|
-
}, D = (K) => K ? K.map((
|
|
38324
|
-
field:
|
|
38325
|
-
title:
|
|
38326
|
-
visible: !!
|
|
38327
|
-
width:
|
|
38328
|
-
cellRender: i.clone(
|
|
38323
|
+
}, D = (K) => K ? K.map((_) => ({
|
|
38324
|
+
field: _.field,
|
|
38325
|
+
title: _.title,
|
|
38326
|
+
visible: !!_.visible,
|
|
38327
|
+
width: _.width,
|
|
38328
|
+
cellRender: i.clone(_.cellRender)
|
|
38329
38329
|
})) : [], h = (K) => {
|
|
38330
|
-
const { formConfig:
|
|
38331
|
-
return
|
|
38330
|
+
const { formConfig: _, searchItems: ge, listColumns: ae } = K;
|
|
38331
|
+
return _ && E(_), ge && x(ge), ae && (c.listTableColumns = g(ae)), fe();
|
|
38332
38332
|
}, g = (K) => D(K), E = (K) => (c.formData = Object.assign({}, $(), K), fe()), C = () => c.searchFormItems, x = (K) => {
|
|
38333
|
-
const { data:
|
|
38334
|
-
return c.searchFormData =
|
|
38333
|
+
const { data: _, items: ge } = O(K);
|
|
38334
|
+
return c.searchFormData = _, c.searchFormItems = ge, fe();
|
|
38335
38335
|
}, w = () => c.listTableColumns, y = (K) => (c.listTableColumns = g(K), fe()), $ = () => {
|
|
38336
|
-
const { actionCodes: K, formRender:
|
|
38336
|
+
const { actionCodes: K, formRender: _ } = e;
|
|
38337
38337
|
let ge = H7();
|
|
38338
38338
|
if (K && K.length && (!ge.actionButtonList || !ge.actionButtonList.length)) {
|
|
38339
38339
|
const ae = [];
|
|
@@ -38347,8 +38347,8 @@ const Di = (e) => Object.assign({
|
|
|
38347
38347
|
}
|
|
38348
38348
|
}), ge.actionButtonList = ae;
|
|
38349
38349
|
}
|
|
38350
|
-
if (
|
|
38351
|
-
const ae = Mn.get(
|
|
38350
|
+
if (_ && _.name) {
|
|
38351
|
+
const ae = Mn.get(_.name), F = ae ? ae.createListDesignSettingFormConfig : null, W = { name: _.name };
|
|
38352
38352
|
ge = (F ? F(W) : {}) || {};
|
|
38353
38353
|
}
|
|
38354
38354
|
return ge;
|
|
@@ -38359,12 +38359,12 @@ const Di = (e) => Object.assign({
|
|
|
38359
38359
|
listColumns: []
|
|
38360
38360
|
}), N(), fe());
|
|
38361
38361
|
Object.assign(f, {
|
|
38362
|
-
dispatchEvent(K,
|
|
38363
|
-
n(K, Zt(ge, { $listDesign: f },
|
|
38362
|
+
dispatchEvent(K, _, ge) {
|
|
38363
|
+
n(K, Zt(ge, { $listDesign: f }, _));
|
|
38364
38364
|
},
|
|
38365
38365
|
loadFormDesignConfig(K) {
|
|
38366
|
-
const { listTableColumns:
|
|
38367
|
-
i.eachTree(
|
|
38366
|
+
const { listTableColumns: _ } = c, ge = {};
|
|
38367
|
+
i.eachTree(_, (F) => {
|
|
38368
38368
|
ge[F.field] = F;
|
|
38369
38369
|
}, { children: "children" });
|
|
38370
38370
|
const ae = v(K);
|
|
@@ -38394,11 +38394,11 @@ const Di = (e) => Object.assign({
|
|
|
38394
38394
|
clearConfig: H
|
|
38395
38395
|
}, {});
|
|
38396
38396
|
const oe = () => {
|
|
38397
|
-
const { height: K } = e,
|
|
38397
|
+
const { height: K } = e, _ = a.value, ge = o.header;
|
|
38398
38398
|
return r("div", {
|
|
38399
38399
|
ref: l,
|
|
38400
38400
|
class: ["vxe-list-design", {
|
|
38401
|
-
[`size--${
|
|
38401
|
+
[`size--${_}`]: _
|
|
38402
38402
|
}],
|
|
38403
38403
|
style: K ? {
|
|
38404
38404
|
height: pn(K)
|
|
@@ -38787,32 +38787,32 @@ const iu = st({
|
|
|
38787
38787
|
internalData: c,
|
|
38788
38788
|
getRefMaps: () => p
|
|
38789
38789
|
}, v = A(() => Object.assign({}, re().list.scrollY, e.scrollY)), O = A(() => {
|
|
38790
|
-
const { height:
|
|
38791
|
-
return
|
|
38792
|
-
}), D = (
|
|
38793
|
-
o(
|
|
38790
|
+
const { height: _, maxHeight: ge } = e, ae = {};
|
|
38791
|
+
return _ ? ae.height = `${isNaN(_) ? _ : `${_}px`}` : ge && (ae.height = "auto", ae.maxHeight = `${isNaN(ge) ? ge : `${ge}px`}`), ae;
|
|
38792
|
+
}), D = (_, ge, ae) => {
|
|
38793
|
+
o(_, Zt(ae, { $list: b }, ge));
|
|
38794
38794
|
}, h = () => {
|
|
38795
|
-
const { scrollYLoad:
|
|
38796
|
-
a.bodyHeight =
|
|
38795
|
+
const { scrollYLoad: _ } = a, { scrollYStore: ge, fullData: ae } = c;
|
|
38796
|
+
a.bodyHeight = _ ? ae.length * ge.rowHeight : 0, a.topSpaceHeight = _ ? Math.max(ge.startIndex * ge.rowHeight, 0) : 0;
|
|
38797
38797
|
}, g = () => {
|
|
38798
|
-
const { scrollYLoad:
|
|
38799
|
-
return a.items =
|
|
38798
|
+
const { scrollYLoad: _ } = a, { fullData: ge, scrollYStore: ae } = c;
|
|
38799
|
+
return a.items = _ ? ge.slice(ae.startIndex, ae.endIndex) : ge.slice(0), fe();
|
|
38800
38800
|
}, E = () => {
|
|
38801
38801
|
g(), h();
|
|
38802
38802
|
}, C = () => fe().then(() => {
|
|
38803
|
-
const { scrollYLoad:
|
|
38803
|
+
const { scrollYLoad: _ } = a, { scrollYStore: ge } = c, ae = f.value, F = v.value;
|
|
38804
38804
|
let W = 0, k;
|
|
38805
|
-
if (ae && (F.sItem && (k = ae.querySelector(F.sItem)), k || (k = ae.children[0])), k && (W = k.offsetHeight), W = Math.max(20, W), ge.rowHeight = W,
|
|
38805
|
+
if (ae && (F.sItem && (k = ae.querySelector(F.sItem)), k || (k = ae.children[0])), k && (W = k.offsetHeight), W = Math.max(20, W), ge.rowHeight = W, _) {
|
|
38806
38806
|
const I = u.value, Q = Math.max(8, Math.ceil(I.clientHeight / W)), ie = F.oSize ? i.toNumber(F.oSize) : f5.edge ? 10 : 0;
|
|
38807
38807
|
ge.offsetSize = ie, ge.visibleSize = Q, ge.endIndex = Math.max(ge.startIndex, Q + ie, ge.endIndex), E();
|
|
38808
38808
|
} else
|
|
38809
38809
|
h();
|
|
38810
38810
|
}), x = () => {
|
|
38811
|
-
const
|
|
38812
|
-
return
|
|
38813
|
-
}, w = (
|
|
38811
|
+
const _ = u.value;
|
|
38812
|
+
return _ && (_.scrollTop = 0), fe();
|
|
38813
|
+
}, w = (_, ge) => {
|
|
38814
38814
|
const ae = u.value;
|
|
38815
|
-
return i.isNumber(
|
|
38815
|
+
return i.isNumber(_) && (ae.scrollLeft = _), i.isNumber(ge) && (ae.scrollTop = ge), a.scrollYLoad ? new Promise((F) => {
|
|
38816
38816
|
setTimeout(() => {
|
|
38817
38817
|
fe(() => {
|
|
38818
38818
|
F();
|
|
@@ -38820,22 +38820,22 @@ const iu = st({
|
|
|
38820
38820
|
}, 50);
|
|
38821
38821
|
}) : fe();
|
|
38822
38822
|
}, y = () => {
|
|
38823
|
-
const { lastScrollLeft:
|
|
38823
|
+
const { lastScrollLeft: _, lastScrollTop: ge } = c;
|
|
38824
38824
|
return x().then(() => {
|
|
38825
|
-
if (
|
|
38826
|
-
return c.lastScrollLeft = 0, c.lastScrollTop = 0, w(
|
|
38825
|
+
if (_ || ge)
|
|
38826
|
+
return c.lastScrollLeft = 0, c.lastScrollTop = 0, w(_, ge);
|
|
38827
38827
|
});
|
|
38828
38828
|
}, $ = () => {
|
|
38829
|
-
const
|
|
38830
|
-
return
|
|
38831
|
-
}, N = (
|
|
38832
|
-
const { scrollYStore: ge } = c, { startIndex: ae, endIndex: F, visibleSize: W, offsetSize: k, rowHeight: I } = ge, ie =
|
|
38829
|
+
const _ = d.value;
|
|
38830
|
+
return _.clientWidth && _.clientHeight ? C() : Promise.resolve();
|
|
38831
|
+
}, N = (_) => {
|
|
38832
|
+
const { scrollYStore: ge } = c, { startIndex: ae, endIndex: F, visibleSize: W, offsetSize: k, rowHeight: I } = ge, ie = _.target.scrollTop, U = Math.floor(ie / I), ee = Math.max(0, U - 1 - k), me = U + W + k;
|
|
38833
38833
|
(U <= ae || U >= F - W - 1) && (ae !== ee || F !== me) && (ge.startIndex = ee, ge.endIndex = me, E());
|
|
38834
|
-
}, H = (
|
|
38835
|
-
const ge =
|
|
38836
|
-
c.lastScrollTop = ae, c.lastScrollLeft = F, a.scrollYLoad && N(
|
|
38837
|
-
}, G = (
|
|
38838
|
-
const { scrollYStore: ge } = c, ae = v.value, F =
|
|
38834
|
+
}, H = (_) => {
|
|
38835
|
+
const ge = _.target, ae = ge.scrollTop, F = ge.scrollLeft, W = F !== c.lastScrollLeft, k = ae !== c.lastScrollTop;
|
|
38836
|
+
c.lastScrollTop = ae, c.lastScrollLeft = F, a.scrollYLoad && N(_), D("scroll", { scrollLeft: F, scrollTop: ae, isX: W, isY: k }, _);
|
|
38837
|
+
}, G = (_) => {
|
|
38838
|
+
const { scrollYStore: ge } = c, ae = v.value, F = _ || [];
|
|
38839
38839
|
return Object.assign(ge, {
|
|
38840
38840
|
startIndex: 0,
|
|
38841
38841
|
endIndex: 1,
|
|
@@ -38851,8 +38851,8 @@ const iu = st({
|
|
|
38851
38851
|
* 重新加载数据
|
|
38852
38852
|
* @param {Array} datas 数据
|
|
38853
38853
|
*/
|
|
38854
|
-
reloadData(
|
|
38855
|
-
return x(), G(
|
|
38854
|
+
reloadData(_) {
|
|
38855
|
+
return x(), G(_);
|
|
38856
38856
|
},
|
|
38857
38857
|
recalculate: $,
|
|
38858
38858
|
scrollTo: w,
|
|
@@ -38866,27 +38866,27 @@ const iu = st({
|
|
|
38866
38866
|
oe.value++;
|
|
38867
38867
|
}), at(oe, () => {
|
|
38868
38868
|
G(e.data || []);
|
|
38869
|
-
}), at(() => e.syncResize, (
|
|
38870
|
-
|
|
38869
|
+
}), at(() => e.syncResize, (_) => {
|
|
38870
|
+
_ && ($(), fe(() => setTimeout(() => $())));
|
|
38871
38871
|
}), kv(() => {
|
|
38872
38872
|
$().then(() => y());
|
|
38873
38873
|
}), fe(() => {
|
|
38874
38874
|
if (dt.on(b, "resize", () => {
|
|
38875
38875
|
$();
|
|
38876
38876
|
}), e.autoResize) {
|
|
38877
|
-
const
|
|
38878
|
-
ge.observe(
|
|
38877
|
+
const _ = d.value, ge = zx.create(() => $());
|
|
38878
|
+
ge.observe(_), c.resizeObserver = ge;
|
|
38879
38879
|
}
|
|
38880
38880
|
G(e.data || []);
|
|
38881
38881
|
}), zn(() => {
|
|
38882
|
-
const { resizeObserver:
|
|
38883
|
-
|
|
38882
|
+
const { resizeObserver: _ } = c;
|
|
38883
|
+
_ && _.disconnect(), dt.off(b, "resize");
|
|
38884
38884
|
});
|
|
38885
38885
|
const K = () => {
|
|
38886
|
-
const { className:
|
|
38886
|
+
const { className: _, loading: ge } = e, { bodyHeight: ae, topSpaceHeight: F, items: W } = a, k = n.default, I = l.value, Q = O.value;
|
|
38887
38887
|
return r("div", {
|
|
38888
38888
|
ref: d,
|
|
38889
|
-
class: ["vxe-list",
|
|
38889
|
+
class: ["vxe-list", _ ? i.isFunction(_) ? _({ $list: b }) : _ : "", {
|
|
38890
38890
|
[`size--${I}`]: I,
|
|
38891
38891
|
"is--loading": ge
|
|
38892
38892
|
}]
|
|
@@ -39070,7 +39070,7 @@ const cu = st({
|
|
|
39070
39070
|
})
|
|
39071
39071
|
]) : Ve()
|
|
39072
39072
|
];
|
|
39073
|
-
},
|
|
39073
|
+
}, _ = (W) => {
|
|
39074
39074
|
const { itemKey: k, level: I, hasChild: Q, isActive: ie, isExactActive: U, isExpand: ee, routerLink: me, childList: De } = W, { isEnterCollapse: le } = d, L = f.value;
|
|
39075
39075
|
return W.permissionCode && !Ei.checkVisible(W.permissionCode) ? Ve() : r("div", {
|
|
39076
39076
|
key: k,
|
|
@@ -39096,7 +39096,7 @@ const cu = st({
|
|
|
39096
39096
|
}, K(W)),
|
|
39097
39097
|
Q ? r("div", {
|
|
39098
39098
|
class: "vxe-menu--item-group"
|
|
39099
|
-
}, De.map((Y) =>
|
|
39099
|
+
}, De.map((Y) => _(Y))) : Ve()
|
|
39100
39100
|
]);
|
|
39101
39101
|
}, ge = (W) => {
|
|
39102
39102
|
const { itemKey: k, level: I, hasChild: Q, isActive: ie, isExactActive: U, routerLink: ee, childList: me } = W;
|
|
@@ -39123,7 +39123,7 @@ const cu = st({
|
|
|
39123
39123
|
}, K(W)),
|
|
39124
39124
|
Q ? r("div", {
|
|
39125
39125
|
class: "vxe-menu--item-group"
|
|
39126
|
-
}, me.map((De) =>
|
|
39126
|
+
}, me.map((De) => _(De))) : Ve()
|
|
39127
39127
|
]);
|
|
39128
39128
|
}, ae = () => {
|
|
39129
39129
|
const { loading: W } = e, { initialized: k, menuList: I, collapseStyle: Q, isEnterCollapse: ie } = d, U = c.value, ee = f.value;
|
|
@@ -39137,7 +39137,7 @@ const cu = st({
|
|
|
39137
39137
|
}, [
|
|
39138
39138
|
r("div", {
|
|
39139
39139
|
class: "vxe-menu--item-list"
|
|
39140
|
-
}, I.map((me) => ee ? ge(me) :
|
|
39140
|
+
}, I.map((me) => ee ? ge(me) : _(me))),
|
|
39141
39141
|
k ? r("div", {
|
|
39142
39142
|
ref: a,
|
|
39143
39143
|
class: ["vxe-menu--collapse-wrapper", {
|
|
@@ -39152,7 +39152,7 @@ const cu = st({
|
|
|
39152
39152
|
}, [
|
|
39153
39153
|
ee ? r("div", {
|
|
39154
39154
|
class: "vxe-menu--item-list"
|
|
39155
|
-
}, I.map((me) =>
|
|
39155
|
+
}, I.map((me) => _(me))) : Ve()
|
|
39156
39156
|
]) : Ve(),
|
|
39157
39157
|
/**
|
|
39158
39158
|
* 加载中
|
|
@@ -39643,7 +39643,7 @@ const pu = st({
|
|
|
39643
39643
|
r("i", {
|
|
39644
39644
|
class: ["vxe-pager--btn-icon", e.iconHomePage || bt().PAGER_HOME]
|
|
39645
39645
|
})
|
|
39646
|
-
]),
|
|
39646
|
+
]), _ = () => r("button", {
|
|
39647
39647
|
class: ["vxe-pager--prev-btn", {
|
|
39648
39648
|
"is--disabled": e.currentPage <= 1
|
|
39649
39649
|
}],
|
|
@@ -39833,7 +39833,7 @@ const pu = st({
|
|
|
39833
39833
|
je = ge;
|
|
39834
39834
|
break;
|
|
39835
39835
|
case "PrevPage":
|
|
39836
|
-
je =
|
|
39836
|
+
je = _;
|
|
39837
39837
|
break;
|
|
39838
39838
|
case "Number":
|
|
39839
39839
|
je = k;
|
|
@@ -40009,7 +40009,7 @@ const mu = st({
|
|
|
40009
40009
|
const { inputValue: Q } = d;
|
|
40010
40010
|
v.dispatchEvent("suffix-click", { value: Q }, k);
|
|
40011
40011
|
}
|
|
40012
|
-
},
|
|
40012
|
+
}, _ = (k) => {
|
|
40013
40013
|
const { disabled: I } = e;
|
|
40014
40014
|
if (!I) {
|
|
40015
40015
|
const { inputValue: Q } = d;
|
|
@@ -40029,7 +40029,7 @@ const mu = st({
|
|
|
40029
40029
|
const { prefixIcon: k } = e, I = o.prefix;
|
|
40030
40030
|
return I || k ? r("div", {
|
|
40031
40031
|
class: "vxe-password-input--prefix",
|
|
40032
|
-
onClick:
|
|
40032
|
+
onClick: _
|
|
40033
40033
|
}, [
|
|
40034
40034
|
r("div", {
|
|
40035
40035
|
class: "vxe-password-input--prefix-icon"
|
|
@@ -40350,7 +40350,7 @@ const hu = st({
|
|
|
40350
40350
|
const v = () => {
|
|
40351
40351
|
const { title: h, showPageNumber: g, showAllPageTitle: E, align: C, headerAlign: x, footerAlign: w } = e, y = e.pageBreaks || [], $ = y.length;
|
|
40352
40352
|
return y.map((N, H) => {
|
|
40353
|
-
const G = N.bodyHtml, j = N.headerHtml || e.headerHtml, oe = N.footerHtml || e.footerHtml, K = N.leftHtml || e.leftHtml,
|
|
40353
|
+
const G = N.bodyHtml, j = N.headerHtml || e.headerHtml, oe = N.footerHtml || e.footerHtml, K = N.leftHtml || e.leftHtml, _ = N.rightHtml || e.rightHtml, ge = H + 1, ae = {
|
|
40354
40354
|
currentPage: ge,
|
|
40355
40355
|
pageCount: $
|
|
40356
40356
|
};
|
|
@@ -40375,7 +40375,7 @@ const hu = st({
|
|
|
40375
40375
|
}, `${i.isFunction(G) ? G(ae) : G || ""}`),
|
|
40376
40376
|
r("div", {
|
|
40377
40377
|
class: "vxe-print-page-break--right"
|
|
40378
|
-
}, `${i.isFunction(
|
|
40378
|
+
}, `${i.isFunction(_) ? _(ae) : _ || ""}`)
|
|
40379
40379
|
]),
|
|
40380
40380
|
r("div", {
|
|
40381
40381
|
class: ["vxe-print-page-break--footer", w ? `align--${w}` : ""]
|
|
@@ -40389,7 +40389,7 @@ const hu = st({
|
|
|
40389
40389
|
}, O = () => {
|
|
40390
40390
|
const { title: h, showPageNumber: g, showAllPageTitle: E, align: C, headerAlign: x, footerAlign: w } = e, { staticPageBreaks: y } = a, $ = y.length;
|
|
40391
40391
|
return y.map((N, H) => {
|
|
40392
|
-
const G = N.slots || {}, j = H + 1, oe = G.default, K = G.header || n.header,
|
|
40392
|
+
const G = N.slots || {}, j = H + 1, oe = G.default, K = G.header || n.header, _ = G.footer || n.footer, ge = G.left || n.left, ae = G.right || n.right, F = {
|
|
40393
40393
|
currentPage: j,
|
|
40394
40394
|
pageCount: $
|
|
40395
40395
|
};
|
|
@@ -40418,7 +40418,7 @@ const hu = st({
|
|
|
40418
40418
|
]),
|
|
40419
40419
|
r("div", {
|
|
40420
40420
|
class: ["vxe-print-page-break--footer", w ? `align--${w}` : ""]
|
|
40421
|
-
},
|
|
40421
|
+
}, _ ? Rt(_(F)) : [
|
|
40422
40422
|
g ? r("div", {
|
|
40423
40423
|
class: "vxe-print-page-break--footer-page-number"
|
|
40424
40424
|
}, `${j}/${$}`) : Ve()
|
|
@@ -40557,23 +40557,23 @@ const vu = st({
|
|
|
40557
40557
|
F();
|
|
40558
40558
|
});
|
|
40559
40559
|
})), N = () => f.visiblePanel ? $() : y(), H = (F, W) => {
|
|
40560
|
-
W.disabled || (f.visiblePanel && ($(),
|
|
40560
|
+
W.disabled || (f.visiblePanel && ($(), _("hide-panel", {}, F)), _("option-click", { option: W }, F));
|
|
40561
40561
|
}, G = (F) => {
|
|
40562
40562
|
const { trigger: W } = e;
|
|
40563
|
-
W === "click" && (f.visiblePanel ? ($(),
|
|
40563
|
+
W === "click" && (f.visiblePanel ? ($(), _("hide-panel", {}, F)) : (y(), _("show-panel", {}, F))), _("click", { $pulldown: g }, F);
|
|
40564
40564
|
}, j = (F) => {
|
|
40565
40565
|
const { disabled: W } = e, { visiblePanel: k } = f, I = O.value;
|
|
40566
|
-
W || k && (Kn(F, I).flag ? w() : ($(),
|
|
40566
|
+
W || k && (Kn(F, I).flag ? w() : ($(), _("hide-panel", {}, F)));
|
|
40567
40567
|
}, oe = (F) => {
|
|
40568
40568
|
const { disabled: W } = e, { visiblePanel: k } = f, I = b.value, Q = O.value;
|
|
40569
|
-
W || (f.isActivated = Kn(F, I).flag || Kn(F, Q).flag, k && !f.isActivated && ($(),
|
|
40569
|
+
W || (f.isActivated = Kn(F, I).flag || Kn(F, Q).flag, k && !f.isActivated && ($(), _("hide-panel", {}, F)));
|
|
40570
40570
|
}, K = (F) => {
|
|
40571
|
-
f.visiblePanel && (f.isActivated = !1, $(),
|
|
40572
|
-
},
|
|
40571
|
+
f.visiblePanel && (f.isActivated = !1, $(), _("hide-panel", {}, F));
|
|
40572
|
+
}, _ = (F, W, k) => {
|
|
40573
40573
|
o(F, Zt(k, { $pulldown: g }, W));
|
|
40574
40574
|
};
|
|
40575
40575
|
E = {
|
|
40576
|
-
dispatchEvent:
|
|
40576
|
+
dispatchEvent: _,
|
|
40577
40577
|
isPanelVisible: x,
|
|
40578
40578
|
togglePanel: N,
|
|
40579
40579
|
showPanel: y,
|
|
@@ -40920,7 +40920,7 @@ const yu = st({
|
|
|
40920
40920
|
return Object.assign({}, Ne.rowConfig, {
|
|
40921
40921
|
isCurrent: !0
|
|
40922
40922
|
});
|
|
40923
|
-
}), H = A(() => N.value.keyField || "_X_ROW_KEY"), G = A(() => $.value.label || "label"), j = A(() => $.value.value || "value"), oe = A(() => Object.assign({}, re().tableSelect.popupConfig, e.popupConfig)), K = A(() => Object.assign({}, re().tableSelect.gridConfig, e.gridConfig, { data: void 0, columns: void 0 })),
|
|
40923
|
+
}), H = A(() => N.value.keyField || "_X_ROW_KEY"), G = A(() => $.value.label || "label"), j = A(() => $.value.value || "value"), oe = A(() => Object.assign({}, re().tableSelect.popupConfig, e.popupConfig)), K = A(() => Object.assign({}, re().tableSelect.gridConfig, e.gridConfig, { data: void 0, columns: void 0 })), _ = A(() => {
|
|
40924
40924
|
const { modelValue: Ne } = e, { fullRowMaps: Ce } = g, Le = G.value;
|
|
40925
40925
|
return (i.isArray(Ne) ? Ne : [Ne]).map((Te) => {
|
|
40926
40926
|
const Oe = Ce[Te];
|
|
@@ -41052,7 +41052,7 @@ const yu = st({
|
|
|
41052
41052
|
};
|
|
41053
41053
|
Object.assign(F, I, Q);
|
|
41054
41054
|
const mt = () => {
|
|
41055
|
-
const { className: Ne, options: Ce, loading: Le } = e, { initialized: Te, isActivated: Oe, isAniVisible: M, visiblePanel: ne, tableColumns: ye } = g, q = p.value, R = w.value, J =
|
|
41055
|
+
const { className: Ne, options: Ce, loading: Le } = e, { initialized: Te, isActivated: Oe, isAniVisible: M, visiblePanel: ne, tableColumns: ye } = g, q = p.value, R = w.value, J = _.value, V = y.value, Z = x.value, be = oe.value, { className: Se } = be, $e = K.value, Be = N.value, et = ge.value, Ze = o.header, Je = o.footer, xt = o.prefix;
|
|
41056
41056
|
return Z ? r("div", {
|
|
41057
41057
|
ref: b,
|
|
41058
41058
|
class: ["vxe-table-select--readonly", Ne]
|
|
@@ -41280,9 +41280,9 @@ const wu = st({
|
|
|
41280
41280
|
const j = f.value;
|
|
41281
41281
|
let oe = Math.floor($ / G), K = j.slice(0, oe);
|
|
41282
41282
|
H.textContent = K, c.visibleLen = K.length;
|
|
41283
|
-
let
|
|
41284
|
-
for (; $ > H.clientWidth &&
|
|
41285
|
-
|
|
41283
|
+
let _ = 0;
|
|
41284
|
+
for (; $ > H.clientWidth && _ < 30; ) {
|
|
41285
|
+
_++;
|
|
41286
41286
|
const ge = Math.floor(($ - H.clientWidth) / G);
|
|
41287
41287
|
if (ge)
|
|
41288
41288
|
oe += ge, K = j.slice(0, oe), H.textContent = K, c.visibleLen = K.length;
|
|
@@ -42528,8 +42528,8 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42528
42528
|
a.current = oe, d.value = j;
|
|
42529
42529
|
try {
|
|
42530
42530
|
c.value = !0;
|
|
42531
|
-
const
|
|
42532
|
-
Array.isArray(
|
|
42531
|
+
const _ = await ((K = o.remoteMethod) == null ? void 0 : K.call(o, j, a));
|
|
42532
|
+
Array.isArray(_) || !_ ? (a.current === 1 ? s.value = _ || [] : s.value.push(..._ || []), u.value = (_ == null ? void 0 : _.length) < a.size) : (a.current === 1 ? s.value = _.records || [] : s.value.push(..._.records || []), a.pages = Math.max(1, _.pages || 0), u.value = a.current >= a.pages);
|
|
42533
42533
|
} finally {
|
|
42534
42534
|
c.value = !1;
|
|
42535
42535
|
}
|
|
@@ -42578,13 +42578,14 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42578
42578
|
set(j) {
|
|
42579
42579
|
if (o.labelInValue)
|
|
42580
42580
|
if (Array.isArray(j)) {
|
|
42581
|
+
console.log("value:", j);
|
|
42581
42582
|
const oe = s.value.filter(
|
|
42582
|
-
(K) => j.
|
|
42583
|
+
(K) => j.find((_) => _[o.valueKey] === K[o.valueKey])
|
|
42583
42584
|
);
|
|
42584
42585
|
n("update:modelValue", oe), n("change", oe);
|
|
42585
42586
|
} else {
|
|
42586
42587
|
const oe = s.value.find(
|
|
42587
|
-
(K) => j === K[o.valueKey]
|
|
42588
|
+
(K) => j[o.valueKey] === K[o.valueKey]
|
|
42588
42589
|
);
|
|
42589
42590
|
n("update:modelValue", oe), n("change", oe);
|
|
42590
42591
|
}
|
|
@@ -42594,9 +42595,9 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42594
42595
|
}), w = Fv(() => {
|
|
42595
42596
|
var j, oe, K;
|
|
42596
42597
|
if (o.autoSelectFirstOption) {
|
|
42597
|
-
if (s.value.length && (x.value === null || x.value === void 0)) {
|
|
42598
|
-
let
|
|
42599
|
-
o.multiple && typeof
|
|
42598
|
+
if (s.value.length && (x.value === null || x.value === void 0 || Array.isArray(x.value) && x.value.length === 0)) {
|
|
42599
|
+
let _ = o.labelInValue ? (j = s.value) == null ? void 0 : j[0] : (K = (oe = s.value) == null ? void 0 : oe[0]) == null ? void 0 : K[o.valueKey];
|
|
42600
|
+
o.multiple && typeof _ < "u" ? x.value = [_] : x.value = _, setTimeout(() => w());
|
|
42600
42601
|
}
|
|
42601
42602
|
} else
|
|
42602
42603
|
setTimeout(() => w());
|
|
@@ -42630,7 +42631,7 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42630
42631
|
return j.enableLoadmore || j.selectType === "v1" ? (wo(), ms(In(Lv), Wn({
|
|
42631
42632
|
key: 0,
|
|
42632
42633
|
modelValue: x.value,
|
|
42633
|
-
"onUpdate:modelValue": oe[0] || (oe[0] = (
|
|
42634
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (_) => x.value = _)
|
|
42634
42635
|
}, {
|
|
42635
42636
|
...In(H),
|
|
42636
42637
|
...j.$attrs
|
|
@@ -42642,9 +42643,9 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42642
42643
|
onVisibleChange: g
|
|
42643
42644
|
}), Ou({
|
|
42644
42645
|
default: Bn(() => {
|
|
42645
|
-
var
|
|
42646
|
+
var _, ge, ae;
|
|
42646
42647
|
return [
|
|
42647
|
-
j.labelInValue && ((
|
|
42648
|
+
j.labelInValue && ((_ = j.modelValue) != null && _[j.labelKey]) && !s.value.find((F) => {
|
|
42648
42649
|
var W;
|
|
42649
42650
|
return F[j.valueKey] === ((W = j.modelValue) == null ? void 0 : W[j.valueKey]);
|
|
42650
42651
|
}) ? (wo(), ms(In(Df), {
|
|
@@ -42691,7 +42692,7 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42691
42692
|
]), 1040, ["modelValue", "popper-class", "remote-method"])) : (wo(), ms(In(rE), Wn({
|
|
42692
42693
|
key: 1,
|
|
42693
42694
|
modelValue: x.value,
|
|
42694
|
-
"onUpdate:modelValue": oe[1] || (oe[1] = (
|
|
42695
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (_) => x.value = _),
|
|
42695
42696
|
props: G.value,
|
|
42696
42697
|
options: s.value
|
|
42697
42698
|
}, {
|
|
@@ -42703,8 +42704,8 @@ const SJ = /* @__PURE__ */ st({
|
|
|
42703
42704
|
onBlur: C,
|
|
42704
42705
|
onVisibleChange: g
|
|
42705
42706
|
}), Ou({
|
|
42706
|
-
default: Bn((
|
|
42707
|
-
Do(j.$slots, "default", vr(br(
|
|
42707
|
+
default: Bn((_) => [
|
|
42708
|
+
Do(j.$slots, "default", vr(br(_)), void 0, !0)
|
|
42708
42709
|
]),
|
|
42709
42710
|
_: 2
|
|
42710
42711
|
}, [
|
|
@@ -42733,7 +42734,7 @@ const DJ = (e, t) => {
|
|
|
42733
42734
|
for (const [o, s] of t)
|
|
42734
42735
|
n[o] = s;
|
|
42735
42736
|
return n;
|
|
42736
|
-
}, Vv = /* @__PURE__ */ DJ(SJ, [["__scopeId", "data-v-
|
|
42737
|
+
}, Vv = /* @__PURE__ */ DJ(SJ, [["__scopeId", "data-v-889ee4f0"]]), $J = /* @__PURE__ */ st({
|
|
42737
42738
|
__name: "index",
|
|
42738
42739
|
props: {
|
|
42739
42740
|
lang: {}
|