@wx-design/components 1.3.2 → 1.3.3
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/core/Select/index.vue.d.ts +1 -0
- package/es/index.mjs +683 -680
- package/es/style.css +1 -1
- package/lib/core/Select/index.vue.d.ts +1 -0
- package/lib/index.js +5 -5
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -3416,8 +3416,8 @@ function Kg(e, t) {
|
|
|
3416
3416
|
const G = u[H], ne = St(e, G);
|
|
3417
3417
|
if (G === t || ne === E)
|
|
3418
3418
|
break;
|
|
3419
|
-
const
|
|
3420
|
-
C +=
|
|
3419
|
+
const q = p[ne];
|
|
3420
|
+
C += q ? q.height : 0;
|
|
3421
3421
|
}
|
|
3422
3422
|
return C < b ? e.scrollTo(null, C - v - 1) : e.scrollTo(null, C + P - (y - D - 1));
|
|
3423
3423
|
}
|
|
@@ -3694,13 +3694,13 @@ const sn = {
|
|
|
3694
3694
|
*/
|
|
3695
3695
|
renderTreeIcon(e, t) {
|
|
3696
3696
|
const { $table: n, isHidden: o } = e, { reactData: r, internalData: s } = n, { computeTreeOpts: a } = n.getComputeMaps(), { treeExpandedMaps: c, treeExpandLazyLoadedMaps: f } = r, { fullAllDataRowIdData: u } = s, d = a.value, { row: p, column: h, level: g } = e, { slots: w } = h, { indent: S, lazy: E, trigger: v, iconLoaded: D, showIcon: y, iconOpen: b, iconClose: x } = d, C = d.children || d.childrenField, $ = d.hasChild || d.hasChildField, P = p[C], H = P && P.length, G = w ? w.icon : null;
|
|
3697
|
-
let ne = !1,
|
|
3697
|
+
let ne = !1, q = !1, L = !1, _ = !1;
|
|
3698
3698
|
const fe = {};
|
|
3699
3699
|
if (G)
|
|
3700
3700
|
return n.callSlot(G, e);
|
|
3701
3701
|
if (!o) {
|
|
3702
3702
|
const re = St(n, p);
|
|
3703
|
-
if (
|
|
3703
|
+
if (q = !!c[re], E) {
|
|
3704
3704
|
const F = u[re];
|
|
3705
3705
|
L = !!f[re], ne = p[$], _ = !!F.treeLoaded;
|
|
3706
3706
|
}
|
|
@@ -3710,7 +3710,7 @@ const sn = {
|
|
|
3710
3710
|
}), [
|
|
3711
3711
|
l("div", {
|
|
3712
3712
|
class: ["vxe-cell--tree-node", {
|
|
3713
|
-
"is--active":
|
|
3713
|
+
"is--active": q
|
|
3714
3714
|
}],
|
|
3715
3715
|
style: {
|
|
3716
3716
|
paddingLeft: `${g * S}px`
|
|
@@ -3719,7 +3719,7 @@ const sn = {
|
|
|
3719
3719
|
y && (E ? _ ? H : ne : H) ? [
|
|
3720
3720
|
l("div", Object.assign({ class: "vxe-tree--btn-wrapper" }, fe), [
|
|
3721
3721
|
l("i", {
|
|
3722
|
-
class: ["vxe-tree--node-btn", L ? D || so().TABLE_TREE_LOADED :
|
|
3722
|
+
class: ["vxe-tree--node-btn", L ? D || so().TABLE_TREE_LOADED : q ? b || so().TABLE_TREE_OPEN : x || so().TABLE_TREE_CLOSE]
|
|
3723
3723
|
})
|
|
3724
3724
|
])
|
|
3725
3725
|
] : null,
|
|
@@ -4228,7 +4228,7 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4228
4228
|
}
|
|
4229
4229
|
},
|
|
4230
4230
|
setup(e) {
|
|
4231
|
-
const t = mt("$xeTable", {}), n = mt("xesize", null), { xID: o, props: r, context: s, reactData: a, internalData: c } = t, { refTableBody: f, refTableHeader: u, refTableFooter: d, refTableLeftBody: p, refTableRightBody: h, refScrollXHandleElem: g, refScrollYHandleElem: w } = t.getRefMaps(), { computeEditOpts: S, computeMouseOpts: E, computeAreaOpts: v, computeSYOpts: D, computeEmptyOpts: y, computeTooltipOpts: b, computeRadioOpts: x, computeExpandOpts: C, computeTreeOpts: $, computeCheckboxOpts: P, computeCellOpts: H, computeValidOpts: G, computeRowOpts: ne, computeColumnOpts:
|
|
4231
|
+
const t = mt("$xeTable", {}), n = mt("xesize", null), { xID: o, props: r, context: s, reactData: a, internalData: c } = t, { refTableBody: f, refTableHeader: u, refTableFooter: d, refTableLeftBody: p, refTableRightBody: h, refScrollXHandleElem: g, refScrollYHandleElem: w } = t.getRefMaps(), { computeEditOpts: S, computeMouseOpts: E, computeAreaOpts: v, computeSYOpts: D, computeEmptyOpts: y, computeTooltipOpts: b, computeRadioOpts: x, computeExpandOpts: C, computeTreeOpts: $, computeCheckboxOpts: P, computeCellOpts: H, computeValidOpts: G, computeRowOpts: ne, computeColumnOpts: q, computeRowDragOpts: L, computeColumnDragOpts: _ } = t.getComputeMaps(), fe = Oe(), re = Oe(), F = Oe(), z = Oe(), k = Oe(), I = Oe(), J = Oe(), ie = () => {
|
|
4232
4232
|
if (n) {
|
|
4233
4233
|
const je = n.value;
|
|
4234
4234
|
if (je)
|
|
@@ -4270,7 +4270,7 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4270
4270
|
])
|
|
4271
4271
|
] : [];
|
|
4272
4272
|
}, se = (je, Ge, at, bt, dt, gt, pt, ke, xe, Be, Te, $e) => {
|
|
4273
|
-
const { fullAllDataRowIdData: M } = c, { columnKey: te, height: Se, showOverflow: K, cellClassName: A, cellStyle: ee, align: R, spanMethod: Q, mouseConfig: be, editConfig: Ee, editRules: Me, tooltipConfig: Le } = r, { tableData: Qe, overflowX: nt, currentColumn: et, scrollXLoad: yt, scrollYLoad: ut, mergeList: Et, editStore: Ht, isAllOverflow: yn, validErrorMaps: en } = a, { afterFullData: Bt } = c, Ie = H.value, We = G.value, it = P.value, $t = S.value, At = b.value, Jt = ne.value, Pt = L.value, { disabledMethod: qt } = Pt, _t = D.value,
|
|
4273
|
+
const { fullAllDataRowIdData: M } = c, { columnKey: te, height: Se, showOverflow: K, cellClassName: A, cellStyle: ee, align: R, spanMethod: Q, mouseConfig: be, editConfig: Ee, editRules: Me, tooltipConfig: Le } = r, { tableData: Qe, overflowX: nt, currentColumn: et, scrollXLoad: yt, scrollYLoad: ut, mergeList: Et, editStore: Ht, isAllOverflow: yn, validErrorMaps: en } = a, { afterFullData: Bt } = c, Ie = H.value, We = G.value, it = P.value, $t = S.value, At = b.value, Jt = ne.value, Pt = L.value, { disabledMethod: qt } = Pt, _t = D.value, U = q.value, on = E.value, rn = v.value, { selectCellToRow: $n } = rn, { type: In, cellRender: Pn, editRender: pn, align: bn, showOverflow: Vn, className: vo, treeNode: ko, slots: ho } = xe, { verticalAlign: Xo } = Ie, { actived: zo } = Ht, { rHeight: bo } = _t, { height: Zo } = Jt, Wr = xe.id, Ss = pn || Pn, jo = Ss ? eh.get(Ss.name) : null, qs = jo ? jo.tableCellClassName || jo.cellClassName : null, zr = jo ? jo.tableCellStyle || jo.cellStyle : "", Jn = At.showAll, Ds = t.getColumnIndex(xe), sr = t.getVTColumnIndex(xe), jr = mn(pn);
|
|
4274
4274
|
let Ro = at ? xe.fixed !== at : xe.fixed && nt;
|
|
4275
4275
|
const Hr = i.isUndefined(Vn) || i.isNull(Vn) ? K : Vn, mo = Hr === "ellipsis", wo = Hr === "title", Lo = Hr === !0 || Hr === "tooltip", fr = K || wo || Lo || mo;
|
|
4276
4276
|
let Us;
|
|
@@ -4391,11 +4391,11 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4391
4391
|
ol(qs, vt),
|
|
4392
4392
|
ol(vo, vt),
|
|
4393
4393
|
ol(A, vt)
|
|
4394
|
-
], key: te || yt || ut ||
|
|
4394
|
+
], key: te || yt || ut || U.useKey || Jt.useKey || U.drag ? Wr : Be }, Ze), { style: Object.assign({
|
|
4395
4395
|
height: jt
|
|
4396
4396
|
}, i.isFunction(zr) ? zr(vt) : zr, i.isFunction(ee) ? ee(vt) : ee) }), pr), zt);
|
|
4397
4397
|
}, B = (je, Ge, at) => {
|
|
4398
|
-
const { stripe: bt, rowKey: dt, highlightHoverRow: gt, rowClassName: pt, rowStyle: ke, showOverflow: xe, editConfig: Be, treeConfig: Te } = r, { hasFixedColumn: $e, treeExpandedMaps: M, scrollXLoad: te, scrollYLoad: Se, rowExpandedMaps: K, expandColumn: A, selectRadioRow: ee, pendingRowMaps: R, isDragColMove: Q } = a, { fullAllDataRowIdData: be } = c, Ee = P.value, Me = x.value, Le = $.value, Qe = S.value, nt = ne.value, et =
|
|
4398
|
+
const { stripe: bt, rowKey: dt, highlightHoverRow: gt, rowClassName: pt, rowStyle: ke, showOverflow: xe, editConfig: Be, treeConfig: Te } = r, { hasFixedColumn: $e, treeExpandedMaps: M, scrollXLoad: te, scrollYLoad: Se, rowExpandedMaps: K, expandColumn: A, selectRadioRow: ee, pendingRowMaps: R, isDragColMove: Q } = a, { fullAllDataRowIdData: be } = c, Ee = P.value, Me = x.value, Le = $.value, Qe = S.value, nt = ne.value, et = q.value, yt = _.value, { transform: ut, seqMode: Et } = Le, Ht = Le.children || Le.childrenField, yn = [];
|
|
4399
4399
|
return Ge.forEach((en, Bt) => {
|
|
4400
4400
|
const Ie = {};
|
|
4401
4401
|
let We = Bt;
|
|
@@ -4408,8 +4408,8 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4408
4408
|
let At = 0, Jt = -1, Pt = 0;
|
|
4409
4409
|
$t && (At = $t.level, Te && ut && Et === "increasing" ? Jt = $t._index + 1 : Jt = $t.seq, Pt = $t._index);
|
|
4410
4410
|
const qt = { $table: t, seq: Jt, rowid: it, fixed: je, type: Gl, level: At, row: en, rowIndex: We, $rowIndex: Bt, _rowIndex: Pt }, _t = A && !!K[it];
|
|
4411
|
-
let
|
|
4412
|
-
Be && (rn = t.isInsertByRow(en)), Te && !Se && !ut && (on = en[Ht],
|
|
4411
|
+
let U = !1, on = [], rn = !1;
|
|
4412
|
+
Be && (rn = t.isInsertByRow(en)), Te && !Se && !ut && (on = en[Ht], U = on && on.length > 0 && !!M[it]), nt.drag && (!Te || ut) && (Ie.onDragstart = t.handleRowDragDragstartEvent, Ie.onDragend = t.handleRowDragDragendEvent, Ie.onDragover = t.handleRowDragDragoverEvent);
|
|
4413
4413
|
const $n = [
|
|
4414
4414
|
"vxe-body--row",
|
|
4415
4415
|
Te ? `row--level-${At}` : "",
|
|
@@ -4417,7 +4417,7 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4417
4417
|
"row--stripe": bt && (Pt + 1) % 2 === 0,
|
|
4418
4418
|
"is--new": rn,
|
|
4419
4419
|
"is--expand-row": _t,
|
|
4420
|
-
"is--expand-tree":
|
|
4420
|
+
"is--expand-tree": U,
|
|
4421
4421
|
"row--new": rn && (Qe.showStatus || Qe.showInsertStatus),
|
|
4422
4422
|
"row--radio": Me.highlight && t.eqRow(ee, en),
|
|
4423
4423
|
"row--checked": Ee.highlight && t.isCheckedByCheckboxRow(en),
|
|
@@ -4454,7 +4454,7 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4454
4454
|
])
|
|
4455
4455
|
]));
|
|
4456
4456
|
}
|
|
4457
|
-
|
|
4457
|
+
U && yn.push(...B(je, on, at));
|
|
4458
4458
|
}), yn;
|
|
4459
4459
|
}, Y = (je) => {
|
|
4460
4460
|
const { fixedType: Ge } = e, { lastScrollTop: at, lastScrollLeft: bt, inVirtualScroll: dt, inBodyScroll: gt, bodyScrollType: pt, inFooterScroll: ke } = c;
|
|
@@ -4620,10 +4620,10 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4620
4620
|
const t = mt("$xeTable", {}), { xID: n, props: o, reactData: r, internalData: s } = t, { refElem: a, refTableBody: c, refLeftContainer: f, refRightContainer: u, refCellResizeBar: d, refCellResizeTip: p } = t.getRefMaps(), { computeColumnOpts: h, computeColumnDragOpts: g, computeResizableOpts: w } = t.getComputeMaps(), S = Oe([]), E = Oe(), v = Oe(), D = Oe(), y = Oe(), b = Oe(), x = Oe(), C = () => {
|
|
4621
4621
|
const { isGroup: ne } = r;
|
|
4622
4622
|
S.value = ne ? g_(e.tableGroupColumn) : [];
|
|
4623
|
-
}, $ = (ne,
|
|
4624
|
-
const { column: L } =
|
|
4623
|
+
}, $ = (ne, q) => {
|
|
4624
|
+
const { column: L } = q, { fixedType: _ } = e, { visibleColumn: fe } = s, re = w.value, F = c.value, z = a.value, k = f.value, I = u.value, J = d.value, ie = p.value, { clientX: W } = ne, Z = E.value, ce = ne.target, De = q.cell = ce.parentNode;
|
|
4625
4625
|
let se = 0;
|
|
4626
|
-
const B = F.$el, Y = f_(ce, Z), oe = ce.clientWidth, Ce = Math.floor(oe / 2), ve = v_(
|
|
4626
|
+
const B = F.$el, Y = f_(ce, Z), oe = ce.clientWidth, Ce = Math.floor(oe / 2), ve = v_(q) - Ce;
|
|
4627
4627
|
let de = Y.left - De.clientWidth + oe + ve, ye = Y.left + Ce;
|
|
4628
4628
|
const He = document.onmousemove, Ye = document.onmouseup, st = _ === "left", je = _ === "right";
|
|
4629
4629
|
let Ge = 0;
|
|
@@ -4653,17 +4653,17 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4653
4653
|
L.resizeWidth = dt, re.dragMode === "fixed" && fe.forEach((gt) => {
|
|
4654
4654
|
gt.id !== L.id && (gt.resizeWidth || (gt.resizeWidth = gt.renderWidth));
|
|
4655
4655
|
}), J.style.display = "none", r._isResize = !1, s._lastResizeTime = Date.now(), t.analyColumnWidth(), t.recalculate(!0).then(() => {
|
|
4656
|
-
t.saveCustomStore("update:visible"), t.updateCellAreas(), t.dispatchEvent("resizable-change", Object.assign(Object.assign({},
|
|
4656
|
+
t.saveCustomStore("update:visible"), t.updateCellAreas(), t.dispatchEvent("resizable-change", Object.assign(Object.assign({}, q), { resizeWidth: dt }), bt), setTimeout(() => t.recalculate(!0), 300);
|
|
4657
4657
|
}), Sr(z, "drag--resize");
|
|
4658
4658
|
}, at(ne), t.closeMenu && t.closeMenu();
|
|
4659
|
-
}, P = (ne,
|
|
4659
|
+
}, P = (ne, q) => {
|
|
4660
4660
|
const { fixedType: L } = e, { resizable: _, border: fe, columnKey: re, headerCellClassName: F, headerCellStyle: z, showHeaderOverflow: k, headerAlign: I, align: J, mouseConfig: ie } = o, { currentColumn: W, scrollXLoad: Z, scrollYLoad: ce, overflowX: De, scrollbarWidth: se } = r, B = h.value, Y = g.value, { disabledMethod: oe } = Y;
|
|
4661
4661
|
return ne.map((Ce, ve) => {
|
|
4662
4662
|
const { type: de, showHeaderOverflow: ye, headerAlign: He, align: Ye, headerClassName: st, editRender: je, cellRender: Ge } = Ce, at = Ce.id, bt = je || Ge, dt = bt ? $_.get(bt.name) : null, gt = Ce.children && Ce.children.length, pt = L ? Ce.fixed !== L && !gt : !!Ce.fixed && De, ke = i.eqNull(ye) ? k : ye, xe = He || (dt ? dt.tableHeaderCellAlign : "") || I || Ye || (dt ? dt.tableCellAlign : "") || J;
|
|
4663
4663
|
let Be = ke === "ellipsis";
|
|
4664
4664
|
const Te = ke === "title", $e = ke === !0 || ke === "tooltip";
|
|
4665
4665
|
let M = Te || $e || Be;
|
|
4666
|
-
const te = Ce.filters && Ce.filters.some((Me) => Me.checked), Se = t.getColumnIndex(Ce), K = t.getVTColumnIndex(Ce), A = { $table: t, $grid: t.xegrid, $rowIndex:
|
|
4666
|
+
const te = Ce.filters && Ce.filters.some((Me) => Me.checked), Se = t.getColumnIndex(Ce), K = t.getVTColumnIndex(Ce), A = { $table: t, $grid: t.xegrid, $rowIndex: q, column: Ce, columnIndex: Se, $columnIndex: ve, _columnIndex: K, fixed: L, type: nh, isHidden: pt, hasFilter: te }, ee = {
|
|
4667
4667
|
colid: at,
|
|
4668
4668
|
colspan: Ce.colSpan > 1 ? Ce.colSpan : null,
|
|
4669
4669
|
rowspan: Ce.rowSpan > 1 ? Ce.rowSpan : null
|
|
@@ -4716,14 +4716,14 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4716
4716
|
]);
|
|
4717
4717
|
}).concat(se ? [
|
|
4718
4718
|
l("th", {
|
|
4719
|
-
key: `gr${
|
|
4719
|
+
key: `gr${q}`,
|
|
4720
4720
|
class: "vxe-header--gutter col--gutter"
|
|
4721
4721
|
})
|
|
4722
4722
|
] : []);
|
|
4723
4723
|
}, H = (ne) => {
|
|
4724
|
-
const { fixedType:
|
|
4724
|
+
const { fixedType: q } = e, { headerRowClassName: L, headerRowStyle: _ } = o, { isDragColMove: fe } = r, re = h.value, F = g.value;
|
|
4725
4725
|
return ne.map((z, k) => {
|
|
4726
|
-
const I = { $table: t, $rowIndex: k, fixed:
|
|
4726
|
+
const I = { $table: t, $rowIndex: k, fixed: q, type: nh };
|
|
4727
4727
|
return re.drag && F.animation ? l(cl, {
|
|
4728
4728
|
key: k,
|
|
4729
4729
|
name: `vxe-header--col-list${fe ? "" : "-disabled"}`,
|
|
@@ -4745,9 +4745,9 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4745
4745
|
}, P(z, k));
|
|
4746
4746
|
});
|
|
4747
4747
|
}, G = () => {
|
|
4748
|
-
const { fixedType: ne, fixedColumn:
|
|
4748
|
+
const { fixedType: ne, fixedColumn: q, tableColumn: L } = e, { showHeaderOverflow: _, spanMethod: fe, footerSpanMethod: re } = o, { isGroup: F, scrollbarWidth: z } = r, { visibleColumn: k } = s;
|
|
4749
4749
|
let I = S.value, J = L;
|
|
4750
|
-
return F ? J = k : (ne && (J = k, _ && (fe || re ? J = k : J =
|
|
4750
|
+
return F ? J = k : (ne && (J = k, _ && (fe || re ? J = k : J = q || [])), I = [J]), l("div", {
|
|
4751
4751
|
ref: E,
|
|
4752
4752
|
class: ["vxe-table--header-wrapper", ne ? `fixed-${ne}--wrapper` : "body--wrapper"],
|
|
4753
4753
|
xid: n
|
|
@@ -4795,11 +4795,11 @@ const D_ = ad, { getI18n: O_, renderer: eh, renderEmptyElement: cf } = we, Gl =
|
|
|
4795
4795
|
};
|
|
4796
4796
|
return tt(() => e.tableColumn, C), Dn(() => {
|
|
4797
4797
|
me(() => {
|
|
4798
|
-
const { fixedType: ne } = e, { internalData:
|
|
4798
|
+
const { fixedType: ne } = e, { internalData: q } = t, { elemStore: L } = q, _ = `${ne || "main"}-header-`;
|
|
4799
4799
|
L[`${_}wrapper`] = E, L[`${_}table`] = v, L[`${_}colgroup`] = D, L[`${_}list`] = y, L[`${_}xSpace`] = b, L[`${_}repair`] = x, C();
|
|
4800
4800
|
});
|
|
4801
4801
|
}), zn(() => {
|
|
4802
|
-
const { fixedType: ne } = e, { internalData:
|
|
4802
|
+
const { fixedType: ne } = e, { internalData: q } = t, { elemStore: L } = q, _ = `${ne || "main"}-header-`;
|
|
4803
4803
|
L[`${_}wrapper`] = null, L[`${_}table`] = null, L[`${_}colgroup`] = null, L[`${_}list`] = null, L[`${_}xSpace`] = null, L[`${_}repair`] = null;
|
|
4804
4804
|
}), G;
|
|
4805
4805
|
}
|
|
@@ -4840,19 +4840,19 @@ const rh = rt({
|
|
|
4840
4840
|
const { inVirtualScroll: C, inBodyScroll: $ } = s;
|
|
4841
4841
|
if (C || $)
|
|
4842
4842
|
return;
|
|
4843
|
-
const { fixedType: P } = e, H = a.value, G = c.value, ne = H ? H.$el : null,
|
|
4844
|
-
if (!
|
|
4843
|
+
const { fixedType: P } = e, H = a.value, G = c.value, ne = H ? H.$el : null, q = h.value;
|
|
4844
|
+
if (!q)
|
|
4845
4845
|
return;
|
|
4846
4846
|
const L = G ? G.$el : null;
|
|
4847
4847
|
if (!L)
|
|
4848
4848
|
return;
|
|
4849
|
-
const _ = f.value, fe =
|
|
4849
|
+
const _ = f.value, fe = q.scrollLeft, re = !0, F = !1, z = L.scrollTop;
|
|
4850
4850
|
s.inFooterScroll = !0, So(_, fe), So(ne, fe), So(L, fe), t.triggerScrollXEvent(x), t.handleScrollEvent(x, F, re, z, fe, {
|
|
4851
4851
|
type: uf,
|
|
4852
4852
|
fixed: P
|
|
4853
4853
|
});
|
|
4854
4854
|
}, D = (x, C, $, P, H) => {
|
|
4855
|
-
const { fixedType: G } = e, { footerCellClassName: ne, footerCellStyle:
|
|
4855
|
+
const { fixedType: G } = e, { footerCellClassName: ne, footerCellStyle: q, footerAlign: L, footerSpanMethod: _, align: fe, columnKey: re, showFooterOverflow: F } = o, { scrollXLoad: z, scrollYLoad: k, overflowX: I, scrollbarWidth: J, currentColumn: ie, mergeFooterList: W } = r, Z = u.value, ce = d.value;
|
|
4856
4856
|
return x.map((De, se) => {
|
|
4857
4857
|
const { type: B, showFooterOverflow: Y, footerAlign: oe, align: Ce, footerClassName: ve, editRender: de, cellRender: ye } = De, He = de || ye, Ye = He ? I_.get(He.name) : null, st = Z.showAll, je = De.children && De.children.length, Ge = G ? De.fixed !== G && !je : De.fixed && I, at = i.eqNull(Y) ? F : Y, bt = oe || (Ye ? Ye.tableFooterCellAlign : "") || L || Ce || (Ye ? Ye.tableCellAlign : "") || fe;
|
|
4858
4858
|
let dt = at === "ellipsis";
|
|
@@ -4906,7 +4906,7 @@ const rh = rt({
|
|
|
4906
4906
|
"fixed--hidden": Ge,
|
|
4907
4907
|
"col--ellipsis": ke,
|
|
4908
4908
|
"col--current": ie === De
|
|
4909
|
-
}, ol(ve, te), ol(ne, te)] }, xe), { style:
|
|
4909
|
+
}, ol(ve, te), ol(ne, te)] }, xe), { style: q ? i.isFunction(q) ? q(te) : q : null }), Be), { key: re || z || k || ce.useKey || ce.drag ? De.id : se }), [
|
|
4910
4910
|
l("div", {
|
|
4911
4911
|
class: ["vxe-cell", {
|
|
4912
4912
|
"c--title": gt,
|
|
@@ -4922,10 +4922,10 @@ const rh = rt({
|
|
|
4922
4922
|
})
|
|
4923
4923
|
] : []);
|
|
4924
4924
|
}, y = (x) => {
|
|
4925
|
-
const { fixedType: C, footerTableData: $ } = e, { footerRowClassName: P, footerRowStyle: H } = o, { isDragColMove: G } = r, ne = d.value,
|
|
4925
|
+
const { fixedType: C, footerTableData: $ } = e, { footerRowClassName: P, footerRowStyle: H } = o, { isDragColMove: G } = r, ne = d.value, q = p.value;
|
|
4926
4926
|
return $.map((L, _) => {
|
|
4927
4927
|
const fe = _, re = { $table: t, row: L, _rowIndex: fe, $rowIndex: _, fixed: C, type: uf };
|
|
4928
|
-
return ne.drag &&
|
|
4928
|
+
return ne.drag && q.animation ? l(cl, {
|
|
4929
4929
|
key: _,
|
|
4930
4930
|
name: `vxe-header--col-list${G ? "" : "-disabled"}`,
|
|
4931
4931
|
tag: "tr",
|
|
@@ -4946,7 +4946,7 @@ const rh = rt({
|
|
|
4946
4946
|
}, D(x, $, L, _, fe));
|
|
4947
4947
|
});
|
|
4948
4948
|
}, b = () => {
|
|
4949
|
-
const { fixedType: x, fixedColumn: C, tableColumn: $ } = e, { spanMethod: P, footerSpanMethod: H, showFooterOverflow: G } = o, { visibleColumn: ne } = s, { scrollbarWidth:
|
|
4949
|
+
const { fixedType: x, fixedColumn: C, tableColumn: $ } = e, { spanMethod: P, footerSpanMethod: H, showFooterOverflow: G } = o, { visibleColumn: ne } = s, { scrollbarWidth: q } = r;
|
|
4950
4950
|
let L = $;
|
|
4951
4951
|
x && (L = ne, G && (P || H ? L = ne : L = C || []));
|
|
4952
4952
|
const _ = {};
|
|
@@ -4971,7 +4971,7 @@ const rh = rt({
|
|
|
4971
4971
|
}, L.map((fe, re) => l("col", {
|
|
4972
4972
|
name: fe.id,
|
|
4973
4973
|
key: re
|
|
4974
|
-
})).concat(
|
|
4974
|
+
})).concat(q ? [
|
|
4975
4975
|
l("col", {
|
|
4976
4976
|
name: "col_gutter"
|
|
4977
4977
|
})
|
|
@@ -5354,7 +5354,7 @@ const rh = rt({
|
|
|
5354
5354
|
a.closeCustom(), a.emitCustomEvent("close", oe);
|
|
5355
5355
|
}, ne = ({ $event: oe }) => {
|
|
5356
5356
|
a.cancelCustom(), a.closeCustom(), a.emitCustomEvent("cancel", oe);
|
|
5357
|
-
},
|
|
5357
|
+
}, q = (oe) => {
|
|
5358
5358
|
a.resetCustom(!0), a.closeCustom(), a.emitCustomEvent("reset", oe);
|
|
5359
5359
|
}, L = ({ $event: oe }) => {
|
|
5360
5360
|
we.modal ? we.modal.confirm({
|
|
@@ -5362,8 +5362,8 @@ const rh = rt({
|
|
|
5362
5362
|
className: "vxe-table--ignore-clear",
|
|
5363
5363
|
escClosable: !0
|
|
5364
5364
|
}).then((Ce) => {
|
|
5365
|
-
Ce === "confirm" &&
|
|
5366
|
-
}) :
|
|
5365
|
+
Ce === "confirm" && q(oe);
|
|
5366
|
+
}) : q(oe);
|
|
5367
5367
|
}, _ = (oe) => {
|
|
5368
5368
|
const { customColumnList: Ce } = f, ve = i.findTree(Ce, (de) => de === oe);
|
|
5369
5369
|
if (ve && ve.parent) {
|
|
@@ -5820,8 +5820,8 @@ const rh = rt({
|
|
|
5820
5820
|
min: Ie || void 0,
|
|
5821
5821
|
max: We || void 0,
|
|
5822
5822
|
"onUpdate:modelValue"(_t) {
|
|
5823
|
-
const
|
|
5824
|
-
ut.renderResizeWidth =
|
|
5823
|
+
const U = Math.max(0, Number(_t));
|
|
5824
|
+
ut.renderResizeWidth = U;
|
|
5825
5825
|
},
|
|
5826
5826
|
onChange() {
|
|
5827
5827
|
re(ut);
|
|
@@ -6030,14 +6030,14 @@ const rh = rt({
|
|
|
6030
6030
|
class: "vxe-table--filter-template"
|
|
6031
6031
|
}, Dr(ne(D, G)))
|
|
6032
6032
|
];
|
|
6033
|
-
const
|
|
6033
|
+
const q = C ? b.isAllSelected : !b.options.some((_) => _._checked), L = C && b.isIndeterminate;
|
|
6034
6034
|
return [
|
|
6035
6035
|
l("ul", {
|
|
6036
6036
|
class: "vxe-table--filter-header"
|
|
6037
6037
|
}, [
|
|
6038
6038
|
l("li", {
|
|
6039
6039
|
class: ["vxe-table--filter-option", {
|
|
6040
|
-
"is--checked":
|
|
6040
|
+
"is--checked": q,
|
|
6041
6041
|
"is--indeterminate": L
|
|
6042
6042
|
}],
|
|
6043
6043
|
title: yc(C ? "vxe.table.allTitle" : "vxe.table.allFilter"),
|
|
@@ -6046,7 +6046,7 @@ const rh = rt({
|
|
|
6046
6046
|
}
|
|
6047
6047
|
}, (C ? [
|
|
6048
6048
|
l("span", {
|
|
6049
|
-
class: ["vxe-checkbox--icon", L ? si().TABLE_CHECKBOX_INDETERMINATE :
|
|
6049
|
+
class: ["vxe-checkbox--icon", L ? si().TABLE_CHECKBOX_INDETERMINATE : q ? si().TABLE_CHECKBOX_CHECKED : si().TABLE_CHECKBOX_UNCHECKED]
|
|
6050
6050
|
})
|
|
6051
6051
|
] : []).concat([
|
|
6052
6052
|
l("span", {
|
|
@@ -6100,7 +6100,7 @@ const rh = rt({
|
|
|
6100
6100
|
] : [];
|
|
6101
6101
|
};
|
|
6102
6102
|
return () => {
|
|
6103
|
-
const { filterStore: D } = e, { initStore: y } = n, { visible: b, multiple: x, column: C } = D, $ = C ? C.filterRender : null, P = mn($) ? sh.get($.name) : null, H = P ? P.tableFilterClassName || P.filterClassName : "", G = Object.assign({}, o._currFilterParams, { $panel: w, $table: t }), ne = s.value, { destroyOnClose:
|
|
6103
|
+
const { filterStore: D } = e, { initStore: y } = n, { visible: b, multiple: x, column: C } = D, $ = C ? C.filterRender : null, P = mn($) ? sh.get($.name) : null, H = P ? P.tableFilterClassName || P.filterClassName : "", G = Object.assign({}, o._currFilterParams, { $panel: w, $table: t }), ne = s.value, { destroyOnClose: q } = ne;
|
|
6104
6104
|
return l("div", {
|
|
6105
6105
|
class: [
|
|
6106
6106
|
"vxe-table--filter-wrapper",
|
|
@@ -6113,7 +6113,7 @@ const rh = rt({
|
|
|
6113
6113
|
}
|
|
6114
6114
|
],
|
|
6115
6115
|
style: D.style
|
|
6116
|
-
}, y.filter && (!
|
|
6116
|
+
}, y.filter && (!q || b) && C ? S($, P).concat(E()) : []);
|
|
6117
6117
|
};
|
|
6118
6118
|
}
|
|
6119
6119
|
}), { getI18n: Cl, getIcon: R_ } = we, N_ = rt({
|
|
@@ -6241,8 +6241,8 @@ const rh = rt({
|
|
|
6241
6241
|
o ? l(o, {
|
|
6242
6242
|
modelValue: v.mode,
|
|
6243
6243
|
options: D.modeList,
|
|
6244
|
-
"onUpdate:modelValue"(
|
|
6245
|
-
v.mode =
|
|
6244
|
+
"onUpdate:modelValue"(q) {
|
|
6245
|
+
v.mode = q;
|
|
6246
6246
|
}
|
|
6247
6247
|
}) : Ve()
|
|
6248
6248
|
])
|
|
@@ -6299,65 +6299,65 @@ const rh = rt({
|
|
|
6299
6299
|
isIndeterminate: !1,
|
|
6300
6300
|
loading: !1
|
|
6301
6301
|
}), d = Oe(), p = Oe(), h = Oe(), g = N(() => {
|
|
6302
|
-
const { storeData:
|
|
6303
|
-
return
|
|
6302
|
+
const { storeData: q } = e;
|
|
6303
|
+
return q.columns.every((L) => L.checked);
|
|
6304
6304
|
}), w = N(() => {
|
|
6305
|
-
const { defaultOptions:
|
|
6306
|
-
return ["html", "xml", "xlsx", "pdf"].indexOf(
|
|
6305
|
+
const { defaultOptions: q } = e;
|
|
6306
|
+
return ["html", "xml", "xlsx", "pdf"].indexOf(q.type) > -1;
|
|
6307
6307
|
}), S = N(() => {
|
|
6308
|
-
const { storeData:
|
|
6309
|
-
return !L.original && L.mode === "current" && (
|
|
6308
|
+
const { storeData: q, defaultOptions: L } = e;
|
|
6309
|
+
return !L.original && L.mode === "current" && (q.isPrint || ["html", "xlsx"].indexOf(L.type) > -1);
|
|
6310
6310
|
}), E = N(() => {
|
|
6311
|
-
const { defaultOptions:
|
|
6312
|
-
return !
|
|
6313
|
-
}), v = (
|
|
6314
|
-
const { storeData: L } = e, _ = i.findTree(L.columns, (fe) => fe ===
|
|
6311
|
+
const { defaultOptions: q } = e;
|
|
6312
|
+
return !q.original && ["xlsx"].indexOf(q.type) > -1;
|
|
6313
|
+
}), v = (q) => {
|
|
6314
|
+
const { storeData: L } = e, _ = i.findTree(L.columns, (fe) => fe === q);
|
|
6315
6315
|
if (_ && _.parent) {
|
|
6316
6316
|
const { parent: fe } = _;
|
|
6317
6317
|
fe.children && fe.children.length && (fe.checked = fe.children.every((re) => re.checked), fe.halfChecked = !fe.checked && fe.children.some((re) => re.checked || re.halfChecked), v(fe));
|
|
6318
6318
|
}
|
|
6319
6319
|
}, D = () => {
|
|
6320
|
-
const { storeData:
|
|
6320
|
+
const { storeData: q } = e, L = q.columns;
|
|
6321
6321
|
u.isAll = L.every((_) => _.disabled || _.checked), u.isIndeterminate = !u.isAll && L.some((_) => !_.disabled && (_.checked || _.halfChecked));
|
|
6322
|
-
}, y = (
|
|
6323
|
-
const L = !
|
|
6324
|
-
i.eachTree([
|
|
6322
|
+
}, y = (q) => {
|
|
6323
|
+
const L = !q.checked;
|
|
6324
|
+
i.eachTree([q], (_) => {
|
|
6325
6325
|
_.checked = L, _.halfChecked = !1;
|
|
6326
|
-
}), v(
|
|
6326
|
+
}), v(q), D();
|
|
6327
6327
|
}, b = () => {
|
|
6328
|
-
const { storeData:
|
|
6329
|
-
i.eachTree(
|
|
6328
|
+
const { storeData: q } = e, L = !u.isAll;
|
|
6329
|
+
i.eachTree(q.columns, (_) => {
|
|
6330
6330
|
_.disabled || (_.checked = L, _.halfChecked = !1);
|
|
6331
6331
|
}), u.isAll = L, D();
|
|
6332
6332
|
}, x = () => {
|
|
6333
6333
|
me(() => {
|
|
6334
|
-
const
|
|
6334
|
+
const q = p.value, L = h.value, _ = d.value, fe = q || L || _;
|
|
6335
6335
|
fe && fe.focus();
|
|
6336
6336
|
}), D();
|
|
6337
6337
|
}, C = () => {
|
|
6338
|
-
const { storeData:
|
|
6338
|
+
const { storeData: q, defaultOptions: L } = e, { hasMerge: _, columns: fe } = q, re = g.value, F = S.value, z = i.searchTree(fe, (k) => k.checked, { children: "children", mapChildren: "childNodes", original: !0 });
|
|
6339
6339
|
return Object.assign({}, L, {
|
|
6340
6340
|
columns: z,
|
|
6341
6341
|
isMerge: _ && F && re ? L.isMerge : !1
|
|
6342
6342
|
});
|
|
6343
6343
|
}, $ = () => {
|
|
6344
|
-
const { storeData:
|
|
6345
|
-
|
|
6344
|
+
const { storeData: q } = e, L = f.value;
|
|
6345
|
+
q.visible = !1, a.print(Object.assign({}, L, C()));
|
|
6346
6346
|
}, P = () => {
|
|
6347
|
-
const { storeData:
|
|
6347
|
+
const { storeData: q } = e, L = c.value;
|
|
6348
6348
|
u.loading = !0, a.exportData(Object.assign({}, L, C())).then(() => {
|
|
6349
|
-
u.loading = !1,
|
|
6349
|
+
u.loading = !1, q.visible = !1;
|
|
6350
6350
|
}).catch(() => {
|
|
6351
6351
|
u.loading = !1;
|
|
6352
6352
|
});
|
|
6353
6353
|
}, H = () => {
|
|
6354
|
-
const { storeData:
|
|
6355
|
-
|
|
6354
|
+
const { storeData: q } = e;
|
|
6355
|
+
q.visible = !1;
|
|
6356
6356
|
}, G = () => {
|
|
6357
|
-
const { storeData:
|
|
6358
|
-
|
|
6357
|
+
const { storeData: q } = e;
|
|
6358
|
+
q.isPrint ? $() : P();
|
|
6359
6359
|
}, ne = () => {
|
|
6360
|
-
const { defaultOptions:
|
|
6360
|
+
const { defaultOptions: q, storeData: L } = e, { isAll: _, isIndeterminate: fe } = u, { hasTree: re, hasMerge: F, isPrint: z, hasColgroup: k, columns: I } = L, { isHeader: J } = q, ie = [], W = g.value, Z = w.value, ce = S.value, De = E.value, se = q.slots || {}, B = se.top, Y = se.bottom, oe = se.default, Ce = se.footer, ve = se.parameter;
|
|
6361
6361
|
return i.eachTree(I, (de) => {
|
|
6362
6362
|
const ye = Do(de.getTitle(), 1), He = de.children && de.children.length, Ye = de.checked, st = de.halfChecked, je = de.type === "html";
|
|
6363
6363
|
ie.push(l("li", {
|
|
@@ -6410,9 +6410,9 @@ const rh = rt({
|
|
|
6410
6410
|
const de = {
|
|
6411
6411
|
$table: a,
|
|
6412
6412
|
$grid: a.xegrid,
|
|
6413
|
-
options:
|
|
6413
|
+
options: q,
|
|
6414
6414
|
columns: I,
|
|
6415
|
-
params:
|
|
6415
|
+
params: q.params
|
|
6416
6416
|
};
|
|
6417
6417
|
return l("div", {
|
|
6418
6418
|
class: "vxe-table-export--panel"
|
|
@@ -6436,12 +6436,12 @@ const rh = rt({
|
|
|
6436
6436
|
l("td", [
|
|
6437
6437
|
r ? l(r, {
|
|
6438
6438
|
ref: p,
|
|
6439
|
-
modelValue:
|
|
6439
|
+
modelValue: q.filename,
|
|
6440
6440
|
type: "text",
|
|
6441
6441
|
clearable: !0,
|
|
6442
6442
|
placeholder: Xn("vxe.export.expNamePlaceholder"),
|
|
6443
6443
|
"onUpdate:modelValue"(ye) {
|
|
6444
|
-
|
|
6444
|
+
q.filename = ye;
|
|
6445
6445
|
}
|
|
6446
6446
|
}) : Ve()
|
|
6447
6447
|
])
|
|
@@ -6450,10 +6450,10 @@ const rh = rt({
|
|
|
6450
6450
|
l("td", Xn("vxe.export.expType")),
|
|
6451
6451
|
l("td", [
|
|
6452
6452
|
o ? l(o, {
|
|
6453
|
-
modelValue:
|
|
6453
|
+
modelValue: q.type,
|
|
6454
6454
|
options: L.typeList,
|
|
6455
6455
|
"onUpdate:modelValue"(ye) {
|
|
6456
|
-
|
|
6456
|
+
q.type = ye;
|
|
6457
6457
|
}
|
|
6458
6458
|
}) : Ve()
|
|
6459
6459
|
])
|
|
@@ -6463,12 +6463,12 @@ const rh = rt({
|
|
|
6463
6463
|
l("td", [
|
|
6464
6464
|
r ? l(r, {
|
|
6465
6465
|
ref: h,
|
|
6466
|
-
modelValue:
|
|
6466
|
+
modelValue: q.sheetName,
|
|
6467
6467
|
type: "text",
|
|
6468
6468
|
clearable: !0,
|
|
6469
6469
|
placeholder: Xn("vxe.export.expSheetNamePlaceholder"),
|
|
6470
6470
|
"onUpdate:modelValue"(ye) {
|
|
6471
|
-
|
|
6471
|
+
q.sheetName = ye;
|
|
6472
6472
|
}
|
|
6473
6473
|
}) : Ve()
|
|
6474
6474
|
])
|
|
@@ -6477,13 +6477,13 @@ const rh = rt({
|
|
|
6477
6477
|
l("td", Xn("vxe.export.expMode")),
|
|
6478
6478
|
l("td", [
|
|
6479
6479
|
o ? l(o, {
|
|
6480
|
-
modelValue:
|
|
6480
|
+
modelValue: q.mode,
|
|
6481
6481
|
options: L.modeList.map((ye) => ({
|
|
6482
6482
|
value: ye.value,
|
|
6483
6483
|
label: Xn(ye.label)
|
|
6484
6484
|
})),
|
|
6485
6485
|
"onUpdate:modelValue"(ye) {
|
|
6486
|
-
|
|
6486
|
+
q.mode = ye;
|
|
6487
6487
|
}
|
|
6488
6488
|
}) : Ve()
|
|
6489
6489
|
])
|
|
@@ -6530,28 +6530,28 @@ const rh = rt({
|
|
|
6530
6530
|
class: "vxe-table-export--panel-option-row"
|
|
6531
6531
|
}, [
|
|
6532
6532
|
s ? l(s, {
|
|
6533
|
-
modelValue:
|
|
6533
|
+
modelValue: q.isHeader,
|
|
6534
6534
|
title: Xn("vxe.export.expHeaderTitle"),
|
|
6535
6535
|
content: Xn("vxe.export.expOptHeader"),
|
|
6536
6536
|
"onUpdate:modelValue"(ye) {
|
|
6537
|
-
|
|
6537
|
+
q.isHeader = ye;
|
|
6538
6538
|
}
|
|
6539
6539
|
}) : Ve(),
|
|
6540
6540
|
s ? l(s, {
|
|
6541
|
-
modelValue:
|
|
6541
|
+
modelValue: q.isFooter,
|
|
6542
6542
|
disabled: !L.hasFooter,
|
|
6543
6543
|
title: Xn("vxe.export.expFooterTitle"),
|
|
6544
6544
|
content: Xn("vxe.export.expOptFooter"),
|
|
6545
6545
|
"onUpdate:modelValue"(ye) {
|
|
6546
|
-
|
|
6546
|
+
q.isFooter = ye;
|
|
6547
6547
|
}
|
|
6548
6548
|
}) : Ve(),
|
|
6549
6549
|
s ? l(s, {
|
|
6550
|
-
modelValue:
|
|
6550
|
+
modelValue: q.original,
|
|
6551
6551
|
title: Xn("vxe.export.expOriginalTitle"),
|
|
6552
6552
|
content: Xn("vxe.export.expOptOriginal"),
|
|
6553
6553
|
"onUpdate:modelValue"(ye) {
|
|
6554
|
-
|
|
6554
|
+
q.original = ye;
|
|
6555
6555
|
}
|
|
6556
6556
|
}) : Ve()
|
|
6557
6557
|
]),
|
|
@@ -6559,39 +6559,39 @@ const rh = rt({
|
|
|
6559
6559
|
class: "vxe-table-export--panel-option-row"
|
|
6560
6560
|
}, [
|
|
6561
6561
|
s ? l(s, {
|
|
6562
|
-
modelValue: J && k && ce ?
|
|
6562
|
+
modelValue: J && k && ce ? q.isColgroup : !1,
|
|
6563
6563
|
title: Xn("vxe.export.expColgroupTitle"),
|
|
6564
6564
|
disabled: !J || !k || !ce,
|
|
6565
6565
|
content: Xn("vxe.export.expOptColgroup"),
|
|
6566
6566
|
"onUpdate:modelValue"(ye) {
|
|
6567
|
-
|
|
6567
|
+
q.isColgroup = ye;
|
|
6568
6568
|
}
|
|
6569
6569
|
}) : Ve(),
|
|
6570
6570
|
s ? l(s, {
|
|
6571
|
-
modelValue: F && ce && W ?
|
|
6571
|
+
modelValue: F && ce && W ? q.isMerge : !1,
|
|
6572
6572
|
title: Xn("vxe.export.expMergeTitle"),
|
|
6573
6573
|
disabled: !F || !ce || !W,
|
|
6574
6574
|
content: Xn("vxe.export.expOptMerge"),
|
|
6575
6575
|
"onUpdate:modelValue"(ye) {
|
|
6576
|
-
|
|
6576
|
+
q.isMerge = ye;
|
|
6577
6577
|
}
|
|
6578
6578
|
}) : Ve(),
|
|
6579
6579
|
z || !s ? Ve() : l(s, {
|
|
6580
|
-
modelValue: De ?
|
|
6580
|
+
modelValue: De ? q.useStyle : !1,
|
|
6581
6581
|
disabled: !De,
|
|
6582
6582
|
title: Xn("vxe.export.expUseStyleTitle"),
|
|
6583
6583
|
content: Xn("vxe.export.expOptUseStyle"),
|
|
6584
6584
|
"onUpdate:modelValue"(ye) {
|
|
6585
|
-
|
|
6585
|
+
q.useStyle = ye;
|
|
6586
6586
|
}
|
|
6587
6587
|
}),
|
|
6588
6588
|
s ? l(s, {
|
|
6589
|
-
modelValue: re ?
|
|
6589
|
+
modelValue: re ? q.isAllExpand : !1,
|
|
6590
6590
|
disabled: !re,
|
|
6591
6591
|
title: Xn("vxe.export.expAllExpandTitle"),
|
|
6592
6592
|
content: Xn("vxe.export.expOptAllExpand"),
|
|
6593
6593
|
"onUpdate:modelValue"(ye) {
|
|
6594
|
-
|
|
6594
|
+
q.isAllExpand = ye;
|
|
6595
6595
|
}
|
|
6596
6596
|
}) : Ve()
|
|
6597
6597
|
])
|
|
@@ -6610,9 +6610,9 @@ const rh = rt({
|
|
|
6610
6610
|
const de = {
|
|
6611
6611
|
$table: a,
|
|
6612
6612
|
$grid: a.xegrid,
|
|
6613
|
-
options:
|
|
6613
|
+
options: q,
|
|
6614
6614
|
columns: I,
|
|
6615
|
-
params:
|
|
6615
|
+
params: q.params
|
|
6616
6616
|
};
|
|
6617
6617
|
return l("div", {
|
|
6618
6618
|
class: "vxe-table-export--panel-footer"
|
|
@@ -7066,11 +7066,11 @@ const rh = rt({
|
|
|
7066
7066
|
isActivated: !1
|
|
7067
7067
|
};
|
|
7068
7068
|
let p = {}, h = {};
|
|
7069
|
-
const g = Oe(), w = Oe(), S = Oe(), E = Oe(), v = Oe(), D = Oe(), y = Oe(), b = Oe(), x = Oe(), C = Oe(), $ = Oe(), P = Oe(), H = Oe(), G = Oe(), ne = Oe(),
|
|
7069
|
+
const g = Oe(), w = Oe(), S = Oe(), E = Oe(), v = Oe(), D = Oe(), y = Oe(), b = Oe(), x = Oe(), C = Oe(), $ = Oe(), P = Oe(), H = Oe(), G = Oe(), ne = Oe(), q = Oe(), L = Oe(), _ = Oe(), fe = Oe(), re = Oe(), F = Oe(), z = Oe(), k = Oe(), I = Oe(), J = Oe(), ie = Oe(), W = Oe(), Z = Oe(), ce = Oe(), De = Oe(), se = mt("$xeGrid", null);
|
|
7070
7070
|
let B;
|
|
7071
7071
|
const Y = N(() => {
|
|
7072
7072
|
const { id: m } = e;
|
|
7073
|
-
return m ? i.isFunction(m) ? `${m({ $table:
|
|
7073
|
+
return m ? i.isFunction(m) ? `${m({ $table: U, $grid: se }) || ""}` : `${m}` : "";
|
|
7074
7074
|
}), oe = N(() => Object.assign({}, An().table.validConfig, e.validConfig)), Ce = N(() => Object.assign({}, An().table.scrollX, e.scrollX)), ve = N(() => {
|
|
7075
7075
|
const m = Ce.value, { threshold: O } = m;
|
|
7076
7076
|
return O ? i.toNumber(O) : 0;
|
|
@@ -7152,7 +7152,7 @@ const rh = rt({
|
|
|
7152
7152
|
refTableLeftFooter: H,
|
|
7153
7153
|
refTableRightHeader: G,
|
|
7154
7154
|
refTableRightBody: ne,
|
|
7155
|
-
refTableRightFooter:
|
|
7155
|
+
refTableRightFooter: q,
|
|
7156
7156
|
refLeftContainer: L,
|
|
7157
7157
|
refRightContainer: _,
|
|
7158
7158
|
refCellResizeBar: fe,
|
|
@@ -7205,7 +7205,7 @@ const rh = rt({
|
|
|
7205
7205
|
computeIsMaxFixedColumn: it,
|
|
7206
7206
|
computeIsAllCheckboxDisabled: At,
|
|
7207
7207
|
computeVirtualScrollBars: Jt
|
|
7208
|
-
},
|
|
7208
|
+
}, U = {
|
|
7209
7209
|
xID: r,
|
|
7210
7210
|
props: e,
|
|
7211
7211
|
context: t,
|
|
@@ -7234,7 +7234,7 @@ const rh = rt({
|
|
|
7234
7234
|
}, pn = (m) => {
|
|
7235
7235
|
const { fullDataRowIdData: O } = d, T = [];
|
|
7236
7236
|
return i.each(m, (V, j) => {
|
|
7237
|
-
O[j] &&
|
|
7237
|
+
O[j] && U.findRowIndexOf(T, O[j].row) === -1 && T.push(O[j].row);
|
|
7238
7238
|
}), T;
|
|
7239
7239
|
}, bn = () => {
|
|
7240
7240
|
const { visibleColumn: m } = d, O = x.value, T = O ? O.$el : null;
|
|
@@ -7261,7 +7261,7 @@ const rh = rt({
|
|
|
7261
7261
|
const { scrollTop: le, clientHeight: ge } = j, he = le + ge;
|
|
7262
7262
|
let Pe = -1, Fe = 0, _e = 0;
|
|
7263
7263
|
for (let Ne = 0, Je = O.length; Ne < Je; Ne++) {
|
|
7264
|
-
const ze = O[Ne], qe = St(
|
|
7264
|
+
const ze = O[Ne], qe = St(U, ze), ft = T[qe];
|
|
7265
7265
|
if (!ft || (Fe += ft.height || ue, Pe === -1 && le < Fe && (Pe = Ne), Pe >= 0 && (_e++, Fe > he)))
|
|
7266
7266
|
break;
|
|
7267
7267
|
}
|
|
@@ -7279,11 +7279,11 @@ const rh = rt({
|
|
|
7279
7279
|
i.isArray(m) || (m = [m]), V && m.length && Gt("vxe.error.noTree", ["merge-cells | merge-footer-items"]), m.forEach((ue) => {
|
|
7280
7280
|
let { row: le, col: ge, rowspan: he, colspan: Pe } = ue;
|
|
7281
7281
|
if (T && i.isNumber(le) && (le = T[le]), i.isNumber(ge) && (ge = j[ge]), (T ? le : i.isNumber(le)) && ge && (he || Pe) && (he = i.toNumber(he) || 1, Pe = i.toNumber(Pe) || 1, he > 1 || Pe > 1)) {
|
|
7282
|
-
const Fe = i.findIndexOf(O, (Ne) => (Ne._row === le || St(
|
|
7282
|
+
const Fe = i.findIndexOf(O, (Ne) => (Ne._row === le || St(U, Ne._row) === St(U, le)) && (Ne._col.id === ge || Ne._col.id === ge.id)), _e = O[Fe];
|
|
7283
7283
|
if (_e)
|
|
7284
7284
|
_e.rowspan = he, _e.colspan = Pe, _e._rowspan = he, _e._colspan = Pe;
|
|
7285
7285
|
else {
|
|
7286
|
-
const Ne = T ?
|
|
7286
|
+
const Ne = T ? U.findRowIndexOf(T, le) : le, Je = p.getVTColumnIndex(ge);
|
|
7287
7287
|
O.push({
|
|
7288
7288
|
row: Ne,
|
|
7289
7289
|
col: Je,
|
|
@@ -7305,7 +7305,7 @@ const rh = rt({
|
|
|
7305
7305
|
i.isArray(m) || (m = [m]), j && m.length && Gt("vxe.error.noTree", ["merge-cells | merge-footer-items"]), m.forEach((le) => {
|
|
7306
7306
|
let { row: ge, col: he } = le;
|
|
7307
7307
|
T && i.isNumber(ge) && (ge = T[ge]), i.isNumber(he) && (he = ue[he]);
|
|
7308
|
-
const Pe = i.findIndexOf(O, (Fe) => (Fe._row === ge || St(
|
|
7308
|
+
const Pe = i.findIndexOf(O, (Fe) => (Fe._row === ge || St(U, Fe._row) === St(U, ge)) && (Fe._col.id === he || Fe._col.id === he.id));
|
|
7309
7309
|
if (Pe > -1) {
|
|
7310
7310
|
const Fe = O.splice(Pe, 1);
|
|
7311
7311
|
V.push(Fe[0]);
|
|
@@ -7325,7 +7325,7 @@ const rh = rt({
|
|
|
7325
7325
|
if (T === "100%" || T === "auto")
|
|
7326
7326
|
V = O;
|
|
7327
7327
|
else {
|
|
7328
|
-
const j =
|
|
7328
|
+
const j = U.getExcludeHeight();
|
|
7329
7329
|
di(T) ? V = Math.floor((i.toInteger(T) || 1) / 100 * O) : V = i.toNumber(T), V = Math.max(40, V - j);
|
|
7330
7330
|
}
|
|
7331
7331
|
return V;
|
|
@@ -7449,7 +7449,7 @@ const rh = rt({
|
|
|
7449
7449
|
if (!m && (T || V) && ue) {
|
|
7450
7450
|
let le = 0, ge = 0, he = !1;
|
|
7451
7451
|
O.forEach((Pe) => {
|
|
7452
|
-
const Fe = St(
|
|
7452
|
+
const Fe = St(U, Pe), _e = j[Fe], Ne = ue.querySelectorAll(`.vxe-body--row[rowid="${Fe}"]`);
|
|
7453
7453
|
if (_e && Ne.length) {
|
|
7454
7454
|
let Je = 0;
|
|
7455
7455
|
for (let ze = 0; ze < Ne.length; ze++) {
|
|
@@ -7474,7 +7474,7 @@ const rh = rt({
|
|
|
7474
7474
|
}, sr = () => {
|
|
7475
7475
|
const { treeConfig: m } = e, { afterFullData: O, fullDataRowIdData: T, fullAllDataRowIdData: V } = d, j = Et.value;
|
|
7476
7476
|
m && j.transform && O.forEach((ue, le) => {
|
|
7477
|
-
const ge = St(
|
|
7477
|
+
const ge = St(U, ue), he = V[ge];
|
|
7478
7478
|
if (he)
|
|
7479
7479
|
he._index = le;
|
|
7480
7480
|
else {
|
|
@@ -7485,7 +7485,7 @@ const rh = rt({
|
|
|
7485
7485
|
}, jr = () => {
|
|
7486
7486
|
const { treeConfig: m } = e, { afterFullData: O, fullDataRowIdData: T, fullAllDataRowIdData: V, afterTreeFullData: j } = d, ue = Et.value, le = ue.children || ue.childrenField, ge = {};
|
|
7487
7487
|
m ? (i.eachTree(j, (he, Pe, Fe, _e) => {
|
|
7488
|
-
const Ne = St(
|
|
7488
|
+
const Ne = St(U, he), Je = V[Ne], ze = _e.map((qe, ft) => ft % 2 === 0 ? Number(qe) + 1 : ".").join("");
|
|
7489
7489
|
if (Je)
|
|
7490
7490
|
Je.seq = ze;
|
|
7491
7491
|
else {
|
|
@@ -7494,7 +7494,7 @@ const rh = rt({
|
|
|
7494
7494
|
}
|
|
7495
7495
|
ge[Ne] = he;
|
|
7496
7496
|
}, { children: ue.transform ? ue.mapChildrenField : le }), sr()) : O.forEach((he, Pe) => {
|
|
7497
|
-
const Fe = St(
|
|
7497
|
+
const Fe = St(U, he), _e = V[Fe], Ne = Pe + 1;
|
|
7498
7498
|
if (_e)
|
|
7499
7499
|
_e.seq = Ne, _e._index = Pe;
|
|
7500
7500
|
else {
|
|
@@ -7508,7 +7508,7 @@ const rh = rt({
|
|
|
7508
7508
|
if (m && V.transform) {
|
|
7509
7509
|
const ue = [], le = {};
|
|
7510
7510
|
return i.eachTree(d.afterTreeFullData, (ge, he, Pe, Fe, _e) => {
|
|
7511
|
-
const Ne = St(
|
|
7511
|
+
const Ne = St(U, ge), Je = St(U, _e);
|
|
7512
7512
|
if (!_e || le[Je] && O[Je]) {
|
|
7513
7513
|
const ze = T[Ne];
|
|
7514
7514
|
ze && (ze._index = ue.length), le[Ne] = 1, ue.push(ge);
|
|
@@ -7534,7 +7534,7 @@ const rh = rt({
|
|
|
7534
7534
|
}), Je && ze && Xe.length > 1 && (Xe = i.orderBy(Xe, "sortTime")), !Pe && Dt.length) {
|
|
7535
7535
|
const Tt = (Wt) => Dt.every(({ column: Kt, valueList: an, itemList: tn }) => {
|
|
7536
7536
|
const { filterMethod: vn, filterRender: hn } = Kt, un = mn(hn) ? lh.get(hn.name) : null, Tn = un ? un.tableFilterMethod || un.filterMethod : null, cn = un ? un.tableFilterDefaultMethod || un.defaultTableFilterMethod || un.defaultFilterMethod : null, xn = $o(Wt, Kt);
|
|
7537
|
-
return vn ? tn.some((Qn) => vn({ value: Qn.value, option: Qn, cellValue: xn, row: Wt, column: Kt, $table:
|
|
7537
|
+
return vn ? tn.some((Qn) => vn({ value: Qn.value, option: Qn, cellValue: xn, row: Wt, column: Kt, $table: U })) : Tn ? tn.some((Qn) => Tn({ value: Qn.value, option: Qn, cellValue: xn, row: Wt, column: Kt, $table: U })) : Fe ? Fe({ options: tn, values: an, cellValue: xn, row: Wt, column: Kt }) : cn ? tn.some((Qn) => cn({ value: Qn.value, option: Qn, cellValue: xn, row: Wt, column: Kt, $table: U })) : an.indexOf(i.get(Wt, Kt.field)) > -1;
|
|
7538
7538
|
});
|
|
7539
7539
|
m && he ? (ft = i.searchTree(V, Tt, {
|
|
7540
7540
|
original: !0,
|
|
@@ -7552,14 +7552,14 @@ const rh = rt({
|
|
|
7552
7552
|
if (!_e && Xe.length)
|
|
7553
7553
|
if (m && he) {
|
|
7554
7554
|
if (Ne) {
|
|
7555
|
-
const Tt = Ne({ data: ft, sortList: Xe, $table:
|
|
7555
|
+
const Tt = Ne({ data: ft, sortList: Xe, $table: U });
|
|
7556
7556
|
ft = i.isArray(Tt) ? Tt : ft;
|
|
7557
7557
|
} else
|
|
7558
7558
|
ft = i.orderBy(ft, Xe.map(({ column: Tt, order: Wt }) => [Ds(Tt), Wt]));
|
|
7559
7559
|
qe = ft;
|
|
7560
7560
|
} else {
|
|
7561
7561
|
if (Ne) {
|
|
7562
|
-
const Tt = Ne({ data: qe, sortList: Xe, $table:
|
|
7562
|
+
const Tt = Ne({ data: qe, sortList: Xe, $table: U });
|
|
7563
7563
|
qe = i.isArray(Tt) ? Tt : qe;
|
|
7564
7564
|
} else
|
|
7565
7565
|
qe = i.orderBy(qe, Xe.map(({ column: Tt, order: Wt }) => [Ds(Tt), Wt]));
|
|
@@ -7652,10 +7652,10 @@ const rh = rt({
|
|
|
7652
7652
|
}
|
|
7653
7653
|
});
|
|
7654
7654
|
});
|
|
7655
|
-
}), Pe && p.setCurrentRow(Pe), ue && Ur.selected && Dt.selected.row && Dt.selected.column &&
|
|
7656
|
-
}, wo = (m) =>
|
|
7655
|
+
}), Pe && p.setCurrentRow(Pe), ue && Ur.selected && Dt.selected.row && Dt.selected.column && U.addCellSelectedClass(), me();
|
|
7656
|
+
}, wo = (m) => U.triggerValidate ? U.triggerValidate(m) : me(), Lo = (m, O) => {
|
|
7657
7657
|
wo("blur").catch((T) => T).then(() => {
|
|
7658
|
-
|
|
7658
|
+
U.handleEdit(O, m).then(() => wo("change")).catch((T) => T);
|
|
7659
7659
|
});
|
|
7660
7660
|
}, fr = () => {
|
|
7661
7661
|
const { sortConfig: m } = e;
|
|
@@ -7688,7 +7688,7 @@ const rh = rt({
|
|
|
7688
7688
|
if (m) {
|
|
7689
7689
|
const { fullDataRowIdData: O } = d, T = pt.value, { checkRowKey: V, reserve: j } = T;
|
|
7690
7690
|
if (V && (O[V] && Ue(O[V].row, !0), j)) {
|
|
7691
|
-
const ue = Ns(
|
|
7691
|
+
const ue = Ns(U);
|
|
7692
7692
|
d.radioReserveRow = { [ue]: V };
|
|
7693
7693
|
}
|
|
7694
7694
|
}
|
|
@@ -7710,32 +7710,32 @@ const rh = rt({
|
|
|
7710
7710
|
}, pe = (m, O) => {
|
|
7711
7711
|
const { checkboxReserveRowMap: T } = d;
|
|
7712
7712
|
if (ke.value.reserve) {
|
|
7713
|
-
const j = St(
|
|
7713
|
+
const j = St(U, m);
|
|
7714
7714
|
O ? T[j] = m : T[j] && delete T[j];
|
|
7715
7715
|
}
|
|
7716
7716
|
}, Ue = (m, O) => {
|
|
7717
7717
|
const T = pt.value, { checkMethod: V } = T;
|
|
7718
7718
|
return m && (O || !V || V({ row: m })) && (u.selectRadioRow = m, Gs(m)), me();
|
|
7719
|
-
}, Ze = (m, O, T) => (m && !i.isArray(m) && (m = [m]),
|
|
7719
|
+
}, Ze = (m, O, T) => (m && !i.isArray(m) && (m = [m]), U.handleBatchSelectRows(m, !!O, T), U.checkSelectionStatus(), me()), vt = (m, O) => {
|
|
7720
7720
|
const { treeConfig: T } = e, { selectCheckboxMaps: V } = u, { afterFullData: j, checkboxReserveRowMap: ue } = d, le = Et.value, ge = le.children || le.childrenField, he = ke.value, { checkField: Pe, reserve: Fe, checkMethod: _e } = he, Ne = he.indeterminateField || he.halfField, Je = {};
|
|
7721
7721
|
if (Pe) {
|
|
7722
7722
|
const ze = (qe) => {
|
|
7723
|
-
(O || !_e || _e({ row: qe })) && (m && (Je[St(
|
|
7723
|
+
(O || !_e || _e({ row: qe })) && (m && (Je[St(U, qe)] = qe), i.set(qe, Pe, m)), T && Ne && i.set(qe, Ne, !1);
|
|
7724
7724
|
};
|
|
7725
7725
|
T ? i.eachTree(j, ze, { children: ge }) : j.forEach(ze);
|
|
7726
7726
|
} else
|
|
7727
7727
|
T ? m ? i.eachTree(j, (ze) => {
|
|
7728
|
-
(O || !_e || _e({ row: ze })) && (Je[St(
|
|
7728
|
+
(O || !_e || _e({ row: ze })) && (Je[St(U, ze)] = ze);
|
|
7729
7729
|
}, { children: ge }) : !O && _e && i.eachTree(j, (ze) => {
|
|
7730
|
-
const qe = St(
|
|
7730
|
+
const qe = St(U, ze);
|
|
7731
7731
|
!_e({ row: ze }) && V[qe] && (Je[qe] = ze);
|
|
7732
7732
|
}, { children: ge }) : m ? !O && _e ? j.forEach((ze) => {
|
|
7733
|
-
const qe = St(
|
|
7733
|
+
const qe = St(U, ze);
|
|
7734
7734
|
(V[qe] || _e({ row: ze })) && (Je[qe] = ze);
|
|
7735
7735
|
}) : j.forEach((ze) => {
|
|
7736
|
-
Je[St(
|
|
7736
|
+
Je[St(U, ze)] = ze;
|
|
7737
7737
|
}) : !O && _e && j.forEach((ze) => {
|
|
7738
|
-
const qe = St(
|
|
7738
|
+
const qe = St(U, ze);
|
|
7739
7739
|
!_e({ row: ze }) && V[qe] && (Je[qe] = ze);
|
|
7740
7740
|
});
|
|
7741
7741
|
return Fe && (m ? i.each(Je, (ze, qe) => {
|
|
@@ -7743,11 +7743,11 @@ const rh = rt({
|
|
|
7743
7743
|
}) : j.forEach((ze) => pe(ze, !1))), u.selectCheckboxMaps = Pe ? {} : Je, u.isAllSelected = m, u.isIndeterminate = !1, u.treeIndeterminateMaps = {}, d.treeIndeterminateRowMaps = {}, h.checkSelectionStatus(), me();
|
|
7744
7744
|
}, Lt = () => {
|
|
7745
7745
|
const { treeConfig: m } = e, { expandColumn: O, currentRow: T, selectCheckboxMaps: V, selectRadioRow: j, rowExpandedMaps: ue, treeExpandedMaps: le } = u, { fullDataRowIdData: ge, fullAllDataRowIdData: he, radioReserveRow: Pe } = d, Fe = ut.value, _e = Et.value, Ne = pt.value, Je = ke.value;
|
|
7746
|
-
if (j && !he[St(
|
|
7747
|
-
const ze = St(
|
|
7746
|
+
if (j && !he[St(U, j)] && (u.selectRadioRow = null), Ne.reserve && Pe) {
|
|
7747
|
+
const ze = St(U, Pe);
|
|
7748
7748
|
ge[ze] && Ue(ge[ze].row, !0);
|
|
7749
7749
|
}
|
|
7750
|
-
u.selectCheckboxMaps = Pn(V), Je.reserve && Ze(pn(d.checkboxReserveRowMap), !0, !0), T && !he[St(
|
|
7750
|
+
u.selectCheckboxMaps = Pn(V), Je.reserve && Ze(pn(d.checkboxReserveRowMap), !0, !0), T && !he[St(U, T)] && (u.currentRow = null), u.rowExpandedMaps = O ? Pn(ue) : {}, O && Fe.reserve && p.setRowExpand(pn(d.rowExpandedReserveRowMap), !0), u.treeExpandedMaps = m ? Pn(le) : {}, m && _e.reserve && p.setTreeExpand(pn(d.treeExpandedReserveRowMap), !0);
|
|
7751
7751
|
}, Mt = () => {
|
|
7752
7752
|
const { treeConfig: m } = e;
|
|
7753
7753
|
if (m) {
|
|
@@ -7755,7 +7755,7 @@ const rh = rt({
|
|
|
7755
7755
|
if (V)
|
|
7756
7756
|
p.setAllTreeExpand(!0);
|
|
7757
7757
|
else if (j) {
|
|
7758
|
-
const le = [], ge = Ns(
|
|
7758
|
+
const le = [], ge = Ns(U);
|
|
7759
7759
|
j.forEach((he) => {
|
|
7760
7760
|
const Pe = i.findTree(O, (Fe) => he === i.get(Fe, ge), { children: ue });
|
|
7761
7761
|
Pe && le.push(Pe.item);
|
|
@@ -7766,8 +7766,8 @@ const rh = rt({
|
|
|
7766
7766
|
const O = Et.value, T = ke.value, { transform: V, loadMethod: j } = O, { checkStrictly: ue } = T;
|
|
7767
7767
|
return new Promise((le) => {
|
|
7768
7768
|
if (j) {
|
|
7769
|
-
const { treeExpandLazyLoadedMaps: ge } = u, { fullAllDataRowIdData: he } = d, Pe = St(
|
|
7770
|
-
ge[Pe] = m, Promise.resolve(j({ $table:
|
|
7769
|
+
const { treeExpandLazyLoadedMaps: ge } = u, { fullAllDataRowIdData: he } = d, Pe = St(U, m), Fe = he[Pe];
|
|
7770
|
+
ge[Pe] = m, Promise.resolve(j({ $table: U, row: m })).then((_e) => {
|
|
7771
7771
|
if (Fe && (Fe.treeLoaded = !0), ge[Pe] && delete ge[Pe], i.isArray(_e) || (_e = []), _e)
|
|
7772
7772
|
return p.loadTreeChildren(m, _e).then((Ne) => {
|
|
7773
7773
|
const { treeExpandedMaps: Je } = u;
|
|
@@ -7788,14 +7788,14 @@ const rh = rt({
|
|
|
7788
7788
|
}, jt = (m, O) => {
|
|
7789
7789
|
const { treeExpandedReserveRowMap: T } = d;
|
|
7790
7790
|
if (Et.value.reserve) {
|
|
7791
|
-
const j = St(
|
|
7791
|
+
const j = St(U, m);
|
|
7792
7792
|
O ? T[j] = m : T[j] && delete T[j];
|
|
7793
7793
|
}
|
|
7794
7794
|
}, lt = (m) => new Promise((O) => {
|
|
7795
7795
|
const T = ut.value, { loadMethod: V } = T;
|
|
7796
7796
|
if (V) {
|
|
7797
|
-
const { fullAllDataRowIdData: j } = d, { rowExpandLazyLoadedMaps: ue } = u, le = St(
|
|
7798
|
-
ue[le] = m, V({ $table:
|
|
7797
|
+
const { fullAllDataRowIdData: j } = d, { rowExpandLazyLoadedMaps: ue } = u, le = St(U, m), ge = j[le];
|
|
7798
|
+
ue[le] = m, V({ $table: U, row: m, rowIndex: p.getRowIndex(m), $rowIndex: p.getVMRowIndex(m) }).then(() => {
|
|
7799
7799
|
const { rowExpandedMaps: he } = u;
|
|
7800
7800
|
ge && (ge.expandLoaded = !0), he[le] = m;
|
|
7801
7801
|
}).catch(() => {
|
|
@@ -7809,7 +7809,7 @@ const rh = rt({
|
|
|
7809
7809
|
}), Ot = (m, O) => {
|
|
7810
7810
|
const { rowExpandedReserveRowMap: T } = d;
|
|
7811
7811
|
if (ut.value.reserve) {
|
|
7812
|
-
const j = St(
|
|
7812
|
+
const j = St(U, m);
|
|
7813
7813
|
O ? T[j] = m : T[j] && delete T[j];
|
|
7814
7814
|
}
|
|
7815
7815
|
}, wn = () => {
|
|
@@ -7858,7 +7858,7 @@ const rh = rt({
|
|
|
7858
7858
|
}
|
|
7859
7859
|
process.env.NODE_ENV === "development" && (e.height || e.maxHeight || Gt("vxe.error.reqProp", ["table.height | table.max-height | table.scroll-y={enabled: false}"]), e.spanMethod && ln("vxe.error.scrollErrProp", ["table.span-method"]));
|
|
7860
7860
|
}
|
|
7861
|
-
return
|
|
7861
|
+
return U.clearCellAreas && e.mouseConfig && (U.clearCellAreas(), U.clearCopyCellArea()), p.clearMergeCells(), p.clearMergeFooterItems(), h.handleTableData(!0), p.updateFooter(), me().then(() => {
|
|
7862
7862
|
jo(), mo();
|
|
7863
7863
|
}).then(() => {
|
|
7864
7864
|
Bn();
|
|
@@ -7866,7 +7866,7 @@ const rh = rt({
|
|
|
7866
7866
|
me().then(() => p.recalculate()).then(() => {
|
|
7867
7867
|
let Xe = he, Tt = Pe;
|
|
7868
7868
|
const Wt = Ce.value, Kt = de.value;
|
|
7869
|
-
Wt.scrollToLeftOnChange && (Xe = 0), Kt.scrollToTopOnChange && (Tt = 0), ue === ft ? lf(
|
|
7869
|
+
Wt.scrollToLeftOnChange && (Xe = 0), Kt.scrollToTopOnChange && (Tt = 0), ue === ft ? lf(U, Xe, Tt).then(Dt) : setTimeout(() => lf(U, Xe, Tt).then(Dt));
|
|
7870
7870
|
});
|
|
7871
7871
|
})));
|
|
7872
7872
|
}, Oo = () => {
|
|
@@ -7933,30 +7933,30 @@ const rh = rt({
|
|
|
7933
7933
|
u.scrollXLoad && Os();
|
|
7934
7934
|
}), p.clearMergeCells(), p.clearMergeFooterItems(), h.handleTableData(!0), process.env.NODE_ENV === "development" && (u.scrollXLoad || u.scrollYLoad) && u.expandColumn && ln("vxe.error.scrollErrProp", ["column.type=expand"]), me().then(() => (B && B.syncUpdate({
|
|
7935
7935
|
collectColumn: d.collectColumn,
|
|
7936
|
-
$table:
|
|
7937
|
-
}),
|
|
7936
|
+
$table: U
|
|
7937
|
+
}), U.handleUpdateCustomColumn && U.handleUpdateCustomColumn(), p.recalculate()))));
|
|
7938
7938
|
}, Wl = (m) => {
|
|
7939
7939
|
const { treeConfig: O } = e, T = de.value, V = Et.value, { transform: j } = V, ue = m || d.tableFullData, le = (j || !O) && !!T.enabled && T.gt > -1 && (T.gt === 0 || T.gt < ue.length);
|
|
7940
7940
|
return u.scrollYLoad = le, le;
|
|
7941
7941
|
}, oc = (m, O) => {
|
|
7942
7942
|
const { treeExpandedMaps: T, treeExpandLazyLoadedMaps: V, treeNodeColumn: j } = u, ue = Object.assign({}, T), { fullAllDataRowIdData: le, tableFullData: ge } = d, he = Et.value, { reserve: Pe, lazy: Fe, accordion: _e, toggleMethod: Ne } = he, Je = he.children || he.childrenField, ze = he.hasChild || he.hasChildField, qe = [], ft = p.getColumnIndex(j), Dt = p.getVMColumnIndex(j);
|
|
7943
|
-
let Xe = Ne ? m.filter((Tt) => Ne({ $table:
|
|
7943
|
+
let Xe = Ne ? m.filter((Tt) => Ne({ $table: U, expanded: O, column: j, columnIndex: ft, $columnIndex: Dt, row: Tt })) : m;
|
|
7944
7944
|
if (_e) {
|
|
7945
7945
|
Xe = Xe.length ? [Xe[Xe.length - 1]] : [];
|
|
7946
7946
|
const Tt = i.findTree(ge, (Wt) => Wt === Xe[0], { children: Je });
|
|
7947
7947
|
Tt && Tt.items.forEach((Wt) => {
|
|
7948
|
-
const Kt = St(
|
|
7948
|
+
const Kt = St(U, Wt);
|
|
7949
7949
|
ue[Kt] && delete ue[Kt];
|
|
7950
7950
|
});
|
|
7951
7951
|
}
|
|
7952
7952
|
return O ? Xe.forEach((Tt) => {
|
|
7953
|
-
const Wt = St(
|
|
7953
|
+
const Wt = St(U, Tt);
|
|
7954
7954
|
if (!ue[Wt]) {
|
|
7955
7955
|
const Kt = le[Wt];
|
|
7956
7956
|
Kt && (Fe && Tt[ze] && !Kt.treeLoaded && !V[Wt] ? qe.push(zt(Tt)) : Tt[Je] && Tt[Je].length && (ue[Wt] = Tt));
|
|
7957
7957
|
}
|
|
7958
7958
|
}) : Xe.forEach((Tt) => {
|
|
7959
|
-
const Wt = St(
|
|
7959
|
+
const Wt = St(U, Tt);
|
|
7960
7960
|
ue[Wt] && delete ue[Wt];
|
|
7961
7961
|
}), Pe && Xe.forEach((Tt) => jt(Tt, O)), u.treeExpandedMaps = ue, Promise.all(qe).then(() => p.recalculate());
|
|
7962
7962
|
}, Md = (m, O) => oc(m, O).then(() => {
|
|
@@ -7983,7 +7983,7 @@ const rh = rt({
|
|
|
7983
7983
|
}, zl = (m) => function(O) {
|
|
7984
7984
|
const { fullAllDataRowIdData: T } = d;
|
|
7985
7985
|
if (O) {
|
|
7986
|
-
const V = St(
|
|
7986
|
+
const V = St(U, O), j = T[V];
|
|
7987
7987
|
if (j)
|
|
7988
7988
|
return j[m];
|
|
7989
7989
|
}
|
|
@@ -8014,7 +8014,7 @@ const rh = rt({
|
|
|
8014
8014
|
let ze = 0;
|
|
8015
8015
|
Je && (ze = Je.scrollTop);
|
|
8016
8016
|
const qe = !0, ft = ze !== V;
|
|
8017
|
-
d.inVirtualScroll = !0, So(ge, Ne), So(he, Ne), So(Pe, Ne),
|
|
8017
|
+
d.inVirtualScroll = !0, So(ge, Ne), So(he, Ne), So(Pe, Ne), U.triggerScrollXEvent(m), U.handleScrollEvent(m, ft, qe, ze, Ne, {
|
|
8018
8018
|
type: "table",
|
|
8019
8019
|
fixed: ""
|
|
8020
8020
|
});
|
|
@@ -8026,7 +8026,7 @@ const rh = rt({
|
|
|
8026
8026
|
let ze = 0;
|
|
8027
8027
|
Je && (ze = Je.scrollLeft);
|
|
8028
8028
|
const qe = ze !== V, ft = !0;
|
|
8029
|
-
d.inVirtualScroll = !0, go(ge, Ne), go(he, Ne), go(Pe, Ne),
|
|
8029
|
+
d.inVirtualScroll = !0, go(ge, Ne), go(he, Ne), go(Pe, Ne), U.triggerScrollYEvent(m), U.handleScrollEvent(m, ft, qe, Ne, ze, {
|
|
8030
8030
|
type: "table",
|
|
8031
8031
|
fixed: ""
|
|
8032
8032
|
});
|
|
@@ -8038,10 +8038,10 @@ const rh = rt({
|
|
|
8038
8038
|
};
|
|
8039
8039
|
let It;
|
|
8040
8040
|
const Ct = (m, O, T) => {
|
|
8041
|
-
o(m, B_(T, { $table:
|
|
8041
|
+
o(m, B_(T, { $table: U, $grid: se }, O));
|
|
8042
8042
|
}, Yt = (m, O) => {
|
|
8043
|
-
const { fullColumnIdData: T } = d, V = yo(
|
|
8044
|
-
return V && T[V.id] ? Yg(
|
|
8043
|
+
const { fullColumnIdData: T } = d, V = yo(U, m);
|
|
8044
|
+
return V && T[V.id] ? Yg(U, V, O) : me();
|
|
8045
8045
|
};
|
|
8046
8046
|
p = {
|
|
8047
8047
|
dispatchEvent: Ct,
|
|
@@ -8049,7 +8049,7 @@ const rh = rt({
|
|
|
8049
8049
|
* 重置表格的一切数据状态
|
|
8050
8050
|
*/
|
|
8051
8051
|
clearAll() {
|
|
8052
|
-
return y_(
|
|
8052
|
+
return y_(U);
|
|
8053
8053
|
},
|
|
8054
8054
|
/**
|
|
8055
8055
|
* 同步 data 数据(即将废弃)
|
|
@@ -8069,7 +8069,7 @@ const rh = rt({
|
|
|
8069
8069
|
if (p.updateFooter(), m || O)
|
|
8070
8070
|
return m && h.updateScrollXSpace(), O && h.updateScrollYSpace(), p.refreshScroll();
|
|
8071
8071
|
}).then(() => (p.updateCellAreas(), p.recalculate(!0))).then(() => {
|
|
8072
|
-
setTimeout(() =>
|
|
8072
|
+
setTimeout(() => U.recalculate(), 50);
|
|
8073
8073
|
});
|
|
8074
8074
|
},
|
|
8075
8075
|
/**
|
|
@@ -8094,9 +8094,9 @@ const rh = rt({
|
|
|
8094
8094
|
if (m && O) {
|
|
8095
8095
|
let T = m;
|
|
8096
8096
|
i.isArray(m) || (T = [m]);
|
|
8097
|
-
const V = Ns(
|
|
8097
|
+
const V = Ns(U);
|
|
8098
8098
|
T.forEach((j) => {
|
|
8099
|
-
const ue = St(
|
|
8099
|
+
const ue = St(U, j), le = i.clone(Object.assign({}, O), !0);
|
|
8100
8100
|
i.set(le, V, ue), Object.assign(j, le);
|
|
8101
8101
|
});
|
|
8102
8102
|
}
|
|
@@ -8118,7 +8118,7 @@ const rh = rt({
|
|
|
8118
8118
|
const he = i.clone(i.get(O || m, T), !0);
|
|
8119
8119
|
i.set(m, T, he), i.set(ge, T, he);
|
|
8120
8120
|
} else {
|
|
8121
|
-
const he = Ns(
|
|
8121
|
+
const he = Ns(U), Pe = St(U, m), Fe = i.clone(Object.assign({}, O), !0);
|
|
8122
8122
|
i.set(Fe, he, Pe), i.destructuring(ge, Object.assign(m, Fe));
|
|
8123
8123
|
}
|
|
8124
8124
|
u.tableData = j.slice(0);
|
|
@@ -8133,17 +8133,17 @@ const rh = rt({
|
|
|
8133
8133
|
* 用于树结构,给行数据加载子节点
|
|
8134
8134
|
*/
|
|
8135
8135
|
loadTreeChildren(m, O) {
|
|
8136
|
-
const { keepSource: T } = e, { tableSourceData: V, fullDataRowIdData: j, fullAllDataRowIdData: ue, sourceDataRowIdData: le } = d, ge = Et.value, { transform: he, mapChildrenField: Pe } = ge, Fe = ge.children || ge.childrenField, _e = ue[St(
|
|
8136
|
+
const { keepSource: T } = e, { tableSourceData: V, fullDataRowIdData: j, fullAllDataRowIdData: ue, sourceDataRowIdData: le } = d, ge = Et.value, { transform: he, mapChildrenField: Pe } = ge, Fe = ge.children || ge.childrenField, _e = ue[St(U, m)], Ne = _e ? _e.level : 0;
|
|
8137
8137
|
return p.createData(O).then((Je) => {
|
|
8138
8138
|
if (T) {
|
|
8139
|
-
const ze = St(
|
|
8139
|
+
const ze = St(U, m), qe = i.findTree(V, (ft) => ze === St(U, ft), { children: Fe });
|
|
8140
8140
|
qe && (qe.item[Fe] = i.clone(Je, !0)), Je.forEach((ft) => {
|
|
8141
|
-
const Dt = St(
|
|
8141
|
+
const Dt = St(U, ft);
|
|
8142
8142
|
le[Dt] = i.clone(ft, !0);
|
|
8143
8143
|
});
|
|
8144
8144
|
}
|
|
8145
8145
|
return i.eachTree(Je, (ze, qe, ft, Dt, Xe, Tt) => {
|
|
8146
|
-
const Wt = St(
|
|
8146
|
+
const Wt = St(U, ze), Kt = Xe || _e.row, an = { row: ze, rowid: Wt, seq: -1, index: qe, _index: -1, $index: -1, items: ft, parent: Kt, level: Ne + Tt.length, height: 0 };
|
|
8147
8147
|
j[Wt] = an, ue[Wt] = an;
|
|
8148
8148
|
}, { children: Fe }), m[Fe] = Je, he && (m[Pe] = i.clone(Je, !1)), jr(), Je;
|
|
8149
8149
|
});
|
|
@@ -8154,7 +8154,7 @@ const rh = rt({
|
|
|
8154
8154
|
* @param {ColumnInfo} columns 列配置
|
|
8155
8155
|
*/
|
|
8156
8156
|
loadColumn(m) {
|
|
8157
|
-
const O = i.mapTree(m, (T) => kt(sn.createColumn(
|
|
8157
|
+
const O = i.mapTree(m, (T) => kt(sn.createColumn(U, T)));
|
|
8158
8158
|
return nc(O);
|
|
8159
8159
|
},
|
|
8160
8160
|
/**
|
|
@@ -8288,9 +8288,9 @@ const rh = rt({
|
|
|
8288
8288
|
if (!T)
|
|
8289
8289
|
return process.env.NODE_ENV === "development" && ln("vxe.error.reqProp", ["keep-source"]), me();
|
|
8290
8290
|
let ue = m;
|
|
8291
|
-
return m ? i.isArray(m) || (ue = [m]) : ue = i.toArray(
|
|
8291
|
+
return m ? i.isArray(m) || (ue = [m]) : ue = i.toArray(U.getUpdateRecords()), ue.length && ue.forEach((le) => {
|
|
8292
8292
|
if (!p.isInsertByRow(le)) {
|
|
8293
|
-
const ge = St(
|
|
8293
|
+
const ge = St(U, le), he = j[ge];
|
|
8294
8294
|
he && le && (O ? i.set(le, O, i.clone(i.get(he, O), !0)) : i.destructuring(le, i.clone(he, !0)));
|
|
8295
8295
|
}
|
|
8296
8296
|
}), m ? me() : p.reloadData(V);
|
|
@@ -8313,22 +8313,22 @@ const rh = rt({
|
|
|
8313
8313
|
}), me();
|
|
8314
8314
|
},
|
|
8315
8315
|
getCellElement(m, O) {
|
|
8316
|
-
const T = yo(
|
|
8316
|
+
const T = yo(U, O);
|
|
8317
8317
|
if (!T)
|
|
8318
8318
|
return null;
|
|
8319
|
-
const V = St(
|
|
8319
|
+
const V = St(U, m), j = x.value, ue = P.value, le = ne.value;
|
|
8320
8320
|
let ge;
|
|
8321
8321
|
return T && (T.fixed && (T.fixed === "left" ? ue && (ge = ue.$el) : le && (ge = le.$el)), ge || (ge = j.$el), ge) ? ge.querySelector(`.vxe-body--row[rowid="${V}"] .${T.id}`) : null;
|
|
8322
8322
|
},
|
|
8323
8323
|
getCellLabel(m, O) {
|
|
8324
|
-
const T = yo(
|
|
8324
|
+
const T = yo(U, O);
|
|
8325
8325
|
if (!T)
|
|
8326
8326
|
return null;
|
|
8327
8327
|
const V = T.formatter, j = $o(m, T);
|
|
8328
8328
|
let ue = j;
|
|
8329
8329
|
if (V) {
|
|
8330
8330
|
let le;
|
|
8331
|
-
const { fullAllDataRowIdData: ge } = d, he = St(
|
|
8331
|
+
const { fullAllDataRowIdData: ge } = d, he = St(U, m), Pe = T.id, Fe = ge[he];
|
|
8332
8332
|
if (Fe && (le = Fe.formatData, le || (le = ge[he].formatData = {}), Fe && le[Pe] && le[Pe].value === j))
|
|
8333
8333
|
return le[Pe].label;
|
|
8334
8334
|
const _e = { cellValue: j, row: m, rowIndex: p.getRowIndex(m), column: T, columnIndex: p.getColumnIndex(T) };
|
|
@@ -8349,7 +8349,7 @@ const rh = rt({
|
|
|
8349
8349
|
* @param {Row} row 行对象
|
|
8350
8350
|
*/
|
|
8351
8351
|
isInsertByRow(m) {
|
|
8352
|
-
const { editStore: O } = u, T = St(
|
|
8352
|
+
const { editStore: O } = u, T = St(U, m);
|
|
8353
8353
|
return !!O.insertMaps[T];
|
|
8354
8354
|
},
|
|
8355
8355
|
/**
|
|
@@ -8358,7 +8358,7 @@ const rh = rt({
|
|
|
8358
8358
|
*/
|
|
8359
8359
|
removeInsertRow() {
|
|
8360
8360
|
const { editStore: m } = u;
|
|
8361
|
-
return m.insertMaps = {},
|
|
8361
|
+
return m.insertMaps = {}, U.remove(U.getInsertRecords());
|
|
8362
8362
|
},
|
|
8363
8363
|
/**
|
|
8364
8364
|
* 检查行或列数据是否发生改变
|
|
@@ -8368,7 +8368,7 @@ const rh = rt({
|
|
|
8368
8368
|
isUpdateByRow(m, O) {
|
|
8369
8369
|
const { keepSource: T } = e, { tableFullColumn: V, fullDataRowIdData: j, sourceDataRowIdData: ue } = d;
|
|
8370
8370
|
if (T) {
|
|
8371
|
-
const le = St(
|
|
8371
|
+
const le = St(U, m);
|
|
8372
8372
|
if (!j[le])
|
|
8373
8373
|
return !1;
|
|
8374
8374
|
const ge = ue[le];
|
|
@@ -8396,7 +8396,7 @@ const rh = rt({
|
|
|
8396
8396
|
* 根据列获取列的唯一主键
|
|
8397
8397
|
*/
|
|
8398
8398
|
getColid(m) {
|
|
8399
|
-
const O = yo(
|
|
8399
|
+
const O = yo(U, m);
|
|
8400
8400
|
return O ? O.id : null;
|
|
8401
8401
|
},
|
|
8402
8402
|
/**
|
|
@@ -8416,7 +8416,7 @@ const rh = rt({
|
|
|
8416
8416
|
return m && O[m] ? O[m].column : null;
|
|
8417
8417
|
},
|
|
8418
8418
|
getParentColumn(m) {
|
|
8419
|
-
const O = d.fullColumnIdData, T = yo(
|
|
8419
|
+
const O = d.fullColumnIdData, T = yo(U, m);
|
|
8420
8420
|
return T && T.parentId && O[T.parentId] ? O[T.parentId].column : null;
|
|
8421
8421
|
},
|
|
8422
8422
|
/**
|
|
@@ -8469,7 +8469,7 @@ const rh = rt({
|
|
|
8469
8469
|
const { treeConfig: O } = e, { fullDataRowIdData: T } = d, V = Et.value, { transform: j, mapChildrenField: ue } = V, le = V.children || V.childrenField;
|
|
8470
8470
|
if (m && O) {
|
|
8471
8471
|
let ge;
|
|
8472
|
-
if (i.isString(m) ? ge = m : ge = St(
|
|
8472
|
+
if (i.isString(m) ? ge = m : ge = St(U, m), ge) {
|
|
8473
8473
|
const he = T[ge], Pe = he ? he.row : null;
|
|
8474
8474
|
if (Pe)
|
|
8475
8475
|
return Pe[j ? ue : le] || [];
|
|
@@ -8484,7 +8484,7 @@ const rh = rt({
|
|
|
8484
8484
|
const { treeConfig: O } = e, { fullDataRowIdData: T } = d;
|
|
8485
8485
|
if (m && O) {
|
|
8486
8486
|
let V;
|
|
8487
|
-
if (i.isString(m) ? V = m : V = St(
|
|
8487
|
+
if (i.isString(m) ? V = m : V = St(U, m), V) {
|
|
8488
8488
|
const j = T[V];
|
|
8489
8489
|
return j ? j.parent : null;
|
|
8490
8490
|
}
|
|
@@ -8492,7 +8492,7 @@ const rh = rt({
|
|
|
8492
8492
|
return null;
|
|
8493
8493
|
},
|
|
8494
8494
|
getParentRow(m) {
|
|
8495
|
-
return ln("vxe.error.delFunc", ["getParentRow", "getTreeParentRow"]),
|
|
8495
|
+
return ln("vxe.error.delFunc", ["getParentRow", "getTreeParentRow"]), U.getTreeParentRow(m);
|
|
8496
8496
|
},
|
|
8497
8497
|
/**
|
|
8498
8498
|
* 根据行的唯一主键获取行
|
|
@@ -8507,7 +8507,7 @@ const rh = rt({
|
|
|
8507
8507
|
* @param {Row} row 行对象
|
|
8508
8508
|
*/
|
|
8509
8509
|
getRowid(m) {
|
|
8510
|
-
return St(
|
|
8510
|
+
return St(U, m);
|
|
8511
8511
|
},
|
|
8512
8512
|
/**
|
|
8513
8513
|
* 获取处理后的表格数据
|
|
@@ -8543,7 +8543,7 @@ const rh = rt({
|
|
|
8543
8543
|
let T = !1;
|
|
8544
8544
|
const V = i.isArray(m) ? m : [m], j = Ye.value, ue = it.value;
|
|
8545
8545
|
for (let le = 0; le < V.length; le++) {
|
|
8546
|
-
const ge = V[le], he = yo(
|
|
8546
|
+
const ge = V[le], he = yo(U, ge), Pe = Gg(U, he);
|
|
8547
8547
|
if (Pe && Pe.fixed !== O) {
|
|
8548
8548
|
if (!Pe.fixed && ue)
|
|
8549
8549
|
return we.modal && we.modal.message({
|
|
@@ -8563,7 +8563,7 @@ const rh = rt({
|
|
|
8563
8563
|
clearColumnFixed(m) {
|
|
8564
8564
|
let O = !1;
|
|
8565
8565
|
return (i.isArray(m) ? m : [m]).forEach((V) => {
|
|
8566
|
-
const j = yo(
|
|
8566
|
+
const j = yo(U, V), ue = Gg(U, j);
|
|
8567
8567
|
ue && ue.fixed && (i.eachTree([ue], (le) => {
|
|
8568
8568
|
le.fixed = null;
|
|
8569
8569
|
}), h.saveCustomStore("update:fixed"), O || (O = !0));
|
|
@@ -8575,7 +8575,7 @@ const rh = rt({
|
|
|
8575
8575
|
hideColumn(m) {
|
|
8576
8576
|
let O = !1;
|
|
8577
8577
|
return (i.isArray(m) ? m : [m]).forEach((V) => {
|
|
8578
|
-
const j = yo(
|
|
8578
|
+
const j = yo(U, V);
|
|
8579
8579
|
j && j.visible && (j.visible = !1, O || (O = !0));
|
|
8580
8580
|
}), O ? h.handleCustom() : me();
|
|
8581
8581
|
},
|
|
@@ -8585,14 +8585,14 @@ const rh = rt({
|
|
|
8585
8585
|
showColumn(m) {
|
|
8586
8586
|
let O = !1;
|
|
8587
8587
|
return (i.isArray(m) ? m : [m]).forEach((V) => {
|
|
8588
|
-
const j = yo(
|
|
8588
|
+
const j = yo(U, V);
|
|
8589
8589
|
j && !j.visible && (j.visible = !0, O || (O = !0));
|
|
8590
8590
|
}), O ? h.handleCustom() : me();
|
|
8591
8591
|
},
|
|
8592
8592
|
setColumnWidth(m, O) {
|
|
8593
8593
|
let T = !1;
|
|
8594
8594
|
return (i.isArray(m) ? m : [m]).forEach((j) => {
|
|
8595
|
-
const ue = yo(
|
|
8595
|
+
const ue = yo(U, j);
|
|
8596
8596
|
if (ue) {
|
|
8597
8597
|
const le = i.toInteger(O);
|
|
8598
8598
|
let ge = le;
|
|
@@ -8605,7 +8605,7 @@ const rh = rt({
|
|
|
8605
8605
|
}), T ? p.refreshColumn() : me();
|
|
8606
8606
|
},
|
|
8607
8607
|
getColumnWidth(m) {
|
|
8608
|
-
const O = yo(
|
|
8608
|
+
const O = yo(U, m);
|
|
8609
8609
|
return O ? O.renderWidth : 0;
|
|
8610
8610
|
},
|
|
8611
8611
|
/**
|
|
@@ -8614,7 +8614,7 @@ const rh = rt({
|
|
|
8614
8614
|
* 如果已关联工具栏,则会同步更新
|
|
8615
8615
|
*/
|
|
8616
8616
|
resetColumn(m) {
|
|
8617
|
-
return ln("vxe.error.delFunc", ["resetColumn", "resetCustom"]),
|
|
8617
|
+
return ln("vxe.error.delFunc", ["resetColumn", "resetCustom"]), U.resetCustom(m);
|
|
8618
8618
|
},
|
|
8619
8619
|
/**
|
|
8620
8620
|
* 刷新列信息
|
|
@@ -8637,7 +8637,7 @@ const rh = rt({
|
|
|
8637
8637
|
const { lastScrollLeft: m, lastScrollTop: O } = d, T = x.value, V = C.value, j = P.value, ue = ne.value, le = T ? T.$el : null, ge = j ? j.$el : null, he = ue ? ue.$el : null, Pe = V ? V.$el : null;
|
|
8638
8638
|
return new Promise((Fe) => {
|
|
8639
8639
|
if (m || O)
|
|
8640
|
-
return lf(
|
|
8640
|
+
return lf(U, m, O).then().then(() => {
|
|
8641
8641
|
setTimeout(Fe, 30);
|
|
8642
8642
|
});
|
|
8643
8643
|
go(le, O), go(ge, O), go(he, O), So(Pe, m), setTimeout(Fe, 30);
|
|
@@ -8718,7 +8718,7 @@ const rh = rt({
|
|
|
8718
8718
|
},
|
|
8719
8719
|
isCheckedByCheckboxRow(m) {
|
|
8720
8720
|
const { selectCheckboxMaps: O } = u, T = ke.value, { checkField: V } = T;
|
|
8721
|
-
return V ? i.get(m, V) : !!O[St(
|
|
8721
|
+
return V ? i.get(m, V) : !!O[St(U, m)];
|
|
8722
8722
|
},
|
|
8723
8723
|
isCheckedByCheckboxRowKey(m) {
|
|
8724
8724
|
const { selectCheckboxMaps: O } = u, { fullAllDataRowIdData: T } = d, V = ke.value, { checkField: j } = V;
|
|
@@ -8730,17 +8730,17 @@ const rh = rt({
|
|
|
8730
8730
|
},
|
|
8731
8731
|
isIndeterminateByCheckboxRow(m) {
|
|
8732
8732
|
const { treeIndeterminateMaps: O } = u;
|
|
8733
|
-
return !!O[St(
|
|
8733
|
+
return !!O[St(U, m)] && !U.isCheckedByCheckboxRow(m);
|
|
8734
8734
|
},
|
|
8735
8735
|
isIndeterminateByCheckboxRowKey(m) {
|
|
8736
8736
|
const { treeIndeterminateMaps: O } = u;
|
|
8737
|
-
return !!O[m] && !
|
|
8737
|
+
return !!O[m] && !U.isCheckedByCheckboxRowKey(m);
|
|
8738
8738
|
},
|
|
8739
8739
|
/**
|
|
8740
8740
|
* 多选,切换某一行的选中状态
|
|
8741
8741
|
*/
|
|
8742
8742
|
toggleCheckboxRow(m) {
|
|
8743
|
-
const { selectCheckboxMaps: O } = u, T = ke.value, { checkField: V } = T, j = V ? !i.get(m, V) : !O[St(
|
|
8743
|
+
const { selectCheckboxMaps: O } = u, T = ke.value, { checkField: V } = T, j = V ? !i.get(m, V) : !O[St(U, m)];
|
|
8744
8744
|
return h.handleBatchSelectRows([m], j, !0), h.checkSelectionStatus(), me();
|
|
8745
8745
|
},
|
|
8746
8746
|
/**
|
|
@@ -8756,12 +8756,12 @@ const rh = rt({
|
|
|
8756
8756
|
getRadioReserveRecord(m) {
|
|
8757
8757
|
const { treeConfig: O } = e, { fullDataRowIdData: T, radioReserveRow: V, afterFullData: j } = d, ue = pt.value, le = Et.value, ge = le.children || le.childrenField;
|
|
8758
8758
|
if (ue.reserve && V) {
|
|
8759
|
-
const he = St(
|
|
8759
|
+
const he = St(U, V);
|
|
8760
8760
|
if (m) {
|
|
8761
8761
|
if (!T[he])
|
|
8762
8762
|
return V;
|
|
8763
8763
|
} else {
|
|
8764
|
-
const Pe = Ns(
|
|
8764
|
+
const Pe = Ns(U);
|
|
8765
8765
|
if (O) {
|
|
8766
8766
|
if (i.findTree(j, (_e) => he === i.get(_e, Pe), { children: ge }))
|
|
8767
8767
|
return V;
|
|
@@ -8782,9 +8782,9 @@ const rh = rt({
|
|
|
8782
8782
|
if (ue.reserve) {
|
|
8783
8783
|
const Pe = {};
|
|
8784
8784
|
O ? i.eachTree(T, (Fe) => {
|
|
8785
|
-
Pe[St(
|
|
8785
|
+
Pe[St(U, Fe)] = 1;
|
|
8786
8786
|
}, { children: ge }) : T.forEach((Fe) => {
|
|
8787
|
-
Pe[St(
|
|
8787
|
+
Pe[St(U, Fe)] = 1;
|
|
8788
8788
|
}), i.each(j, (Fe, _e) => {
|
|
8789
8789
|
Fe && (m ? V[_e] || he.push(Fe) : Pe[_e] || he.push(Fe));
|
|
8790
8790
|
});
|
|
@@ -8820,15 +8820,15 @@ const rh = rt({
|
|
|
8820
8820
|
*/
|
|
8821
8821
|
setCurrentRow(m) {
|
|
8822
8822
|
const O = je.value, T = g.value;
|
|
8823
|
-
return p.clearCurrentRow(), u.currentRow = m, (O.isCurrent || e.highlightCurrentRow) && T && i.arrayEach(T.querySelectorAll(`[rowid="${St(
|
|
8823
|
+
return p.clearCurrentRow(), u.currentRow = m, (O.isCurrent || e.highlightCurrentRow) && T && i.arrayEach(T.querySelectorAll(`[rowid="${St(U, m)}"]`), (V) => gs(V, "row--current")), me();
|
|
8824
8824
|
},
|
|
8825
8825
|
isCheckedByRadioRow(m) {
|
|
8826
8826
|
const { selectRadioRow: O } = u;
|
|
8827
|
-
return m && O ?
|
|
8827
|
+
return m && O ? U.eqRow(O, m) : !1;
|
|
8828
8828
|
},
|
|
8829
8829
|
isCheckedByRadioRowKey(m) {
|
|
8830
8830
|
const { selectRadioRow: O } = u;
|
|
8831
|
-
return O ? m === St(
|
|
8831
|
+
return O ? m === St(U, O) : !1;
|
|
8832
8832
|
},
|
|
8833
8833
|
/**
|
|
8834
8834
|
* 用于单选行,设置某一行为选中状态
|
|
@@ -8870,7 +8870,7 @@ const rh = rt({
|
|
|
8870
8870
|
getRadioRecord(m) {
|
|
8871
8871
|
const { fullDataRowIdData: O, afterFullRowMaps: T } = d, { selectRadioRow: V } = u;
|
|
8872
8872
|
if (V) {
|
|
8873
|
-
const j = St(
|
|
8873
|
+
const j = St(U, V);
|
|
8874
8874
|
if (m) {
|
|
8875
8875
|
if (O[j])
|
|
8876
8876
|
return V;
|
|
@@ -8886,7 +8886,7 @@ const rh = rt({
|
|
|
8886
8886
|
* 用于当前列,设置某列行为高亮状态
|
|
8887
8887
|
*/
|
|
8888
8888
|
setCurrentColumn(m) {
|
|
8889
|
-
const O = yo(
|
|
8889
|
+
const O = yo(U, m);
|
|
8890
8890
|
return O && (p.clearCurrentColumn(), u.currentColumn = O), me();
|
|
8891
8891
|
},
|
|
8892
8892
|
/**
|
|
@@ -8898,17 +8898,17 @@ const rh = rt({
|
|
|
8898
8898
|
setPendingRow(m, O) {
|
|
8899
8899
|
const T = Object.assign({}, u.pendingRowMaps);
|
|
8900
8900
|
return m && !i.isArray(m) && (m = [m]), O ? m.forEach((V) => {
|
|
8901
|
-
const j = St(
|
|
8901
|
+
const j = St(U, V);
|
|
8902
8902
|
j && !T[j] && (T[j] = V);
|
|
8903
8903
|
}) : m.forEach((V) => {
|
|
8904
|
-
const j = St(
|
|
8904
|
+
const j = St(U, V);
|
|
8905
8905
|
j && T[j] && delete T[j];
|
|
8906
8906
|
}), u.pendingRowMaps = T, me();
|
|
8907
8907
|
},
|
|
8908
8908
|
togglePendingRow(m) {
|
|
8909
8909
|
const O = Object.assign({}, u.pendingRowMaps);
|
|
8910
8910
|
return m && !i.isArray(m) && (m = [m]), m.forEach((T) => {
|
|
8911
|
-
const V = St(
|
|
8911
|
+
const V = St(U, T);
|
|
8912
8912
|
V && (O[V] ? delete O[V] : O[V] = T);
|
|
8913
8913
|
}), u.pendingRowMaps = O, me();
|
|
8914
8914
|
},
|
|
@@ -8916,7 +8916,7 @@ const rh = rt({
|
|
|
8916
8916
|
return p.isPendingByRow(m);
|
|
8917
8917
|
},
|
|
8918
8918
|
isPendingByRow(m) {
|
|
8919
|
-
const { pendingRowMaps: O } = u, T = St(
|
|
8919
|
+
const { pendingRowMaps: O } = u, T = St(U, m);
|
|
8920
8920
|
return !!O[T];
|
|
8921
8921
|
},
|
|
8922
8922
|
getPendingRecords() {
|
|
@@ -8945,7 +8945,7 @@ const rh = rt({
|
|
|
8945
8945
|
return m.forEach((ge, he) => {
|
|
8946
8946
|
let { field: Pe, order: Fe } = ge, _e = Pe;
|
|
8947
8947
|
i.isString(Pe) && (_e = p.getColumnByField(Pe)), le || (le = _e), _e && _e.sortable && (ue.indexOf(Fe) === -1 && (Fe = rn(_e)), _e.order !== Fe && (_e.order = Fe), _e.sortTime = Date.now() + he);
|
|
8948
|
-
}), O && (j || h.handleTableData(!0),
|
|
8948
|
+
}), O && (j || h.handleTableData(!0), U.handleColumnSortEvent(new Event("click"), le)), me().then(() => (p.updateCellAreas(), mo()));
|
|
8949
8949
|
}
|
|
8950
8950
|
return me();
|
|
8951
8951
|
},
|
|
@@ -8957,7 +8957,7 @@ const rh = rt({
|
|
|
8957
8957
|
clearSort(m) {
|
|
8958
8958
|
const O = M.value;
|
|
8959
8959
|
if (m) {
|
|
8960
|
-
const T = yo(
|
|
8960
|
+
const T = yo(U, m);
|
|
8961
8961
|
T && (T.order = null);
|
|
8962
8962
|
} else
|
|
8963
8963
|
zo();
|
|
@@ -8965,7 +8965,7 @@ const rh = rt({
|
|
|
8965
8965
|
},
|
|
8966
8966
|
isSort(m) {
|
|
8967
8967
|
if (m) {
|
|
8968
|
-
const O = yo(
|
|
8968
|
+
const O = yo(U, m);
|
|
8969
8969
|
return O ? O.sortable && !!O.order : !1;
|
|
8970
8970
|
}
|
|
8971
8971
|
return p.getSortColumns().length > 0;
|
|
@@ -8988,15 +8988,15 @@ const rh = rt({
|
|
|
8988
8988
|
isIndeterminate: !1,
|
|
8989
8989
|
options: [],
|
|
8990
8990
|
visible: !1
|
|
8991
|
-
}), T && Ct("filter-visible", { column: O, property: O.field, field: O.field, filterList:
|
|
8991
|
+
}), T && Ct("filter-visible", { column: O, property: O.field, field: O.field, filterList: U.getCheckedFilters(), visible: !1 }, null), me();
|
|
8992
8992
|
},
|
|
8993
8993
|
/**
|
|
8994
8994
|
* 判断指定列是否为筛选状态,如果为空则判断所有列
|
|
8995
8995
|
* @param {String} fieldOrColumn 字段名
|
|
8996
8996
|
*/
|
|
8997
8997
|
isActiveFilterByColumn(m) {
|
|
8998
|
-
const O = yo(
|
|
8999
|
-
return O ? O.filters && O.filters.some((T) => T.checked) :
|
|
8998
|
+
const O = yo(U, m);
|
|
8999
|
+
return O ? O.filters && O.filters.some((T) => T.checked) : U.getCheckedFilters().length > 0;
|
|
9000
9000
|
},
|
|
9001
9001
|
isFilter(m) {
|
|
9002
9002
|
return p.isActiveFilterByColumn(m);
|
|
@@ -9006,11 +9006,11 @@ const rh = rt({
|
|
|
9006
9006
|
* @param {Row} row 行对象
|
|
9007
9007
|
*/
|
|
9008
9008
|
isRowExpandLoaded(m) {
|
|
9009
|
-
const { fullAllDataRowIdData: O } = d, T = O[St(
|
|
9009
|
+
const { fullAllDataRowIdData: O } = d, T = O[St(U, m)];
|
|
9010
9010
|
return T && !!T.expandLoaded;
|
|
9011
9011
|
},
|
|
9012
9012
|
clearRowExpandLoaded(m) {
|
|
9013
|
-
const { rowExpandLazyLoadedMaps: O } = u, { fullAllDataRowIdData: T } = d, V = ut.value, { lazy: j } = V, ue = St(
|
|
9013
|
+
const { rowExpandLazyLoadedMaps: O } = u, { fullAllDataRowIdData: T } = d, V = ut.value, { lazy: j } = V, ue = St(U, m), le = T[ue];
|
|
9014
9014
|
return j && le && (le.expandLoaded = !1, delete O[ue]), me();
|
|
9015
9015
|
},
|
|
9016
9016
|
/**
|
|
@@ -9018,7 +9018,7 @@ const rh = rt({
|
|
|
9018
9018
|
* @param {Row} row 行对象
|
|
9019
9019
|
*/
|
|
9020
9020
|
reloadRowExpand(m) {
|
|
9021
|
-
const { rowExpandLazyLoadedMaps: O } = u, T = ut.value, { lazy: V } = T, j = St(
|
|
9021
|
+
const { rowExpandLazyLoadedMaps: O } = u, T = ut.value, { lazy: V } = T, j = St(U, m);
|
|
9022
9022
|
return V && !O[j] && p.clearRowExpandLoaded(m).then(() => lt(m)), me();
|
|
9023
9023
|
},
|
|
9024
9024
|
reloadExpandContent(m) {
|
|
@@ -9054,15 +9054,15 @@ const rh = rt({
|
|
|
9054
9054
|
const ge = ut.value, { reserve: he, lazy: Pe, accordion: Fe, toggleMethod: _e } = ge, Ne = [], Je = p.getColumnIndex(j), ze = p.getVMColumnIndex(j);
|
|
9055
9055
|
if (m) {
|
|
9056
9056
|
i.isArray(m) || (m = [m]), Fe && (le = {}, m = m.slice(m.length - 1, m.length));
|
|
9057
|
-
const qe = _e ? m.filter((ft) => _e({ $table:
|
|
9057
|
+
const qe = _e ? m.filter((ft) => _e({ $table: U, expanded: O, column: j, columnIndex: Je, $columnIndex: ze, row: ft, rowIndex: p.getRowIndex(ft), $rowIndex: p.getVMRowIndex(ft) })) : m;
|
|
9058
9058
|
O ? qe.forEach((ft) => {
|
|
9059
|
-
const Dt = St(
|
|
9059
|
+
const Dt = St(U, ft);
|
|
9060
9060
|
if (!le[Dt]) {
|
|
9061
9061
|
const Xe = ue[Dt];
|
|
9062
9062
|
Pe && !Xe.expandLoaded && !V[Dt] ? Ne.push(lt(ft)) : le[Dt] = ft;
|
|
9063
9063
|
}
|
|
9064
9064
|
}) : qe.forEach((ft) => {
|
|
9065
|
-
const Dt = St(
|
|
9065
|
+
const Dt = St(U, ft);
|
|
9066
9066
|
le[Dt] && delete le[Dt];
|
|
9067
9067
|
}), he && qe.forEach((ft) => Ot(ft, O));
|
|
9068
9068
|
}
|
|
@@ -9073,7 +9073,7 @@ const rh = rt({
|
|
|
9073
9073
|
* @param {Row} row 行对象
|
|
9074
9074
|
*/
|
|
9075
9075
|
isRowExpandByRow(m) {
|
|
9076
|
-
const { rowExpandedMaps: O } = u, T = St(
|
|
9076
|
+
const { rowExpandedMaps: O } = u, T = St(U, m);
|
|
9077
9077
|
return !!O[T];
|
|
9078
9078
|
},
|
|
9079
9079
|
isExpandByRow(m) {
|
|
@@ -9108,13 +9108,13 @@ const rh = rt({
|
|
|
9108
9108
|
* @param {Row} row 行对象
|
|
9109
9109
|
*/
|
|
9110
9110
|
isTreeExpandLoaded(m) {
|
|
9111
|
-
const { fullAllDataRowIdData: O } = d, T = O[St(
|
|
9111
|
+
const { fullAllDataRowIdData: O } = d, T = O[St(U, m)];
|
|
9112
9112
|
return T && !!T.treeLoaded;
|
|
9113
9113
|
},
|
|
9114
9114
|
clearTreeExpandLoaded(m) {
|
|
9115
9115
|
const { treeExpandedMaps: O } = u, { fullAllDataRowIdData: T } = d, V = Et.value, { transform: j } = V;
|
|
9116
9116
|
return m && (i.isArray(m) || (m = [m]), m.forEach((ue) => {
|
|
9117
|
-
const le = St(
|
|
9117
|
+
const le = St(U, ue), ge = T[le];
|
|
9118
9118
|
ge && (ge.treeLoaded = !1, O[le] && delete O[le]);
|
|
9119
9119
|
})), j ? (Ro(), h.handleTableData()) : me();
|
|
9120
9120
|
},
|
|
@@ -9123,7 +9123,7 @@ const rh = rt({
|
|
|
9123
9123
|
* @param {Row} row 行对象
|
|
9124
9124
|
*/
|
|
9125
9125
|
reloadTreeExpand(m) {
|
|
9126
|
-
const { treeExpandLazyLoadedMaps: O } = u, T = Et.value, V = T.hasChild || T.hasChildField, { transform: j, lazy: ue } = T, le = St(
|
|
9126
|
+
const { treeExpandLazyLoadedMaps: O } = u, T = Et.value, V = T.hasChild || T.hasChildField, { transform: j, lazy: ue } = T, le = St(U, m);
|
|
9127
9127
|
return ue && m[V] && !O[le] ? p.clearTreeExpandLoaded(m).then(() => zt(m)).then(() => {
|
|
9128
9128
|
if (j)
|
|
9129
9129
|
return Ro(), h.handleTableData();
|
|
@@ -9169,7 +9169,7 @@ const rh = rt({
|
|
|
9169
9169
|
*/
|
|
9170
9170
|
isTreeExpandByRow(m) {
|
|
9171
9171
|
const { treeExpandedMaps: O } = u;
|
|
9172
|
-
return !!O[St(
|
|
9172
|
+
return !!O[St(U, m)];
|
|
9173
9173
|
},
|
|
9174
9174
|
/**
|
|
9175
9175
|
* 手动清空树形节点的展开状态,数据会恢复成未展开的状态
|
|
@@ -9229,14 +9229,14 @@ const rh = rt({
|
|
|
9229
9229
|
*/
|
|
9230
9230
|
scrollToRow(m, O) {
|
|
9231
9231
|
const T = [];
|
|
9232
|
-
return m && (e.treeConfig ? T.push(h.scrollToTreeRow(m)) : T.push(Kg(
|
|
9232
|
+
return m && (e.treeConfig ? T.push(h.scrollToTreeRow(m)) : T.push(Kg(U, m))), O && T.push(Yt(O, m)), Promise.all(T);
|
|
9233
9233
|
},
|
|
9234
9234
|
/**
|
|
9235
9235
|
* 如果有滚动条,则滚动到对应的列
|
|
9236
9236
|
*/
|
|
9237
9237
|
scrollToColumn(m) {
|
|
9238
|
-
const { fullColumnIdData: O } = d, T = yo(
|
|
9239
|
-
return T && O[T.id] ? Yg(
|
|
9238
|
+
const { fullColumnIdData: O } = d, T = yo(U, m);
|
|
9239
|
+
return T && O[T.id] ? Yg(U, T) : me();
|
|
9240
9240
|
},
|
|
9241
9241
|
/**
|
|
9242
9242
|
* 手动清除滚动相关信息,还原到初始状态
|
|
@@ -9255,7 +9255,7 @@ const rh = rt({
|
|
|
9255
9255
|
updateFooter() {
|
|
9256
9256
|
const { showFooter: m, footerData: O, footerMethod: T } = e, { visibleColumn: V, afterFullData: j } = d;
|
|
9257
9257
|
let ue = [];
|
|
9258
|
-
return m && O && O.length ? ue = O.slice(0) : m && T && (ue = V.length ? T({ columns: V, data: j, $table:
|
|
9258
|
+
return m && O && O.length ? ue = O.slice(0) : m && T && (ue = V.length ? T({ columns: V, data: j, $table: U, $grid: se }) : []), u.footerTableData = ue, me();
|
|
9259
9259
|
},
|
|
9260
9260
|
/**
|
|
9261
9261
|
* 更新列状态 updateStatus({ row, column }, cellValue)
|
|
@@ -9268,13 +9268,13 @@ const rh = rt({
|
|
|
9268
9268
|
const { editRules: V } = e, { validStore: j } = u, ue = x.value;
|
|
9269
9269
|
if (m && ue && V) {
|
|
9270
9270
|
const { row: le, column: ge } = m, he = "change";
|
|
9271
|
-
if (
|
|
9271
|
+
if (U.hasCellRules && U.hasCellRules(he, le, ge)) {
|
|
9272
9272
|
const Pe = p.getCellElement(le, ge);
|
|
9273
9273
|
if (Pe)
|
|
9274
|
-
return
|
|
9275
|
-
T && j.visible && hs(le, ge, O),
|
|
9274
|
+
return U.validCellRules(he, le, ge, O).then(() => {
|
|
9275
|
+
T && j.visible && hs(le, ge, O), U.clearValidate(le, ge);
|
|
9276
9276
|
}).catch(({ rule: Fe }) => {
|
|
9277
|
-
T && hs(le, ge, O),
|
|
9277
|
+
T && hs(le, ge, O), U.showValidTooltip({ rule: Fe, row: le, column: ge, cell: Pe });
|
|
9278
9278
|
});
|
|
9279
9279
|
}
|
|
9280
9280
|
}
|
|
@@ -9330,7 +9330,7 @@ const rh = rt({
|
|
|
9330
9330
|
},
|
|
9331
9331
|
updateCellAreas() {
|
|
9332
9332
|
const { mouseConfig: m } = e, O = Se.value;
|
|
9333
|
-
return m && O.area &&
|
|
9333
|
+
return m && O.area && U.handleRecalculateCellAreas ? U.handleRecalculateCellAreas() : me();
|
|
9334
9334
|
},
|
|
9335
9335
|
getCustomStoreData() {
|
|
9336
9336
|
const { id: m } = e, O = Bt.value, { collectColumn: T } = d, { checkMethod: V } = O, j = {}, ue = {}, le = {}, ge = {}, he = {
|
|
@@ -9376,13 +9376,13 @@ const rh = rt({
|
|
|
9376
9376
|
* @param $toolbar
|
|
9377
9377
|
*/
|
|
9378
9378
|
connect(m) {
|
|
9379
|
-
return m ? (B = m, B.syncUpdate({ collectColumn: d.collectColumn, $table:
|
|
9379
|
+
return m ? (B = m, B.syncUpdate({ collectColumn: d.collectColumn, $table: U })) : Gt("vxe.error.barUnableLink"), me();
|
|
9380
9380
|
}
|
|
9381
9381
|
};
|
|
9382
9382
|
const Nt = (m) => {
|
|
9383
9383
|
const { editStore: O, ctxMenuStore: T, filterStore: V, customStore: j } = u, { mouseConfig: ue, editRules: le } = e, ge = g.value, he = $e.value, Pe = oe.value, Fe = K.value, { actived: _e } = O, Ne = E.value, Je = D.value, ze = y.value, qe = v.value;
|
|
9384
9384
|
if (Je && (kn(m, ge, "vxe-cell--filter").flag || kn(m, Je.$el).flag || kn(m, document.body, "vxe-table--ignore-clear").flag || h.preventEvent(m, "event.clearFilter", V.args, p.closeFilter)), ze && (j.btnEl === m.target || kn(m, document.body, "vxe-toolbar-custom-target").flag || kn(m, ze.$el).flag || kn(m, document.body, "vxe-table--ignore-clear").flag || h.preventEvent(m, "event.clearCustom", {}, () => {
|
|
9385
|
-
|
|
9385
|
+
U.closeCustom && U.closeCustom();
|
|
9386
9386
|
})), _e.row) {
|
|
9387
9387
|
if (he.autoClear !== !1) {
|
|
9388
9388
|
const Dt = _e.args.cell;
|
|
@@ -9390,7 +9390,7 @@ const rh = rt({
|
|
|
9390
9390
|
let Xe;
|
|
9391
9391
|
if (he.mode === "row") {
|
|
9392
9392
|
const Tt = kn(m, ge, "vxe-body--row"), Wt = Tt.flag ? p.getRowNode(Tt.targetElem) : null;
|
|
9393
|
-
Xe = Wt ? !
|
|
9393
|
+
Xe = Wt ? !U.eqRow(Wt.item, _e.args.row) : !1;
|
|
9394
9394
|
} else
|
|
9395
9395
|
Xe = !kn(m, ge, "col--edit").flag;
|
|
9396
9396
|
if (Xe || (Xe = kn(m, ge, "vxe-header--row").flag), Xe || (Xe = kn(m, ge, "vxe-footer--row").flag), !Xe && e.height && !u.overflowY) {
|
|
@@ -9399,33 +9399,33 @@ const rh = rt({
|
|
|
9399
9399
|
}
|
|
9400
9400
|
(Xe || // 如果点击了当前表格之外
|
|
9401
9401
|
!kn(m, ge).flag) && setTimeout(() => {
|
|
9402
|
-
|
|
9402
|
+
U.handleClearEdit(m).then(() => {
|
|
9403
9403
|
!d.isActivated && le && Pe.autoClear && (u.validErrorMaps = {});
|
|
9404
9404
|
});
|
|
9405
9405
|
});
|
|
9406
9406
|
})));
|
|
9407
9407
|
}
|
|
9408
|
-
} else if (ue && !kn(m, ge).flag && !(se && kn(m, se.getRefMaps().refElem.value).flag) && !(qe && kn(m, qe.getRefMaps().refElem.value).flag) && !(B && kn(m, B.getRefMaps().refElem.value).flag) && (
|
|
9409
|
-
const Dt =
|
|
9408
|
+
} else if (ue && !kn(m, ge).flag && !(se && kn(m, se.getRefMaps().refElem.value).flag) && !(qe && kn(m, qe.getRefMaps().refElem.value).flag) && !(B && kn(m, B.getRefMaps().refElem.value).flag) && (U.clearSelected && U.clearSelected(), Fe.autoClear && U.getCellAreas)) {
|
|
9409
|
+
const Dt = U.getCellAreas();
|
|
9410
9410
|
Dt && Dt.length && !kn(m, document.body, "vxe-table--ignore-areas-clear").flag && h.preventEvent(m, "event.clearAreas", {}, () => {
|
|
9411
|
-
|
|
9411
|
+
U.clearCellAreas(), U.clearCopyCellArea(), Ct("clear-cell-area-selection", { cellAreas: Dt }, m);
|
|
9412
9412
|
});
|
|
9413
9413
|
}
|
|
9414
|
-
|
|
9414
|
+
U.closeMenu && T.visible && qe && !kn(m, qe.getRefMaps().refElem.value).flag && U.closeMenu();
|
|
9415
9415
|
const ft = kn(m, se ? se.getRefMaps().refElem.value : ge).flag;
|
|
9416
9416
|
!ft && le && Pe.autoClear && (u.validErrorMaps = {}), d.isActivated = ft;
|
|
9417
9417
|
}, ot = () => {
|
|
9418
|
-
p.closeFilter(),
|
|
9418
|
+
p.closeFilter(), U.closeMenu && U.closeMenu();
|
|
9419
9419
|
}, Vt = () => {
|
|
9420
|
-
p.closeTooltip(),
|
|
9420
|
+
p.closeTooltip(), U.closeMenu && U.closeMenu();
|
|
9421
9421
|
}, fn = (m) => {
|
|
9422
9422
|
const { mouseConfig: O, keyboardConfig: T } = e, { filterStore: V, ctxMenuStore: j, editStore: ue } = u, le = Se.value, ge = A.value, { actived: he } = ue;
|
|
9423
9423
|
qn.hasKey(m, br.ESCAPE) && h.preventEvent(m, "event.keydown", null, () => {
|
|
9424
|
-
if (Ct("keydown-start", {}, m), T && O && le.area &&
|
|
9425
|
-
|
|
9426
|
-
else if ((he.row || V.visible || j.visible) && (m.stopPropagation(),
|
|
9424
|
+
if (Ct("keydown-start", {}, m), T && O && le.area && U.handleKeyboardCellAreaEvent)
|
|
9425
|
+
U.handleKeyboardCellAreaEvent(m);
|
|
9426
|
+
else if ((he.row || V.visible || j.visible) && (m.stopPropagation(), U.closeMenu && U.closeMenu(), p.closeFilter(), T && ge.isEsc && he.row)) {
|
|
9427
9427
|
const Fe = he.args;
|
|
9428
|
-
|
|
9428
|
+
U.handleClearEdit(m), le.selected && me(() => U.handleSelected(Fe, m));
|
|
9429
9429
|
}
|
|
9430
9430
|
Ct("keydown", {}, m), Ct("keydown-end", {}, m);
|
|
9431
9431
|
});
|
|
@@ -9433,18 +9433,18 @@ const rh = rt({
|
|
|
9433
9433
|
d.isActivated && h.preventEvent(m, "event.keydown", null, () => {
|
|
9434
9434
|
const { mouseConfig: O, keyboardConfig: T, treeConfig: V, editConfig: j, highlightCurrentRow: ue } = e, { ctxMenuStore: le, editStore: ge, currentRow: he } = u, { afterFullData: Pe } = d, Fe = Le.value, _e = Ee.value, Ne = A.value, Je = Se.value, ze = $e.value, qe = Et.value, ft = Qe.value, Dt = je.value, { selected: Xe, actived: Tt } = ge, Wt = qe.children || qe.childrenField, Kt = m.keyCode, an = qn.hasKey(m, br.ESCAPE), tn = qn.hasKey(m, br.BACKSPACE), vn = qn.hasKey(m, br.TAB), hn = qn.hasKey(m, br.ENTER), un = qn.hasKey(m, br.SPACEBAR), Tn = qn.hasKey(m, br.ARROW_LEFT), cn = qn.hasKey(m, br.ARROW_UP), xn = qn.hasKey(m, br.ARROW_RIGHT), Qn = qn.hasKey(m, br.ARROW_DOWN), qr = qn.hasKey(m, br.DELETE), gr = qn.hasKey(m, br.F2), Ur = qn.hasKey(m, br.CONTEXT_MENU), $s = m.metaKey, Ys = m.ctrlKey, er = m.shiftKey, co = m.altKey, Pr = Tn || cn || xn || Qn, Uo = Fe && le.visible && (hn || un || Pr), Ms = mn(j) && Tt.column && Tt.row, ls = ze.beforeEditMethod || ze.activeMethod;
|
|
9435
9435
|
if (Uo)
|
|
9436
|
-
m.preventDefault(), le.showChild && oa(le.selected) ?
|
|
9437
|
-
else if (T && O && Je.area &&
|
|
9438
|
-
|
|
9436
|
+
m.preventDefault(), le.showChild && oa(le.selected) ? U.moveCtxMenu(m, le, "selectChild", Tn, !1, le.selected.children) : U.moveCtxMenu(m, le, "selected", xn, !0, ft);
|
|
9437
|
+
else if (T && O && Je.area && U.handleKeyboardCellAreaEvent)
|
|
9438
|
+
U.handleKeyboardCellAreaEvent(m);
|
|
9439
9439
|
else if (an) {
|
|
9440
|
-
if (
|
|
9440
|
+
if (U.closeMenu && U.closeMenu(), p.closeFilter(), T && Ne.isEsc && Tt.row) {
|
|
9441
9441
|
const eo = Tt.args;
|
|
9442
|
-
|
|
9442
|
+
U.handleClearEdit(m), Je.selected && me(() => U.handleSelected(eo, m));
|
|
9443
9443
|
}
|
|
9444
9444
|
} else if (un && T && Ne.isChecked && Xe.row && Xe.column && (Xe.column.type === "checkbox" || Xe.column.type === "radio"))
|
|
9445
9445
|
m.preventDefault(), Xe.column.type === "checkbox" ? h.handleToggleCheckRowEvent(m, Xe.args) : h.triggerRadioRowEvent(m, Xe.args);
|
|
9446
9446
|
else if (gr && mn(j))
|
|
9447
|
-
Ms || Xe.row && Xe.column && (m.preventDefault(),
|
|
9447
|
+
Ms || Xe.row && Xe.column && (m.preventDefault(), U.handleEdit(Xe.args, m));
|
|
9448
9448
|
else if (Ur)
|
|
9449
9449
|
d._keyCtx = Xe.row && Xe.column && _e.length, clearTimeout(It), It = setTimeout(() => {
|
|
9450
9450
|
d._keyCtx = !1;
|
|
@@ -9454,36 +9454,36 @@ const rh = rt({
|
|
|
9454
9454
|
if (Ys) {
|
|
9455
9455
|
if (Tt.row) {
|
|
9456
9456
|
const to = Tt.args;
|
|
9457
|
-
|
|
9458
|
-
|
|
9457
|
+
U.handleClearEdit(m), Je.selected && me(() => {
|
|
9458
|
+
U.handleSelected(to, m);
|
|
9459
9459
|
});
|
|
9460
9460
|
}
|
|
9461
9461
|
} else if (Xe.row || Tt.row) {
|
|
9462
9462
|
const to = Xe.row ? Xe.args : Tt.args;
|
|
9463
9463
|
if (er)
|
|
9464
|
-
Ne.enterToTab ?
|
|
9464
|
+
Ne.enterToTab ? U.moveTabSelected(to, er, m) : U.moveSelected(to, Tn, !0, xn, !1, m);
|
|
9465
9465
|
else if (Ne.enterToTab)
|
|
9466
|
-
|
|
9466
|
+
U.moveTabSelected(to, er, m);
|
|
9467
9467
|
else {
|
|
9468
|
-
const Io = Xe.row || Tt.row, lr = Xe.column || Tt.column, Po =
|
|
9468
|
+
const Io = Xe.row || Tt.row, lr = Xe.column || Tt.column, Po = U.getVTRowIndex(Io), oo = {
|
|
9469
9469
|
row: Io,
|
|
9470
|
-
rowIndex:
|
|
9471
|
-
$rowIndex:
|
|
9470
|
+
rowIndex: U.getRowIndex(Io),
|
|
9471
|
+
$rowIndex: U.getVMRowIndex(Io),
|
|
9472
9472
|
_rowIndex: Po,
|
|
9473
9473
|
column: lr,
|
|
9474
|
-
columnIndex:
|
|
9475
|
-
$columnIndex:
|
|
9476
|
-
_columnIndex:
|
|
9477
|
-
$table:
|
|
9474
|
+
columnIndex: U.getColumnIndex(lr),
|
|
9475
|
+
$columnIndex: U.getVMColumnIndex(lr),
|
|
9476
|
+
_columnIndex: U.getVTColumnIndex(lr),
|
|
9477
|
+
$table: U
|
|
9478
9478
|
};
|
|
9479
9479
|
if (!uo || uo(oo) !== !1) {
|
|
9480
9480
|
if (eo && Po >= Pe.length - 1) {
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
}),
|
|
9481
|
+
U.insertAt({}, -1).then(({ row: hr }) => {
|
|
9482
|
+
U.scrollToRow(hr, lr), U.handleSelected(Object.assign(Object.assign({}, to), { row: hr }), m);
|
|
9483
|
+
}), U.dispatchEvent("enter-append-row", oo, m);
|
|
9484
9484
|
return;
|
|
9485
9485
|
}
|
|
9486
|
-
|
|
9486
|
+
U.moveSelected(to, Tn, !1, xn, !0, m), fo && fo(oo);
|
|
9487
9487
|
}
|
|
9488
9488
|
}
|
|
9489
9489
|
} else if (V && (Dt.isCurrent || ue) && he) {
|
|
@@ -9491,7 +9491,7 @@ const rh = rt({
|
|
|
9491
9491
|
if (to && to.length) {
|
|
9492
9492
|
m.preventDefault();
|
|
9493
9493
|
const Io = to[0], lr = {
|
|
9494
|
-
$table:
|
|
9494
|
+
$table: U,
|
|
9495
9495
|
row: Io,
|
|
9496
9496
|
rowIndex: p.getRowIndex(Io),
|
|
9497
9497
|
$rowIndex: p.getVMRowIndex(Io)
|
|
@@ -9500,9 +9500,9 @@ const rh = rt({
|
|
|
9500
9500
|
}
|
|
9501
9501
|
}
|
|
9502
9502
|
} else if (Pr && T && Ne.isArrow)
|
|
9503
|
-
Ms || (Xe.row && Xe.column ?
|
|
9503
|
+
Ms || (Xe.row && Xe.column ? U.moveSelected(Xe.args, Tn, cn, xn, Qn, m) : (cn || Qn) && (Dt.isCurrent || ue) && U.moveCurrentRow(cn, Qn, m));
|
|
9504
9504
|
else if (vn && T && Ne.isTab)
|
|
9505
|
-
Xe.row || Xe.column ?
|
|
9505
|
+
Xe.row || Xe.column ? U.moveTabSelected(Xe.args, er, m) : (Tt.row || Tt.column) && U.moveTabSelected(Tt.args, er, m);
|
|
9506
9506
|
else if (T && Ne.isDel && qr && mn(j) && (Xe.row || Xe.column)) {
|
|
9507
9507
|
if (!Ms) {
|
|
9508
9508
|
const { delMethod: eo } = Ne, uo = {
|
|
@@ -9510,7 +9510,7 @@ const rh = rt({
|
|
|
9510
9510
|
rowIndex: p.getRowIndex(Xe.row),
|
|
9511
9511
|
column: Xe.column,
|
|
9512
9512
|
columnIndex: p.getColumnIndex(Xe.column),
|
|
9513
|
-
$table:
|
|
9513
|
+
$table: U,
|
|
9514
9514
|
$grid: se
|
|
9515
9515
|
};
|
|
9516
9516
|
(!ls || ls(uo)) && (eo ? eo(uo) : hs(Xe.row, Xe.column, null), p.updateFooter(), Ct("cell-delete-value", uo, m));
|
|
@@ -9524,10 +9524,10 @@ const rh = rt({
|
|
|
9524
9524
|
rowIndex: p.getRowIndex(Xe.row),
|
|
9525
9525
|
column: Xe.column,
|
|
9526
9526
|
columnIndex: p.getColumnIndex(Xe.column),
|
|
9527
|
-
$table:
|
|
9527
|
+
$table: U,
|
|
9528
9528
|
$grid: se
|
|
9529
9529
|
};
|
|
9530
|
-
(!ls || ls(uo)) && (eo ? eo(uo) : (hs(Xe.row, Xe.column, null),
|
|
9530
|
+
(!ls || ls(uo)) && (eo ? eo(uo) : (hs(Xe.row, Xe.column, null), U.handleEdit(Xe.args, m)), Ct("cell-backspace-value", uo, m));
|
|
9531
9531
|
}
|
|
9532
9532
|
}
|
|
9533
9533
|
} else if (tn && T && V && Ne.isBack && (Dt.isCurrent || ue) && he) {
|
|
@@ -9538,7 +9538,7 @@ const rh = rt({
|
|
|
9538
9538
|
row: eo,
|
|
9539
9539
|
rowIndex: p.getRowIndex(eo),
|
|
9540
9540
|
$rowIndex: p.getVMRowIndex(eo),
|
|
9541
|
-
$table:
|
|
9541
|
+
$table: U,
|
|
9542
9542
|
$grid: se
|
|
9543
9543
|
};
|
|
9544
9544
|
p.setTreeExpand(eo, !1).then(() => p.scrollToRow(eo)).then(() => h.triggerCurrentRowEvent(m, uo));
|
|
@@ -9551,25 +9551,25 @@ const rh = rt({
|
|
|
9551
9551
|
rowIndex: p.getRowIndex(Xe.row),
|
|
9552
9552
|
column: Xe.column,
|
|
9553
9553
|
columnIndex: p.getColumnIndex(Xe.column),
|
|
9554
|
-
$table:
|
|
9554
|
+
$table: U,
|
|
9555
9555
|
$grid: se
|
|
9556
9556
|
};
|
|
9557
|
-
(!fo || fo(Object.assign(Object.assign({}, Xe.args), { $table:
|
|
9557
|
+
(!fo || fo(Object.assign(Object.assign({}, Xe.args), { $table: U, $grid: se }))) && (uo ? uo(to) : (eo !== "insert" && hs(Xe.row, Xe.column, null), U.handleEdit(Xe.args, m)));
|
|
9558
9558
|
}
|
|
9559
9559
|
}
|
|
9560
9560
|
Ct("keydown", {}, m);
|
|
9561
9561
|
});
|
|
9562
9562
|
}, Yn = (m) => {
|
|
9563
9563
|
const { keyboardConfig: O, mouseConfig: T } = e, { editStore: V, filterStore: j } = u, { isActivated: ue } = d, le = Se.value, ge = A.value, { actived: he } = V;
|
|
9564
|
-
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area &&
|
|
9564
|
+
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area && U.handlePasteCellAreaEvent && U.handlePasteCellAreaEvent(m), Ct("paste", {}, m));
|
|
9565
9565
|
}, Ho = (m) => {
|
|
9566
9566
|
const { keyboardConfig: O, mouseConfig: T } = e, { editStore: V, filterStore: j } = u, { isActivated: ue } = d, le = Se.value, ge = A.value, { actived: he } = V;
|
|
9567
|
-
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area &&
|
|
9567
|
+
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area && U.handleCopyCellAreaEvent && U.handleCopyCellAreaEvent(m), Ct("copy", {}, m));
|
|
9568
9568
|
}, mr = (m) => {
|
|
9569
9569
|
const { keyboardConfig: O, mouseConfig: T } = e, { editStore: V, filterStore: j } = u, { isActivated: ue } = d, le = Se.value, ge = A.value, { actived: he } = V;
|
|
9570
|
-
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area &&
|
|
9570
|
+
ue && !j.visible && (he.row || he.column || O && ge.isClip && T && le.area && U.handleCutCellAreaEvent && U.handleCutCellAreaEvent(m), Ct("cut", {}, m));
|
|
9571
9571
|
}, qo = () => {
|
|
9572
|
-
|
|
9572
|
+
U.closeMenu && U.closeMenu();
|
|
9573
9573
|
const m = g.value;
|
|
9574
9574
|
if (!m || !m.clientWidth)
|
|
9575
9575
|
return me();
|
|
@@ -9588,7 +9588,7 @@ const rh = rt({
|
|
|
9588
9588
|
}, Ks = (m) => {
|
|
9589
9589
|
const O = g.value;
|
|
9590
9590
|
if (O) {
|
|
9591
|
-
const T = "row--drag-origin", V = St(
|
|
9591
|
+
const T = "row--drag-origin", V = St(U, m);
|
|
9592
9592
|
i.arrayEach(O.querySelectorAll(`[rowid="${V}"]`), (j) => {
|
|
9593
9593
|
gs(j, T);
|
|
9594
9594
|
});
|
|
@@ -9714,7 +9714,7 @@ const rh = rt({
|
|
|
9714
9714
|
* @param {Row} records 行数据
|
|
9715
9715
|
*/
|
|
9716
9716
|
defineField(m) {
|
|
9717
|
-
const { treeConfig: O } = e, T = ut.value, V = Et.value, j = pt.value, ue = ke.value, le = V.children || V.childrenField, ge = Ns(
|
|
9717
|
+
const { treeConfig: O } = e, T = ut.value, V = Et.value, j = pt.value, ue = ke.value, le = V.children || V.childrenField, ge = Ns(U);
|
|
9718
9718
|
return i.isArray(m) || (m = [m]), m.map((he) => (d.tableFullColumn.forEach((Fe) => {
|
|
9719
9719
|
const { field: _e, editRender: Ne } = Fe;
|
|
9720
9720
|
if (_e && !i.has(he, _e) && !he[_e]) {
|
|
@@ -9735,7 +9735,7 @@ const rh = rt({
|
|
|
9735
9735
|
m && (Hr(), j = Ro());
|
|
9736
9736
|
const ue = O ? j.slice(T.startIndex, T.endIndex) : j.slice(0);
|
|
9737
9737
|
return ue.forEach((le, ge) => {
|
|
9738
|
-
const he = St(
|
|
9738
|
+
const he = St(U, le), Pe = V[he];
|
|
9739
9739
|
Pe && (Pe.$index = ge);
|
|
9740
9740
|
}), u.tableData = ue, me();
|
|
9741
9741
|
},
|
|
@@ -9744,8 +9744,8 @@ const rh = rt({
|
|
|
9744
9744
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
9745
9745
|
*/
|
|
9746
9746
|
cacheRowMap(m) {
|
|
9747
|
-
const { treeConfig: O } = e, T = Et.value, { fullAllDataRowIdData: V, tableFullData: j, tableFullTreeData: ue } = d, le = T.children || T.childrenField, ge = T.hasChild || T.hasChildField, he = Ns(
|
|
9748
|
-
let Tt = St(
|
|
9747
|
+
const { treeConfig: O } = e, T = Et.value, { fullAllDataRowIdData: V, tableFullData: j, tableFullTreeData: ue } = d, le = T.children || T.childrenField, ge = T.hasChild || T.hasChildField, he = Ns(U), Pe = O && T.lazy, Fe = {}, _e = {}, Ne = (Je, ze, qe, ft, Dt, Xe) => {
|
|
9748
|
+
let Tt = St(U, Je);
|
|
9749
9749
|
const Wt = O && ft ? h_(ft) : ze + 1, Kt = Xe ? Xe.length - 1 : 0;
|
|
9750
9750
|
ms(Tt) && (Tt = af(), i.set(Je, he, Tt)), Pe && Je[ge] && i.isUndefined(Je[le]) && (Je[le] = null);
|
|
9751
9751
|
let an = V[Tt];
|
|
@@ -9756,10 +9756,10 @@ const rh = rt({
|
|
|
9756
9756
|
cacheSourceMap(m) {
|
|
9757
9757
|
const { treeConfig: O } = e, T = Et.value;
|
|
9758
9758
|
let { sourceDataRowIdData: V } = d;
|
|
9759
|
-
const j = i.clone(m, !0), ue = Ns(
|
|
9759
|
+
const j = i.clone(m, !0), ue = Ns(U);
|
|
9760
9760
|
V = d.sourceDataRowIdData = {};
|
|
9761
9761
|
const le = (ge) => {
|
|
9762
|
-
let he = St(
|
|
9762
|
+
let he = St(U, ge);
|
|
9763
9763
|
ms(he) && (he = af(), i.set(ge, ue, he)), V[he] = ge;
|
|
9764
9764
|
};
|
|
9765
9765
|
if (O) {
|
|
@@ -9801,7 +9801,7 @@ const rh = rt({
|
|
|
9801
9801
|
},
|
|
9802
9802
|
handleCustom() {
|
|
9803
9803
|
const { mouseConfig: m } = e;
|
|
9804
|
-
return m && (
|
|
9804
|
+
return m && (U.clearSelected && U.clearSelected(), U.clearCellAreas && (U.clearCellAreas(), U.clearCopyCellArea())), h.analyColumnWidth(), p.refreshColumn(!0);
|
|
9805
9805
|
},
|
|
9806
9806
|
handleUpdateDataQueue() {
|
|
9807
9807
|
u.upDataFlag++;
|
|
@@ -9813,7 +9813,7 @@ const rh = rt({
|
|
|
9813
9813
|
let ue = ih.get(O);
|
|
9814
9814
|
!ue.length && O === "event.clearEdit" && (ue = ih.get("event.clearActived"), process.env.NODE_ENV === "development" && ue.length && ln("vxe.error.delEvent", ["event.clearActived", "event.clearEdit"]));
|
|
9815
9815
|
let le;
|
|
9816
|
-
return ue.some((ge) => ge(Object.assign({ $grid: se, $table:
|
|
9816
|
+
return ue.some((ge) => ge(Object.assign({ $grid: se, $table: U, $event: m }, T)) === !1) || V && (le = V()), j && j(), le;
|
|
9817
9817
|
},
|
|
9818
9818
|
updateCheckboxStatus() {
|
|
9819
9819
|
const { treeConfig: m } = e, { selectCheckboxMaps: O, treeIndeterminateMaps: T } = u, V = Object.assign({}, O), j = Object.assign({}, T), ue = Et.value, { transform: le, mapChildrenField: ge } = ue, he = ue.children || ue.childrenField, Pe = ke.value, { checkField: Fe, checkStrictly: _e, checkMethod: Ne } = Pe, { afterTreeFullData: Je } = d;
|
|
@@ -9821,16 +9821,16 @@ const rh = rt({
|
|
|
9821
9821
|
if (m) {
|
|
9822
9822
|
const ze = {}, qe = [];
|
|
9823
9823
|
i.eachTree(Je, (ft) => {
|
|
9824
|
-
const Dt = St(
|
|
9824
|
+
const Dt = St(U, ft), Xe = ft[le ? ge : he];
|
|
9825
9825
|
Xe && Xe.length && !ze[Dt] && (ze[Dt] = 1, qe.unshift([ft, Dt, Xe]));
|
|
9826
9826
|
}, { children: le ? ge : he }), qe.forEach((ft) => {
|
|
9827
9827
|
const Dt = ft[0], Xe = ft[1], Tt = ft[2];
|
|
9828
9828
|
let Wt = 0, Kt = 0, an = 0;
|
|
9829
9829
|
Tt.forEach(Ne ? (hn) => {
|
|
9830
|
-
const un = St(
|
|
9830
|
+
const un = St(U, hn), Tn = Fe ? i.get(hn, Fe) : V[un];
|
|
9831
9831
|
Ne({ row: hn }) ? (Tn ? Wt++ : j[un] && Kt++, an++) : Tn ? Wt++ : j[un] && Kt++;
|
|
9832
9832
|
} : (hn) => {
|
|
9833
|
-
const un = St(
|
|
9833
|
+
const un = St(U, hn);
|
|
9834
9834
|
(Fe ? i.get(hn, Fe) : V[un]) ? Wt++ : j[un] && Kt++, an++;
|
|
9835
9835
|
});
|
|
9836
9836
|
const tn = Wt >= an, vn = !tn && (Wt >= 1 || Kt >= 1);
|
|
@@ -9844,17 +9844,17 @@ const rh = rt({
|
|
|
9844
9844
|
const { treeConfig: m } = e, { selectCheckboxMaps: O, treeIndeterminateMaps: T } = u, V = ke.value, { checkField: j, checkMethod: ue } = V, { afterFullData: le, afterTreeFullData: ge } = d;
|
|
9845
9845
|
let he = 0, Pe = 0, Fe = 0;
|
|
9846
9846
|
(m ? ge : le).forEach(ue ? (ze) => {
|
|
9847
|
-
const qe = St(
|
|
9847
|
+
const qe = St(U, ze), ft = j ? i.get(ze, j) : O[qe];
|
|
9848
9848
|
ue({ row: ze }) ? (ft ? he++ : T[qe] && Pe++, Fe++) : ft ? he++ : T[qe] && Pe++;
|
|
9849
9849
|
} : (ze) => {
|
|
9850
|
-
const qe = St(
|
|
9850
|
+
const qe = St(U, ze);
|
|
9851
9851
|
(j ? i.get(ze, j) : O[qe]) ? he++ : T[qe] && Pe++, Fe++;
|
|
9852
9852
|
});
|
|
9853
9853
|
const Ne = he >= Fe, Je = !Ne && (he >= 1 || Pe >= 1);
|
|
9854
9854
|
u.isAllSelected = Ne, u.isIndeterminate = Je;
|
|
9855
9855
|
},
|
|
9856
9856
|
checkSelectionStatus() {
|
|
9857
|
-
|
|
9857
|
+
U.updateCheckboxStatus(), U.updateAllCheckboxStatus();
|
|
9858
9858
|
},
|
|
9859
9859
|
/**
|
|
9860
9860
|
* 切换选中
|
|
@@ -9877,13 +9877,13 @@ const rh = rt({
|
|
|
9877
9877
|
}
|
|
9878
9878
|
if (V && !Ne) {
|
|
9879
9879
|
i.eachTree(m, (qe) => {
|
|
9880
|
-
const ft = St(
|
|
9880
|
+
const ft = St(U, qe);
|
|
9881
9881
|
(T || !Je || Je({ row: qe })) && (O ? ue[ft] = qe : ue[ft] && delete ue[ft], pe(qe, O));
|
|
9882
9882
|
}, { children: ge ? he : Pe }), u.selectCheckboxMaps = ue;
|
|
9883
9883
|
return;
|
|
9884
9884
|
}
|
|
9885
9885
|
m.forEach((qe) => {
|
|
9886
|
-
const ft = St(
|
|
9886
|
+
const ft = St(U, qe);
|
|
9887
9887
|
(T || !Je || Je({ row: qe })) && (O ? ue[ft] || (ue[ft] = qe) : ue[ft] && delete ue[ft], pe(qe, O));
|
|
9888
9888
|
}), u.selectCheckboxMaps = ue;
|
|
9889
9889
|
},
|
|
@@ -9892,7 +9892,7 @@ const rh = rt({
|
|
|
9892
9892
|
* @deprecated
|
|
9893
9893
|
*/
|
|
9894
9894
|
handleSelectRow({ row: m }, O, T) {
|
|
9895
|
-
|
|
9895
|
+
U.handleBatchSelectRows([m], O, T);
|
|
9896
9896
|
},
|
|
9897
9897
|
triggerHeaderTitleEvent(m, O, T) {
|
|
9898
9898
|
const V = O.content || O.message;
|
|
@@ -9949,7 +9949,7 @@ const rh = rt({
|
|
|
9949
9949
|
*/
|
|
9950
9950
|
triggerCellClickEvent(m, O) {
|
|
9951
9951
|
const { highlightCurrentRow: T, editConfig: V } = e, { editStore: j } = u, ue = ut.value, le = $e.value, ge = Et.value, he = pt.value, Pe = ke.value, Fe = A.value, _e = je.value, { actived: Ne, focused: Je } = j, { row: ze, column: qe } = O, { type: ft, treeNode: Dt } = qe, Xe = ft === "radio", Tt = ft === "checkbox", Wt = ft === "expand", Kt = m.currentTarget, an = Xe && kn(m, Kt, "vxe-cell--radio").flag, tn = Tt && kn(m, Kt, "vxe-cell--checkbox").flag, vn = Dt && kn(m, Kt, "vxe-tree--btn-wrapper").flag, hn = Wt && kn(m, Kt, "vxe-table--expanded").flag;
|
|
9952
|
-
O = Object.assign({ cell: Kt, triggerRadio: an, triggerCheckbox: tn, triggerTreeNode: vn, triggerExpandNode: hn }, O), !tn && !an && (!hn && (ue.trigger === "row" || Wt && ue.trigger === "cell") && h.triggerRowExpandEvent(m, O), (ge.trigger === "row" || Dt && ge.trigger === "cell") && h.triggerTreeExpandEvent(m, O)), vn || (hn || ((_e.isCurrent || T) && !tn && !an && h.triggerCurrentRowEvent(m, O), !an && (he.trigger === "row" || Xe && he.trigger === "cell") && h.triggerRadioRowEvent(m, O), !tn && (Pe.trigger === "row" || Tt && Pe.trigger === "cell") && h.handleToggleCheckRowEvent(m, O)), mn(V) && (Fe.arrowCursorLock && m && le.mode === "cell" && m.target && /^input|textarea$/i.test(m.target.tagName) && (Je.column = qe, Je.row = ze), le.trigger === "manual" ? Ne.args && Ne.row === ze && qe !== Ne.column && Lo(m, O) : (!Ne.args || ze !== Ne.row || qe !== Ne.column) && (le.trigger === "click" || le.trigger === "dblclick" && le.mode === "row" && Ne.row === ze) && Lo(m, O))), mn(V) && le.trigger === "dblclick" && Ne.row && Ne.column && (le.mode === "row" ?
|
|
9952
|
+
O = Object.assign({ cell: Kt, triggerRadio: an, triggerCheckbox: tn, triggerTreeNode: vn, triggerExpandNode: hn }, O), !tn && !an && (!hn && (ue.trigger === "row" || Wt && ue.trigger === "cell") && h.triggerRowExpandEvent(m, O), (ge.trigger === "row" || Dt && ge.trigger === "cell") && h.triggerTreeExpandEvent(m, O)), vn || (hn || ((_e.isCurrent || T) && !tn && !an && h.triggerCurrentRowEvent(m, O), !an && (he.trigger === "row" || Xe && he.trigger === "cell") && h.triggerRadioRowEvent(m, O), !tn && (Pe.trigger === "row" || Tt && Pe.trigger === "cell") && h.handleToggleCheckRowEvent(m, O)), mn(V) && (Fe.arrowCursorLock && m && le.mode === "cell" && m.target && /^input|textarea$/i.test(m.target.tagName) && (Je.column = qe, Je.row = ze), le.trigger === "manual" ? Ne.args && Ne.row === ze && qe !== Ne.column && Lo(m, O) : (!Ne.args || ze !== Ne.row || qe !== Ne.column) && (le.trigger === "click" || le.trigger === "dblclick" && le.mode === "row" && Ne.row === ze) && Lo(m, O))), mn(V) && le.trigger === "dblclick" && Ne.row && Ne.column && (le.mode === "row" ? U.eqRow(Ne.row, ze) || U.handleClearEdit(m) : le.mode === "cell" && (!U.eqRow(Ne.row, ze) || Ne.column.id !== qe.id) && U.handleClearEdit(m)), Ct("cell-click", O, m);
|
|
9953
9953
|
},
|
|
9954
9954
|
/**
|
|
9955
9955
|
* 列双击点击事件
|
|
@@ -9958,15 +9958,15 @@ const rh = rt({
|
|
|
9958
9958
|
triggerCellDblclickEvent(m, O) {
|
|
9959
9959
|
const { editConfig: T } = e, { editStore: V } = u, j = $e.value, { actived: ue } = V, le = m.currentTarget;
|
|
9960
9960
|
O = Object.assign({ cell: le }, O), mn(T) && j.trigger === "dblclick" && (!ue.args || m.currentTarget !== ue.args.cell) && (j.mode === "row" ? wo("blur").catch((ge) => ge).then(() => {
|
|
9961
|
-
|
|
9962
|
-
}) : j.mode === "cell" &&
|
|
9961
|
+
U.handleEdit(O, m).then(() => wo("change")).catch((ge) => ge);
|
|
9962
|
+
}) : j.mode === "cell" && U.handleEdit(O, m).then(() => wo("change")).catch((ge) => ge)), Ct("cell-dblclick", O, m);
|
|
9963
9963
|
},
|
|
9964
9964
|
handleToggleCheckRowEvent(m, O) {
|
|
9965
9965
|
const { selectCheckboxMaps: T } = u, V = ke.value, { checkField: j, trigger: ue } = V, { row: le } = O;
|
|
9966
9966
|
if (ue === "manual")
|
|
9967
9967
|
return;
|
|
9968
9968
|
let ge = !1;
|
|
9969
|
-
j ? ge = !i.get(le, j) : ge = !T[St(
|
|
9969
|
+
j ? ge = !i.get(le, j) : ge = !T[St(U, le)], m ? h.triggerCheckRowEvent(m, O, ge) : (h.handleBatchSelectRows([le], ge), h.checkSelectionStatus());
|
|
9970
9970
|
},
|
|
9971
9971
|
triggerCheckRowEvent(m, O, T) {
|
|
9972
9972
|
const V = ke.value, { row: j } = O, { afterFullData: ue } = d, { checkMethod: le, trigger: ge } = V;
|
|
@@ -10025,7 +10025,7 @@ const rh = rt({
|
|
|
10025
10025
|
if (ge === "manual")
|
|
10026
10026
|
return;
|
|
10027
10027
|
m.stopPropagation();
|
|
10028
|
-
const he = St(
|
|
10028
|
+
const he = St(U, ue);
|
|
10029
10029
|
if (!le || !T[he]) {
|
|
10030
10030
|
const Pe = !p.isRowExpandByRow(ue), Fe = p.getColumnIndex(V), _e = p.getVMColumnIndex(V);
|
|
10031
10031
|
p.setRowExpand(ue, Pe), Ct("toggle-row-expand", {
|
|
@@ -10047,7 +10047,7 @@ const rh = rt({
|
|
|
10047
10047
|
if (ge === "manual")
|
|
10048
10048
|
return;
|
|
10049
10049
|
m.stopPropagation();
|
|
10050
|
-
const he = St(
|
|
10050
|
+
const he = St(U, j);
|
|
10051
10051
|
if (!le || !T[he]) {
|
|
10052
10052
|
const Pe = !p.isTreeExpandByRow(j), Fe = p.getColumnIndex(ue), _e = p.getVMColumnIndex(ue);
|
|
10053
10053
|
p.setTreeExpand(j, Pe), Ct("toggle-tree-expand", { expanded: Pe, column: ue, columnIndex: Fe, $columnIndex: _e, row: j }, m);
|
|
@@ -10056,8 +10056,8 @@ const rh = rt({
|
|
|
10056
10056
|
handleColumnSortEvent(m, O) {
|
|
10057
10057
|
const { mouseConfig: T } = e, V = Se.value, { field: j, sortable: ue } = O;
|
|
10058
10058
|
if (ue) {
|
|
10059
|
-
const le = { $table:
|
|
10060
|
-
T && V.area &&
|
|
10059
|
+
const le = { $table: U, $event: m, column: O, field: j, property: j, order: O.order, sortList: p.getSortColumns(), sortTime: O.sortTime };
|
|
10060
|
+
T && V.area && U.handleSortEvent && U.handleSortEvent(m, le), Ct("sort-change", le, m);
|
|
10061
10061
|
}
|
|
10062
10062
|
},
|
|
10063
10063
|
/**
|
|
@@ -10065,7 +10065,7 @@ const rh = rt({
|
|
|
10065
10065
|
*/
|
|
10066
10066
|
triggerSortEvent(m, O, T) {
|
|
10067
10067
|
const V = M.value, { field: j, sortable: ue } = O;
|
|
10068
|
-
ue && (!T || O.order === T ? p.clearSort(V.multiple ? O : null) : p.sort({ field: j, order: T }),
|
|
10068
|
+
ue && (!T || O.order === T ? p.clearSort(V.multiple ? O : null) : p.sort({ field: j, order: T }), U.handleColumnSortEvent(m, O));
|
|
10069
10069
|
},
|
|
10070
10070
|
/**
|
|
10071
10071
|
* 表头单元格按下事件
|
|
@@ -10073,7 +10073,7 @@ const rh = rt({
|
|
|
10073
10073
|
triggerHeaderCellMousedownEvent(m, O) {
|
|
10074
10074
|
const { mouseConfig: T } = e, V = Se.value, j = Ye.value, ue = at.value, { trigger: le, disabledMethod: ge } = ue, he = m.currentTarget, Pe = he && he.tagName && he.tagName.toLowerCase() === "input", Fe = kn(m, he, "vxe-cell--checkbox").flag, _e = kn(m, he, "vxe-cell--sort").flag, Ne = kn(m, he, "vxe-cell--filter").flag;
|
|
10075
10075
|
let Je = !1;
|
|
10076
|
-
Pe || Fe || _e || Ne || j.drag && le === "cell" && !(ge && ge(O)) && (Je = !0,
|
|
10076
|
+
Pe || Fe || _e || Ne || j.drag && le === "cell" && !(ge && ge(O)) && (Je = !0, U.handleHeaderCellDragMousedownEvent(m, O)), !Je && T && V.area && U.handleHeaderCellAreaEvent && U.handleHeaderCellAreaEvent(m, Object.assign({ cell: he, triggerSort: _e, triggerFilter: Ne }, O)), U.focus(), U.closeMenu && U.closeMenu();
|
|
10077
10077
|
},
|
|
10078
10078
|
/**
|
|
10079
10079
|
* 单元格按下事件
|
|
@@ -10085,7 +10085,7 @@ const rh = rt({
|
|
|
10085
10085
|
let Xe = !1;
|
|
10086
10086
|
he.drag && (Xe = Fe === "row" || T.dragSort && Fe === "cell");
|
|
10087
10087
|
let Tt = !1;
|
|
10088
|
-
Je || ze || qe || ft || Dt || Xe && !(_e && _e(O)) && (Tt = !0,
|
|
10088
|
+
Je || ze || qe || ft || Dt || Xe && !(_e && _e(O)) && (Tt = !0, U.handleCellDragMousedownEvent(m, O)), !Tt && U.handleCellMousedownEvent && U.handleCellMousedownEvent(m, O), U.focus(), U.closeFilter(), U.closeMenu && U.closeMenu();
|
|
10089
10089
|
},
|
|
10090
10090
|
/**
|
|
10091
10091
|
* 行拖拽
|
|
@@ -10109,11 +10109,11 @@ const rh = rt({
|
|
|
10109
10109
|
let tn = -1, vn = -1;
|
|
10110
10110
|
if (O) {
|
|
10111
10111
|
if (Fe) {
|
|
10112
|
-
const hn = St(
|
|
10112
|
+
const hn = St(U, qe), un = j[hn], Tn = St(U, Xe), cn = j[Tn];
|
|
10113
10113
|
if (un && cn) {
|
|
10114
10114
|
const { level: xn } = un, { level: Qn } = cn, qr = {};
|
|
10115
10115
|
i.eachTree([qe], (co) => {
|
|
10116
|
-
qr[St(
|
|
10116
|
+
qr[St(U, co)] = co;
|
|
10117
10117
|
}, { children: Ne });
|
|
10118
10118
|
let gr = !1;
|
|
10119
10119
|
if (xn && Qn) {
|
|
@@ -10140,9 +10140,9 @@ const rh = rt({
|
|
|
10140
10140
|
return;
|
|
10141
10141
|
}
|
|
10142
10142
|
}
|
|
10143
|
-
const Ur = i.toTreeArray(d.afterTreeFullData, { children: ze }), $s =
|
|
10143
|
+
const Ur = i.toTreeArray(d.afterTreeFullData, { children: ze }), $s = U.findRowIndexOf(Ur, qe);
|
|
10144
10144
|
Ur.splice($s, 1);
|
|
10145
|
-
const er =
|
|
10145
|
+
const er = U.findRowIndexOf(Ur, Xe) + Kt;
|
|
10146
10146
|
Ur.splice(er, 0, qe), gr && ge && i.each(qe[ze], (co) => {
|
|
10147
10147
|
co[Je] = qe[Je];
|
|
10148
10148
|
}), qe[Je] = ue ? Xe[_e] : Xe[Je], d.tableFullTreeData = i.toArrayTree(Ur, {
|
|
@@ -10154,16 +10154,16 @@ const rh = rt({
|
|
|
10154
10154
|
}
|
|
10155
10155
|
}
|
|
10156
10156
|
} else {
|
|
10157
|
-
tn =
|
|
10158
|
-
const hn =
|
|
10157
|
+
tn = U.findRowIndexOf(ft, qe);
|
|
10158
|
+
const hn = U.findRowIndexOf(Dt, qe);
|
|
10159
10159
|
ft.splice(tn, 1), Dt.splice(hn, 1);
|
|
10160
|
-
const un =
|
|
10160
|
+
const un = U.findRowIndexOf(ft, Xe), Tn = U.findRowIndexOf(Dt, Xe);
|
|
10161
10161
|
vn = un + Kt;
|
|
10162
10162
|
const cn = Tn + Kt;
|
|
10163
10163
|
ft.splice(vn, 0, qe), Dt.splice(cn, 0, qe);
|
|
10164
10164
|
}
|
|
10165
|
-
u.isDragRowMove = !0,
|
|
10166
|
-
|
|
10165
|
+
u.isDragRowMove = !0, U.handleTableData(O && Fe), U.cacheRowMap(), Wl(), O && Fe || U.updateAfterDataIndex(), U.checkSelectionStatus(), u.scrollYLoad && U.updateScrollYSpace(), me().then(() => {
|
|
10166
|
+
U.updateCellAreas(), U.recalculate();
|
|
10167
10167
|
}), Ct("row-dragend", {
|
|
10168
10168
|
oldRow: qe,
|
|
10169
10169
|
newRow: Xe,
|
|
@@ -10190,7 +10190,7 @@ const rh = rt({
|
|
|
10190
10190
|
const Je = Ne.row;
|
|
10191
10191
|
m.preventDefault();
|
|
10192
10192
|
const { dragRow: ze } = u, ft = m.clientY - Fe.getBoundingClientRect().y < Fe.clientHeight / 2 ? "top" : "bottom";
|
|
10193
|
-
if (
|
|
10193
|
+
if (U.eqRow(ze, Je) || !ge && O && Ne.level) {
|
|
10194
10194
|
bl(m, Fe, null, !1, ft);
|
|
10195
10195
|
return;
|
|
10196
10196
|
}
|
|
@@ -10287,7 +10287,7 @@ const rh = rt({
|
|
|
10287
10287
|
const cn = vn + 1;
|
|
10288
10288
|
tn.renderSortNumber = cn;
|
|
10289
10289
|
}
|
|
10290
|
-
}), u.isDragColMove = !0, le && (
|
|
10290
|
+
}), u.isDragColMove = !0, le && (U.clearSelected && U.clearSelected(), U.clearCellAreas && (U.clearCellAreas(), U.clearCopyCellArea())), Ct("column-dragend", {
|
|
10291
10291
|
oldColumn: ze,
|
|
10292
10292
|
newColumn: qe,
|
|
10293
10293
|
dragPos: j,
|
|
@@ -10297,7 +10297,7 @@ const rh = rt({
|
|
|
10297
10297
|
oldIndex: Dt
|
|
10298
10298
|
}
|
|
10299
10299
|
}, m), O)
|
|
10300
|
-
return p.refreshColumn(!0).then(() => (
|
|
10300
|
+
return p.refreshColumn(!0).then(() => (U.updateCellAreas(), U.saveCustomStore("update:sort")));
|
|
10301
10301
|
}).catch(() => {
|
|
10302
10302
|
});
|
|
10303
10303
|
}
|
|
@@ -10305,7 +10305,7 @@ const rh = rt({
|
|
|
10305
10305
|
},
|
|
10306
10306
|
handleHeaderCellDragDragendEvent(m) {
|
|
10307
10307
|
const { dragCol: O } = u, { prevDragCol: T, prevDragPos: V, prevDragToChild: j } = d;
|
|
10308
|
-
|
|
10308
|
+
U.handleColDragSwapEvent(m, !0, O, T, V, j), Ts(), qa(), d.prevDragToChild = !1, u.dragRow = null, u.dragCol = null, setTimeout(() => {
|
|
10309
10309
|
u.isDragColMove = !1;
|
|
10310
10310
|
}, 500);
|
|
10311
10311
|
},
|
|
@@ -10315,7 +10315,7 @@ const rh = rt({
|
|
|
10315
10315
|
m.preventDefault();
|
|
10316
10316
|
return;
|
|
10317
10317
|
}
|
|
10318
|
-
const ue = m.ctrlKey, le = m.currentTarget, ge = le.getAttribute("colid"), he =
|
|
10318
|
+
const ue = m.ctrlKey, le = m.currentTarget, ge = le.getAttribute("colid"), he = U.getColumnById(ge);
|
|
10319
10319
|
if (he) {
|
|
10320
10320
|
m.preventDefault();
|
|
10321
10321
|
const { dragCol: Pe } = u, _e = m.clientX - le.getBoundingClientRect().x < le.clientWidth / 2 ? "left" : "right";
|
|
@@ -10370,7 +10370,7 @@ const rh = rt({
|
|
|
10370
10370
|
isRight: Kt,
|
|
10371
10371
|
direction: an
|
|
10372
10372
|
}, ue);
|
|
10373
|
-
ht(T, O), (_e.isHover || le) &&
|
|
10373
|
+
ht(T, O), (_e.isHover || le) && U.clearHoverRow(), Ne && Ne.reactData.visible && Ne.close(), Je && Je.reactData.visible && Je.close(), (vn || tn || un || hn) && Ct("scroll-boundary", Tn, m), Ct("scroll", Tn, m);
|
|
10374
10374
|
},
|
|
10375
10375
|
/**
|
|
10376
10376
|
* 横向 X 可视渲染事件处理
|
|
@@ -10392,7 +10392,7 @@ const rh = rt({
|
|
|
10392
10392
|
scrollToTreeRow(m) {
|
|
10393
10393
|
const { treeConfig: O } = e, { tableFullData: T } = d, V = [];
|
|
10394
10394
|
if (O) {
|
|
10395
|
-
const j = Et.value, ue = j.children || j.childrenField, le = i.findTree(T, (ge) =>
|
|
10395
|
+
const j = Et.value, ue = j.children || j.childrenField, le = i.findTree(T, (ge) => U.eqRow(ge, m), { children: ue });
|
|
10396
10396
|
if (le) {
|
|
10397
10397
|
const ge = le.nodes;
|
|
10398
10398
|
ge.forEach((he, Pe) => {
|
|
@@ -10400,7 +10400,7 @@ const rh = rt({
|
|
|
10400
10400
|
});
|
|
10401
10401
|
}
|
|
10402
10402
|
}
|
|
10403
|
-
return Promise.all(V).then(() => Kg(
|
|
10403
|
+
return Promise.all(V).then(() => Kg(U, m));
|
|
10404
10404
|
},
|
|
10405
10405
|
updateScrollYStatus: Wl,
|
|
10406
10406
|
// 更新横向 X 可视渲染上下剩余空间大小
|
|
@@ -10430,11 +10430,11 @@ const rh = rt({
|
|
|
10430
10430
|
he = j.length * ge, Pe = Math.max(0, le * ge);
|
|
10431
10431
|
else {
|
|
10432
10432
|
for (let ze = 0; ze < j.length; ze++) {
|
|
10433
|
-
const qe = j[ze], ft = St(
|
|
10433
|
+
const qe = j[ze], ft = St(U, qe), Dt = ue[ft];
|
|
10434
10434
|
Dt && (he += Dt.height || ge);
|
|
10435
10435
|
}
|
|
10436
10436
|
for (let ze = 0; ze < le; ze++) {
|
|
10437
|
-
const qe = j[ze], ft = St(
|
|
10437
|
+
const qe = j[ze], ft = St(U, qe), Dt = ue[ft];
|
|
10438
10438
|
Dt && (Pe += Dt.height || ge);
|
|
10439
10439
|
}
|
|
10440
10440
|
}
|
|
@@ -10479,7 +10479,7 @@ const rh = rt({
|
|
|
10479
10479
|
h.setHoverRow(O);
|
|
10480
10480
|
},
|
|
10481
10481
|
setHoverRow(m) {
|
|
10482
|
-
const O = St(
|
|
10482
|
+
const O = St(U, m), T = g.value;
|
|
10483
10483
|
h.clearHoverRow(), T && i.arrayEach(T.querySelectorAll(`[rowid="${O}"]`), (V) => gs(V, "row--hover")), d.hoverRow = m;
|
|
10484
10484
|
},
|
|
10485
10485
|
clearHoverRow() {
|
|
@@ -10494,20 +10494,20 @@ const rh = rt({
|
|
|
10494
10494
|
return p.getCellElement(m, O);
|
|
10495
10495
|
},
|
|
10496
10496
|
findRowIndexOf(m, O) {
|
|
10497
|
-
return O ? i.findIndexOf(m, (T) =>
|
|
10497
|
+
return O ? i.findIndexOf(m, (T) => U.eqRow(T, O)) : -1;
|
|
10498
10498
|
},
|
|
10499
10499
|
eqRow(m, O) {
|
|
10500
|
-
return m && O ? m === O ? !0 : St(
|
|
10500
|
+
return m && O ? m === O ? !0 : St(U, m) === St(U, O) : !1;
|
|
10501
10501
|
}
|
|
10502
10502
|
}, process.env.NODE_ENV === "development" && ("openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",").forEach((m) => {
|
|
10503
|
-
|
|
10503
|
+
U[m] = function() {
|
|
10504
10504
|
Gt("vxe.error.reqModule", ["VxeTableExportModule"]);
|
|
10505
10505
|
};
|
|
10506
10506
|
}), "clearValidate,fullValidate,validate".split(",").forEach((m) => {
|
|
10507
|
-
|
|
10507
|
+
U[m] = function() {
|
|
10508
10508
|
Gt("vxe.error.reqModule", ["VxeTableValidatorModule"]);
|
|
10509
10509
|
};
|
|
10510
|
-
})), Object.assign(
|
|
10510
|
+
})), Object.assign(U, p, h);
|
|
10511
10511
|
const nm = (m) => {
|
|
10512
10512
|
const { showHeader: O, showFooter: T } = e, { tableData: V, tableColumn: j, tableGroupColumn: ue, columnStore: le, footerTableData: ge } = u, he = m === "left", Pe = he ? le.leftList : le.rightList;
|
|
10513
10513
|
return l("div", {
|
|
@@ -10521,7 +10521,7 @@ const rh = rt({
|
|
|
10521
10521
|
tableColumn: j,
|
|
10522
10522
|
tableGroupColumn: ue,
|
|
10523
10523
|
fixedColumn: Pe
|
|
10524
|
-
}) : Wo(
|
|
10524
|
+
}) : Wo(U),
|
|
10525
10525
|
l(th, {
|
|
10526
10526
|
ref: he ? P : ne,
|
|
10527
10527
|
fixedType: m,
|
|
@@ -10530,15 +10530,15 @@ const rh = rt({
|
|
|
10530
10530
|
fixedColumn: Pe
|
|
10531
10531
|
}),
|
|
10532
10532
|
T ? l(rh, {
|
|
10533
|
-
ref: he ? H :
|
|
10533
|
+
ref: he ? H : q,
|
|
10534
10534
|
footerTableData: ge,
|
|
10535
10535
|
tableColumn: j,
|
|
10536
10536
|
fixedColumn: Pe,
|
|
10537
10537
|
fixedType: m
|
|
10538
|
-
}) : Wo(
|
|
10538
|
+
}) : Wo(U)
|
|
10539
10539
|
]);
|
|
10540
10540
|
}, hE = () => {
|
|
10541
|
-
const m = Ht.value, O = { $table:
|
|
10541
|
+
const m = Ht.value, O = { $table: U };
|
|
10542
10542
|
if (n.empty)
|
|
10543
10543
|
return n.empty(O);
|
|
10544
10544
|
{
|
|
@@ -10592,7 +10592,7 @@ const rh = rt({
|
|
|
10592
10592
|
}, vE())
|
|
10593
10593
|
])
|
|
10594
10594
|
])
|
|
10595
|
-
]) : Wo(
|
|
10595
|
+
]) : Wo(U);
|
|
10596
10596
|
};
|
|
10597
10597
|
function kd() {
|
|
10598
10598
|
const m = g.value;
|
|
@@ -10659,7 +10659,7 @@ const rh = rt({
|
|
|
10659
10659
|
tableData: Tt,
|
|
10660
10660
|
tableColumn: Wt,
|
|
10661
10661
|
tableGroupColumn: Kt
|
|
10662
|
-
}) : Wo(
|
|
10662
|
+
}) : Wo(U),
|
|
10663
10663
|
/**
|
|
10664
10664
|
* 表体
|
|
10665
10665
|
*/
|
|
@@ -10675,13 +10675,13 @@ const rh = rt({
|
|
|
10675
10675
|
ref: C,
|
|
10676
10676
|
footerTableData: an,
|
|
10677
10677
|
tableColumn: Wt
|
|
10678
|
-
}) : Wo(
|
|
10678
|
+
}) : Wo(U)
|
|
10679
10679
|
]),
|
|
10680
10680
|
l("div", {
|
|
10681
10681
|
class: "vxe-table--fixed-wrapper"
|
|
10682
10682
|
}, [
|
|
10683
|
-
cn && cn.length && ze ? nm("left") : Wo(
|
|
10684
|
-
xn && xn.length && ze ? nm("right") : Wo(
|
|
10683
|
+
cn && cn.length && ze ? nm("left") : Wo(U),
|
|
10684
|
+
xn && xn.length && ze ? nm("right") : Wo(U)
|
|
10685
10685
|
])
|
|
10686
10686
|
]),
|
|
10687
10687
|
to.x ? l("div", {
|
|
@@ -10699,7 +10699,7 @@ const rh = rt({
|
|
|
10699
10699
|
class: "vxe-table--scroll-x-space"
|
|
10700
10700
|
})
|
|
10701
10701
|
])
|
|
10702
|
-
]) : Wo(
|
|
10702
|
+
]) : Wo(U),
|
|
10703
10703
|
to.y ? l("div", {
|
|
10704
10704
|
key: "vy",
|
|
10705
10705
|
ref: ie,
|
|
@@ -10715,7 +10715,7 @@ const rh = rt({
|
|
|
10715
10715
|
class: "vxe-table--scroll-y-space"
|
|
10716
10716
|
})
|
|
10717
10717
|
])
|
|
10718
|
-
]) : Wo(
|
|
10718
|
+
]) : Wo(U),
|
|
10719
10719
|
/**
|
|
10720
10720
|
* 空数据
|
|
10721
10721
|
*/
|
|
@@ -10761,12 +10761,12 @@ const rh = rt({
|
|
|
10761
10761
|
icon: eo.icon,
|
|
10762
10762
|
text: eo.text
|
|
10763
10763
|
}, Qn ? {
|
|
10764
|
-
default: () => Ua(Qn, { $table:
|
|
10764
|
+
default: () => Ua(Qn, { $table: U, $grid: se, loading: fo })
|
|
10765
10765
|
} : {}) : Qn ? l("div", {
|
|
10766
10766
|
class: ["vxe-loading--custom-wrapper", {
|
|
10767
10767
|
"is--visible": fo
|
|
10768
10768
|
}]
|
|
10769
|
-
}, Ua(Qn, { $table:
|
|
10769
|
+
}, Ua(Qn, { $table: U, $grid: se, loading: fo })) : Wo(U),
|
|
10770
10770
|
/**
|
|
10771
10771
|
* 自定义列
|
|
10772
10772
|
*/
|
|
@@ -10774,7 +10774,7 @@ const rh = rt({
|
|
|
10774
10774
|
key: "cs",
|
|
10775
10775
|
ref: y,
|
|
10776
10776
|
customStore: un
|
|
10777
|
-
}) : Wo(
|
|
10777
|
+
}) : Wo(U),
|
|
10778
10778
|
/**
|
|
10779
10779
|
* 筛选
|
|
10780
10780
|
*/
|
|
@@ -10782,7 +10782,7 @@ const rh = rt({
|
|
|
10782
10782
|
key: "tf",
|
|
10783
10783
|
ref: D,
|
|
10784
10784
|
filterStore: hn
|
|
10785
|
-
}) : Wo(
|
|
10785
|
+
}) : Wo(U),
|
|
10786
10786
|
/**
|
|
10787
10787
|
* 导入
|
|
10788
10788
|
*/
|
|
@@ -10790,7 +10790,7 @@ const rh = rt({
|
|
|
10790
10790
|
key: "it",
|
|
10791
10791
|
defaultOptions: u.importParams,
|
|
10792
10792
|
storeData: u.importStore
|
|
10793
|
-
}) : Wo(
|
|
10793
|
+
}) : Wo(U),
|
|
10794
10794
|
/**
|
|
10795
10795
|
* 导出
|
|
10796
10796
|
*/
|
|
@@ -10798,14 +10798,14 @@ const rh = rt({
|
|
|
10798
10798
|
key: "et",
|
|
10799
10799
|
defaultOptions: u.exportParams,
|
|
10800
10800
|
storeData: u.exportStore
|
|
10801
|
-
}) : Wo(
|
|
10801
|
+
}) : Wo(U),
|
|
10802
10802
|
/**
|
|
10803
10803
|
* 快捷菜单
|
|
10804
10804
|
*/
|
|
10805
10805
|
uo ? l(__, {
|
|
10806
10806
|
key: "tm",
|
|
10807
10807
|
ref: v
|
|
10808
|
-
}) : Wo(
|
|
10808
|
+
}) : Wo(U),
|
|
10809
10809
|
/**
|
|
10810
10810
|
* 拖拽排序提示
|
|
10811
10811
|
*/
|
|
@@ -10835,8 +10835,8 @@ const rh = rt({
|
|
|
10835
10835
|
*/
|
|
10836
10836
|
e.editRules && gr.showMessage && (gr.message === "default" ? !V : gr.message === "tooltip") ? l(a, Object.assign({ key: "vtp", ref: E, class: [{
|
|
10837
10837
|
"old-cell-valid": _e && An().cellVaildMode === "obsolete"
|
|
10838
|
-
}, "vxe-table--valid-error"] }, gr.message === "tooltip" || Tt.length === 1 ? ls : {})) : Wo(
|
|
10839
|
-
]) : Wo(
|
|
10838
|
+
}, "vxe-table--valid-error"] }, gr.message === "tooltip" || Tt.length === 1 ? ls : {})) : Wo(U)
|
|
10839
|
+
]) : Wo(U)
|
|
10840
10840
|
]);
|
|
10841
10841
|
}, Rd = Oe(0);
|
|
10842
10842
|
tt(() => e.data ? e.data.length : -1, () => {
|
|
@@ -10922,15 +10922,15 @@ const rh = rt({
|
|
|
10922
10922
|
}), z_.forEach((m) => {
|
|
10923
10923
|
const { setupTable: O } = m;
|
|
10924
10924
|
if (O) {
|
|
10925
|
-
const T = O(
|
|
10926
|
-
T && i.isObject(T) && Object.assign(
|
|
10925
|
+
const T = O(U);
|
|
10926
|
+
T && i.isObject(T) && Object.assign(U, T);
|
|
10927
10927
|
}
|
|
10928
|
-
}), h.preventEvent(null, "created", { $table:
|
|
10928
|
+
}), h.preventEvent(null, "created", { $table: U });
|
|
10929
10929
|
let Ga;
|
|
10930
10930
|
return Yv(() => {
|
|
10931
|
-
p.recalculate().then(() => p.refreshScroll()), h.preventEvent(null, "activated", { $table:
|
|
10931
|
+
p.recalculate().then(() => p.refreshScroll()), h.preventEvent(null, "activated", { $table: U });
|
|
10932
10932
|
}), EE(() => {
|
|
10933
|
-
d.isActivated = !1, h.preventEvent(null, "deactivated", { $table:
|
|
10933
|
+
d.isActivated = !1, h.preventEvent(null, "deactivated", { $table: U });
|
|
10934
10934
|
}), Dn(() => {
|
|
10935
10935
|
me(() => {
|
|
10936
10936
|
const { data: m, treeConfig: O, showOverflow: T } = e, { scrollXStore: V, scrollYStore: j } = d, ue = de.value, le = $e.value, ge = Et.value, he = pt.value, Pe = ke.value, Fe = ut.value, _e = je.value;
|
|
@@ -10941,13 +10941,13 @@ const rh = rt({
|
|
|
10941
10941
|
}
|
|
10942
10942
|
if (process.env.NODE_ENV === "development") {
|
|
10943
10943
|
const Ne = Bt.value, Je = Se.value, ze = je.value;
|
|
10944
|
-
if (e.id || (e.customConfig ? mn(Ne) : Ne.enabled) && Ne.storage && Gt("vxe.error.reqProp", ["id"]), e.treeConfig && Pe.range && Gt("vxe.error.noTree", ["checkbox-config.range"]), ze.height && !e.showOverflow && ln("vxe.error.notProp", ["table.show-overflow"]), !
|
|
10944
|
+
if (e.id || (e.customConfig ? mn(Ne) : Ne.enabled) && Ne.storage && Gt("vxe.error.reqProp", ["id"]), e.treeConfig && Pe.range && Gt("vxe.error.noTree", ["checkbox-config.range"]), ze.height && !e.showOverflow && ln("vxe.error.notProp", ["table.show-overflow"]), !U.handleMousedownCellAreaEvent && (e.areaConfig && ln("vxe.error.notProp", ["area-config"]), e.clipConfig && ln("vxe.error.notProp", ["clip-config"]), e.fnrConfig && ln("vxe.error.notProp", ["fnr-config"]), Je.area)) {
|
|
10945
10945
|
Gt("vxe.error.notProp", ["mouse-config.area"]);
|
|
10946
10946
|
return;
|
|
10947
10947
|
}
|
|
10948
10948
|
e.dragConfig && ln("vxe.error.delProp", ["drag-config", "row-drag-config"]), e.treeConfig && ge.children && ln("vxe.error.delProp", ["tree-config.children", "tree-config.childrenField"]), e.treeConfig && ge.line && ln("vxe.error.delProp", ["tree-config.line", "tree-config.showLine"]), Je.area && Je.selected && ln("vxe.error.errConflicts", ["mouse-config.area", "mouse-config.selected"]), Je.area && e.treeConfig && !ge.transform && Gt("vxe.error.noTree", ["mouse-config.area"]), e.editConfig && le.activeMethod && ln("vxe.error.delProp", ["edit-config.activeMethod", "edit-config.beforeEditMethod"]), e.treeConfig && Pe.isShiftKey && Gt("vxe.error.errConflicts", ["tree-config", "checkbox-config.isShiftKey"]), Pe.halfField && ln("vxe.error.delProp", ["checkbox-config.halfField", "checkbox-config.indeterminateField"]);
|
|
10949
10949
|
}
|
|
10950
|
-
if (process.env.NODE_ENV === "development" && (e.editConfig && !
|
|
10950
|
+
if (process.env.NODE_ENV === "development" && (e.editConfig && !U.insert && Gt("vxe.error.reqModule", ["Edit"]), e.editRules && !U.validate && Gt("vxe.error.reqModule", ["Validator"]), (Pe.range || e.keyboardConfig || e.mouseConfig) && !U.handleCellMousedownEvent && Gt("vxe.error.reqModule", ["Keyboard"]), (e.printConfig || e.importConfig || e.exportConfig) && !U.exportData && Gt("vxe.error.reqModule", ["Export"])), Object.assign(j, {
|
|
10951
10951
|
startIndex: 0,
|
|
10952
10952
|
endIndex: 0,
|
|
10953
10953
|
visibleSize: 0,
|
|
@@ -10966,14 +10966,14 @@ const rh = rt({
|
|
|
10966
10966
|
e.autoResize && p.recalculate(!0);
|
|
10967
10967
|
}), ze && Ga.observe(ze), qe && Ga.observe(qe);
|
|
10968
10968
|
}
|
|
10969
|
-
}), qn.on(
|
|
10969
|
+
}), qn.on(U, "paste", Yn), qn.on(U, "copy", Ho), qn.on(U, "cut", mr), qn.on(U, "mousedown", Nt), qn.on(U, "blur", ot), qn.on(U, "mousewheel", Vt), qn.on(U, "keydown", On), qn.on(U, "resize", qo), qn.on(U, "contextmenu", U.handleGlobalContextmenuEvent), h.preventEvent(null, "mounted", { $table: U });
|
|
10970
10970
|
}), Ar(() => {
|
|
10971
|
-
Ga && Ga.disconnect(), p.closeFilter(),
|
|
10971
|
+
Ga && Ga.disconnect(), p.closeFilter(), U.closeMenu && U.closeMenu(), h.preventEvent(null, "beforeUnmount", { $table: U });
|
|
10972
10972
|
}), zn(() => {
|
|
10973
|
-
qn.off(
|
|
10973
|
+
qn.off(U, "paste"), qn.off(U, "copy"), qn.off(U, "cut"), qn.off(U, "mousedown"), qn.off(U, "blur"), qn.off(U, "mousewheel"), qn.off(U, "keydown"), qn.off(U, "resize"), qn.off(U, "contextmenu"), h.preventEvent(null, "unmounted", { $table: U });
|
|
10974
10974
|
}), process.env.NODE_ENV === "development" && me(() => {
|
|
10975
10975
|
e.loading && !s && !n.loading && Gt("vxe.error.reqComp", ["vxe-loading"]), (e.showOverflow === !0 || e.showOverflow === "tooltip" || e.showHeaderOverflow === !0 || e.showHeaderOverflow === "tooltip" || e.showFooterOverflow === !0 || e.showFooterOverflow === "tooltip" || e.tooltipConfig || e.editRules) && (a || Gt("vxe.error.reqComp", ["vxe-tooltip"]));
|
|
10976
|
-
}), Cn("$xeColgroup", null), Cn("$xeTable",
|
|
10976
|
+
}), Cn("$xeColgroup", null), Cn("$xeTable", U), U.renderVN = xE, U;
|
|
10977
10977
|
},
|
|
10978
10978
|
render() {
|
|
10979
10979
|
return this.renderVN();
|
|
@@ -11049,11 +11049,11 @@ q_.add("tableFilterModule", {
|
|
|
11049
11049
|
options: $,
|
|
11050
11050
|
column: E,
|
|
11051
11051
|
style: null
|
|
11052
|
-
}), y.options.forEach((
|
|
11053
|
-
const { _checked: L, checked: _ } =
|
|
11054
|
-
|
|
11052
|
+
}), y.options.forEach((q) => {
|
|
11053
|
+
const { _checked: L, checked: _ } = q;
|
|
11054
|
+
q._checked = _, !_ && L !== _ && ne && ne({ option: q, column: E, $table: e });
|
|
11055
11055
|
}), this.checkFilterOptions(), y.visible = !0, D.filter = !0, me(() => {
|
|
11056
|
-
const
|
|
11056
|
+
const q = r.value, L = s.value, _ = q ? q.$el : null, fe = L.$el;
|
|
11057
11057
|
if (!fe)
|
|
11058
11058
|
return;
|
|
11059
11059
|
const re = a.value, F = re ? re.$el : null;
|
|
@@ -11096,9 +11096,9 @@ q_.add("tableFilterModule", {
|
|
|
11096
11096
|
});
|
|
11097
11097
|
const H = e.getCheckedFilters(), G = { $table: e, $event: E, column: S, field: C, property: C, values: $, datas: P, filters: H, filterList: H };
|
|
11098
11098
|
return b.remote || (e.handleTableData(!0), e.checkSelectionStatus()), v && x.area && e.handleFilterEvent && e.handleFilterEvent(E, G), E && e.dispatchEvent("filter-change", G, E), e.closeFilter(), e.updateFooter().then(() => {
|
|
11099
|
-
const { scrollXLoad: ne, scrollYLoad:
|
|
11100
|
-
if (D || ne || y ||
|
|
11101
|
-
return (D || ne) && e.updateScrollXSpace(), (y ||
|
|
11099
|
+
const { scrollXLoad: ne, scrollYLoad: q } = n;
|
|
11100
|
+
if (D || ne || y || q)
|
|
11101
|
+
return (D || ne) && e.updateScrollXSpace(), (y || q) && e.updateScrollYSpace(), e.refreshScroll();
|
|
11102
11102
|
}).then(() => (e.updateCellAreas(), e.recalculate(!0))).then(() => {
|
|
11103
11103
|
setTimeout(() => e.recalculate(), 50);
|
|
11104
11104
|
});
|
|
@@ -11205,7 +11205,7 @@ K_.add("tableMenuModule", {
|
|
|
11205
11205
|
if (!x || x(E)) {
|
|
11206
11206
|
w.preventDefault(), e.updateZindex();
|
|
11207
11207
|
const { scrollTop: P, scrollLeft: H, visibleHeight: G, visibleWidth: ne } = ld();
|
|
11208
|
-
let
|
|
11208
|
+
let q = w.clientY + P, L = w.clientX + H;
|
|
11209
11209
|
const _ = () => {
|
|
11210
11210
|
r._currMenuParams = E, Object.assign(v, {
|
|
11211
11211
|
visible: !0,
|
|
@@ -11215,19 +11215,19 @@ K_.add("tableMenuModule", {
|
|
|
11215
11215
|
showChild: !1,
|
|
11216
11216
|
style: {
|
|
11217
11217
|
zIndex: r.tZindex,
|
|
11218
|
-
top: `${
|
|
11218
|
+
top: `${q}px`,
|
|
11219
11219
|
left: `${L}px`
|
|
11220
11220
|
}
|
|
11221
11221
|
}), me(() => {
|
|
11222
11222
|
const k = c.value.getRefMaps().refElem.value, I = k.clientHeight, J = k.clientWidth, { boundingTop: ie, boundingLeft: W } = Nc(k), Z = ie + I - G, ce = W + J - ne;
|
|
11223
|
-
Z > -10 && (v.style.top = `${Math.max(P + 2,
|
|
11223
|
+
Z > -10 && (v.style.top = `${Math.max(P + 2, q - I - 2)}px`), ce > -10 && (v.style.left = `${Math.max(H + 2, L - J - 2)}px`);
|
|
11224
11224
|
});
|
|
11225
11225
|
}, { keyboard: fe, row: re, column: F } = E;
|
|
11226
11226
|
fe && re && F ? e.scrollToRow(re, F).then(() => {
|
|
11227
11227
|
const z = e.getCellElement(re, F);
|
|
11228
11228
|
if (z) {
|
|
11229
11229
|
const { boundingTop: k, boundingLeft: I } = Nc(z);
|
|
11230
|
-
|
|
11230
|
+
q = k + P + Math.floor(z.offsetHeight / 2), L = I + H + Math.floor(z.offsetWidth / 2);
|
|
11231
11231
|
}
|
|
11232
11232
|
_();
|
|
11233
11233
|
}) : _();
|
|
@@ -11287,32 +11287,32 @@ K_.add("tableMenuModule", {
|
|
|
11287
11287
|
return;
|
|
11288
11288
|
}
|
|
11289
11289
|
if (r._keyCtx) {
|
|
11290
|
-
const ne = "body",
|
|
11290
|
+
const ne = "body", q = { type: ne, $table: e, keyboard: !0, columns: y.slice(0), $event: w };
|
|
11291
11291
|
if (S && C.area) {
|
|
11292
11292
|
const L = e.getActiveCellArea();
|
|
11293
11293
|
if (L && L.row && L.column) {
|
|
11294
|
-
|
|
11294
|
+
q.row = L.row, q.column = L.column, g(w, ne, q);
|
|
11295
11295
|
return;
|
|
11296
11296
|
}
|
|
11297
11297
|
} else if (S && C.selected && H.row && H.column) {
|
|
11298
|
-
|
|
11298
|
+
q.row = H.row, q.column = H.column, g(w, ne, q);
|
|
11299
11299
|
return;
|
|
11300
11300
|
}
|
|
11301
11301
|
}
|
|
11302
11302
|
for (let ne = 0; ne < G.length; ne++) {
|
|
11303
|
-
const
|
|
11303
|
+
const q = G[ne], L = kn(w, P, `vxe-${q}--column`, (fe) => fe.parentNode.parentNode.parentNode.getAttribute("xid") === t), _ = { type: q, $table: e, columns: y.slice(0), $event: w };
|
|
11304
11304
|
if (L.flag) {
|
|
11305
11305
|
const fe = L.targetElem, re = e.getColumnNode(fe), F = re ? re.item : null;
|
|
11306
|
-
let z = `${
|
|
11307
|
-
if (F && Object.assign(_, { column: F, columnIndex: e.getColumnIndex(F), cell: fe }),
|
|
11306
|
+
let z = `${q}-`;
|
|
11307
|
+
if (F && Object.assign(_, { column: F, columnIndex: e.getColumnIndex(F), cell: fe }), q === "body") {
|
|
11308
11308
|
const I = e.getRowNode(fe.parentNode), J = I ? I.item : null;
|
|
11309
11309
|
z = "", J && (_.row = J, _.rowIndex = e.getRowIndex(J));
|
|
11310
11310
|
}
|
|
11311
11311
|
const k = `${z}cell-menu`;
|
|
11312
|
-
g(w,
|
|
11312
|
+
g(w, q, _), e.dispatchEvent(k, _, w);
|
|
11313
11313
|
return;
|
|
11314
|
-
} else if (kn(w, P, `vxe-table--${
|
|
11315
|
-
$.trigger === "cell" ? w.preventDefault() : g(w,
|
|
11314
|
+
} else if (kn(w, P, `vxe-table--${q}-wrapper`, (fe) => fe.getAttribute("xid") === t).flag) {
|
|
11315
|
+
$.trigger === "cell" ? w.preventDefault() : g(w, q, _);
|
|
11316
11316
|
return;
|
|
11317
11317
|
}
|
|
11318
11318
|
}
|
|
@@ -11327,8 +11327,8 @@ K_.add("tableMenuModule", {
|
|
|
11327
11327
|
const { boundingTop: b, boundingLeft: x, visibleHeight: C, visibleWidth: $ } = Nc(v), P = b + v.offsetHeight, H = x + v.offsetWidth;
|
|
11328
11328
|
let G = "", ne = "";
|
|
11329
11329
|
H + y.offsetWidth > $ - 10 && (G = "auto", ne = `${v.offsetWidth}px`);
|
|
11330
|
-
let
|
|
11331
|
-
P + y.offsetHeight > C - 10 && (
|
|
11330
|
+
let q = "", L = "";
|
|
11331
|
+
P + y.offsetHeight > C - 10 && (q = "auto", L = "0"), y.style.left = G, y.style.right = ne, y.style.top = q, y.style.bottom = L;
|
|
11332
11332
|
}
|
|
11333
11333
|
}));
|
|
11334
11334
|
},
|
|
@@ -11374,9 +11374,9 @@ J_.add("tableEditModule", {
|
|
|
11374
11374
|
(P || H) && (C.mode === "row" ? x.forEach((G) => g(P, G)) : g(P, H));
|
|
11375
11375
|
}
|
|
11376
11376
|
function E(b, x) {
|
|
11377
|
-
const { tableFullTreeData: C, afterFullData: $, fullDataRowIdData: P, fullAllDataRowIdData: H } = o, G = f.value, { rowField: ne, parentField:
|
|
11377
|
+
const { tableFullTreeData: C, afterFullData: $, fullDataRowIdData: P, fullAllDataRowIdData: H } = o, G = f.value, { rowField: ne, parentField: q, mapChildrenField: L } = G, _ = G.children || G.childrenField, fe = x ? "push" : "unshift";
|
|
11378
11378
|
b.forEach((re) => {
|
|
11379
|
-
const F = re[
|
|
11379
|
+
const F = re[q], z = St(e, re), k = F ? i.findTree(C, (I) => F === I[ne], { children: L }) : null;
|
|
11380
11380
|
if (k) {
|
|
11381
11381
|
const { item: I } = k, J = H[St(e, I)], ie = J ? J.level : 0;
|
|
11382
11382
|
let W = I[_], Z = I[L];
|
|
@@ -11391,13 +11391,13 @@ J_.add("tableEditModule", {
|
|
|
11391
11391
|
});
|
|
11392
11392
|
}
|
|
11393
11393
|
const v = (b, x, C) => {
|
|
11394
|
-
const { treeConfig: $ } = t, { mergeList: P, editStore: H } = n, { tableFullTreeData: G, afterFullData: ne, tableFullData:
|
|
11394
|
+
const { treeConfig: $ } = t, { mergeList: P, editStore: H } = n, { tableFullTreeData: G, afterFullData: ne, tableFullData: q, fullDataRowIdData: L, fullAllDataRowIdData: _ } = o, fe = f.value, { transform: re, rowField: F, mapChildrenField: z } = fe, k = fe.children || fe.childrenField;
|
|
11395
11395
|
i.isArray(b) || (b = [b]);
|
|
11396
11396
|
const I = kt(e.defineField(b.map((ie) => Object.assign($ && re ? { [z]: [], [k]: [] } : {}, ie))));
|
|
11397
11397
|
if (i.eqNull(x))
|
|
11398
11398
|
$ && re ? E(I, !1) : (I.forEach((ie) => {
|
|
11399
11399
|
const W = St(e, ie), Z = { row: ie, rowid: W, seq: -1, index: -1, _index: -1, $index: -1, items: ne, parent: null, level: 0, height: 0 };
|
|
11400
|
-
L[W] = Z, _[W] = Z, ne.unshift(ie),
|
|
11400
|
+
L[W] = Z, _[W] = Z, ne.unshift(ie), q.unshift(ie);
|
|
11401
11401
|
}), P.forEach((ie) => {
|
|
11402
11402
|
const { row: W } = ie;
|
|
11403
11403
|
W > 0 && (ie.row = W + I.length);
|
|
@@ -11405,7 +11405,7 @@ J_.add("tableEditModule", {
|
|
|
11405
11405
|
else if (x === -1)
|
|
11406
11406
|
$ && re ? E(I, !0) : (I.forEach((ie) => {
|
|
11407
11407
|
const W = St(e, ie), Z = { row: ie, rowid: W, seq: -1, index: -1, _index: -1, $index: -1, items: ne, parent: null, level: 0, height: 0 };
|
|
11408
|
-
L[W] = Z, _[W] = Z, ne.push(ie),
|
|
11408
|
+
L[W] = Z, _[W] = Z, ne.push(ie), q.push(ie);
|
|
11409
11409
|
}), P.forEach((ie) => {
|
|
11410
11410
|
const { row: W, rowspan: Z } = ie;
|
|
11411
11411
|
W + Z > ne.length && (ie.rowspan = Z + I.length);
|
|
@@ -11437,7 +11437,7 @@ J_.add("tableEditModule", {
|
|
|
11437
11437
|
let ie = -1;
|
|
11438
11438
|
if (i.isNumber(x) ? x < ne.length && (ie = x) : ie = e.findRowIndexOf(ne, x), C && (ie = Math.min(ne.length, ie + 1)), ie === -1)
|
|
11439
11439
|
throw new Error(dh("vxe.error.unableInsert"));
|
|
11440
|
-
ne.splice(ie, 0, ...I),
|
|
11440
|
+
ne.splice(ie, 0, ...I), q.splice(e.findRowIndexOf(q, x), 0, ...I), P.forEach((W) => {
|
|
11441
11441
|
const { row: Z, rowspan: ce } = W;
|
|
11442
11442
|
Z > ie ? W.row = Z + I.length : Z + ce > ie && (W.rowspan = ce + I.length);
|
|
11443
11443
|
});
|
|
@@ -11451,10 +11451,10 @@ J_.add("tableEditModule", {
|
|
|
11451
11451
|
rows: I
|
|
11452
11452
|
}));
|
|
11453
11453
|
}, D = (b, x, C, $) => {
|
|
11454
|
-
const { treeConfig: P } = t, H = f.value, { transform: G, rowField: ne, parentField:
|
|
11455
|
-
return P && G ? (i.isArray(b) || (b = [b]), v(b.map((L) => Object.assign({}, L, { [
|
|
11454
|
+
const { treeConfig: P } = t, H = f.value, { transform: G, rowField: ne, parentField: q } = H;
|
|
11455
|
+
return P && G ? (i.isArray(b) || (b = [b]), v(b.map((L) => Object.assign({}, L, { [q]: x[ne] })), C, $)) : (Gt("vxe.error.errProp", ["tree-config.treeConfig=false", "tree-config.treeConfig=true"]), Promise.resolve({ row: null, rows: [] }));
|
|
11456
11456
|
}, y = (b, x) => {
|
|
11457
|
-
const { mouseConfig: C } = t, { editStore: $ } = n, { actived: P, focused: H } = $, { row: G, column: ne } = P,
|
|
11457
|
+
const { mouseConfig: C } = t, { editStore: $ } = n, { actived: P, focused: H } = $, { row: G, column: ne } = P, q = u.value, L = s.value;
|
|
11458
11458
|
if (G || ne) {
|
|
11459
11459
|
if (x && St(e, x) !== St(e, G))
|
|
11460
11460
|
return me();
|
|
@@ -11470,7 +11470,7 @@ J_.add("tableEditModule", {
|
|
|
11470
11470
|
return me(() => {
|
|
11471
11471
|
if (C && L.area && e.handleRecalculateCellAreas)
|
|
11472
11472
|
return e.handleRecalculateCellAreas();
|
|
11473
|
-
}),
|
|
11473
|
+
}), q.autoClear && (q.msgMode !== "full" || X_().cellVaildMode === "obsolete") && e.clearValidate ? e.clearValidate() : (H.row = null, H.column = null, me());
|
|
11474
11474
|
};
|
|
11475
11475
|
return d = {
|
|
11476
11476
|
/**
|
|
@@ -11511,7 +11511,7 @@ J_.add("tableEditModule", {
|
|
|
11511
11511
|
* 如果为空则删除所有
|
|
11512
11512
|
*/
|
|
11513
11513
|
remove(b) {
|
|
11514
|
-
const { treeConfig: x } = t, { mergeList: C, editStore: $, selectCheckboxMaps: P } = n, { tableFullTreeData: H, afterFullData: G, tableFullData: ne } = o,
|
|
11514
|
+
const { treeConfig: x } = t, { mergeList: C, editStore: $, selectCheckboxMaps: P } = n, { tableFullTreeData: H, afterFullData: G, tableFullData: ne } = o, q = c.value, L = f.value, { transform: _, mapChildrenField: fe } = L, re = L.children || L.childrenField, { actived: F, removeMaps: z } = $, k = Object.assign({}, $.insertMaps), I = Object.assign({}, n.pendingRowMaps), { checkField: J } = q;
|
|
11515
11515
|
let ie = [];
|
|
11516
11516
|
if (b ? i.isArray(b) || (b = [b]) : b = ne, b.forEach((W) => {
|
|
11517
11517
|
if (!e.isInsertByRow(W)) {
|
|
@@ -11707,12 +11707,12 @@ J_.add("tableEditModule", {
|
|
|
11707
11707
|
* 处理激活编辑
|
|
11708
11708
|
*/
|
|
11709
11709
|
handleEdit(b, x) {
|
|
11710
|
-
const { editConfig: C, mouseConfig: $ } = t, { editStore: P, tableColumn: H } = n, G = a.value, { mode: ne } = G, { actived:
|
|
11710
|
+
const { editConfig: C, mouseConfig: $ } = t, { editStore: P, tableColumn: H } = n, G = a.value, { mode: ne } = G, { actived: q, focused: L } = P, { row: _, column: fe } = b, { editRender: re } = fe, F = b.cell || e.getCellElement(_, fe), z = G.beforeEditMethod || G.activeMethod;
|
|
11711
11711
|
if (b.cell = F, F && mn(C) && mn(re) && !e.isPendingByRow(_)) {
|
|
11712
|
-
if (
|
|
11712
|
+
if (q.row !== _ || ne === "cell" && q.column !== fe) {
|
|
11713
11713
|
let k = "edit-disabled";
|
|
11714
11714
|
if (!z || z(Object.assign(Object.assign({}, b), { $table: e, $grid: e.xegrid }))) {
|
|
11715
|
-
$ && (d.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(),
|
|
11715
|
+
$ && (d.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(), q.column && y(x), k = "edit-activated", fe.renderHeight = F.offsetHeight, q.args = b, q.row = _, q.column = fe, ne === "row" ? H.forEach((J) => h(_, J)) : h(_, fe);
|
|
11716
11716
|
const I = G.afterEditMethod;
|
|
11717
11717
|
me(() => {
|
|
11718
11718
|
p.handleFocus(b, x), I && I(Object.assign(Object.assign({}, b), { $table: e, $grid: e.xegrid }));
|
|
@@ -11734,12 +11734,12 @@ J_.add("tableEditModule", {
|
|
|
11734
11734
|
$columnIndex: e.getVMColumnIndex(fe)
|
|
11735
11735
|
}, x);
|
|
11736
11736
|
} else {
|
|
11737
|
-
const { column: k } =
|
|
11737
|
+
const { column: k } = q;
|
|
11738
11738
|
if ($ && (d.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), k !== fe) {
|
|
11739
11739
|
const { model: I } = k;
|
|
11740
11740
|
I.update && hs(_, k, I.value), e.clearValidate && e.clearValidate(_, fe);
|
|
11741
11741
|
}
|
|
11742
|
-
fe.renderHeight = F.offsetHeight,
|
|
11742
|
+
fe.renderHeight = F.offsetHeight, q.args = b, q.column = fe, setTimeout(() => {
|
|
11743
11743
|
p.handleFocus(b, x);
|
|
11744
11744
|
});
|
|
11745
11745
|
}
|
|
@@ -11766,9 +11766,9 @@ J_.add("tableEditModule", {
|
|
|
11766
11766
|
const { row: x, column: C, cell: $ } = b, { editRender: P } = C, H = a.value;
|
|
11767
11767
|
if (mn(P)) {
|
|
11768
11768
|
const G = Z_.get(P.name);
|
|
11769
|
-
let ne = P.autofocus || P.autoFocus,
|
|
11770
|
-
if (H.autoFocus && (!ne && G && (ne = G.tableAutoFocus || G.tableAutofocus || G.autofocus), !
|
|
11771
|
-
if (
|
|
11769
|
+
let ne = P.autofocus || P.autoFocus, q = P.autoSelect || P.autoselect, L;
|
|
11770
|
+
if (H.autoFocus && (!ne && G && (ne = G.tableAutoFocus || G.tableAutofocus || G.autofocus), !q && G && (q = G.tableAutoSelect || G.autoselect), i.isFunction(ne) ? L = ne(b) : ne && (ne === !0 ? L = $.querySelector("input,textarea") : L = $.querySelector(ne), L && L.focus())), L) {
|
|
11771
|
+
if (q)
|
|
11772
11772
|
L.select();
|
|
11773
11773
|
else if (ra.msie) {
|
|
11774
11774
|
const _ = L.createTextRange();
|
|
@@ -11782,8 +11782,8 @@ J_.add("tableEditModule", {
|
|
|
11782
11782
|
* 处理选中源
|
|
11783
11783
|
*/
|
|
11784
11784
|
handleSelected(b, x) {
|
|
11785
|
-
const { mouseConfig: C } = t, { editStore: $ } = n, P = s.value, H = a.value, { actived: G, selected: ne } = $, { row:
|
|
11786
|
-
return (() => (_ && (ne.row !==
|
|
11785
|
+
const { mouseConfig: C } = t, { editStore: $ } = n, P = s.value, H = a.value, { actived: G, selected: ne } = $, { row: q, column: L } = b, _ = C && P.selected;
|
|
11786
|
+
return (() => (_ && (ne.row !== q || ne.column !== L) && (G.row !== q || H.mode === "cell" && G.column !== L) && (y(x), d.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea()), ne.args = b, ne.row = q, ne.column = L, _ && p.addCellSelectedClass(), e.focus(), x && e.dispatchEvent("cell-selected", b, x)), me()))();
|
|
11787
11787
|
},
|
|
11788
11788
|
addCellSelectedClass() {
|
|
11789
11789
|
const { editStore: b } = n, { selected: x } = b, { row: C, column: $ } = x;
|
|
@@ -12234,7 +12234,7 @@ oB.add("tableExportModule", {
|
|
|
12234
12234
|
return G(k, I, J);
|
|
12235
12235
|
}
|
|
12236
12236
|
return "";
|
|
12237
|
-
},
|
|
12237
|
+
}, q = (k, I) => {
|
|
12238
12238
|
const { filename: J, type: ie, download: W } = k;
|
|
12239
12239
|
if (!W) {
|
|
12240
12240
|
const Z = tB(I, k);
|
|
@@ -12251,7 +12251,7 @@ oB.add("tableExportModule", {
|
|
|
12251
12251
|
ce(W ? W(De) : De);
|
|
12252
12252
|
} else {
|
|
12253
12253
|
const De = b(k);
|
|
12254
|
-
ce(e.preventEvent(null, "event.export", { options: k, columns: J, colgroups: ie, datas: De }, () =>
|
|
12254
|
+
ce(e.preventEvent(null, "event.export", { options: k, columns: J, colgroups: ie, datas: De }, () => q(k, ne(k, J, De))));
|
|
12255
12255
|
}
|
|
12256
12256
|
}).then((ce) => (gh(J), k.print || Z && Z({ status: !0, options: k, $table: e, $grid: g }), Object.assign({ status: !0 }, ce))).catch(() => {
|
|
12257
12257
|
gh(J), k.print || Z && Z({ status: !1, options: k, $table: e, $grid: g });
|
|
@@ -12628,15 +12628,15 @@ mB.add("tableKeyboardModule", {
|
|
|
12628
12628
|
return;
|
|
12629
12629
|
const C = x.querySelector(".vxe-table--checkbox-range"), $ = document.onmousemove, P = document.onmouseup, H = E.parentElement, G = e.getCheckboxRecords();
|
|
12630
12630
|
let ne = [];
|
|
12631
|
-
const
|
|
12631
|
+
const q = 1, L = gB(g.target, x), _ = L.offsetTop + g.offsetY, fe = L.offsetLeft + g.offsetX, re = x.scrollTop, F = H.offsetHeight, z = H.getBoundingClientRect(), k = b - z.y;
|
|
12632
12632
|
let I = null, J = !1, ie = 1;
|
|
12633
12633
|
const W = (se, B) => {
|
|
12634
12634
|
e.dispatchEvent(`checkbox-range-${se}`, { records: e.getCheckboxRecords(), reserves: e.getCheckboxReserveRecords() }, B);
|
|
12635
12635
|
}, Z = (se) => {
|
|
12636
12636
|
const { clientX: B, clientY: Y } = se, oe = B - y, Ce = Y - b + (x.scrollTop - re);
|
|
12637
12637
|
let ve = Math.abs(Ce), de = Math.abs(oe), ye = _, He = fe;
|
|
12638
|
-
Ce <
|
|
12639
|
-
const Ye = u(se, w, H, z, k, Ce <
|
|
12638
|
+
Ce < q ? (ye += Ce, ye < q && (ye = q, ve = _)) : ve = Math.min(ve, x.scrollHeight - _ - q), oe < q ? (He += oe, de > fe && (He = q, de = fe)) : de = Math.min(de, x.clientWidth - fe - q), C.style.height = `${ve}px`, C.style.width = `${de}px`, C.style.left = `${He}px`, C.style.top = `${ye}px`, C.style.display = "block";
|
|
12639
|
+
const Ye = u(se, w, H, z, k, Ce < q ? -ve : ve);
|
|
12640
12640
|
ve > 10 && Ye.length !== ne.length && (ne = Ye, se.ctrlKey ? Ye.forEach((st) => {
|
|
12641
12641
|
e.handleBatchSelectRows([st], G.indexOf(st) === -1);
|
|
12642
12642
|
}) : (e.setAllCheckboxRow(!1), e.handleCheckedCheckboxRow(Ye, !0, !1)), W("change", se));
|
|
@@ -12758,7 +12758,7 @@ bB.add("tableValidatorModule", {
|
|
|
12758
12758
|
const y = {}, { editRules: b, treeConfig: x } = t, { afterFullData: C, visibleColumn: $ } = o, P = a.value, H = P.children || P.childrenField, G = s.value;
|
|
12759
12759
|
let ne;
|
|
12760
12760
|
S === !0 ? ne = C : S && (i.isFunction(S) ? v = S : ne = i.isArray(S) ? S : [S]), ne || (e.getInsertRecords ? ne = e.getInsertRecords().concat(e.getUpdateRecords()) : ne = []);
|
|
12761
|
-
const
|
|
12761
|
+
const q = [];
|
|
12762
12762
|
o._lastCallTime = Date.now(), d = !1, f.clearValidate();
|
|
12763
12763
|
const L = {};
|
|
12764
12764
|
if (b) {
|
|
@@ -12786,10 +12786,10 @@ bB.add("tableValidatorModule", {
|
|
|
12786
12786
|
}, y[k].push(ie), !D)
|
|
12787
12787
|
return d = !0, Promise.reject(ie);
|
|
12788
12788
|
}));
|
|
12789
|
-
}),
|
|
12789
|
+
}), q.push(Promise.all(F));
|
|
12790
12790
|
}
|
|
12791
12791
|
};
|
|
12792
|
-
return x ? i.eachTree(ne, fe, { children: H }) : ne.forEach(fe), Promise.all(
|
|
12792
|
+
return x ? i.eachTree(ne, fe, { children: H }) : ne.forEach(fe), Promise.all(q).then(() => {
|
|
12793
12793
|
const re = Object.keys(y);
|
|
12794
12794
|
return n.validErrorMaps = h(L), me().then(() => {
|
|
12795
12795
|
if (re.length)
|
|
@@ -12896,7 +12896,7 @@ bB.add("tableValidatorModule", {
|
|
|
12896
12896
|
if ($) {
|
|
12897
12897
|
const P = i.isUndefined(D) ? i.get(E, b) : D;
|
|
12898
12898
|
$.forEach((H) => {
|
|
12899
|
-
const { type: G, trigger: ne, required:
|
|
12899
|
+
const { type: G, trigger: ne, required: q, validator: L } = H;
|
|
12900
12900
|
if (S === "all" || !ne || S === ne)
|
|
12901
12901
|
if (L) {
|
|
12902
12902
|
const _ = {
|
|
@@ -12927,7 +12927,7 @@ bB.add("tableValidatorModule", {
|
|
|
12927
12927
|
} else {
|
|
12928
12928
|
const _ = G === "array", fe = i.isArray(P);
|
|
12929
12929
|
let re = !0;
|
|
12930
|
-
_ || fe ? re = !fe || !P.length : i.isString(P) ? re = ms(P.trim()) : re = ms(P), (
|
|
12930
|
+
_ || fe ? re = !fe || !P.length : i.isString(P) ? re = ms(P.trim()) : re = ms(P), (q ? re || w(H, P) : !re && w(H, P)) && (d = !0, x.push(new li(H)));
|
|
12931
12931
|
}
|
|
12932
12932
|
});
|
|
12933
12933
|
}
|
|
@@ -13023,8 +13023,8 @@ we.hooks.add("tableCustomModule", {
|
|
|
13023
13023
|
$.fixed = ne.fixed;
|
|
13024
13024
|
else {
|
|
13025
13025
|
if (b) {
|
|
13026
|
-
const
|
|
13027
|
-
$.renderSortNumber =
|
|
13026
|
+
const q = P + 1;
|
|
13027
|
+
$.renderSortNumber = q;
|
|
13028
13028
|
}
|
|
13029
13029
|
x && ($.fixed = $.renderFixed);
|
|
13030
13030
|
}
|
|
@@ -13035,8 +13035,8 @@ we.hooks.add("tableCustomModule", {
|
|
|
13035
13035
|
}, p = () => {
|
|
13036
13036
|
const { customColumnList: v, customStore: D } = t, { oldSortMaps: y, oldFixedMaps: b, oldVisibleMaps: x } = D, C = o.value, { allowVisible: $, allowSort: P, allowFixed: H, allowResizable: G } = C;
|
|
13037
13037
|
return i.eachTree(v, (ne) => {
|
|
13038
|
-
const
|
|
13039
|
-
$ && (ne.renderVisible = L, ne.visible = L), H && (ne.renderFixed = _, ne.fixed = _), P && (ne.renderSortNumber = y[
|
|
13038
|
+
const q = ne.getKey(), L = !!x[q], _ = b[q] || "";
|
|
13039
|
+
$ && (ne.renderVisible = L, ne.visible = L), H && (ne.renderFixed = _, ne.fixed = _), P && (ne.renderSortNumber = y[q] || 0), G && (ne.renderResizeWidth = ne.renderWidth);
|
|
13040
13040
|
}, { children: "children" }), me();
|
|
13041
13041
|
}, h = (v) => {
|
|
13042
13042
|
const { customStore: D } = t, { customColumnList: y } = t, b = o.value, { checkMethod: x, visibleMethod: C } = b, $ = !!v;
|
|
@@ -13776,7 +13776,7 @@ const eC = dd, { getConfig: Gr, getIcon: nl, getI18n: Jl, renderer: wh, commands
|
|
|
13776
13776
|
}
|
|
13777
13777
|
}, ne = ({ $event: B }) => {
|
|
13778
13778
|
g && g.triggerZoomEvent(B);
|
|
13779
|
-
},
|
|
13779
|
+
}, q = (B, Y) => {
|
|
13780
13780
|
const { connectTable: oe } = f, Ce = oe, { code: ve } = Y;
|
|
13781
13781
|
if (ve)
|
|
13782
13782
|
if (g)
|
|
@@ -13844,7 +13844,7 @@ const eC = dd, { getConfig: Gr, getIcon: nl, getI18n: Jl, renderer: wh, commands
|
|
|
13844
13844
|
permissionCode: ve.permissionCode,
|
|
13845
13845
|
prefixTooltip: ve.prefixTooltip,
|
|
13846
13846
|
suffixTooltip: ve.suffixTooltip,
|
|
13847
|
-
onClick: ({ $event: ye }) => Y ?
|
|
13847
|
+
onClick: ({ $event: ye }) => Y ? q(ye, ve) : L(ye, ve)
|
|
13848
13848
|
}) : Ve()) : Ce;
|
|
13849
13849
|
}, k = () => {
|
|
13850
13850
|
const { buttons: B } = e, { connectTable: Y } = f, oe = Y, Ce = [];
|
|
@@ -13876,7 +13876,7 @@ const eC = dd, { getConfig: Gr, getIcon: nl, getI18n: Jl, renderer: wh, commands
|
|
|
13876
13876
|
destroyOnClose: ve.destroyOnClose,
|
|
13877
13877
|
placement: ve.placement,
|
|
13878
13878
|
transfer: ve.transfer,
|
|
13879
|
-
onClick: ({ $event: Ye }) =>
|
|
13879
|
+
onClick: ({ $event: Ye }) => q(Ye, ve)
|
|
13880
13880
|
}, de && de.length ? {
|
|
13881
13881
|
dropdowns: () => z(ve, !0)
|
|
13882
13882
|
} : {}));
|
|
@@ -14070,7 +14070,7 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14070
14070
|
const C = N(() => i.merge({}, i.clone(Vs().grid.proxyConfig, !0), e.proxyConfig)), $ = N(() => {
|
|
14071
14071
|
const K = C.value;
|
|
14072
14072
|
return i.isBoolean(K.message) ? K.message : K.showResponseMsg;
|
|
14073
|
-
}), P = N(() => C.value.showActiveMsg), H = N(() => Object.assign({}, Vs().grid.pagerConfig, e.pagerConfig)), G = N(() => Object.assign({}, Vs().grid.formConfig, e.formConfig)), ne = N(() => Object.assign({}, Vs().grid.toolbarConfig, e.toolbarConfig)),
|
|
14073
|
+
}), P = N(() => C.value.showActiveMsg), H = N(() => Object.assign({}, Vs().grid.pagerConfig, e.pagerConfig)), G = N(() => Object.assign({}, Vs().grid.formConfig, e.formConfig)), ne = N(() => Object.assign({}, Vs().grid.toolbarConfig, e.toolbarConfig)), q = N(() => Object.assign({}, Vs().grid.zoomConfig, e.zoomConfig)), L = N(() => u.isZMax ? { zIndex: u.tZindex } : null), _ = N(() => {
|
|
14074
14074
|
const K = {}, A = e;
|
|
14075
14075
|
return LB.forEach((ee) => {
|
|
14076
14076
|
K[ee] = A[ee];
|
|
@@ -14095,7 +14095,7 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14095
14095
|
computePagerOpts: H,
|
|
14096
14096
|
computeFormOpts: G,
|
|
14097
14097
|
computeToolbarOpts: ne,
|
|
14098
|
-
computeZoomOpts:
|
|
14098
|
+
computeZoomOpts: q
|
|
14099
14099
|
}, I = {
|
|
14100
14100
|
xID: s,
|
|
14101
14101
|
props: e,
|
|
@@ -14334,7 +14334,7 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14334
14334
|
}));
|
|
14335
14335
|
}
|
|
14336
14336
|
}, Be = (K) => {
|
|
14337
|
-
const A =
|
|
14337
|
+
const A = q.value;
|
|
14338
14338
|
hf.hasKey(K, AB.ESCAPE) && u.isZMax && A.escRestore !== !1 && M.triggerZoomEvent(K);
|
|
14339
14339
|
}, $e = {
|
|
14340
14340
|
dispatchEvent: (K, A, ee) => {
|
|
@@ -14384,9 +14384,9 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14384
14384
|
case "query": {
|
|
14385
14385
|
const Pt = Bt.query, qt = Bt.querySuccess, _t = Bt.queryError;
|
|
14386
14386
|
if (Pt) {
|
|
14387
|
-
const
|
|
14387
|
+
const U = At === "_init", on = At === "reload";
|
|
14388
14388
|
let rn = [], $n = [], In = {};
|
|
14389
|
-
if (R && ((
|
|
14389
|
+
if (R && ((U || on) && (Ee.currentPage = 1), mn(nt) && (In = Object.assign({}, Ee))), U) {
|
|
14390
14390
|
let pn = null;
|
|
14391
14391
|
if (We) {
|
|
14392
14392
|
const { computeSortOpts: bn } = We.getComputeMaps();
|
|
@@ -14402,7 +14402,7 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14402
14402
|
const Pn = {
|
|
14403
14403
|
code: At,
|
|
14404
14404
|
button: $t,
|
|
14405
|
-
isInited:
|
|
14405
|
+
isInited: U,
|
|
14406
14406
|
isReload: on,
|
|
14407
14407
|
$grid: I,
|
|
14408
14408
|
page: In,
|
|
@@ -14436,9 +14436,9 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14436
14436
|
case "delete": {
|
|
14437
14437
|
const Pt = Bt.delete, qt = Bt.deleteSuccess, _t = Bt.deleteError;
|
|
14438
14438
|
if (Pt) {
|
|
14439
|
-
const
|
|
14440
|
-
if (
|
|
14441
|
-
return De(At, "vxe.grid.deleteSelectRecord", () => on.length ? (u.tableLoading = !0, Promise.resolve((Et || Pt)($n, ...A)).then((In) => (u.tableLoading = !1, We.setPendingRow(on, !1), Le && we.modal && we.modal.message({ content: ce(In, "vxe.grid.delSuccess"), status: "success" }), Ht ? Ht($n, ...A) : $e.commitProxy("query"), qt && qt(Object.assign(Object.assign({}, $n), { response: In })), { status: !0 })).catch((In) => (u.tableLoading = !1, Le && we.modal && we.modal.message({ id: At, content: ce(In, "vxe.grid.operError"), status: "error" }), _t && _t(Object.assign(Object.assign({}, $n), { response: In })), { status: !1 }))) : We.remove(
|
|
14439
|
+
const U = x.getCheckboxRecords(), on = U.filter((In) => !We.isInsertByRow(In)), $n = { $grid: I, code: At, button: $t, body: { removeRecords: on }, form: it, options: Pt };
|
|
14440
|
+
if (U.length)
|
|
14441
|
+
return De(At, "vxe.grid.deleteSelectRecord", () => on.length ? (u.tableLoading = !0, Promise.resolve((Et || Pt)($n, ...A)).then((In) => (u.tableLoading = !1, We.setPendingRow(on, !1), Le && we.modal && we.modal.message({ content: ce(In, "vxe.grid.delSuccess"), status: "success" }), Ht ? Ht($n, ...A) : $e.commitProxy("query"), qt && qt(Object.assign(Object.assign({}, $n), { response: In })), { status: !0 })).catch((In) => (u.tableLoading = !1, Le && we.modal && we.modal.message({ id: At, content: ce(In, "vxe.grid.operError"), status: "error" }), _t && _t(Object.assign(Object.assign({}, $n), { response: In })), { status: !1 }))) : We.remove(U));
|
|
14442
14442
|
Me && we.modal && we.modal.message({ id: At, content: Ql("vxe.grid.selectOneRecord"), status: "warning" });
|
|
14443
14443
|
} else
|
|
14444
14444
|
process.env.NODE_ENV === "development" && Gt("vxe.error.notFunc", ["proxy-config.ajax.delete"]);
|
|
@@ -14447,12 +14447,12 @@ const VB = fd, { getConfig: Vs, getI18n: Ql, commands: FB, hooks: kB, useFns: RB
|
|
|
14447
14447
|
case "save": {
|
|
14448
14448
|
const Pt = Bt.save, qt = Bt.saveSuccess, _t = Bt.saveError;
|
|
14449
14449
|
if (Pt) {
|
|
14450
|
-
const
|
|
14451
|
-
on.length && (
|
|
14450
|
+
const U = We.getRecordset(), { insertRecords: on, removeRecords: rn, updateRecords: $n, pendingRecords: In } = U, Pn = { $grid: I, code: At, button: $t, body: U, form: it, options: Pt };
|
|
14451
|
+
on.length && (U.pendingRecords = In.filter((bn) => We.findRowIndexOf(on, bn) === -1)), In.length && (U.insertRecords = on.filter((bn) => We.findRowIndexOf(In, bn) === -1));
|
|
14452
14452
|
let pn = Promise.resolve();
|
|
14453
|
-
return Q && (pn = We[be && be.msgMode === "full" ? "fullValidate" : "validate"](
|
|
14453
|
+
return Q && (pn = We[be && be.msgMode === "full" ? "fullValidate" : "validate"](U.insertRecords.concat($n))), pn.then((bn) => {
|
|
14454
14454
|
if (!bn) {
|
|
14455
|
-
if (
|
|
14455
|
+
if (U.insertRecords.length || rn.length || $n.length || U.pendingRecords.length)
|
|
14456
14456
|
return u.tableLoading = !0, Promise.resolve((yn || Pt)(Pn, ...A)).then((Vn) => (u.tableLoading = !1, We.clearPendingRow(), Le && we.modal && we.modal.message({ content: ce(Vn, "vxe.grid.saveSuccess"), status: "success" }), en ? en(Pn, ...A) : $e.commitProxy("query"), qt && qt(Object.assign(Object.assign({}, Pn), { response: Vn })), { status: !0 })).catch((Vn) => (u.tableLoading = !1, Le && we.modal && we.modal.message({ id: At, content: ce(Vn, "vxe.grid.operError"), status: "error" }), _t && _t(Object.assign(Object.assign({}, Pn), { response: Vn })), { status: !1 }));
|
|
14457
14457
|
Me && we.modal && we.modal.message({ id: At, content: Ql("vxe.grid.dataUnchanged"), status: "info" });
|
|
14458
14458
|
}
|
|
@@ -16670,8 +16670,8 @@ const NC = /* @__PURE__ */ Mr(JK), Jf = {
|
|
|
16670
16670
|
var $;
|
|
16671
16671
|
const { params: C } = n;
|
|
16672
16672
|
if (C) {
|
|
16673
|
-
const { $table: P, column: H } = C, { field: G } = H, { fullData: ne } = P.getTableData(),
|
|
16674
|
-
S.value =
|
|
16673
|
+
const { $table: P, column: H } = C, { field: G } = H, { fullData: ne } = P.getTableData(), q = C.column.filters[0];
|
|
16674
|
+
S.value = q, a.value = NC(
|
|
16675
16675
|
ne.map((L) => {
|
|
16676
16676
|
const _ = L[G];
|
|
16677
16677
|
return (_ == null || _ === "" || String(_).replace(/\s+/g, "") === "") && (L[G] = ""), L;
|
|
@@ -16680,7 +16680,7 @@ const NC = /* @__PURE__ */ Mr(JK), Jf = {
|
|
|
16680
16680
|
).sort((L, _) => L[G] < _[G] ? -1 : 1).map((L) => ({
|
|
16681
16681
|
label: L[G] === "" ? "(空)" : L[G],
|
|
16682
16682
|
value: L[G]
|
|
16683
|
-
})), c.value = (($ =
|
|
16683
|
+
})), c.value = (($ = q.value) == null ? void 0 : $.filter(
|
|
16684
16684
|
(L) => a.value.some((_) => _.value === L)
|
|
16685
16685
|
)) || [];
|
|
16686
16686
|
}
|
|
@@ -16728,8 +16728,8 @@ const NC = /* @__PURE__ */ Mr(JK), Jf = {
|
|
|
16728
16728
|
var $, P;
|
|
16729
16729
|
E(), x = new MutationObserver((H) => {
|
|
16730
16730
|
H.forEach((G) => {
|
|
16731
|
-
var ne,
|
|
16732
|
-
if (G.type === "attributes" && G.attributeName === "class" && (L = (
|
|
16731
|
+
var ne, q, L, _, fe, re;
|
|
16732
|
+
if (G.type === "attributes" && G.attributeName === "class" && (L = (q = (ne = y.value) == null ? void 0 : ne.parentNode) == null ? void 0 : q.parentNode) != null && L.classList.contains("is--active")) {
|
|
16733
16733
|
E();
|
|
16734
16734
|
const F = (re = (fe = (_ = y.value) == null ? void 0 : _.parentNode) == null ? void 0 : fe.parentNode) == null ? void 0 : re.parentNode;
|
|
16735
16735
|
F && (b.value = F.offsetHeight * 0.5 + "px");
|
|
@@ -17618,7 +17618,7 @@ const Y5 = /* @__PURE__ */ Mr(K5), X5 = "sab-table-config-", QC = (e) => `${X5}$
|
|
|
17618
17618
|
"update:config-columns"
|
|
17619
17619
|
],
|
|
17620
17620
|
setup(e, { emit: t }) {
|
|
17621
|
-
var y, b, x, C, $, P, H, G, ne,
|
|
17621
|
+
var y, b, x, C, $, P, H, G, ne, q, L, _, fe, re, F, z, k, I, J, ie;
|
|
17622
17622
|
const n = e, o = t, { locale: r } = Zi(), s = Oe(!1), a = () => {
|
|
17623
17623
|
s.value = !1;
|
|
17624
17624
|
}, c = Oe(), f = Oe([
|
|
@@ -17652,7 +17652,7 @@ const Y5 = /* @__PURE__ */ Mr(K5), X5 = "sab-table-config-", QC = (e) => `${X5}$
|
|
|
17652
17652
|
},
|
|
17653
17653
|
{
|
|
17654
17654
|
// @ts-ignore
|
|
17655
|
-
title: (_ = (L = (
|
|
17655
|
+
title: (_ = (L = (q = (ne = r == null ? void 0 : r.value) == null ? void 0 : ne.sabDesign) == null ? void 0 : q.table) == null ? void 0 : L.set) == null ? void 0 : _.field,
|
|
17656
17656
|
field: "field",
|
|
17657
17657
|
width: "auto"
|
|
17658
17658
|
},
|
|
@@ -20624,8 +20624,8 @@ const ha = rt({
|
|
|
20624
20624
|
for (let H = 0; H < P.length; H++) {
|
|
20625
20625
|
const G = P[H];
|
|
20626
20626
|
if (G.getBoundingClientRect().top > 0) {
|
|
20627
|
-
const
|
|
20628
|
-
c.activeHref = `#${
|
|
20627
|
+
const q = G.id;
|
|
20628
|
+
c.activeHref = `#${q}`;
|
|
20629
20629
|
break;
|
|
20630
20630
|
}
|
|
20631
20631
|
}
|
|
@@ -21068,9 +21068,9 @@ const al = rt({
|
|
|
21068
21068
|
const h = () => {
|
|
21069
21069
|
const { tipTarget: G, tipStore: ne } = a;
|
|
21070
21070
|
if (G) {
|
|
21071
|
-
const { scrollTop:
|
|
21071
|
+
const { scrollTop: q, scrollLeft: L, visibleWidth: _ } = Ml(), { top: fe, left: re } = Hs(G), F = f.value, z = 6, k = F.offsetHeight, I = F.offsetWidth;
|
|
21072
21072
|
let J = re, ie = fe - k - z;
|
|
21073
|
-
J = Math.max(z, re + Math.floor((G.offsetWidth - I) / 2)), J + I + z > L + _ && (J = L + _ - I - z), fe - k <
|
|
21073
|
+
J = Math.max(z, re + Math.floor((G.offsetWidth - I) / 2)), J + I + z > L + _ && (J = L + _ - I - z), fe - k < q + z && (ne.placement = "bottom", ie = fe + G.offsetHeight + z), ne.style.top = `${ie}px`, ne.style.left = `${J}px`, ne.arrowStyle.left = `${re - J + G.offsetWidth / 2}px`;
|
|
21074
21074
|
}
|
|
21075
21075
|
}, g = (G) => {
|
|
21076
21076
|
G !== a.visible && (a.visible = G, a.isUpdate = !0, o("update:modelValue", G));
|
|
@@ -21081,17 +21081,17 @@ const al = rt({
|
|
|
21081
21081
|
}, E = () => {
|
|
21082
21082
|
C(a.target || $(), e.content);
|
|
21083
21083
|
}, v = () => {
|
|
21084
|
-
const { trigger: G, enterable: ne, leaveDelay:
|
|
21084
|
+
const { trigger: G, enterable: ne, leaveDelay: q } = e;
|
|
21085
21085
|
a.tipActive = !1, ne && G === "hover" ? setTimeout(() => {
|
|
21086
21086
|
a.tipActive || p.close();
|
|
21087
|
-
},
|
|
21087
|
+
}, q) : p.close();
|
|
21088
21088
|
}, D = () => {
|
|
21089
21089
|
a.tipActive = !0;
|
|
21090
21090
|
}, y = () => {
|
|
21091
|
-
const { trigger: G, enterable: ne, leaveDelay:
|
|
21091
|
+
const { trigger: G, enterable: ne, leaveDelay: q } = e;
|
|
21092
21092
|
a.tipActive = !1, ne && G === "hover" && setTimeout(() => {
|
|
21093
21093
|
a.tipActive || p.close();
|
|
21094
|
-
},
|
|
21094
|
+
}, q);
|
|
21095
21095
|
}, b = () => {
|
|
21096
21096
|
const { tipStore: G } = a, ne = f.value;
|
|
21097
21097
|
return ne && (ne.parentNode || document.body.appendChild(ne)), g(!0), w(), G.placement = "top", G.style = { width: "auto", left: 0, top: 0, zIndex: e.zIndex || a.tipZindex }, G.arrowStyle = { left: "50%" }, p.updatePlacement();
|
|
@@ -21121,8 +21121,8 @@ const al = rt({
|
|
|
21121
21121
|
return null;
|
|
21122
21122
|
};
|
|
21123
21123
|
p = {
|
|
21124
|
-
dispatchEvent(G, ne,
|
|
21125
|
-
o(G, Zt(
|
|
21124
|
+
dispatchEvent(G, ne, q) {
|
|
21125
|
+
o(G, Zt(q, { $tooltip: d }, ne));
|
|
21126
21126
|
},
|
|
21127
21127
|
open(G, ne) {
|
|
21128
21128
|
return C(G || a.target || $(), ne);
|
|
@@ -21154,11 +21154,11 @@ const al = rt({
|
|
|
21154
21154
|
}
|
|
21155
21155
|
}, Object.assign(d, p);
|
|
21156
21156
|
const P = () => {
|
|
21157
|
-
const { useHTML: G } = e, { tipContent: ne } = a,
|
|
21158
|
-
return
|
|
21157
|
+
const { useHTML: G } = e, { tipContent: ne } = a, q = n.content;
|
|
21158
|
+
return q ? l("div", {
|
|
21159
21159
|
key: 1,
|
|
21160
21160
|
class: "vxe-table--tooltip-content"
|
|
21161
|
-
}, Rt(
|
|
21161
|
+
}, Rt(q({}))) : G ? l("div", {
|
|
21162
21162
|
key: 2,
|
|
21163
21163
|
class: "vxe-table--tooltip-content",
|
|
21164
21164
|
innerHTML: ne
|
|
@@ -21167,7 +21167,7 @@ const al = rt({
|
|
|
21167
21167
|
class: "vxe-table--tooltip-content"
|
|
21168
21168
|
}, `${ne}`);
|
|
21169
21169
|
}, H = () => {
|
|
21170
|
-
const { popupClassName: G, theme: ne, isArrow:
|
|
21170
|
+
const { popupClassName: G, theme: ne, isArrow: q, enterable: L } = e, { tipActive: _, visible: fe, tipStore: re } = a, F = n.default, z = s.value;
|
|
21171
21171
|
let k;
|
|
21172
21172
|
return L && (k = {
|
|
21173
21173
|
onMouseenter: D,
|
|
@@ -21177,7 +21177,7 @@ const al = rt({
|
|
|
21177
21177
|
[`placement--${re.placement}`]: re.placement,
|
|
21178
21178
|
"is--enterable": L,
|
|
21179
21179
|
"is--visible": fe,
|
|
21180
|
-
"is--arrow":
|
|
21180
|
+
"is--arrow": q,
|
|
21181
21181
|
"is--active": _
|
|
21182
21182
|
}], style: re.style }, k), [
|
|
21183
21183
|
P(),
|
|
@@ -21196,13 +21196,13 @@ const al = rt({
|
|
|
21196
21196
|
a.isUpdate || (G ? C(a.target || $(), e.content) : p.close()), a.isUpdate = !1;
|
|
21197
21197
|
}), Dn(() => {
|
|
21198
21198
|
me(() => {
|
|
21199
|
-
const { trigger: G, content: ne } = e,
|
|
21200
|
-
if (
|
|
21201
|
-
const L =
|
|
21199
|
+
const { trigger: G, content: ne } = e, q = f.value;
|
|
21200
|
+
if (q) {
|
|
21201
|
+
const L = q.parentNode;
|
|
21202
21202
|
if (L) {
|
|
21203
|
-
a.tipContent = ne, a.tipZindex = $r(), i.arrayEach(
|
|
21204
|
-
re > 1 && (L.insertBefore(fe,
|
|
21205
|
-
}), L.removeChild(
|
|
21203
|
+
a.tipContent = ne, a.tipZindex = $r(), i.arrayEach(q.children, (fe, re) => {
|
|
21204
|
+
re > 1 && (L.insertBefore(fe, q), a.target || (a.target = fe));
|
|
21205
|
+
}), L.removeChild(q);
|
|
21206
21206
|
const { target: _ } = a;
|
|
21207
21207
|
_ && (G === "hover" ? (_.onmouseenter = E, _.onmouseleave = v) : G === "click" && (_.onclick = S)), e.modelValue && C(_ || $(), ne);
|
|
21208
21208
|
}
|
|
@@ -21211,8 +21211,8 @@ const al = rt({
|
|
|
21211
21211
|
}), Ar(() => {
|
|
21212
21212
|
const { target: G } = a, ne = f.value;
|
|
21213
21213
|
if (G && (G.onmouseenter = null, G.onmouseleave = null, G.onclick = null), ne) {
|
|
21214
|
-
const
|
|
21215
|
-
|
|
21214
|
+
const q = ne.parentNode;
|
|
21215
|
+
q && q.removeChild(ne);
|
|
21216
21216
|
}
|
|
21217
21217
|
}), x(), d.renderVN = H, d;
|
|
21218
21218
|
},
|
|
@@ -21360,7 +21360,7 @@ const al = rt({
|
|
|
21360
21360
|
}), G = N(() => {
|
|
21361
21361
|
const { circle: de } = e;
|
|
21362
21362
|
return de || (f ? f.props.circle : !1);
|
|
21363
|
-
}), ne = N(() => Object.assign({}, e.prefixTooltip)),
|
|
21363
|
+
}), ne = N(() => Object.assign({}, e.prefixTooltip)), q = N(() => Object.assign({}, e.suffixTooltip)), L = () => {
|
|
21364
21364
|
h.panelIndex < Br() && (h.panelIndex = $r());
|
|
21365
21365
|
}, _ = () => me().then(() => {
|
|
21366
21366
|
const { placement: de } = e, { panelIndex: ye } = h, He = S.value, Ye = E.value, st = b.value;
|
|
@@ -21435,7 +21435,7 @@ const al = rt({
|
|
|
21435
21435
|
});
|
|
21436
21436
|
}
|
|
21437
21437
|
}), B = () => {
|
|
21438
|
-
const { content: de, icon: ye, loading: He, prefixTooltip: Ye, suffixTooltip: st } = e, je = ne.value, Ge =
|
|
21438
|
+
const { content: de, icon: ye, loading: He, prefixTooltip: Ye, suffixTooltip: st } = e, je = ne.value, Ge = q.value, at = n.icon, bt = n.default, dt = [];
|
|
21439
21439
|
return Ye && dt.push(se(je, "prefix")), He ? dt.push(l("i", {
|
|
21440
21440
|
class: ["vxe-button--loading-icon", xt().BUTTON_LOADING]
|
|
21441
21441
|
})) : at ? dt.push(l("span", {
|
|
@@ -21820,13 +21820,13 @@ const Kc = rt({
|
|
|
21820
21820
|
return be && (Me = be.getFullYear(), Le = be.getMonth() + 1), Q === "quarter" ? Re("vxe.input.date.quarterLabel", [Me]) : Q === "month" ? Re("vxe.input.date.monthLabel", [Me]) : Q === "year" ? Ee.length ? `${Ee[0].year} - ${Ee[Ee.length - 1].year}` : "" : Re("vxe.input.date.dayLabel", [Me, Le ? Re(`vxe.input.date.m${Le}`) : "-"]);
|
|
21821
21821
|
}
|
|
21822
21822
|
return "";
|
|
21823
|
-
}),
|
|
21823
|
+
}), q = N(() => {
|
|
21824
21824
|
const { startDay: R } = e;
|
|
21825
21825
|
return i.toNumber(R);
|
|
21826
21826
|
}), L = N(() => {
|
|
21827
21827
|
const R = [];
|
|
21828
21828
|
if (g.value) {
|
|
21829
|
-
let be =
|
|
21829
|
+
let be = q.value;
|
|
21830
21830
|
R.push(be);
|
|
21831
21831
|
for (let Ee = 0; Ee < 6; Ee++)
|
|
21832
21832
|
be >= 6 ? be = 0 : be++, R.push(be);
|
|
@@ -21905,7 +21905,7 @@ const Kc = rt({
|
|
|
21905
21905
|
const R = J.value;
|
|
21906
21906
|
return i.chunk(R, 7);
|
|
21907
21907
|
}), W = N(() => {
|
|
21908
|
-
const R = ie.value, Q =
|
|
21908
|
+
const R = ie.value, Q = q.value;
|
|
21909
21909
|
return R.map((be) => {
|
|
21910
21910
|
const Ee = be[0];
|
|
21911
21911
|
return [{
|
|
@@ -21921,7 +21921,7 @@ const Kc = rt({
|
|
|
21921
21921
|
}), Z = (R, Q) => i.toStringDate(R, Q), ce = (R, Q) => {
|
|
21922
21922
|
s.inputValue = R, n("update:modelValue", R), i.toValueString(e.modelValue) !== R && d.dispatchEvent("change", { value: R }, Q);
|
|
21923
21923
|
}, De = (R) => {
|
|
21924
|
-
const { type: Q } = e, be = H.value, Ee = b.value, Me =
|
|
21924
|
+
const { type: Q } = e, be = H.value, Ee = b.value, Me = q.value;
|
|
21925
21925
|
let Le = null, Qe = "";
|
|
21926
21926
|
if (R && (Le = Z(R, Ee)), i.isValidDate(Le)) {
|
|
21927
21927
|
if (Qe = i.toDateString(Le, be, { firstDay: Me }), be && Q === "week" && i.getWhatWeek(Le, 0, Me, Me).getFullYear() < Le.getFullYear()) {
|
|
@@ -21943,7 +21943,7 @@ const Kc = rt({
|
|
|
21943
21943
|
const Q = i.getWhatMonth(R, 0, "first");
|
|
21944
21944
|
i.isEqual(Q, s.selectMonth) || (s.selectMonth = Q);
|
|
21945
21945
|
}, oe = (R) => {
|
|
21946
|
-
const { modelValue: Q, multiple: be } = e, Ee = b.value, Me =
|
|
21946
|
+
const { modelValue: Q, multiple: be } = e, Ee = b.value, Me = q.value;
|
|
21947
21947
|
if (e.type === "week") {
|
|
21948
21948
|
const Qe = i.toNumber(e.selectDay);
|
|
21949
21949
|
R = i.getWhatWeek(R, 0, Qe, Me);
|
|
@@ -22395,7 +22395,7 @@ const Or = rt({
|
|
|
22395
22395
|
}
|
|
22396
22396
|
}, {});
|
|
22397
22397
|
const w = () => {
|
|
22398
|
-
const { title: S, border: E, shadow: v, padding: D, loading: y, showTitleOverflow: b } = e, x = n.default, C = n.header, $ = n.title, P = n.extra, H = n.footer, G = n.left, ne = n.right,
|
|
22398
|
+
const { title: S, border: E, shadow: v, padding: D, loading: y, showTitleOverflow: b } = e, x = n.default, C = n.header, $ = n.title, P = n.extra, H = n.footer, G = n.left, ne = n.right, q = f.value;
|
|
22399
22399
|
return l("div", {
|
|
22400
22400
|
ref: s,
|
|
22401
22401
|
class: ["vxe-card", {
|
|
@@ -22403,7 +22403,7 @@ const Or = rt({
|
|
|
22403
22403
|
"is--shadow": v,
|
|
22404
22404
|
"is--padding": D
|
|
22405
22405
|
}],
|
|
22406
|
-
style:
|
|
22406
|
+
style: q
|
|
22407
22407
|
}, [
|
|
22408
22408
|
S || $ || C ? l("div", {
|
|
22409
22409
|
class: "vxe-card--header"
|
|
@@ -22598,7 +22598,7 @@ const Xc = rt({
|
|
|
22598
22598
|
})
|
|
22599
22599
|
]);
|
|
22600
22600
|
}));
|
|
22601
|
-
},
|
|
22601
|
+
}, q = (re) => {
|
|
22602
22602
|
const { activeName: F } = c;
|
|
22603
22603
|
return l("div", {
|
|
22604
22604
|
class: "vxe-carousel--indicators"
|
|
@@ -22637,7 +22637,7 @@ const Xc = rt({
|
|
|
22637
22637
|
}, [
|
|
22638
22638
|
ne(Z)
|
|
22639
22639
|
]),
|
|
22640
|
-
k ?
|
|
22640
|
+
k ? q(Z) : Ve(),
|
|
22641
22641
|
l("div", {
|
|
22642
22642
|
class: "vxe-carousel--btn-wrapper"
|
|
22643
22643
|
}, [
|
|
@@ -23048,30 +23048,30 @@ const Jc = rt({
|
|
|
23048
23048
|
const { initNames: ne } = c;
|
|
23049
23049
|
return G && !ne.includes(G) ? (ne.push(G), !0) : !1;
|
|
23050
23050
|
}, E = (G) => {
|
|
23051
|
-
const { activeNames: ne } = c,
|
|
23051
|
+
const { activeNames: ne } = c, q = {};
|
|
23052
23052
|
G && G.length && G.forEach((L) => {
|
|
23053
23053
|
const { name: _, preload: fe } = L || {};
|
|
23054
23054
|
if (_) {
|
|
23055
23055
|
const re = ne.includes(_);
|
|
23056
|
-
|
|
23056
|
+
q[`${_}`] = {
|
|
23057
23057
|
loading: !1
|
|
23058
23058
|
}, re && S(_), fe && (re || ne.push(_));
|
|
23059
23059
|
}
|
|
23060
|
-
}), c.activeNames = ne ? ne.slice(0) : [], c.cachePaneMaps =
|
|
23060
|
+
}), c.activeNames = ne ? ne.slice(0) : [], c.cachePaneMaps = q;
|
|
23061
23061
|
}, D = {
|
|
23062
|
-
dispatchEvent: (G, ne,
|
|
23063
|
-
n(G, Zt(
|
|
23062
|
+
dispatchEvent: (G, ne, q) => {
|
|
23063
|
+
n(G, Zt(q, { $collapse: g }, ne));
|
|
23064
23064
|
}
|
|
23065
23065
|
}, y = (G, ne) => G && (i.isString(G) && (G = o[G] || null), i.isFunction(G)) ? Rt(G(ne)) : [], b = (G, ne) => {
|
|
23066
|
-
const { activeNames:
|
|
23066
|
+
const { activeNames: q } = c, { name: L } = ne;
|
|
23067
23067
|
if (L) {
|
|
23068
|
-
const _ =
|
|
23069
|
-
_ === -1 ?
|
|
23068
|
+
const _ = q.indexOf(L);
|
|
23069
|
+
_ === -1 ? q.push(L) : q.splice(_, 1), S(L);
|
|
23070
23070
|
}
|
|
23071
23071
|
};
|
|
23072
23072
|
Object.assign(g, D, {});
|
|
23073
23073
|
const C = (G) => {
|
|
23074
|
-
const { activeNames: ne, initNames:
|
|
23074
|
+
const { activeNames: ne, initNames: q } = c, L = p.value;
|
|
23075
23075
|
return G.map((_) => {
|
|
23076
23076
|
const { icon: fe, name: re, title: F, slots: z } = _, k = z ? z.title : null, I = z ? z.default : null, J = re && ne.includes(re);
|
|
23077
23077
|
return l("div", {
|
|
@@ -23106,7 +23106,7 @@ const Jc = rt({
|
|
|
23106
23106
|
"is--visible": J
|
|
23107
23107
|
}]
|
|
23108
23108
|
}, [
|
|
23109
|
-
re &&
|
|
23109
|
+
re && q.includes(re) ? l("div", {
|
|
23110
23110
|
class: "vxe-collapse--item-inner"
|
|
23111
23111
|
}, [
|
|
23112
23112
|
I ? y(I, { name: re, title: F }) : ""
|
|
@@ -23115,7 +23115,7 @@ const Jc = rt({
|
|
|
23115
23115
|
]);
|
|
23116
23116
|
});
|
|
23117
23117
|
}, $ = () => {
|
|
23118
|
-
const { padding: G } = e, ne = s.value,
|
|
23118
|
+
const { padding: G } = e, ne = s.value, q = u.value, L = d.value, _ = o.default, fe = _ ? L : q;
|
|
23119
23119
|
return l("div", {
|
|
23120
23120
|
ref: a,
|
|
23121
23121
|
class: ["vxe-collapse", {
|
|
@@ -23387,10 +23387,10 @@ const Jr = rt({
|
|
|
23387
23387
|
return i.getDateDiff(Date.now(), Date.now() + G);
|
|
23388
23388
|
}), h = N(() => {
|
|
23389
23389
|
const { format: G } = e, ne = p.value;
|
|
23390
|
-
let
|
|
23391
|
-
return G && (
|
|
23392
|
-
|
|
23393
|
-
})),
|
|
23390
|
+
let q = "";
|
|
23391
|
+
return G && (q = `${G}`, i.each(ne, (L, _) => {
|
|
23392
|
+
q = q.replace(new RegExp(_, "g"), i.padStart(L, _.length, "0"));
|
|
23393
|
+
})), q;
|
|
23394
23394
|
}), g = N(() => Object.assign({}, e.prefixConfig, ae().countdown.prefixConfig)), w = N(() => Object.assign({}, e.suffixConfig, ae().countdown.suffixConfig)), S = {
|
|
23395
23395
|
computeSize: a
|
|
23396
23396
|
}, E = {
|
|
@@ -23401,8 +23401,8 @@ const Jr = rt({
|
|
|
23401
23401
|
internalData: f,
|
|
23402
23402
|
getRefMaps: () => u,
|
|
23403
23403
|
getComputeMaps: () => S
|
|
23404
|
-
}, v = (G, ne,
|
|
23405
|
-
o(G, Zt(
|
|
23404
|
+
}, v = (G, ne, q) => {
|
|
23405
|
+
o(G, Zt(q, { $carousel: E }, ne));
|
|
23406
23406
|
}, D = () => {
|
|
23407
23407
|
const G = i.toNumber(e.modelValue || 0);
|
|
23408
23408
|
c.secondNum = G, c.currNum = G;
|
|
@@ -23421,7 +23421,7 @@ const Jr = rt({
|
|
|
23421
23421
|
};
|
|
23422
23422
|
Object.assign(E, b, {});
|
|
23423
23423
|
const P = () => {
|
|
23424
|
-
const { format: G } = e, ne = d.value,
|
|
23424
|
+
const { format: G } = e, ne = d.value, q = p.value, L = h.value;
|
|
23425
23425
|
return G ? [
|
|
23426
23426
|
l("div", {
|
|
23427
23427
|
key: "format",
|
|
@@ -23433,13 +23433,13 @@ const Jr = rt({
|
|
|
23433
23433
|
}, [
|
|
23434
23434
|
l("div", {
|
|
23435
23435
|
class: "vxe-countdown--content-num"
|
|
23436
|
-
}, `${
|
|
23436
|
+
}, `${q[_] || 0}`),
|
|
23437
23437
|
l("div", {
|
|
23438
23438
|
class: "vxe-countdown--content-unit"
|
|
23439
23439
|
}, Re(`vxe.countdown.formats.${_}`))
|
|
23440
23440
|
]));
|
|
23441
23441
|
}, H = () => {
|
|
23442
|
-
const { prefixConfig: G, suffixConfig: ne } = e, { currNum:
|
|
23442
|
+
const { prefixConfig: G, suffixConfig: ne } = e, { currNum: q } = c, L = a.value, _ = p.value, fe = g.value, re = w.value, F = n.prefix, z = n.suffix, k = n.default;
|
|
23443
23443
|
return l("div", {
|
|
23444
23444
|
ref: s,
|
|
23445
23445
|
class: ["vxe-countdown", _.done ? "is--progress" : "is-end", {
|
|
@@ -23448,7 +23448,7 @@ const Jr = rt({
|
|
|
23448
23448
|
}, [
|
|
23449
23449
|
F || G ? l("div", {
|
|
23450
23450
|
class: "vxe-countdown--prefix"
|
|
23451
|
-
}, F ? Rt(F({ currentValue:
|
|
23451
|
+
}, F ? Rt(F({ currentValue: q, diffConf: _ })) : [
|
|
23452
23452
|
l(Jr, {
|
|
23453
23453
|
content: fe.content,
|
|
23454
23454
|
icon: fe.icon,
|
|
@@ -23457,10 +23457,10 @@ const Jr = rt({
|
|
|
23457
23457
|
]) : Ve(),
|
|
23458
23458
|
l("div", {
|
|
23459
23459
|
class: "vxe-countdown--content"
|
|
23460
|
-
}, k ? Rt(k({ currentValue:
|
|
23460
|
+
}, k ? Rt(k({ currentValue: q, diffConf: _ })) : P()),
|
|
23461
23461
|
z || ne ? l("div", {
|
|
23462
23462
|
class: "vxe-countdown--suffix"
|
|
23463
|
-
}, z ? Rt(z({ currentValue:
|
|
23463
|
+
}, z ? Rt(z({ currentValue: q, diffConf: _ })) : [
|
|
23464
23464
|
l(Jr, {
|
|
23465
23465
|
content: re.content,
|
|
23466
23466
|
icon: re.icon,
|
|
@@ -23643,7 +23643,7 @@ const la = rt({
|
|
|
23643
23643
|
}), P = N(() => {
|
|
23644
23644
|
const { type: pe } = e;
|
|
23645
23645
|
return pe === "time" || pe === "datetime";
|
|
23646
|
-
}), H = N(() => P.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), G = N(() => e.clearable), ne = N(() => e.startDate ? i.toStringDate(e.startDate) : null),
|
|
23646
|
+
}), H = N(() => P.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), G = N(() => e.clearable), ne = N(() => e.startDate ? i.toStringDate(e.startDate) : null), q = N(() => e.endDate ? i.toStringDate(e.endDate) : null), L = N(() => ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), _ = N(() => {
|
|
23647
23647
|
const { modelValue: pe, multiple: Ue } = e, Ze = H.value, vt = F.value;
|
|
23648
23648
|
return Ue && pe && Ze ? i.toValueString(pe).split(",").map((Lt) => {
|
|
23649
23649
|
const Mt = Te(Lt, vt);
|
|
@@ -23670,7 +23670,7 @@ const la = rt({
|
|
|
23670
23670
|
const pe = ne.value, { selectMonth: Ue } = p;
|
|
23671
23671
|
return Ue && pe ? Ue <= pe : !1;
|
|
23672
23672
|
}), I = N(() => {
|
|
23673
|
-
const pe =
|
|
23673
|
+
const pe = q.value, { selectMonth: Ue } = p;
|
|
23674
23674
|
return Ue && pe ? Ue >= pe : !1;
|
|
23675
23675
|
}), J = N(() => {
|
|
23676
23676
|
const { datetimePanelValue: pe } = p, Ue = bt.value;
|
|
@@ -23971,7 +23971,7 @@ const la = rt({
|
|
|
23971
23971
|
Ue === "year" ? lt = i.getWhatYear(vt, Mt, "first") : Ue === "month" || Ue === "quarter" ? Ze === "year" ? lt = i.getWhatYear(vt, Mt, "first") : lt = i.getWhatYear(vt, 1, "first") : Ze === "year" ? lt = i.getWhatYear(vt, Mt, "first") : Ze === "month" ? lt = i.getWhatYear(vt, 1, "first") : lt = i.getWhatMonth(vt, 1, "first"), p.selectMonth = lt, b.dispatchEvent("date-next", { viewType: Ze, value: zt, type: Ue }, pe);
|
|
23972
23972
|
}
|
|
23973
23973
|
}, $t = (pe) => {
|
|
23974
|
-
const { disabledMethod: Ue } = e, { datePanelType: Ze } = p, vt = ne.value, Lt =
|
|
23974
|
+
const { disabledMethod: Ue } = e, { datePanelType: Ze } = p, vt = ne.value, Lt = q.value, { date: Mt } = pe;
|
|
23975
23975
|
return vt && vt.getTime() > Mt.getTime() || Lt && Lt.getTime() < Mt.getTime() ? !0 : Ue ? Ue({ type: Ze, viewType: Ze, date: Mt, $datePicker: y }) : !1;
|
|
23976
23976
|
}, At = (pe) => {
|
|
23977
23977
|
const { type: Ue, multiple: Ze } = e, { datePanelType: vt } = p;
|
|
@@ -23984,12 +23984,12 @@ const la = rt({
|
|
|
23984
23984
|
$t({ date: pe }) || (Z.value.some((Ze) => i.isDateSame(Ze.date, pe, "yyyy")) || Qe(pe), be(pe));
|
|
23985
23985
|
}, _t = (pe) => {
|
|
23986
23986
|
$t({ date: pe }) || (Ce.value.some((Ze) => i.isDateSame(Ze.date, pe, "yyyyq")) || Qe(pe), be(pe));
|
|
23987
|
-
},
|
|
23987
|
+
}, U = (pe) => {
|
|
23988
23988
|
$t({ date: pe }) || (de.value.some((Ze) => i.isDateSame(Ze.date, pe, "yyyyMM")) || Qe(pe), be(pe));
|
|
23989
23989
|
}, on = (pe) => {
|
|
23990
23990
|
if (!$t(pe)) {
|
|
23991
23991
|
const { datePanelType: Ue } = p;
|
|
23992
|
-
Ue === "month" ?
|
|
23992
|
+
Ue === "month" ? U(pe.date) : Ue === "quarter" ? _t(pe.date) : Ue === "year" ? qt(pe.date) : Pt(pe.date);
|
|
23993
23993
|
}
|
|
23994
23994
|
}, rn = (pe) => {
|
|
23995
23995
|
if (pe) {
|
|
@@ -24038,7 +24038,7 @@ const la = rt({
|
|
|
24038
24038
|
Lt ? lt = i.getWhatQuarter(lt, -1) : Mt ? lt = i.getWhatQuarter(lt, -2) : zt ? lt = i.getWhatQuarter(lt, 1) : jt && (lt = i.getWhatQuarter(lt, 2)), _t(lt);
|
|
24039
24039
|
} else if (vt === "month") {
|
|
24040
24040
|
let lt = i.getWhatMonth(Ze || Date.now(), 0, "first");
|
|
24041
|
-
Lt ? lt = i.getWhatMonth(lt, -1) : Mt ? lt = i.getWhatMonth(lt, -4) : zt ? lt = i.getWhatMonth(lt, 1) : jt && (lt = i.getWhatMonth(lt, 4)),
|
|
24041
|
+
Lt ? lt = i.getWhatMonth(lt, -1) : Mt ? lt = i.getWhatMonth(lt, -4) : zt ? lt = i.getWhatMonth(lt, 1) : jt && (lt = i.getWhatMonth(lt, 4)), U(lt);
|
|
24042
24042
|
} else {
|
|
24043
24043
|
let lt = Ze || i.getWhatDay(Date.now(), 0, "first");
|
|
24044
24044
|
const Ot = De.value;
|
|
@@ -24795,7 +24795,7 @@ const Ol = [], nu = rt({
|
|
|
24795
24795
|
}, ne = () => {
|
|
24796
24796
|
const { drawerZIndex: I } = d;
|
|
24797
24797
|
Ol.some((J) => J.reactData.visible && J.reactData.drawerZIndex > I) && v();
|
|
24798
|
-
},
|
|
24798
|
+
}, q = (I) => {
|
|
24799
24799
|
I.preventDefault();
|
|
24800
24800
|
const { visibleHeight: J, visibleWidth: ie } = Ml(), W = 0, ce = I.target.getAttribute("type"), De = 0, se = 0, B = ie, Y = J, oe = S(), Ce = document.onmousemove, ve = document.onmouseup, de = oe.clientWidth, ye = oe.clientHeight, He = I.clientX, Ye = I.clientY, st = oe.offsetTop, je = oe.offsetLeft, Ge = { type: "resize" };
|
|
24801
24801
|
document.onmousemove = (at) => {
|
|
@@ -24949,7 +24949,7 @@ const Ol = [], nu = rt({
|
|
|
24949
24949
|
l("span", {
|
|
24950
24950
|
class: `${He}-resize`,
|
|
24951
24951
|
type: He,
|
|
24952
|
-
onMousedown:
|
|
24952
|
+
onMousedown: q
|
|
24953
24953
|
})
|
|
24954
24954
|
]) : no()
|
|
24955
24955
|
])
|
|
@@ -25235,7 +25235,7 @@ function Pv(e) {
|
|
|
25235
25235
|
]);
|
|
25236
25236
|
}
|
|
25237
25237
|
const Yp = (e, t, n) => {
|
|
25238
|
-
const o = e.props, r = e.reactData, { data: s, rules: a, readonly: c, disabled: f, span: u, titleBackground: d, titleBold: p, titleColon: h, titleAsterisk: g, vertical: w, padding: S } = o, { collapseAll: E } = r, { folding: v, field: D, itemRender: y, showError: b, className: x, vertical: C, padding: $, children: P, showContent: H } = t, G = Nr(y) ? Mn.get(y.name) : null, ne = G ? G.formItemClassName || G.itemClassName : "",
|
|
25238
|
+
const o = e.props, r = e.reactData, { data: s, rules: a, readonly: c, disabled: f, span: u, titleBackground: d, titleBold: p, titleColon: h, titleAsterisk: g, vertical: w, padding: S } = o, { collapseAll: E } = r, { folding: v, field: D, itemRender: y, showError: b, className: x, vertical: C, padding: $, children: P, showContent: H } = t, G = Nr(y) ? Mn.get(y.name) : null, ne = G ? G.formItemClassName || G.itemClassName : "", q = t.span || u, L = i.eqNull($) ? S : $, _ = i.eqNull(C) ? w : C, fe = i.eqNull(t.titleBackground) ? d : t.titleBackground, re = i.eqNull(t.titleBold) ? p : t.titleBold, F = i.eqNull(t.titleColon) ? h : t.titleColon, z = i.eqNull(t.titleAsterisk) ? g : t.titleAsterisk, k = { data: s, disabled: f, readonly: c, field: D, property: D, item: t, $form: e, $grid: e.xegrid }, I = P && P.length > 0;
|
|
25239
25239
|
let J = !1, ie = !1;
|
|
25240
25240
|
if (!c && a) {
|
|
25241
25241
|
const W = a[D];
|
|
@@ -25245,7 +25245,7 @@ const Yp = (e, t, n) => {
|
|
|
25245
25245
|
n || I ? "vxe-form--group" : "",
|
|
25246
25246
|
"vxe-form--item",
|
|
25247
25247
|
t.id,
|
|
25248
|
-
|
|
25248
|
+
q ? `vxe-form--item-col_${q} is--span` : "",
|
|
25249
25249
|
x ? i.isFunction(x) ? x(k) : x : "",
|
|
25250
25250
|
ne ? i.isFunction(ne) ? ne(k) : ne : "",
|
|
25251
25251
|
{
|
|
@@ -25275,7 +25275,7 @@ const Yp = (e, t, n) => {
|
|
|
25275
25275
|
];
|
|
25276
25276
|
};
|
|
25277
25277
|
function Zp(e, t, n) {
|
|
25278
|
-
const o = e.props, { data: r, readonly: s, disabled: a, titleAlign: c, titleWidth: f, titleOverflow: u, vertical: d } = o, { slots: p, title: h, field: g, itemRender: w, titleOverflow: S, vertical: E, showTitle: v, titleClassName: D, titleStyle: y, titlePrefix: b, titleSuffix: x, children: C, showContent: $ } = t, { computeTooltipOpts: P } = e.getComputeMaps(), H = P.value, G = Nr(w) ? Mn.get(w.name) : null, ne = G ? G.formItemTitleClassName || G.itemTitleClassName : "",
|
|
25278
|
+
const o = e.props, { data: r, readonly: s, disabled: a, titleAlign: c, titleWidth: f, titleOverflow: u, vertical: d } = o, { slots: p, title: h, field: g, itemRender: w, titleOverflow: S, vertical: E, showTitle: v, titleClassName: D, titleStyle: y, titlePrefix: b, titleSuffix: x, children: C, showContent: $ } = t, { computeTooltipOpts: P } = e.getComputeMaps(), H = P.value, G = Nr(w) ? Mn.get(w.name) : null, ne = G ? G.formItemTitleClassName || G.itemTitleClassName : "", q = G ? G.formItemTitleStyle || G.itemTitleStyle : null, L = i.eqNull(E) ? d : E, _ = i.eqNull(t.titleAlign) ? c : t.titleAlign, fe = L ? null : i.eqNull(t.titleWidth) ? f : t.titleWidth, re = i.eqNull(S) ? u : S, F = re === "ellipsis", z = re === "title", k = re === !0 || re === "tooltip", I = z || k || F, J = { data: r, disabled: a, readonly: s, field: g, property: g, item: t, $form: e, $grid: e.xegrid }, ie = p ? p.title : null, W = p ? p.extra : null, Z = v !== !1 && (h || ie), ce = C && C.length > 0, De = [];
|
|
25279
25279
|
b && De.push(b.content || b.message ? l(al, Object.assign(Object.assign(Object.assign({}, H), b), { content: Un(b.content || b.message) }), {
|
|
25280
25280
|
default: () => Iv(b)
|
|
25281
25281
|
}) : Iv(b));
|
|
@@ -25300,7 +25300,7 @@ function Zp(e, t, n) {
|
|
|
25300
25300
|
I ? "is--ellipsis" : "",
|
|
25301
25301
|
ne ? i.isFunction(ne) ? ne(J) : ne : "",
|
|
25302
25302
|
D ? i.isFunction(D) ? D(J) : D : ""
|
|
25303
|
-
], style: Object.assign({}, i.isFunction(
|
|
25303
|
+
], style: Object.assign({}, i.isFunction(q) ? q(J) : q, i.isFunction(y) ? y(J) : y, fe && $ !== !1 ? {
|
|
25304
25304
|
width: dn(fe)
|
|
25305
25305
|
} : null), title: z ? Un(h) : null }, Y), [
|
|
25306
25306
|
l("div", {
|
|
@@ -25575,7 +25575,7 @@ const Vv = (e, t) => {
|
|
|
25575
25575
|
de && ye ? ye({ data: B, field: Ce, property: Ce, item: oe, $form: v, $grid: v.xegrid }) : Ce && i.set(B, Ce, G(oe, B));
|
|
25576
25576
|
}
|
|
25577
25577
|
}), H();
|
|
25578
|
-
},
|
|
25578
|
+
}, q = (B) => {
|
|
25579
25579
|
B.preventDefault(), ne(), p.dispatchEvent("reset", { data: e.data }, B);
|
|
25580
25580
|
}, L = (B) => {
|
|
25581
25581
|
const Y = u.value;
|
|
@@ -25747,7 +25747,7 @@ const Vv = (e, t) => {
|
|
|
25747
25747
|
"is--loading": B
|
|
25748
25748
|
}],
|
|
25749
25749
|
onSubmit: z,
|
|
25750
|
-
onReset:
|
|
25750
|
+
onReset: q
|
|
25751
25751
|
}, [
|
|
25752
25752
|
l("div", {
|
|
25753
25753
|
class: "vxe-form--wrapper vxe-form--item-row"
|
|
@@ -26598,7 +26598,7 @@ const E7 = rt({
|
|
|
26598
26598
|
const De = Math.floor(ce.clientWidth * 0.75);
|
|
26599
26599
|
G(Z, De);
|
|
26600
26600
|
}
|
|
26601
|
-
},
|
|
26601
|
+
}, q = () => {
|
|
26602
26602
|
ne(-1);
|
|
26603
26603
|
}, L = () => {
|
|
26604
26604
|
ne(1);
|
|
@@ -26652,7 +26652,7 @@ const E7 = rt({
|
|
|
26652
26652
|
}, [
|
|
26653
26653
|
ye ? l("div", {
|
|
26654
26654
|
class: "vxe-tabs-header--bar vxe-tabs-header--left-bar",
|
|
26655
|
-
onClick:
|
|
26655
|
+
onClick: q
|
|
26656
26656
|
}, [
|
|
26657
26657
|
l("span", {
|
|
26658
26658
|
class: xt().TABS_TAB_BUTTON_LEFT
|
|
@@ -27074,7 +27074,7 @@ const bs = rt({
|
|
|
27074
27074
|
}
|
|
27075
27075
|
}, Object.assign(u, p);
|
|
27076
27076
|
const x = () => {
|
|
27077
|
-
const { openIcon: C, closeIcon: $, openActiveIcon: P, closeActiveIcon: H } = e, G = a.value, ne = S.value,
|
|
27077
|
+
const { openIcon: C, closeIcon: $, openActiveIcon: P, closeActiveIcon: H } = e, G = a.value, ne = S.value, q = g.value, L = w.value, _ = h.value;
|
|
27078
27078
|
return l("div", {
|
|
27079
27079
|
class: ["vxe-switch", ne ? "is--on" : "is--off", {
|
|
27080
27080
|
[`size--${G}`]: G,
|
|
@@ -27097,7 +27097,7 @@ const bs = rt({
|
|
|
27097
27097
|
C ? l("i", {
|
|
27098
27098
|
class: ["vxe-switch--label-icon", C]
|
|
27099
27099
|
}) : Ve(),
|
|
27100
|
-
|
|
27100
|
+
q
|
|
27101
27101
|
]),
|
|
27102
27102
|
l("span", {
|
|
27103
27103
|
class: "vxe-switch--label vxe-switch--label-off"
|
|
@@ -27507,7 +27507,7 @@ const bs = rt({
|
|
|
27507
27507
|
a.visible = !1, o("update:modelValue", !1), bt("hide", K, null);
|
|
27508
27508
|
}, 200), W());
|
|
27509
27509
|
}).catch((A) => A), me();
|
|
27510
|
-
},
|
|
27510
|
+
}, q = (Te) => {
|
|
27511
27511
|
const $e = "close";
|
|
27512
27512
|
bt($e, { type: $e }, Te), ne($e);
|
|
27513
27513
|
}, L = (Te) => {
|
|
@@ -27842,7 +27842,7 @@ const bs = rt({
|
|
|
27842
27842
|
$e ? l("div", {
|
|
27843
27843
|
class: ["vxe-modal--close-btn", "trigger--btn"],
|
|
27844
27844
|
title: Re("vxe.modal.close"),
|
|
27845
|
-
onClick:
|
|
27845
|
+
onClick: q
|
|
27846
27846
|
}, [
|
|
27847
27847
|
l("i", {
|
|
27848
27848
|
class: xt().MODAL_CLOSE
|
|
@@ -28144,7 +28144,7 @@ const bs = rt({
|
|
|
28144
28144
|
return z ? z[F.field] : null;
|
|
28145
28145
|
}, G = (F, z, k) => {
|
|
28146
28146
|
n(F, Zt(k, { $formView: h }, z));
|
|
28147
|
-
}, ne = (F) => F ? i.isArray(F) ? F.map((z) => z.name) : [F.name] : null,
|
|
28147
|
+
}, ne = (F) => F ? i.isArray(F) ? F.map((z) => z.name) : [F.name] : null, q = {
|
|
28148
28148
|
dispatchEvent: G,
|
|
28149
28149
|
clearConfig: g,
|
|
28150
28150
|
loadConfig: w,
|
|
@@ -28182,7 +28182,7 @@ const bs = rt({
|
|
|
28182
28182
|
}, _ = (F) => {
|
|
28183
28183
|
G("reset", F, F.$event);
|
|
28184
28184
|
};
|
|
28185
|
-
Object.assign(h,
|
|
28185
|
+
Object.assign(h, q, {});
|
|
28186
28186
|
const re = () => {
|
|
28187
28187
|
const { readonly: F, disabled: z, modelValue: k } = e, { formConfig: I, formRules: J, widgetObjList: ie } = u, W = c.value, Z = o.top, ce = o.bottom, De = o.header, se = o.footer;
|
|
28188
28188
|
return l("div", {
|
|
@@ -28447,14 +28447,14 @@ const Gn = rt({
|
|
|
28447
28447
|
}), ne = N(() => {
|
|
28448
28448
|
const { disabled: X } = e;
|
|
28449
28449
|
return X === null ? u ? u.props.disabled : !1 : X;
|
|
28450
|
-
}),
|
|
28450
|
+
}), q = N(() => {
|
|
28451
28451
|
const { maxLength: X, maxlength: Ae } = e, Ke = X || Ae;
|
|
28452
28452
|
return _.value && !i.toNumber(Ke) ? 16 : Ke;
|
|
28453
28453
|
}), L = N(() => {
|
|
28454
28454
|
const { type: X } = e;
|
|
28455
28455
|
return X === "time" || X === "datetime";
|
|
28456
28456
|
}), _ = N(() => ["number", "integer", "float"].indexOf(e.type) > -1), fe = N(() => i.getSize(g.inputValue)), re = N(() => {
|
|
28457
|
-
const X = fe.value, Ae =
|
|
28457
|
+
const X = fe.value, Ae = q.value;
|
|
28458
28458
|
return Ae && X > i.toNumber(Ae);
|
|
28459
28459
|
}), F = N(() => L.value || ["date", "week", "month", "quarter", "year"].indexOf(e.type) > -1), z = N(() => e.type === "password"), k = N(() => e.type === "search"), I = N(() => i.toInteger(e.digits) || 1), J = N(() => {
|
|
28460
28460
|
const { type: X } = e, Ae = I.value, Ke = e.step;
|
|
@@ -28671,7 +28671,7 @@ const Gn = rt({
|
|
|
28671
28671
|
const { max: X } = e, { inputValue: Ae } = g, Ke = _.value, ht = Ee.value;
|
|
28672
28672
|
return (Ae || Ae === 0) && Ke && X !== null ? ht >= i.toNumber(X) : !1;
|
|
28673
28673
|
}), Qe = (X) => {
|
|
28674
|
-
const { type: Ae, exponential: Ke } = e, ht =
|
|
28674
|
+
const { type: Ae, exponential: Ke } = e, ht = q.value, It = I.value, Ct = Ae === "float" ? Uu(X, It) : i.toValueString(X);
|
|
28675
28675
|
return Ke && (X === Ct || i.toValueString(X).toLowerCase() === i.toNumber(Ct).toExponential()) ? X : Ct.slice(0, ht);
|
|
28676
28676
|
}, nt = (X) => {
|
|
28677
28677
|
const { inputValue: Ae } = g;
|
|
@@ -28738,7 +28738,7 @@ const Gn = rt({
|
|
|
28738
28738
|
}, _t = (X) => {
|
|
28739
28739
|
const Ae = i.getWhatMonth(X, 0, "first");
|
|
28740
28740
|
i.isEqual(Ae, g.selectMonth) || (g.selectMonth = Ae);
|
|
28741
|
-
},
|
|
28741
|
+
}, U = (X) => {
|
|
28742
28742
|
const { modelValue: Ae, multiple: Ke } = e, { datetimePanelValue: ht } = g, It = L.value, Ct = Y.value, Yt = je.value;
|
|
28743
28743
|
if (e.type === "week") {
|
|
28744
28744
|
const ot = i.toNumber(e.selectDay);
|
|
@@ -28783,7 +28783,7 @@ const Gn = rt({
|
|
|
28783
28783
|
(It !== i.toDateString(Ho, ot) || It !== i.toDateString(fn, ot)) && (On = !0, Ct.setHours(fn.getHours()), Ct.setMinutes(fn.getMinutes()), Ct.setSeconds(fn.getSeconds()));
|
|
28784
28784
|
} else
|
|
28785
28785
|
On = !0;
|
|
28786
|
-
g.inputValue = i.toDateString(fn, ot, { firstDay: Yn }), On &&
|
|
28786
|
+
g.inputValue = i.toDateString(fn, ot, { firstDay: Yn }), On && U(fn);
|
|
28787
28787
|
}
|
|
28788
28788
|
else
|
|
28789
28789
|
qt();
|
|
@@ -28856,7 +28856,7 @@ const Gn = rt({
|
|
|
28856
28856
|
Ae === "year" ? ot = i.getWhatYear(ht, -Ct, "first") : Ae === "month" || Ae === "quarter" ? Ke === "year" ? ot = i.getWhatYear(ht, -Ct, "first") : ot = i.getWhatYear(ht, -1, "first") : Ke === "year" ? ot = i.getWhatYear(ht, -Ct, "first") : Ke === "month" ? ot = i.getWhatYear(ht, -1, "first") : ot = i.getWhatMonth(ht, -1, "first"), g.selectMonth = ot, C.dispatchEvent("date-prev", { viewType: Ke, viewDate: ot, value: Yt, type: Ae }, X);
|
|
28857
28857
|
}
|
|
28858
28858
|
}, qs = (X) => {
|
|
28859
|
-
Wr(), e.multiple || (
|
|
28859
|
+
Wr(), e.multiple || (U(g.currentDate), Bt()), C.dispatchEvent("date-today", { type: e.type }, X);
|
|
28860
28860
|
}, zr = (X) => {
|
|
28861
28861
|
const { type: Ae } = e, { datePanelType: Ke, selectMonth: ht, inputValue: It } = g, { yearSize: Ct } = w, Yt = It;
|
|
28862
28862
|
if (!ve.value) {
|
|
@@ -28868,7 +28868,7 @@ const Gn = rt({
|
|
|
28868
28868
|
return ht && ht.getTime() > Ct.getTime() || It && It.getTime() < Ct.getTime() ? !0 : Ae ? Ae({ type: Ke, viewType: Ke, date: Ct, $input: x }) : !1;
|
|
28869
28869
|
}, Ds = (X) => {
|
|
28870
28870
|
const { type: Ae, multiple: Ke } = e, { datePanelType: ht } = g;
|
|
28871
|
-
Ae === "month" ? ht === "year" ? (g.datePanelType = "month", _t(X)) : (
|
|
28871
|
+
Ae === "month" ? ht === "year" ? (g.datePanelType = "month", _t(X)) : (U(X), Ke || Bt()) : Ae === "year" ? (U(X), Ke || Bt()) : Ae === "quarter" ? ht === "year" ? (g.datePanelType = "quarter", _t(X)) : (U(X), Ke || Bt()) : ht === "month" ? (g.datePanelType = Ae === "week" ? Ae : "day", _t(X)) : ht === "year" ? (g.datePanelType = "month", _t(X)) : (U(X), Ae === "datetime" || Ke || Bt());
|
|
28872
28872
|
}, sr = (X) => {
|
|
28873
28873
|
Jn(X) || Ds(X.date);
|
|
28874
28874
|
}, jr = (X) => {
|
|
@@ -28907,7 +28907,7 @@ const Gn = rt({
|
|
|
28907
28907
|
} else
|
|
28908
28908
|
et(Ct.join(","), { type: "update" });
|
|
28909
28909
|
} else
|
|
28910
|
-
|
|
28910
|
+
U(Ke || g.currentDate);
|
|
28911
28911
|
}
|
|
28912
28912
|
Bt();
|
|
28913
28913
|
}, hl = (X, Ae) => {
|
|
@@ -29448,7 +29448,7 @@ const Gn = rt({
|
|
|
29448
29448
|
ref: S,
|
|
29449
29449
|
class: ["vxe-input--readonly", `type--${Ke}`, X]
|
|
29450
29450
|
}, Vt);
|
|
29451
|
-
const qo = re.value, io = fe.value, Qo = ee.value, Ks =
|
|
29451
|
+
const qo = re.value, io = fe.value, Qo = ee.value, Ks = q.value, Pd = R.value, Vd = Q.value, qa = ie.value, lc = It && ["text", "search"].includes(Ke), bl = rc(), Ts = Ha();
|
|
29452
29452
|
return l("div", {
|
|
29453
29453
|
ref: S,
|
|
29454
29454
|
class: ["vxe-input", `type--${Ke}`, X, {
|
|
@@ -29898,7 +29898,7 @@ const kr = rt({
|
|
|
29898
29898
|
return Un(Ie);
|
|
29899
29899
|
const We = ae().select.placeholder;
|
|
29900
29900
|
return We ? Un(We) : Re("vxe.base.pleaseSelect");
|
|
29901
|
-
}), H = N(() => Object.assign({}, e.optionProps)), G = N(() => Object.assign({}, e.optionGroupProps)), ne = N(() => H.value.label || "label"),
|
|
29901
|
+
}), H = N(() => Object.assign({}, e.optionProps)), G = N(() => Object.assign({}, e.optionGroupProps)), ne = N(() => H.value.label || "label"), q = N(() => H.value.value || "value"), L = N(() => G.value.label || "label"), _ = N(() => G.value.options || "options"), fe = N(() => {
|
|
29902
29902
|
const { modelValue: Ie, multiple: We, max: it } = e;
|
|
29903
29903
|
return We && it ? (i.isArray(Ie) ? Ie.length : i.eqNull(Ie) ? 0 : 1) >= i.toNumber(it) : !1;
|
|
29904
29904
|
}), re = N(() => Object.assign({}, ae().select.scrollY, e.scrollY)), F = N(() => Object.assign({}, ae().select.optionConfig, e.optionConfig)), z = N(() => i.toNumber(e.multiCharOverflow)), k = N(() => {
|
|
@@ -29924,11 +29924,11 @@ const kr = rt({
|
|
|
29924
29924
|
const { optFullValMaps: We } = D, it = ne.value, $t = v.reactFlag ? We[Ie] : null;
|
|
29925
29925
|
return $t ? $t.item[it] : i.toValueString(Ie);
|
|
29926
29926
|
}, se = (Ie) => {
|
|
29927
|
-
const We = _.value, it =
|
|
29927
|
+
const We = _.value, it = q.value, $t = W(), At = {}, Jt = {}, Pt = [], qt = (_t) => {
|
|
29928
29928
|
Pt.push(_t);
|
|
29929
|
-
let
|
|
29930
|
-
|
|
29931
|
-
key:
|
|
29929
|
+
let U = Z(_t);
|
|
29930
|
+
U || (U = V7(), _t[$t] = U), Jt[_t[it]] = {
|
|
29931
|
+
key: U,
|
|
29932
29932
|
item: _t,
|
|
29933
29933
|
_index: -1
|
|
29934
29934
|
};
|
|
@@ -29937,10 +29937,10 @@ const kr = rt({
|
|
|
29937
29937
|
qt(_t), _t[We] && (At[_t[$t]] = _t, _t[We].forEach(qt));
|
|
29938
29938
|
}), D.fullData = Pt, D.optGroupKeyMaps = At, D.optFullValMaps = Jt, v.reactFlag++, B();
|
|
29939
29939
|
}, B = () => {
|
|
29940
|
-
const { filterable: Ie, filterMethod: We } = e, { searchValue: it } = v, { fullData: $t, optFullValMaps: At } = D, Jt = ne.value, Pt =
|
|
29940
|
+
const { filterable: Ie, filterMethod: We } = e, { searchValue: it } = v, { fullData: $t, optFullValMaps: At } = D, Jt = ne.value, Pt = q.value, qt = `${it || ""}`.toLowerCase();
|
|
29941
29941
|
let _t = [];
|
|
29942
|
-
return Ie && We ? _t = $t.filter((
|
|
29943
|
-
const rn = At[
|
|
29942
|
+
return Ie && We ? _t = $t.filter((U) => Pc(U) && We({ group: null, option: U, searchValue: qt })) : Ie ? _t = $t.filter((U) => Pc(U) && (!qt || `${U[Jt]}`.toLowerCase().indexOf(qt) > -1)) : _t = $t.filter(Pc), _t.forEach((U, on) => {
|
|
29943
|
+
const rn = At[U[Pt]];
|
|
29944
29944
|
rn && (rn._index = on);
|
|
29945
29945
|
}), v.afterVisibleList = _t, me();
|
|
29946
29946
|
}, Y = (Ie) => {
|
|
@@ -29950,19 +29950,19 @@ const kr = rt({
|
|
|
29950
29950
|
}, Ce = () => me().then(() => {
|
|
29951
29951
|
const { placement: Ie } = e, { panelIndex: We } = v, it = d.value, $t = w.value, At = $.value;
|
|
29952
29952
|
if ($t && it) {
|
|
29953
|
-
const Jt = it.offsetHeight, Pt = it.offsetWidth, qt = $t.offsetHeight, _t = $t.offsetWidth,
|
|
29953
|
+
const Jt = it.offsetHeight, Pt = it.offsetWidth, qt = $t.offsetHeight, _t = $t.offsetWidth, U = 5, on = {
|
|
29954
29954
|
zIndex: We
|
|
29955
29955
|
}, { boundingTop: rn, boundingLeft: $n, visibleHeight: In, visibleWidth: Pn } = Hs(it);
|
|
29956
29956
|
let pn = "bottom";
|
|
29957
29957
|
if (At) {
|
|
29958
29958
|
let bn = $n, Vn = rn + Jt;
|
|
29959
|
-
Ie === "top" ? (pn = "top", Vn = rn - qt) : Ie || (Vn + qt +
|
|
29959
|
+
Ie === "top" ? (pn = "top", Vn = rn - qt) : Ie || (Vn + qt + U > In && (pn = "top", Vn = rn - qt), Vn < U && (pn = "bottom", Vn = rn + Jt)), bn + _t + U > Pn && (bn -= bn + _t + U - Pn), bn < U && (bn = U), Object.assign(on, {
|
|
29960
29960
|
left: `${bn}px`,
|
|
29961
29961
|
top: `${Vn}px`,
|
|
29962
29962
|
minWidth: `${Pt}px`
|
|
29963
29963
|
});
|
|
29964
29964
|
} else
|
|
29965
|
-
Ie === "top" ? (pn = "top", on.bottom = `${Jt}px`) : Ie || rn + Jt + qt > In && rn - Jt - qt >
|
|
29965
|
+
Ie === "top" ? (pn = "top", on.bottom = `${Jt}px`) : Ie || rn + Jt + qt > In && rn - Jt - qt > U && (pn = "top", on.bottom = `${Jt}px`);
|
|
29966
29966
|
return v.panelStyle = on, v.panelPlacement = pn, me();
|
|
29967
29967
|
}
|
|
29968
29968
|
}), ve = () => {
|
|
@@ -29983,15 +29983,15 @@ const kr = rt({
|
|
|
29983
29983
|
}, Ye = (Ie, We) => {
|
|
29984
29984
|
He(We, null), de();
|
|
29985
29985
|
}, st = (Ie, We) => {
|
|
29986
|
-
const { modelValue: it, multiple: $t } = e, { remoteValMaps: At } = D, Jt =
|
|
29986
|
+
const { modelValue: it, multiple: $t } = e, { remoteValMaps: At } = D, Jt = q.value, Pt = We[Jt], qt = At[Pt];
|
|
29987
29987
|
if (qt ? qt.item = We : At[Pt] = {
|
|
29988
29988
|
key: Z(We),
|
|
29989
29989
|
item: We,
|
|
29990
29990
|
_index: -1
|
|
29991
29991
|
}, $t) {
|
|
29992
29992
|
let _t = [];
|
|
29993
|
-
const
|
|
29994
|
-
i.findIndexOf(
|
|
29993
|
+
const U = i.eqNull(it) ? [] : i.isArray(it) ? it : [it];
|
|
29994
|
+
i.findIndexOf(U, (rn) => rn === Pt) === -1 ? _t = U.concat([Pt]) : _t = U.filter((rn) => rn !== Pt), ye(Ie, _t);
|
|
29995
29995
|
} else
|
|
29996
29996
|
ye(Ie, Pt), de();
|
|
29997
29997
|
v.reactFlag++;
|
|
@@ -30011,7 +30011,7 @@ const kr = rt({
|
|
|
30011
30011
|
const We = Ie.disabled, it = Z(Ie);
|
|
30012
30012
|
return !We && !Et(it);
|
|
30013
30013
|
}, bt = (Ie, We) => {
|
|
30014
|
-
const { afterVisibleList: it } = v, { optFullValMaps: $t } = D, At =
|
|
30014
|
+
const { afterVisibleList: it } = v, { optFullValMaps: $t } = D, At = q.value;
|
|
30015
30015
|
if (!Ie)
|
|
30016
30016
|
for (let Pt = 0; Pt < it.length - 1; Pt++) {
|
|
30017
30017
|
const qt = it[Pt];
|
|
@@ -30040,20 +30040,20 @@ const kr = rt({
|
|
|
30040
30040
|
}, dt = (Ie) => {
|
|
30041
30041
|
const { clearable: We } = e, { visiblePanel: it, currentOption: $t } = v;
|
|
30042
30042
|
if (!C.value) {
|
|
30043
|
-
const Jt = ct.hasKey(Ie, Xt.TAB), Pt = ct.hasKey(Ie, Xt.ENTER), qt = ct.hasKey(Ie, Xt.ESCAPE), _t = ct.hasKey(Ie, Xt.ARROW_UP),
|
|
30043
|
+
const Jt = ct.hasKey(Ie, Xt.TAB), Pt = ct.hasKey(Ie, Xt.ENTER), qt = ct.hasKey(Ie, Xt.ESCAPE), _t = ct.hasKey(Ie, Xt.ARROW_UP), U = ct.hasKey(Ie, Xt.ARROW_DOWN), on = ct.hasKey(Ie, Xt.DELETE), rn = ct.hasKey(Ie, Xt.SPACEBAR);
|
|
30044
30044
|
if (Jt && (v.isActivated = !1), it)
|
|
30045
30045
|
if (qt || Jt)
|
|
30046
30046
|
de();
|
|
30047
30047
|
else if (Pt)
|
|
30048
30048
|
Ie.preventDefault(), Ie.stopPropagation(), st(Ie, $t);
|
|
30049
|
-
else if (_t ||
|
|
30049
|
+
else if (_t || U) {
|
|
30050
30050
|
Ie.preventDefault();
|
|
30051
|
-
const $n = bt($t,
|
|
30052
|
-
$n && (Y($n), be($n,
|
|
30051
|
+
const $n = bt($t, U);
|
|
30052
|
+
$n && (Y($n), be($n, U));
|
|
30053
30053
|
} else
|
|
30054
30054
|
rn && Ie.preventDefault();
|
|
30055
30055
|
else
|
|
30056
|
-
(_t ||
|
|
30056
|
+
(_t || U || Pt || rn) && v.isActivated && (Ie.preventDefault(), ve());
|
|
30057
30057
|
v.isActivated && on && We && He(Ie, null);
|
|
30058
30058
|
}
|
|
30059
30059
|
}, gt = () => {
|
|
@@ -30100,17 +30100,17 @@ const kr = rt({
|
|
|
30100
30100
|
} else
|
|
30101
30101
|
A();
|
|
30102
30102
|
}), be = (Ie, We) => {
|
|
30103
|
-
const { scrollYLoad: it } = v, { optFullValMaps: $t, scrollYStore: At } = D, Jt =
|
|
30103
|
+
const { scrollYLoad: it } = v, { optFullValMaps: $t, scrollYStore: At } = D, Jt = q.value, Pt = $t[Ie[Jt]];
|
|
30104
30104
|
if (Pt) {
|
|
30105
30105
|
const qt = Pt.key, _t = Pt._index;
|
|
30106
30106
|
if (_t > -1) {
|
|
30107
|
-
const
|
|
30108
|
-
if (
|
|
30107
|
+
const U = g.value, rn = w.value.querySelector(`[optid='${qt}']`);
|
|
30108
|
+
if (U)
|
|
30109
30109
|
if (rn) {
|
|
30110
|
-
const $n =
|
|
30111
|
-
We ? rn.offsetTop + rn.offsetHeight -
|
|
30110
|
+
const $n = U.offsetHeight, In = 1;
|
|
30111
|
+
We ? rn.offsetTop + rn.offsetHeight - U.scrollTop > $n && (U.scrollTop = rn.offsetTop + rn.offsetHeight - $n) : (rn.offsetTop + In < U.scrollTop || rn.offsetTop + In > U.scrollTop + U.clientHeight) && (U.scrollTop = rn.offsetTop - In);
|
|
30112
30112
|
} else
|
|
30113
|
-
it && (We ?
|
|
30113
|
+
it && (We ? U.scrollTop = _t * At.rowHeight - U.clientHeight + At.rowHeight : U.scrollTop = _t * At.rowHeight);
|
|
30114
30114
|
}
|
|
30115
30115
|
}
|
|
30116
30116
|
}, Ee = (Ie, We) => {
|
|
@@ -30132,8 +30132,8 @@ const kr = rt({
|
|
|
30132
30132
|
const Ie = d.value;
|
|
30133
30133
|
return Ie && Ie.clientWidth && Ie.clientHeight ? Q() : Promise.resolve();
|
|
30134
30134
|
}, Qe = (Ie) => {
|
|
30135
|
-
const { scrollYStore: We } = D, { startIndex: it, endIndex: $t, visibleSize: At, offsetSize: Jt, rowHeight: Pt } = We, _t = Ie.target.scrollTop,
|
|
30136
|
-
(
|
|
30135
|
+
const { scrollYStore: We } = D, { startIndex: it, endIndex: $t, visibleSize: At, offsetSize: Jt, rowHeight: Pt } = We, _t = Ie.target.scrollTop, U = Math.floor(_t / Pt), on = Math.max(0, U - 1 - Jt), rn = U + At + Jt;
|
|
30136
|
+
(U <= it || U >= $t - At - 1) && (it !== on || $t !== rn) && (We.startIndex = on, We.endIndex = rn, R());
|
|
30137
30137
|
}, nt = () => {
|
|
30138
30138
|
const { lastScrollTime: We } = D;
|
|
30139
30139
|
return !!(We && Date.now() < We + 250);
|
|
@@ -30189,11 +30189,11 @@ const kr = rt({
|
|
|
30189
30189
|
clearScroll: ut
|
|
30190
30190
|
});
|
|
30191
30191
|
const yn = (Ie, We) => {
|
|
30192
|
-
const { optionKey: it, modelValue: $t } = e, { currentOption: At } = v, Jt = F.value, Pt = ne.value, qt =
|
|
30192
|
+
const { optionKey: it, modelValue: $t } = e, { currentOption: At } = v, Jt = F.value, Pt = ne.value, qt = q.value, _t = L.value, { useKey: U } = Jt, on = n.option;
|
|
30193
30193
|
return Ie.map((rn, $n) => {
|
|
30194
30194
|
const { slots: In, className: Pn } = rn, pn = Z(rn), bn = rn[qt], Vn = Et(pn), vo = i.isArray($t) ? $t.indexOf(bn) > -1 : $t === bn, ko = !Vn || Pc(rn), ho = K(vo, rn, We), Xo = In ? In.default : null, zo = { option: rn, group: null, $select: b };
|
|
30195
30195
|
return ko ? l("div", {
|
|
30196
|
-
key:
|
|
30196
|
+
key: U || it ? pn : $n,
|
|
30197
30197
|
class: ["vxe-select-option", Pn ? i.isFunction(Pn) ? Pn(zo) : Pn : "", {
|
|
30198
30198
|
"vxe-select-optgroup": Vn,
|
|
30199
30199
|
"is--disabled": ho,
|
|
@@ -30233,7 +30233,7 @@ const kr = rt({
|
|
|
30233
30233
|
}, e.emptyText || Re("vxe.select.emptyText"))
|
|
30234
30234
|
];
|
|
30235
30235
|
}, Bt = () => {
|
|
30236
|
-
const { className: Ie, popupClassName: We, loading: it, filterable: $t } = e, { initialized: At, isActivated: Jt, isAniVisible: Pt, visiblePanel: qt, bodyHeight: _t, topSpaceHeight:
|
|
30236
|
+
const { className: Ie, popupClassName: We, loading: it, filterable: $t } = e, { initialized: At, isActivated: Jt, isAniVisible: Pt, visiblePanel: qt, bodyHeight: _t, topSpaceHeight: U } = v, on = E.value, rn = C.value, $n = k.value, In = $.value, Pn = x.value, pn = P.value, bn = n.default, Vn = n.header, vo = n.footer, ko = n.prefix;
|
|
30237
30237
|
return Pn ? l("div", {
|
|
30238
30238
|
ref: d,
|
|
30239
30239
|
class: ["vxe-select--readonly", Ie]
|
|
@@ -30335,7 +30335,7 @@ const kr = rt({
|
|
|
30335
30335
|
ref: S,
|
|
30336
30336
|
class: "vxe-select--body",
|
|
30337
30337
|
style: {
|
|
30338
|
-
marginTop:
|
|
30338
|
+
marginTop: U ? `${U}px` : ""
|
|
30339
30339
|
}
|
|
30340
30340
|
}, en())
|
|
30341
30341
|
])
|
|
@@ -30835,7 +30835,7 @@ const kr = rt({
|
|
|
30835
30835
|
} else
|
|
30836
30836
|
f.activeWidget = k[0] || null;
|
|
30837
30837
|
return me();
|
|
30838
|
-
}, E = (F) => ($(), S(F)), v = () => i.clone(f.formData, !0), D = (F) => (f.formData = Object.assign({},
|
|
30838
|
+
}, E = (F) => ($(), S(F)), v = () => i.clone(f.formData, !0), D = (F) => (f.formData = Object.assign({}, q(), F), me()), y = (F) => {
|
|
30839
30839
|
const { widgetObjList: z } = f;
|
|
30840
30840
|
if (F) {
|
|
30841
30841
|
const k = i.toNumber(F), I = i.findTree(z, (J) => J && J.id === k, { children: "children" });
|
|
@@ -30955,7 +30955,7 @@ const kr = rt({
|
|
|
30955
30955
|
F.stopPropagation(), J >= W.length - 1 ? f.activeWidget = W[J - 1] : f.activeWidget = W[J + 1] || null, ie && ie.name === "row" ? W[J] = w() : W.splice(J, 1), f.widgetObjList = [...k], P.dispatchEvent("remove-widget", { widget: z }, F);
|
|
30956
30956
|
}
|
|
30957
30957
|
}
|
|
30958
|
-
},
|
|
30958
|
+
}, q = () => {
|
|
30959
30959
|
const { formRender: F, showPc: z, showMobile: k } = e;
|
|
30960
30960
|
let I = I7({
|
|
30961
30961
|
pcVisible: z,
|
|
@@ -30967,7 +30967,7 @@ const kr = rt({
|
|
|
30967
30967
|
}
|
|
30968
30968
|
return I;
|
|
30969
30969
|
}, L = () => {
|
|
30970
|
-
f.formData =
|
|
30970
|
+
f.formData = q();
|
|
30971
30971
|
}, _ = () => {
|
|
30972
30972
|
C();
|
|
30973
30973
|
};
|
|
@@ -31259,7 +31259,7 @@ const xa = rt({
|
|
|
31259
31259
|
const { autosize: L } = e;
|
|
31260
31260
|
L && (x(), C());
|
|
31261
31261
|
});
|
|
31262
|
-
const
|
|
31262
|
+
const q = () => {
|
|
31263
31263
|
const { className: L, resize: _, autosize: fe, showWordCount: re, countMethod: F, rows: z, cols: k } = e, { inputValue: I } = c, J = a.value, ie = w.value, W = y.value, Z = D.value, ce = S.value, De = g.value, se = E.value, B = v.value;
|
|
31264
31264
|
return De ? l("div", {
|
|
31265
31265
|
ref: f,
|
|
@@ -31305,7 +31305,7 @@ const xa = rt({
|
|
|
31305
31305
|
}, F ? `${F({ value: I })}` : `${Z}${B ? `/${B}` : ""}`) : null
|
|
31306
31306
|
]);
|
|
31307
31307
|
};
|
|
31308
|
-
return p.renderVN =
|
|
31308
|
+
return p.renderVN = q, p;
|
|
31309
31309
|
},
|
|
31310
31310
|
render() {
|
|
31311
31311
|
return this.renderVN();
|
|
@@ -32380,10 +32380,10 @@ const L7 = (e) => Re(`vxe.formDesign.widget.component.${e}`), Fo = (e) => L7(e.n
|
|
|
32380
32380
|
};
|
|
32381
32381
|
const $ = b.renderFormDesignWidgetSubtableDefaultView, P = b.renderFormDesignWidgetSubtableCellView || $, H = b.renderFormDesignWidgetSubtableEditView, G = {};
|
|
32382
32382
|
($ || P) && (G.default = (ne) => {
|
|
32383
|
-
const { isEdit:
|
|
32384
|
-
return
|
|
32383
|
+
const { isEdit: q, column: L } = ne, { editRender: _, cellRender: fe } = L, re = Object.assign({ widget: D }, ne);
|
|
32384
|
+
return q && _ && P ? Rt(P(_, re)) : $ ? Rt($(fe || {}, re)) : [];
|
|
32385
32385
|
}), H && (G.edit = (ne) => {
|
|
32386
|
-
const { column:
|
|
32386
|
+
const { column: q } = ne, { editRender: L } = q, _ = Object.assign({ widget: D }, ne);
|
|
32387
32387
|
return Rt(H(L, _));
|
|
32388
32388
|
}), C.slots = G, v.push(C);
|
|
32389
32389
|
}), E || v.push({
|
|
@@ -33123,7 +33123,7 @@ const L7 = (e) => Re(`vxe.formDesign.widget.component.${e}`), Fo = (e) => L7(e.n
|
|
|
33123
33123
|
}), ne = N(() => {
|
|
33124
33124
|
const { min: M } = e, { inputValue: te } = f, Se = H.value;
|
|
33125
33125
|
return (te || te === 0) && M !== null ? Se <= i.toNumber(M) : !1;
|
|
33126
|
-
}),
|
|
33126
|
+
}), q = N(() => {
|
|
33127
33127
|
const { max: M } = e, { inputValue: te } = f, Se = H.value;
|
|
33128
33128
|
return (te || te === 0) && M !== null ? Se >= i.toNumber(M) : !1;
|
|
33129
33129
|
}), L = (M) => i.eqNull(M) ? "" : `${M}`, _ = (M) => {
|
|
@@ -33198,7 +33198,7 @@ const L7 = (e) => Re(`vxe.formDesign.widget.component.${e}`), Fo = (e) => L7(e.n
|
|
|
33198
33198
|
oe(M), Ce(M);
|
|
33199
33199
|
}, 60);
|
|
33200
33200
|
}, ve = (M) => {
|
|
33201
|
-
const te = v.value, Se = E.value, K =
|
|
33201
|
+
const te = v.value, Se = E.value, K = q.value;
|
|
33202
33202
|
Ye(), !te && !Se && !K && Y(!0, M), S.dispatchEvent("prev-number", { value: f.inputValue }, M);
|
|
33203
33203
|
}, de = (M) => {
|
|
33204
33204
|
const te = ct.hasKey(M, Xt.ARROW_UP), Se = ct.hasKey(M, Xt.ARROW_DOWN);
|
|
@@ -33244,7 +33244,7 @@ const L7 = (e) => Re(`vxe.formDesign.widget.component.${e}`), Fo = (e) => L7(e.n
|
|
|
33244
33244
|
const { isActivated: M } = f;
|
|
33245
33245
|
M && se();
|
|
33246
33246
|
}, pt = () => {
|
|
33247
|
-
const M =
|
|
33247
|
+
const M = q.value, te = ne.value;
|
|
33248
33248
|
return l("div", {
|
|
33249
33249
|
class: "vxe-input--control-icon"
|
|
33250
33250
|
}, [
|
|
@@ -34106,7 +34106,7 @@ const wi = rt({
|
|
|
34106
34106
|
}, ne = (M) => {
|
|
34107
34107
|
const { selectRadioKey: te } = c;
|
|
34108
34108
|
return te === M;
|
|
34109
|
-
},
|
|
34109
|
+
}, q = (M) => ne(H(M)), L = (M) => {
|
|
34110
34110
|
const { selectCheckboxMaps: te } = c;
|
|
34111
34111
|
return !!te[M];
|
|
34112
34112
|
}, _ = (M) => L(H(M)), fe = (M) => {
|
|
@@ -34295,7 +34295,7 @@ const wi = rt({
|
|
|
34295
34295
|
},
|
|
34296
34296
|
isExpandByNode: G,
|
|
34297
34297
|
isCheckedByRadioNodeId: ne,
|
|
34298
|
-
isCheckedByRadioNode:
|
|
34298
|
+
isCheckedByRadioNode: q,
|
|
34299
34299
|
isCheckedByCheckboxNodeId: L,
|
|
34300
34300
|
isIndeterminateByCheckboxNode: re,
|
|
34301
34301
|
isCheckedByCheckboxNode: _
|
|
@@ -34491,8 +34491,8 @@ const wi = rt({
|
|
|
34491
34491
|
Se && (Jt = Ie == nt);
|
|
34492
34492
|
let Pt = !1;
|
|
34493
34493
|
K && (Pt = L(Ie));
|
|
34494
|
-
let qt = !1, _t = !1,
|
|
34495
|
-
return te && (_t = !!et[Ie], qt = M[Et],
|
|
34494
|
+
let qt = !1, _t = !1, U = !1;
|
|
34495
|
+
return te && (_t = !!et[Ie], qt = M[Et], U = !!it.treeLoaded), l("div", {
|
|
34496
34496
|
class: ["vxe-tree--node-wrapper", `node--level-${it.level}`],
|
|
34497
34497
|
nodeid: Ie
|
|
34498
34498
|
}, [
|
|
@@ -34514,7 +34514,7 @@ const wi = rt({
|
|
|
34514
34514
|
}, [
|
|
34515
34515
|
Ee || A ? l("div", {
|
|
34516
34516
|
class: "vxe-tree--node-item-switcher"
|
|
34517
|
-
}, Ee && (te ?
|
|
34517
|
+
}, Ee && (te ? U ? yn : qt : yn) ? [
|
|
34518
34518
|
l("div", {
|
|
34519
34519
|
class: "vxe-tree--node-item-icon",
|
|
34520
34520
|
onClick(on) {
|
|
@@ -34700,8 +34700,8 @@ const Ei = rt({
|
|
|
34700
34700
|
}, xe.radioConfig, {
|
|
34701
34701
|
trigger: "node"
|
|
34702
34702
|
});
|
|
34703
|
-
}), G = N(() => e.optionProps || {}), ne = N(() => C.value.keyField || "id"),
|
|
34704
|
-
const { modelValue: xe } = e, { fullNodeMaps: Be } = S, Te =
|
|
34703
|
+
}), G = N(() => e.optionProps || {}), ne = N(() => C.value.keyField || "id"), q = N(() => G.value.label || "label"), L = N(() => G.value.value || "value"), _ = N(() => G.value.children || "children"), fe = N(() => G.value.parent || "parentField"), re = N(() => G.value.hasChild || "hasChild"), F = N(() => {
|
|
34704
|
+
const { modelValue: xe } = e, { fullNodeMaps: Be } = S, Te = q.value;
|
|
34705
34705
|
return (i.isArray(xe) ? xe : [xe]).map(($e) => {
|
|
34706
34706
|
const M = Be[$e];
|
|
34707
34707
|
return M ? M.item[Te] : $e;
|
|
@@ -34812,7 +34812,7 @@ const Ei = rt({
|
|
|
34812
34812
|
};
|
|
34813
34813
|
Object.assign(I, W, {});
|
|
34814
34814
|
const ke = () => {
|
|
34815
|
-
const { className: xe, modelValue: Be, multiple: Te, options: $e, loading: M } = e, { initialized: te, isActivated: Se, isAniVisible: K, visiblePanel: A } = S, ee = d.value, R = y.value, Q = F.value, be = b.value, Ee = D.value, Me = z.value, Le = o.header, Qe = o.footer, nt = o.prefix, yt = x.value.className || e.popupClassName, ut = C.value, Et = $.value, Ht = P.value, yn = H.value, en = ne.value, Bt =
|
|
34815
|
+
const { className: xe, modelValue: Be, multiple: Te, options: $e, loading: M } = e, { initialized: te, isActivated: Se, isAniVisible: K, visiblePanel: A } = S, ee = d.value, R = y.value, Q = F.value, be = b.value, Ee = D.value, Me = z.value, Le = o.header, Qe = o.footer, nt = o.prefix, yt = x.value.className || e.popupClassName, ut = C.value, Et = $.value, Ht = P.value, yn = H.value, en = ne.value, Bt = q.value, Ie = L.value, We = _.value, it = fe.value, $t = re.value;
|
|
34816
34816
|
return Ee ? l("div", {
|
|
34817
34817
|
ref: p,
|
|
34818
34818
|
class: ["vxe-tree-select--readonly", xe]
|
|
@@ -35508,14 +35508,14 @@ const _Z = (e) => {
|
|
|
35508
35508
|
}), H = N(() => Object.assign({}, e.imageStyle)), G = N(() => {
|
|
35509
35509
|
const { width: A, height: ee } = H.value, R = {};
|
|
35510
35510
|
return A && (R.width = dn(A)), ee && (R.height = dn(ee)), R;
|
|
35511
|
-
}), ne = N(() => Object.assign({ showMoreButton: !0 }, e.moreConfig)),
|
|
35511
|
+
}), ne = N(() => Object.assign({ showMoreButton: !0 }, e.moreConfig)), q = {}, L = {
|
|
35512
35512
|
xID: a,
|
|
35513
35513
|
props: e,
|
|
35514
35514
|
context: t,
|
|
35515
35515
|
reactData: u,
|
|
35516
35516
|
internalData: d,
|
|
35517
35517
|
getRefMaps: () => p,
|
|
35518
|
-
getComputeMaps: () =>
|
|
35518
|
+
getComputeMaps: () => q
|
|
35519
35519
|
}, _ = () => i.uniqueId(), fe = (A) => {
|
|
35520
35520
|
const ee = w.value;
|
|
35521
35521
|
return A[ee];
|
|
@@ -36412,18 +36412,18 @@ const _Z = (e) => {
|
|
|
36412
36412
|
[`theme--${$}`]: $,
|
|
36413
36413
|
"is--disabled": P
|
|
36414
36414
|
}]
|
|
36415
|
-
}, H.map((
|
|
36416
|
-
const L = ne >=
|
|
36415
|
+
}, H.map((q) => {
|
|
36416
|
+
const L = ne >= q.value;
|
|
36417
36417
|
return l("div", {
|
|
36418
36418
|
class: ["vxe-rte--item", {
|
|
36419
36419
|
"is--checked": L
|
|
36420
36420
|
}],
|
|
36421
36421
|
onMouseenter(_) {
|
|
36422
|
-
P || y(_,
|
|
36422
|
+
P || y(_, q);
|
|
36423
36423
|
},
|
|
36424
36424
|
onMouseleave: b,
|
|
36425
36425
|
onClick(_) {
|
|
36426
|
-
P || x(_,
|
|
36426
|
+
P || x(_, q);
|
|
36427
36427
|
}
|
|
36428
36428
|
}, [
|
|
36429
36429
|
l("i", {
|
|
@@ -36608,7 +36608,7 @@ const _Z = (e) => {
|
|
|
36608
36608
|
}, ne = (F) => {
|
|
36609
36609
|
const { range: z } = e, { startValue: k, endValue: I } = h, J = z ? [k, I].sort() : I;
|
|
36610
36610
|
b(J), x("change", { value: J }, F), o && r && o.triggerItemEvent(F, r.itemConfig.field, J);
|
|
36611
|
-
},
|
|
36611
|
+
}, q = (F, z) => {
|
|
36612
36612
|
const k = w.value, I = S.value, J = E.value, ie = v.value;
|
|
36613
36613
|
if (!(k || I)) {
|
|
36614
36614
|
F.preventDefault();
|
|
@@ -36627,10 +36627,10 @@ const _Z = (e) => {
|
|
|
36627
36627
|
}
|
|
36628
36628
|
}, L = (F) => {
|
|
36629
36629
|
const z = p.value, k = F.currentTarget;
|
|
36630
|
-
|
|
36630
|
+
q(F, z ? z.offsetLeft < k.offsetLeft : !1);
|
|
36631
36631
|
}, _ = (F) => {
|
|
36632
36632
|
const z = d.value, k = F.currentTarget;
|
|
36633
|
-
|
|
36633
|
+
q(F, z ? k.offsetLeft > z.offsetLeft : !0);
|
|
36634
36634
|
};
|
|
36635
36635
|
Object.assign(y, C, {});
|
|
36636
36636
|
const re = () => {
|
|
@@ -37077,14 +37077,14 @@ const lu = rt({
|
|
|
37077
37077
|
d.visiblePanel = !1, p.hpTimeout = window.setTimeout(() => {
|
|
37078
37078
|
d.isAniVisible = !1;
|
|
37079
37079
|
}, 350);
|
|
37080
|
-
},
|
|
37080
|
+
}, q = (se, B) => {
|
|
37081
37081
|
d.selectIcon = B, B !== e.modelValue && (n("update:modelValue", B), v.dispatchEvent("change", { value: B }, se), a && c && a.triggerItemEvent(se, c.itemConfig.field, B));
|
|
37082
37082
|
}, L = () => {
|
|
37083
37083
|
y.value || d.visiblePanel || G();
|
|
37084
37084
|
}, _ = () => {
|
|
37085
37085
|
d.isActivated = !1;
|
|
37086
37086
|
}, fe = (se, B) => {
|
|
37087
|
-
|
|
37087
|
+
q(se, B), v.dispatchEvent("clear", { value: B }, se);
|
|
37088
37088
|
}, re = (se, B) => {
|
|
37089
37089
|
fe(B, null), ne();
|
|
37090
37090
|
}, F = (se) => {
|
|
@@ -37138,7 +37138,7 @@ const lu = rt({
|
|
|
37138
37138
|
};
|
|
37139
37139
|
const Z = (se, B) => {
|
|
37140
37140
|
const Y = B.icon;
|
|
37141
|
-
|
|
37141
|
+
q(se, Y), ne();
|
|
37142
37142
|
};
|
|
37143
37143
|
Object.assign(E, v);
|
|
37144
37144
|
const ce = () => {
|
|
@@ -37397,7 +37397,7 @@ const Oi = rt({
|
|
|
37397
37397
|
});
|
|
37398
37398
|
}, ne = (W, Z) => {
|
|
37399
37399
|
S("download", { url: Z }, W);
|
|
37400
|
-
},
|
|
37400
|
+
}, q = (W, Z) => {
|
|
37401
37401
|
we.saveFile && fetch(Z).then((ce) => ce.blob().then((De) => {
|
|
37402
37402
|
we.saveFile({
|
|
37403
37403
|
filename: Z,
|
|
@@ -37422,7 +37422,7 @@ const Oi = rt({
|
|
|
37422
37422
|
index: Z || 0
|
|
37423
37423
|
})).then(() => {
|
|
37424
37424
|
ne(W, De);
|
|
37425
|
-
}).catch((oe) => oe) :
|
|
37425
|
+
}).catch((oe) => oe) : q(W, De));
|
|
37426
37426
|
});
|
|
37427
37427
|
}, _ = (W, Z) => {
|
|
37428
37428
|
const { activeIndex: ce } = a;
|
|
@@ -39172,7 +39172,7 @@ const Vi = (e) => Object.assign({
|
|
|
39172
39172
|
},
|
|
39173
39173
|
clearConfig: H
|
|
39174
39174
|
}, {});
|
|
39175
|
-
const
|
|
39175
|
+
const q = () => {
|
|
39176
39176
|
const { height: L } = e, _ = a.value, fe = o.header;
|
|
39177
39177
|
return l("div", {
|
|
39178
39178
|
ref: s,
|
|
@@ -39196,7 +39196,7 @@ const Vi = (e) => Object.assign({
|
|
|
39196
39196
|
};
|
|
39197
39197
|
return Cn("$xeListDesign", d), tt(() => e.config, (L) => {
|
|
39198
39198
|
E(L || {});
|
|
39199
|
-
}), P(), e.config && E(e.config), d.renderVN =
|
|
39199
|
+
}), P(), e.config && E(e.config), d.renderVN = q, d;
|
|
39200
39200
|
},
|
|
39201
39201
|
render() {
|
|
39202
39202
|
return this.renderVN();
|
|
@@ -39406,7 +39406,7 @@ const gu = rt({
|
|
|
39406
39406
|
events: {
|
|
39407
39407
|
click(se, B) {
|
|
39408
39408
|
const { option: Y } = B;
|
|
39409
|
-
|
|
39409
|
+
q("cell-action", Object.assign(Object.assign({}, se), { button: Y }), B.$event);
|
|
39410
39410
|
}
|
|
39411
39411
|
}
|
|
39412
39412
|
}, J.push(ce);
|
|
@@ -39462,11 +39462,11 @@ const gu = rt({
|
|
|
39462
39462
|
}, ne = (re) => {
|
|
39463
39463
|
const { data: F, items: z } = E(re);
|
|
39464
39464
|
return u.searchFormData = F, u.searchFormItems = z, o("update:formData", F), me();
|
|
39465
|
-
},
|
|
39465
|
+
}, q = (re, F, z) => {
|
|
39466
39466
|
o(re, Zt(z, { $listView: w }, F));
|
|
39467
39467
|
};
|
|
39468
39468
|
Object.assign(w, {
|
|
39469
|
-
dispatchEvent:
|
|
39469
|
+
dispatchEvent: q,
|
|
39470
39470
|
clearConfig: D,
|
|
39471
39471
|
loadConfig: y,
|
|
39472
39472
|
parseConfig: C,
|
|
@@ -39638,12 +39638,12 @@ const hu = rt({
|
|
|
39638
39638
|
refreshScroll: C,
|
|
39639
39639
|
clearScroll: b
|
|
39640
39640
|
});
|
|
39641
|
-
const
|
|
39641
|
+
const q = Oe(0);
|
|
39642
39642
|
tt(() => e.data ? e.data.length : -1, () => {
|
|
39643
|
-
|
|
39643
|
+
q.value++;
|
|
39644
39644
|
}), tt(() => e.data, () => {
|
|
39645
|
-
|
|
39646
|
-
}), tt(
|
|
39645
|
+
q.value++;
|
|
39646
|
+
}), tt(q, () => {
|
|
39647
39647
|
G(e.data || []);
|
|
39648
39648
|
}), tt(() => e.syncResize, (_) => {
|
|
39649
39649
|
_ && ($(), me(() => setTimeout(() => $())));
|
|
@@ -40408,7 +40408,7 @@ const Cu = rt({
|
|
|
40408
40408
|
const { value: Y } = B, oe = i.toNumber(Y), Ce = v(e.total, oe);
|
|
40409
40409
|
let ve = e.currentPage;
|
|
40410
40410
|
ve > Ce && (ve = Ce, o("update:currentPage", Ce)), o("update:pageSize", oe), S.dispatchEvent("page-change", { type: "size", pageSize: oe, currentPage: ve }, B.$event);
|
|
40411
|
-
},
|
|
40411
|
+
}, q = (B) => {
|
|
40412
40412
|
const { $event: Y } = B;
|
|
40413
40413
|
ct.hasKey(Y, Xt.ENTER) ? b(B) : ct.hasKey(Y, Xt.ARROW_UP) ? (Y.preventDefault(), P(Y)) : ct.hasKey(Y, Xt.ARROW_DOWN) && (Y.preventDefault(), $(Y));
|
|
40414
40414
|
}, L = () => l("button", {
|
|
@@ -40545,7 +40545,7 @@ const Cu = rt({
|
|
|
40545
40545
|
max: Y,
|
|
40546
40546
|
min: 1,
|
|
40547
40547
|
controls: !1,
|
|
40548
|
-
onKeydown:
|
|
40548
|
+
onKeydown: q,
|
|
40549
40549
|
onBlur: b,
|
|
40550
40550
|
"onUpdate:modelValue"(oe) {
|
|
40551
40551
|
c.inpCurrPage = oe;
|
|
@@ -40780,7 +40780,7 @@ const wu = rt({
|
|
|
40780
40780
|
!J && !I && (f.showPwd = !ie), g.dispatchEvent("toggle-visible", { visible: f.showPwd }, k);
|
|
40781
40781
|
}, ne = (k) => {
|
|
40782
40782
|
y(k);
|
|
40783
|
-
},
|
|
40783
|
+
}, q = (k, I) => {
|
|
40784
40784
|
focus(), C("", k), g.dispatchEvent("clear", { value: I }, k);
|
|
40785
40785
|
}, L = (k) => {
|
|
40786
40786
|
const { disabled: I } = e;
|
|
@@ -40827,7 +40827,7 @@ const wu = rt({
|
|
|
40827
40827
|
}, [
|
|
40828
40828
|
Z ? l("div", {
|
|
40829
40829
|
class: "vxe-password-input--clear-icon",
|
|
40830
|
-
onClick:
|
|
40830
|
+
onClick: q
|
|
40831
40831
|
}, [
|
|
40832
40832
|
l("i", {
|
|
40833
40833
|
class: xt().INPUT_CLEAR
|
|
@@ -41129,7 +41129,7 @@ const Su = rt({
|
|
|
41129
41129
|
const g = () => {
|
|
41130
41130
|
const { title: E, showPageNumber: v, showAllPageTitle: D, align: y, headerAlign: b, footerAlign: x } = e, C = e.pageBreaks || [], $ = C.length;
|
|
41131
41131
|
return C.map((P, H) => {
|
|
41132
|
-
const G = P.bodyHtml, ne = P.headerHtml || e.headerHtml,
|
|
41132
|
+
const G = P.bodyHtml, ne = P.headerHtml || e.headerHtml, q = P.footerHtml || e.footerHtml, L = P.leftHtml || e.leftHtml, _ = P.rightHtml || e.rightHtml, fe = H + 1, re = {
|
|
41133
41133
|
currentPage: fe,
|
|
41134
41134
|
pageCount: $
|
|
41135
41135
|
};
|
|
@@ -41158,7 +41158,7 @@ const Su = rt({
|
|
|
41158
41158
|
]),
|
|
41159
41159
|
l("div", {
|
|
41160
41160
|
class: ["vxe-print-page-break--footer", x ? `align--${x}` : ""]
|
|
41161
|
-
},
|
|
41161
|
+
}, q ? `${i.isFunction(q) ? q(re) : q || ""}` : [
|
|
41162
41162
|
v ? l("div", {
|
|
41163
41163
|
class: "vxe-print-page-break--footer-page-number"
|
|
41164
41164
|
}, `${fe}/${$}`) : Ve()
|
|
@@ -41168,7 +41168,7 @@ const Su = rt({
|
|
|
41168
41168
|
}, w = () => {
|
|
41169
41169
|
const { title: E, showPageNumber: v, showAllPageTitle: D, align: y, headerAlign: b, footerAlign: x } = e, { staticPageBreaks: C } = a, $ = C.length;
|
|
41170
41170
|
return C.map((P, H) => {
|
|
41171
|
-
const G = P.slots || {}, ne = H + 1,
|
|
41171
|
+
const G = P.slots || {}, ne = H + 1, q = G.default, L = G.header || n.header, _ = G.footer || n.footer, fe = G.left || n.left, re = G.right || n.right, F = {
|
|
41172
41172
|
currentPage: ne,
|
|
41173
41173
|
pageCount: $
|
|
41174
41174
|
};
|
|
@@ -41190,7 +41190,7 @@ const Su = rt({
|
|
|
41190
41190
|
}, fe ? Rt(fe(F)) : []),
|
|
41191
41191
|
l("div", {
|
|
41192
41192
|
class: "vxe-print-page-break--content"
|
|
41193
|
-
},
|
|
41193
|
+
}, q ? Rt(q(F)) : []),
|
|
41194
41194
|
l("div", {
|
|
41195
41195
|
class: "vxe-print-page-break--right"
|
|
41196
41196
|
}, re ? Rt(re(F)) : [])
|
|
@@ -41343,7 +41343,7 @@ const Du = rt({
|
|
|
41343
41343
|
}, ne = (F) => {
|
|
41344
41344
|
const { disabled: z } = e, { visiblePanel: k } = d, I = w.value;
|
|
41345
41345
|
z || k && (Kn(F, I).flag ? x() : ($(), _("hide-panel", {}, F)));
|
|
41346
|
-
},
|
|
41346
|
+
}, q = (F) => {
|
|
41347
41347
|
const { disabled: z } = e, { visiblePanel: k } = d, I = h.value, J = w.value;
|
|
41348
41348
|
z || (d.isActivated = Kn(F, I).flag || Kn(F, J).flag, k && !d.isActivated && ($(), _("hide-panel", {}, F)));
|
|
41349
41349
|
}, L = (F) => {
|
|
@@ -41360,7 +41360,7 @@ const Du = rt({
|
|
|
41360
41360
|
}, Object.assign(v, D), tt(() => e.modelValue, (F) => {
|
|
41361
41361
|
d.isActivated = !!F, F ? C() : $();
|
|
41362
41362
|
}), me(() => {
|
|
41363
|
-
e.modelValue && C(), ct.on(v, "mousewheel", ne), ct.on(v, "mousedown",
|
|
41363
|
+
e.modelValue && C(), ct.on(v, "mousewheel", ne), ct.on(v, "mousedown", q), ct.on(v, "blur", L);
|
|
41364
41364
|
}), zn(() => {
|
|
41365
41365
|
ct.off(v, "mousewheel"), ct.off(v, "mousedown"), ct.off(v, "blur");
|
|
41366
41366
|
});
|
|
@@ -41699,14 +41699,14 @@ const $u = rt({
|
|
|
41699
41699
|
return Object.assign({}, ke.rowConfig, {
|
|
41700
41700
|
isCurrent: !0
|
|
41701
41701
|
});
|
|
41702
|
-
}), H = N(() => P.value.keyField || "_X_ROW_KEY"), G = N(() => $.value.label || "label"), ne = N(() => $.value.value || "value"),
|
|
41702
|
+
}), H = N(() => P.value.keyField || "_X_ROW_KEY"), G = N(() => $.value.label || "label"), ne = N(() => $.value.value || "value"), q = N(() => Object.assign({}, ae().tableSelect.popupConfig, e.popupConfig)), L = N(() => Object.assign({}, ae().tableSelect.gridConfig, e.gridConfig, { data: void 0, columns: void 0 })), _ = N(() => {
|
|
41703
41703
|
const { modelValue: ke } = e, { fullRowMaps: xe } = v, Be = G.value;
|
|
41704
41704
|
return (i.isArray(ke) ? ke : [ke]).map((Te) => {
|
|
41705
41705
|
const $e = xe[Te];
|
|
41706
41706
|
return $e ? $e.item[Be] : Te;
|
|
41707
41707
|
}).join(", ");
|
|
41708
41708
|
}), fe = N(() => {
|
|
41709
|
-
const ke =
|
|
41709
|
+
const ke = q.value, { height: xe, width: Be } = ke, Te = {};
|
|
41710
41710
|
return Be && (Te.width = dn(Be)), xe && (Te.height = dn(xe)), Te;
|
|
41711
41711
|
}), re = {}, F = {
|
|
41712
41712
|
xID: d,
|
|
@@ -41831,7 +41831,7 @@ const $u = rt({
|
|
|
41831
41831
|
};
|
|
41832
41832
|
Object.assign(F, I, J);
|
|
41833
41833
|
const pt = () => {
|
|
41834
|
-
const { className: ke, options: xe, loading: Be } = e, { initialized: Te, isActivated: $e, isAniVisible: M, visiblePanel: te, tableColumns: Se } = v, K = p.value, A = x.value, ee = _.value, R = C.value, Q = b.value, be =
|
|
41834
|
+
const { className: ke, options: xe, loading: Be } = e, { initialized: Te, isActivated: $e, isAniVisible: M, visiblePanel: te, tableColumns: Se } = v, K = p.value, A = x.value, ee = _.value, R = C.value, Q = b.value, be = q.value, { className: Ee } = be, Me = L.value, Le = P.value, Qe = fe.value, nt = o.header, et = o.footer, yt = o.prefix;
|
|
41835
41835
|
return Q ? l("div", {
|
|
41836
41836
|
ref: h,
|
|
41837
41837
|
class: ["vxe-table-select--readonly", ke]
|
|
@@ -42057,14 +42057,14 @@ const Iu = rt({
|
|
|
42057
42057
|
} catch {
|
|
42058
42058
|
}
|
|
42059
42059
|
const ne = d.value;
|
|
42060
|
-
let
|
|
42060
|
+
let q = Math.floor($ / G), L = ne.slice(0, q);
|
|
42061
42061
|
H.textContent = L, c.visibleLen = L.length;
|
|
42062
42062
|
let _ = 0;
|
|
42063
42063
|
for (; $ > H.clientWidth && _ < 30; ) {
|
|
42064
42064
|
_++;
|
|
42065
42065
|
const fe = Math.floor(($ - H.clientWidth) / G);
|
|
42066
42066
|
if (fe)
|
|
42067
|
-
|
|
42067
|
+
q += fe, L = ne.slice(0, q), H.textContent = L, c.visibleLen = L.length;
|
|
42068
42068
|
else
|
|
42069
42069
|
break;
|
|
42070
42070
|
}
|
|
@@ -42075,8 +42075,8 @@ const Iu = rt({
|
|
|
42075
42075
|
if ($ && P) {
|
|
42076
42076
|
const ne = $.clientWidth;
|
|
42077
42077
|
P.style.display = "block", P.style.position = "absolute", P.style.top = "-3000px", P.style.left = "-3000px", P.textContent = H;
|
|
42078
|
-
const
|
|
42079
|
-
L >
|
|
42078
|
+
const q = P.offsetWidth, L = Math.floor(ne * G);
|
|
42079
|
+
L > q ? c.visibleLen = H.length : E(L);
|
|
42080
42080
|
} else
|
|
42081
42081
|
c.visibleLen = H.length;
|
|
42082
42082
|
}, D = {
|
|
@@ -42097,10 +42097,10 @@ const Iu = rt({
|
|
|
42097
42097
|
};
|
|
42098
42098
|
Object.assign(w, D, {});
|
|
42099
42099
|
const C = () => {
|
|
42100
|
-
const { loading: $, status: P, title: H } = e, G = r.value, ne = h.value,
|
|
42100
|
+
const { loading: $, status: P, title: H } = e, G = r.value, ne = h.value, q = u.value;
|
|
42101
42101
|
return l("div", {
|
|
42102
42102
|
ref: s,
|
|
42103
|
-
class: ["vxe-text-ellipsis",
|
|
42103
|
+
class: ["vxe-text-ellipsis", q > 1 ? "is--multi" : "is--single", {
|
|
42104
42104
|
[`size--${G}`]: G,
|
|
42105
42105
|
[`theme--${P}`]: P,
|
|
42106
42106
|
"is--loading": $
|
|
@@ -43377,21 +43377,21 @@ const UQ = (e) => {
|
|
|
43377
43377
|
delete H[P.field], w(H);
|
|
43378
43378
|
else if (!P) {
|
|
43379
43379
|
const ne = {};
|
|
43380
|
-
Object.keys(H).forEach((
|
|
43380
|
+
Object.keys(H).forEach((q) => {
|
|
43381
43381
|
var _;
|
|
43382
43382
|
((_ = a.value.columns) == null ? void 0 : _.find(
|
|
43383
43383
|
(fe) => {
|
|
43384
43384
|
var re, F;
|
|
43385
|
-
return fe.field ===
|
|
43385
|
+
return fe.field === q || ((F = (re = fe.headerFilterConfig) == null ? void 0 : re.editorProps) == null ? void 0 : F.effectValueField) === q;
|
|
43386
43386
|
}
|
|
43387
|
-
)) || (ne[
|
|
43387
|
+
)) || (ne[q] = H[q]);
|
|
43388
43388
|
}), w(ne);
|
|
43389
43389
|
}
|
|
43390
43390
|
},
|
|
43391
43391
|
// 强制刷新数据
|
|
43392
43392
|
refreshData: S
|
|
43393
43393
|
}), (P, H) => {
|
|
43394
|
-
var G, ne,
|
|
43394
|
+
var G, ne, q, L, _, fe;
|
|
43395
43395
|
return Wn(), No("div", {
|
|
43396
43396
|
class: ME(["sab-table-wrap", o.wrapClassName])
|
|
43397
43397
|
}, [
|
|
@@ -43430,7 +43430,7 @@ const UQ = (e) => {
|
|
|
43430
43430
|
// 无需背景高亮
|
|
43431
43431
|
"sab-table-row-no-bg-highlight": nn(a).rowBackgroundHighlight === !1,
|
|
43432
43432
|
// 有头部筛选条
|
|
43433
|
-
"sab-table-header-filters": ((
|
|
43433
|
+
"sab-table-header-filters": ((q = nn(a).headerFilterConfig) == null ? void 0 : q.enable) === !0
|
|
43434
43434
|
}
|
|
43435
43435
|
]
|
|
43436
43436
|
}), {
|
|
@@ -43503,7 +43503,7 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43503
43503
|
emits: ["update:modelValue", "focus", "blur", "change", "loadmore"],
|
|
43504
43504
|
setup(e, { expose: t, emit: n }) {
|
|
43505
43505
|
const o = n, r = e, s = Oe([]), a = N(
|
|
43506
|
-
() => s.value.filter((
|
|
43506
|
+
() => s.value.filter((q) => !q[r.disabledKey])
|
|
43507
43507
|
);
|
|
43508
43508
|
tt(
|
|
43509
43509
|
() => r.options,
|
|
@@ -43524,13 +43524,13 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43524
43524
|
r.pagination
|
|
43525
43525
|
)
|
|
43526
43526
|
), f = Oe(!1), u = Oe(""), d = Oe(!1), p = Ed(
|
|
43527
|
-
async (
|
|
43527
|
+
async (q = "", L = c.current) => {
|
|
43528
43528
|
var _;
|
|
43529
|
-
if (u.value !=
|
|
43530
|
-
c.current = L, u.value =
|
|
43529
|
+
if (u.value != q && (L = 1), !!r.remoteMethod && !(L != 1 && (d.value || L === c.current))) {
|
|
43530
|
+
c.current = L, u.value = q;
|
|
43531
43531
|
try {
|
|
43532
43532
|
f.value = !0;
|
|
43533
|
-
const fe = await ((_ = r.remoteMethod) == null ? void 0 : _.call(r,
|
|
43533
|
+
const fe = await ((_ = r.remoteMethod) == null ? void 0 : _.call(r, q, c));
|
|
43534
43534
|
Array.isArray(fe) || !fe ? (c.current === 1 ? s.value = fe || [] : s.value.push(...fe || []), d.value = (fe == null ? void 0 : fe.length) < c.size) : (c.current === 1 ? s.value = fe.records || [] : s.value.push(...fe.records || []), c.pages = Math.max(1, fe.pages || 0), d.value = c.current >= c.pages);
|
|
43535
43535
|
} finally {
|
|
43536
43536
|
f.value = !1;
|
|
@@ -43542,9 +43542,9 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43542
43542
|
leading: !1,
|
|
43543
43543
|
trailing: !0
|
|
43544
43544
|
}
|
|
43545
|
-
), h = (
|
|
43545
|
+
), h = (q) => p(q, 1), g = () => {
|
|
43546
43546
|
if (r.enableLoadmore)
|
|
43547
|
-
return o("loadmore", u.value, c
|
|
43547
|
+
return c.current = c.current + 1, o("loadmore", u.value, c), p(u.value, c.current + 1);
|
|
43548
43548
|
};
|
|
43549
43549
|
Dn(() => {
|
|
43550
43550
|
h();
|
|
@@ -43552,7 +43552,7 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43552
43552
|
const w = Oe(
|
|
43553
43553
|
`el-select-${Date.now()}_${Math.round(Math.random() * 1e5)}`
|
|
43554
43554
|
), S = () => {
|
|
43555
|
-
let
|
|
43555
|
+
let q;
|
|
43556
43556
|
const L = function() {
|
|
43557
43557
|
// @ts-ignore
|
|
43558
43558
|
this.scrollHeight - this.scrollTop - 1 <= this.clientHeight && !f.value && g();
|
|
@@ -43560,58 +43560,58 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43560
43560
|
return {
|
|
43561
43561
|
listen: () => {
|
|
43562
43562
|
var re;
|
|
43563
|
-
|
|
43563
|
+
q = (re = document.querySelector(`.${w.value}`)) == null ? void 0 : re.querySelector(".el-select-dropdown__wrap"), q == null || q.addEventListener("scroll", L);
|
|
43564
43564
|
},
|
|
43565
43565
|
unListen: () => {
|
|
43566
|
-
|
|
43566
|
+
q == null || q.removeEventListener("scroll", L);
|
|
43567
43567
|
}
|
|
43568
43568
|
};
|
|
43569
|
-
}, { listen: E, unListen: v } = S(), D = (
|
|
43570
|
-
|
|
43571
|
-
}, y = (
|
|
43572
|
-
o("focus",
|
|
43573
|
-
}, b = (
|
|
43574
|
-
o("blur",
|
|
43569
|
+
}, { listen: E, unListen: v } = S(), D = (q) => {
|
|
43570
|
+
q ? E() : (u.value = "", v());
|
|
43571
|
+
}, y = (q) => {
|
|
43572
|
+
o("focus", q), r.revalidateWhenFocus && p("", 1);
|
|
43573
|
+
}, b = (q) => {
|
|
43574
|
+
o("blur", q);
|
|
43575
43575
|
}, x = N({
|
|
43576
43576
|
get() {
|
|
43577
|
-
var
|
|
43578
|
-
return r.labelInValue ? Array.isArray(r.modelValue) ? r.modelValue.map((L) => L[r.valueKey]) : (
|
|
43577
|
+
var q;
|
|
43578
|
+
return r.labelInValue ? Array.isArray(r.modelValue) ? r.modelValue.map((L) => L[r.valueKey]) : (q = r.modelValue) == null ? void 0 : q[r.valueKey] : r.modelValue;
|
|
43579
43579
|
},
|
|
43580
|
-
set(
|
|
43580
|
+
set(q) {
|
|
43581
43581
|
if (r.labelInValue)
|
|
43582
|
-
if (Array.isArray(
|
|
43582
|
+
if (Array.isArray(q)) {
|
|
43583
43583
|
const L = s.value.filter(
|
|
43584
|
-
(_) =>
|
|
43584
|
+
(_) => q.includes(_[r.valueKey])
|
|
43585
43585
|
);
|
|
43586
43586
|
o("update:modelValue", L), o("change", L);
|
|
43587
43587
|
} else {
|
|
43588
43588
|
const L = s.value.find(
|
|
43589
|
-
(_) =>
|
|
43589
|
+
(_) => q === _[r.valueKey]
|
|
43590
43590
|
);
|
|
43591
43591
|
o("update:modelValue", L), o("change", L);
|
|
43592
43592
|
}
|
|
43593
43593
|
else
|
|
43594
|
-
o("update:modelValue",
|
|
43594
|
+
o("update:modelValue", q), o("change", q);
|
|
43595
43595
|
}
|
|
43596
43596
|
}), C = Jv(() => {
|
|
43597
|
-
var
|
|
43597
|
+
var q, L;
|
|
43598
43598
|
if (r.autoSelectFirstOption) {
|
|
43599
43599
|
if (s.value.length && (x.value === null || x.value === void 0 || Array.isArray(x.value) && x.value.length === 0)) {
|
|
43600
|
-
let _ = (L = (
|
|
43600
|
+
let _ = (L = (q = s.value) == null ? void 0 : q[0]) == null ? void 0 : L[r.valueKey];
|
|
43601
43601
|
r.multiple && typeof _ < "u" ? x.value = [_] : x.value = _, setTimeout(() => C());
|
|
43602
43602
|
}
|
|
43603
43603
|
} else
|
|
43604
43604
|
setTimeout(() => C());
|
|
43605
43605
|
}), $ = N(
|
|
43606
43606
|
() => {
|
|
43607
|
-
var
|
|
43608
|
-
return r.multiple && ((
|
|
43607
|
+
var q;
|
|
43608
|
+
return r.multiple && ((q = x.value) == null ? void 0 : q.length) === a.value.length;
|
|
43609
43609
|
}
|
|
43610
43610
|
), P = N(() => {
|
|
43611
|
-
var
|
|
43612
|
-
return !r.multiple || !x.value || ((
|
|
43613
|
-
}), H = (
|
|
43614
|
-
|
|
43611
|
+
var q, L;
|
|
43612
|
+
return !r.multiple || !x.value || ((q = x.value) == null ? void 0 : q.length) === 0 ? !1 : ((L = x.value) == null ? void 0 : L.length) !== a.value.length;
|
|
43613
|
+
}), H = (q) => {
|
|
43614
|
+
q ? x.value = s.value.filter((L) => !L[r.disabledKey]).map((L) => L[r.valueKey]) : x.value = [];
|
|
43615
43615
|
}, G = Gp(
|
|
43616
43616
|
r,
|
|
43617
43617
|
"props",
|
|
@@ -43628,18 +43628,21 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43628
43628
|
...r.props
|
|
43629
43629
|
}));
|
|
43630
43630
|
return t({
|
|
43631
|
-
setPagination(
|
|
43632
|
-
Object.assign(c, { ...
|
|
43631
|
+
setPagination(q) {
|
|
43632
|
+
Object.assign(c, { ...q });
|
|
43633
|
+
},
|
|
43634
|
+
revalidate(q, L) {
|
|
43635
|
+
p(q, L);
|
|
43633
43636
|
}
|
|
43634
|
-
}), (
|
|
43637
|
+
}), (q, L) => q.enableLoadmore || q.selectType === "v1" ? (Wn(), nr(nn(nb), Rn({
|
|
43635
43638
|
key: 0,
|
|
43636
43639
|
modelValue: x.value,
|
|
43637
43640
|
"onUpdate:modelValue": L[0] || (L[0] = (_) => x.value = _)
|
|
43638
43641
|
}, {
|
|
43639
43642
|
...nn(G),
|
|
43640
|
-
...
|
|
43643
|
+
...q.$attrs
|
|
43641
43644
|
}, {
|
|
43642
|
-
"popper-class": nn(Sd)(w.value,
|
|
43645
|
+
"popper-class": nn(Sd)(w.value, q.$attrs.popperClass),
|
|
43643
43646
|
"remote-method": nn(p),
|
|
43644
43647
|
onFocus: y,
|
|
43645
43648
|
onBlur: b,
|
|
@@ -43648,27 +43651,27 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43648
43651
|
default: Ln(() => {
|
|
43649
43652
|
var _, fe, re;
|
|
43650
43653
|
return [
|
|
43651
|
-
|
|
43654
|
+
q.labelInValue && ((_ = q.modelValue) != null && _[q.labelKey]) && !s.value.find((F) => {
|
|
43652
43655
|
var z;
|
|
43653
|
-
return F[
|
|
43656
|
+
return F[q.valueKey] === ((z = q.modelValue) == null ? void 0 : z[q.valueKey]);
|
|
43654
43657
|
}) ? (Wn(), nr(nn(Ff), {
|
|
43655
43658
|
key: 0,
|
|
43656
|
-
label: (fe =
|
|
43657
|
-
value: (re =
|
|
43659
|
+
label: (fe = q.modelValue) == null ? void 0 : fe[q.labelKey],
|
|
43660
|
+
value: (re = q.modelValue) == null ? void 0 : re[q.valueKey]
|
|
43658
43661
|
}, {
|
|
43659
43662
|
default: Ln(() => [
|
|
43660
|
-
To(
|
|
43663
|
+
To(q.$slots, "default", { item: q.modelValue }, void 0, !0)
|
|
43661
43664
|
]),
|
|
43662
43665
|
_: 3
|
|
43663
43666
|
}, 8, ["label", "value"])) : Ve("", !0),
|
|
43664
43667
|
(Wn(!0), No(Fl, null, wa(s.value, (F) => (Wn(), nr(nn(Ff), {
|
|
43665
|
-
key: F[
|
|
43666
|
-
label: F[
|
|
43667
|
-
value: F[
|
|
43668
|
-
disabled: F[
|
|
43668
|
+
key: F[q.valueKey],
|
|
43669
|
+
label: F[q.labelKey],
|
|
43670
|
+
value: F[q.valueKey],
|
|
43671
|
+
disabled: F[q.disabledKey]
|
|
43669
43672
|
}, {
|
|
43670
43673
|
default: Ln(() => [
|
|
43671
|
-
To(
|
|
43674
|
+
To(q.$slots, "default", { item: F }, void 0, !0)
|
|
43672
43675
|
]),
|
|
43673
43676
|
_: 2
|
|
43674
43677
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
@@ -43700,7 +43703,7 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43700
43703
|
options: s.value
|
|
43701
43704
|
}, {
|
|
43702
43705
|
...nn(G),
|
|
43703
|
-
...
|
|
43706
|
+
...q.$attrs
|
|
43704
43707
|
}, {
|
|
43705
43708
|
"remote-method": nn(p),
|
|
43706
43709
|
onFocus: y,
|
|
@@ -43708,7 +43711,7 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43708
43711
|
onVisibleChange: D
|
|
43709
43712
|
}), Fu({
|
|
43710
43713
|
default: Ln((_) => [
|
|
43711
|
-
To(
|
|
43714
|
+
To(q.$slots, "default", xr(yr(_)), void 0, !0)
|
|
43712
43715
|
]),
|
|
43713
43716
|
_: 2
|
|
43714
43717
|
}, [
|
|
@@ -43731,7 +43734,7 @@ const KQ = /* @__PURE__ */ rt({
|
|
|
43731
43734
|
]), 1040, ["modelValue", "props", "options", "remote-method"]));
|
|
43732
43735
|
}
|
|
43733
43736
|
});
|
|
43734
|
-
const Kv = /* @__PURE__ */ pw(KQ, [["__scopeId", "data-v-
|
|
43737
|
+
const Kv = /* @__PURE__ */ pw(KQ, [["__scopeId", "data-v-987bb1f7"]]), JQ = /* @__PURE__ */ rt({
|
|
43735
43738
|
__name: "index",
|
|
43736
43739
|
props: {
|
|
43737
43740
|
lang: {}
|