@vue-ui-kit/ant 2.5.11 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +7 -7
- package/dist/es/index.js +523 -514
- package/dist/index.d.ts +19 -3
- package/dist/style.css +4 -4
- package/package.json +85 -85
- package/src/declarations/antProxy.ts +516 -516
- package/src/packages/components/PCanvasGrid.vue +11 -0
- package/src/packages/components/PCanvasTable.vue +7 -1
- package/src/packages/styles/canvas-theme.scss +4 -4
package/dist/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDynamicComponent as D, toDisplayString as O, toRefs as
|
|
2
|
-
import { AutoComplete as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDynamicComponent as D, toDisplayString as O, toRefs as k, toValue as A, unref as j, useAttrs as ee, useModel as te, useSlots as ne, watch as M, watchEffect as N, withCtx as P } from "vue";
|
|
2
|
+
import { AutoComplete as F, Button as I, Cascader as L, Checkbox as re, CheckboxGroup as R, DatePicker as ie, Dropdown as ae, Form as oe, Input as se, InputNumber as ce, Mentions as z, Menu as B, MenuItem as le, Modal as ue, Pagination as de, RadioGroup as fe, RangePicker as pe, Rate as me, Row as he, Select as ge, Slider as _e, Spin as ve, Switch as ye, TabPane as be, Table as xe, Tabs as Se, Textarea as Ce, TimePicker as we, Tooltip as Te, TreeSelect as Ee, TypographyParagraph as De, message as Oe } from "ant-design-vue";
|
|
3
3
|
import * as ke from "@ant-design/icons-vue";
|
|
4
4
|
import { DownOutlined as Ae, InfoCircleOutlined as je, MoreOutlined as Me } from "@ant-design/icons-vue";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -829,7 +829,7 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
829
829
|
w[E[0]] = E[1] + "?", T.push(E[0]);
|
|
830
830
|
}
|
|
831
831
|
var D = new RegExp(T.join("|"), "g"), O = {};
|
|
832
|
-
function
|
|
832
|
+
function k(e, t) {
|
|
833
833
|
var n = O[t];
|
|
834
834
|
if (!n) {
|
|
835
835
|
var r = [], i = t.replace(/([$(){}*+.?\\^|])/g, "\\$1").replace(D, function(e, t) {
|
|
@@ -848,23 +848,23 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
848
848
|
}
|
|
849
849
|
return a;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function A(e) {
|
|
852
852
|
if (/^[zZ]/.test(e.Z)) return new Date(r(e));
|
|
853
853
|
var t = e.Z.match(/([-+])(\d{2}):?(\d{2})/);
|
|
854
854
|
return t ? /* @__PURE__ */ new Date(r(e) - (t[1] === "-" ? -1 : 1) * n(t[2]) * 36e5 + n(t[3]) * 6e4) : /* @__PURE__ */ new Date("");
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function j(e, t) {
|
|
857
857
|
if (e) {
|
|
858
858
|
var r = o(e);
|
|
859
859
|
if (r || !t && /^[0-9]{11,15}$/.test(e)) return new Date(r ? i(e) : n(e));
|
|
860
860
|
if (a(e)) {
|
|
861
|
-
var s = t ?
|
|
862
|
-
if (s.y) return s.M &&= l(s.M) - 1, s.S &&= c(l(s.S.substring(0, 3))), s.Z ?
|
|
861
|
+
var s = t ? k(e, t) : S(e);
|
|
862
|
+
if (s.y) return s.M &&= l(s.M) - 1, s.S &&= c(l(s.S.substring(0, 3))), s.Z ? A(s) : new Date(s.y, s.M || 0, s.d || 1, s.H || 0, s.m || 0, s.s || 0, s.S || 0);
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
return /* @__PURE__ */ new Date("");
|
|
866
866
|
}
|
|
867
|
-
t.exports =
|
|
867
|
+
t.exports = j;
|
|
868
868
|
})), un = /* @__PURE__ */ H(((e, t) => {
|
|
869
869
|
function n() {
|
|
870
870
|
return /* @__PURE__ */ new Date();
|
|
@@ -1596,14 +1596,14 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
1596
1596
|
return p(e.getSeconds(), n, "0");
|
|
1597
1597
|
}, O = function(t, n) {
|
|
1598
1598
|
return p(e.getMilliseconds(), n, "0");
|
|
1599
|
-
},
|
|
1599
|
+
}, k = function(t, n) {
|
|
1600
1600
|
var r = e.getTimezoneOffset() / 60 * -1;
|
|
1601
1601
|
return m(e, b, t, (r >= 0 ? "+" : "-") + p(r, 2, "0") + (n === 1 ? ":" : "") + "00");
|
|
1602
|
-
},
|
|
1602
|
+
}, A = function(t, r) {
|
|
1603
1603
|
return p(m(e, b, t, s(e, f(g.firstDay) ? n.firstDayOfWeek : g.firstDay)), r, "0");
|
|
1604
|
-
},
|
|
1604
|
+
}, j = function(t, n) {
|
|
1605
1605
|
return p(m(e, b, t, c(e)), n, "0");
|
|
1606
|
-
},
|
|
1606
|
+
}, ee = {
|
|
1607
1607
|
yyyy: x,
|
|
1608
1608
|
yy: x,
|
|
1609
1609
|
MM: S,
|
|
@@ -1620,12 +1620,12 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
1620
1620
|
s: D,
|
|
1621
1621
|
SSS: O,
|
|
1622
1622
|
S: O,
|
|
1623
|
-
ZZ:
|
|
1624
|
-
Z:
|
|
1625
|
-
WW:
|
|
1626
|
-
W:
|
|
1627
|
-
DDD:
|
|
1628
|
-
D:
|
|
1623
|
+
ZZ: k,
|
|
1624
|
+
Z: k,
|
|
1625
|
+
WW: A,
|
|
1626
|
+
W: A,
|
|
1627
|
+
DDD: j,
|
|
1628
|
+
D: j,
|
|
1629
1629
|
a: function(t) {
|
|
1630
1630
|
return m(e, b, t, y);
|
|
1631
1631
|
},
|
|
@@ -1643,7 +1643,7 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
1643
1643
|
}
|
|
1644
1644
|
};
|
|
1645
1645
|
return _.replace(h, function(e, t) {
|
|
1646
|
-
return t || (
|
|
1646
|
+
return t || (ee[e] ? ee[e](e, e.length) : e);
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
return "Invalid Date";
|
|
@@ -2155,7 +2155,7 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
2155
2155
|
}
|
|
2156
2156
|
t.exports = l;
|
|
2157
2157
|
})), Hi = /* @__PURE__ */ H(((e, t) => {
|
|
2158
|
-
var n = J(), r = q(), i = We(), a = Xe(), o = $e(), s = tt(), c = nt(), l = it(), u = at(), d = st(), f = U(), p = Ye(), m = ct(), h = ut(), g = lt(), _ = _t(), v = gt(), y = bt(), b = xt(), x = wt(), S = Tt(), C = Et(), w = ot(), T = Dt(), E = Ot(), D = kt(), O = At(),
|
|
2158
|
+
var n = J(), r = q(), i = We(), a = Xe(), o = $e(), s = tt(), c = nt(), l = it(), u = at(), d = st(), f = U(), p = Ye(), m = ct(), h = ut(), g = lt(), _ = _t(), v = gt(), y = bt(), b = xt(), x = wt(), S = Tt(), C = Et(), w = ot(), T = Dt(), E = Ot(), D = kt(), O = At(), k = jt(), A = It(), j = Ft(), ee = Lt(), te = Rt(), ne = Mt(), M = zt(), N = Kt(), P = qt(), F = Yt(), I = Xt(), L = Zt(), re = Qt(), R = $t(), ie = en(), ae = tn(), oe = Ue(), se = W(), ce = Ze(), z = rn(), B = dt(), le = K(), ue = Ut(), de = an(), fe = Y(), pe = dn(), me = on(), he = ft(), ge = G(), _e = fn(), ve = pn(), ye = hn(), be = gn(), xe = qe(), Se = yt(), Ce = Je(), we = _n(), Te = Ht(), Ee = Gt(), De = Wt(), Oe = vn(), ke = bn(), Ae = yn(), je = xn(), Me = nn(), Ne = Sn(), Pe = Cn(), Fe = wn(), V = Tn(), Ie = En(), Le = Dn(), H = On(), Re = An(), ze = Mn(), Be = Nn(), Ve = Pn(), He = Fn(), Ge = In(), Ke = Ln(), et = Un(), rt = Hn(), X = Wn(), pt = Gn(), mt = Kn(), St = zn(), Nt = qn(), Bt = Jn(), Vt = Yn(), Jt = Xn(), sn = Qn(), cn = $n(), Z = er(), un = tr(), mn = nr(), kn = ht(), jn = rr(), Rn = ir(), Bn = ar(), Vn = or(), Zn = sr(), lr = vt(), ur = Pt(), dr = cr(), pr = br(), mr = hr(), Cr = gr(), Er = _r(), Ar = yr(), jr = xr(), Mr = Ct(), Nr = fr(), Pr = wr(), zr = Tr(), Gr = Sr(), Kr = Dr(), Jr = Or(), Yr = kr(), di = Lr(), fi = Rr(), hi = Ir(), gi = Br(), ji = Vr(), Ni = Hr(), Fi = Ur(), Ii = Wr(), Hi = ln(), Ui = Qr(), Wi = $r(), Gi = ei(), Ki = Fr(), qi = ti(), Ji = Xr(), Yi = qr(), Q = ni(), Xi = ri(), $ = ii(), Zi = ai(), Qi = oi(), $i = Zr(), ea = si(), ta = ui(), na = ci(), ra = li(), ia = pi(), aa = mi(), oa = _i(), sa = vi(), ca = yi(), la = bi(), ua = xi(), da = Si(), fa = vr(), pa = Ci(), ma = Qe(), ha = wi(), ga = Ti(), _a = Ei(), va = Di(), ya = Oi(), ba = ki(), xa = Ai(), Sa = Mi(), Ca = Pi(), wa = Li(), Ta = Ri(), Ea = zi(), Da = Bi();
|
|
2159
2159
|
r(n, {
|
|
2160
2160
|
assign: r,
|
|
2161
2161
|
objectEach: i,
|
|
@@ -2176,49 +2176,49 @@ var Ne = Object.create, Pe = Object.defineProperty, Fe = Object.getOwnPropertyDe
|
|
|
2176
2176
|
findLast: E,
|
|
2177
2177
|
findKey: C,
|
|
2178
2178
|
includes: w,
|
|
2179
|
-
arrayIndexOf:
|
|
2180
|
-
arrayLastIndexOf:
|
|
2179
|
+
arrayIndexOf: ie,
|
|
2180
|
+
arrayLastIndexOf: ae,
|
|
2181
2181
|
map: c,
|
|
2182
2182
|
reduce: D,
|
|
2183
2183
|
copyWithin: O,
|
|
2184
|
-
chunk:
|
|
2185
|
-
zip:
|
|
2186
|
-
unzip:
|
|
2187
|
-
zipObject:
|
|
2188
|
-
flatten:
|
|
2184
|
+
chunk: k,
|
|
2185
|
+
zip: A,
|
|
2186
|
+
unzip: j,
|
|
2187
|
+
zipObject: ee,
|
|
2188
|
+
flatten: te,
|
|
2189
2189
|
toArray: g,
|
|
2190
2190
|
includeArrays: d,
|
|
2191
|
-
pluck:
|
|
2192
|
-
invoke:
|
|
2191
|
+
pluck: ne,
|
|
2192
|
+
invoke: M,
|
|
2193
2193
|
arrayEach: f,
|
|
2194
2194
|
lastArrayEach: p,
|
|
2195
|
-
toArrayTree:
|
|
2196
|
-
toTreeArray:
|
|
2197
|
-
findTree:
|
|
2198
|
-
eachTree:
|
|
2199
|
-
mapTree:
|
|
2200
|
-
filterTree:
|
|
2201
|
-
searchTree:
|
|
2202
|
-
hasOwnProp:
|
|
2195
|
+
toArrayTree: N,
|
|
2196
|
+
toTreeArray: P,
|
|
2197
|
+
findTree: F,
|
|
2198
|
+
eachTree: I,
|
|
2199
|
+
mapTree: L,
|
|
2200
|
+
filterTree: re,
|
|
2201
|
+
searchTree: R,
|
|
2202
|
+
hasOwnProp: oe,
|
|
2203
2203
|
eqNull: he,
|
|
2204
|
-
isNaN:
|
|
2204
|
+
isNaN: z,
|
|
2205
2205
|
isFinite: Oe,
|
|
2206
|
-
isUndefined:
|
|
2207
|
-
isArray:
|
|
2206
|
+
isUndefined: B,
|
|
2207
|
+
isArray: se,
|
|
2208
2208
|
isFloat: ke,
|
|
2209
2209
|
isInteger: Ae,
|
|
2210
|
-
isFunction:
|
|
2210
|
+
isFunction: le,
|
|
2211
2211
|
isBoolean: je,
|
|
2212
|
-
isString:
|
|
2212
|
+
isString: de,
|
|
2213
2213
|
isNumber: Me,
|
|
2214
2214
|
isRegExp: Ne,
|
|
2215
|
-
isObject:
|
|
2216
|
-
isPlainObject:
|
|
2215
|
+
isObject: ue,
|
|
2216
|
+
isPlainObject: fe,
|
|
2217
2217
|
isDate: me,
|
|
2218
2218
|
isError: Pe,
|
|
2219
2219
|
isTypeError: Fe,
|
|
2220
2220
|
isEmpty: V,
|
|
2221
|
-
isNull:
|
|
2221
|
+
isNull: ce,
|
|
2222
2222
|
isSymbol: Ie,
|
|
2223
2223
|
isArguments: Le,
|
|
2224
2224
|
isElement: H,
|
|
@@ -2555,10 +2555,10 @@ var da = (e) => ({
|
|
|
2555
2555
|
return (0, Q.zipObject)(ga, ga.map((e) => t.every((t) => $(t[e])) ? ha(t.map((t) => t[e])) : 24));
|
|
2556
2556
|
};
|
|
2557
2557
|
function va(e, t, n) {
|
|
2558
|
-
let r =
|
|
2559
|
-
if (typeof r != "object" || !r) return
|
|
2558
|
+
let r = A(e);
|
|
2559
|
+
if (typeof r != "object" || !r) return M(e, t, n);
|
|
2560
2560
|
let i = (0, Q.clone)(r, !0);
|
|
2561
|
-
return
|
|
2561
|
+
return M(e, (e, n, r) => {
|
|
2562
2562
|
t(e, i, r), i = (0, Q.clone)(e, !0);
|
|
2563
2563
|
}, n);
|
|
2564
2564
|
}
|
|
@@ -2668,7 +2668,7 @@ var ya = "-", ba = {
|
|
|
2668
2668
|
size: "small",
|
|
2669
2669
|
pagination: !1
|
|
2670
2670
|
};
|
|
2671
|
-
|
|
2671
|
+
M(() => u.modelValue, () => {
|
|
2672
2672
|
m("trigger");
|
|
2673
2673
|
}, { deep: !0 });
|
|
2674
2674
|
let f = t(() => (0, Q.merge)({}, d, u.tableConfig)), m = l, h = t({
|
|
@@ -2699,10 +2699,10 @@ var ya = "-", ba = {
|
|
|
2699
2699
|
});
|
|
2700
2700
|
return (e, t) => {
|
|
2701
2701
|
let l = E("a-form-item-rest"), u = E("a-table"), d = E("a-button");
|
|
2702
|
-
return x(), i("div", null, [c(u, p({ "data-source": h.value }, f.value, { columns: g.value.map((e) =>
|
|
2702
|
+
return x(), i("div", null, [c(u, p({ "data-source": h.value }, f.value, { columns: g.value.map((e) => j(da)(e)) }), o({ _: 2 }, [y.value.length > 0 ? {
|
|
2703
2703
|
name: "bodyCell",
|
|
2704
|
-
fn:
|
|
2705
|
-
default:
|
|
2704
|
+
fn: P(({ column: e, record: t, index: i }) => [c(l, null, {
|
|
2705
|
+
default: P(() => [y.value.some((t) => e.key && t.field === e.key) ? (x(), n(j(wa), {
|
|
2706
2706
|
key: i,
|
|
2707
2707
|
"row-index": i,
|
|
2708
2708
|
"default-handler": {},
|
|
@@ -2722,7 +2722,7 @@ var ya = "-", ba = {
|
|
|
2722
2722
|
type: "primary",
|
|
2723
2723
|
onClick: _
|
|
2724
2724
|
}, {
|
|
2725
|
-
default:
|
|
2725
|
+
default: P(() => [...t[0] ||= [s("+添加", -1)]]),
|
|
2726
2726
|
_: 1
|
|
2727
2727
|
})])]);
|
|
2728
2728
|
};
|
|
@@ -2788,23 +2788,23 @@ var ya = "-", ba = {
|
|
|
2788
2788
|
},
|
|
2789
2789
|
autoComplete: { inputProps: {} }
|
|
2790
2790
|
}, Aa = {
|
|
2791
|
-
$input:
|
|
2792
|
-
AInput:
|
|
2791
|
+
$input: se,
|
|
2792
|
+
AInput: se,
|
|
2793
2793
|
$textarea: Ce,
|
|
2794
2794
|
Textarea: Ce,
|
|
2795
|
-
$number:
|
|
2796
|
-
AInputNumber:
|
|
2795
|
+
$number: ce,
|
|
2796
|
+
AInputNumber: ce,
|
|
2797
2797
|
$select: ge,
|
|
2798
2798
|
ASelect: ge,
|
|
2799
|
-
$date:
|
|
2800
|
-
ADatePicker:
|
|
2799
|
+
$date: ie,
|
|
2800
|
+
ADatePicker: ie,
|
|
2801
2801
|
$range: pe,
|
|
2802
2802
|
ARangePicker: pe,
|
|
2803
|
-
AAutoComplete:
|
|
2804
|
-
$Cascader:
|
|
2805
|
-
ACascader:
|
|
2806
|
-
ACheckbox:
|
|
2807
|
-
AMentions:
|
|
2803
|
+
AAutoComplete: F,
|
|
2804
|
+
$Cascader: L,
|
|
2805
|
+
ACascader: L,
|
|
2806
|
+
ACheckbox: re,
|
|
2807
|
+
AMentions: z,
|
|
2808
2808
|
ARate: me,
|
|
2809
2809
|
ASlider: _e,
|
|
2810
2810
|
$time: we,
|
|
@@ -2855,8 +2855,8 @@ var ya = "-", ba = {
|
|
|
2855
2855
|
} }), null);
|
|
2856
2856
|
}
|
|
2857
2857
|
};
|
|
2858
|
-
}, Ma = (e, t, n) => e.dropdowns && e.dropdowns.length > 0 && e.dropdowns.filter((e) => !e.hiddenIf?.(t)).length > 0 ? c(
|
|
2859
|
-
default: () => c(
|
|
2858
|
+
}, Ma = (e, t, n) => e.dropdowns && e.dropdowns.length > 0 && e.dropdowns.filter((e) => !e.hiddenIf?.(t)).length > 0 ? c(ae, { getPopupContainer: n ?? (() => document.querySelector(".p-wrapper")) }, {
|
|
2859
|
+
default: () => c(I, p((0, Q.omit)(e, [
|
|
2860
2860
|
"dynamicClassName",
|
|
2861
2861
|
"content",
|
|
2862
2862
|
"getContent",
|
|
@@ -2866,7 +2866,7 @@ var ya = "-", ba = {
|
|
|
2866
2866
|
"getProps"
|
|
2867
2867
|
]), { icon: e.icon ? c(Da, { icon: e.icon }, null) : c(Da, { icon: "DownOutlined" }, null) }, e.getProps?.(t) ?? {}), { default: () => [e.content || (e?.getContent?.(t) ?? "")] }),
|
|
2868
2868
|
overlay: () => c("div", { class: `dropdown-wrapper ${e?.dynamicClassName?.(t) ?? ""}` }, [e.dropdowns.filter((e) => !e.hiddenIf?.(t)).map((e) => Ma(e, t, n))])
|
|
2869
|
-
}) : c(
|
|
2869
|
+
}) : c(I, p({ class: e?.dynamicClassName?.(t) || "" }, (0, Q.omit)(e, [
|
|
2870
2870
|
"dynamicClassName",
|
|
2871
2871
|
"content",
|
|
2872
2872
|
"getContent",
|
|
@@ -2883,7 +2883,7 @@ var ya = "-", ba = {
|
|
|
2883
2883
|
...Object.fromEntries(Object.keys(Aa).map((e) => [e, ja(e)])),
|
|
2884
2884
|
$button: {
|
|
2885
2885
|
renderItemContent({ props: e = {}, events: t = {} }, { data: n, field: r }, i) {
|
|
2886
|
-
return c(
|
|
2886
|
+
return c(I, p((0, Q.omit)(e, ["content"]), {
|
|
2887
2887
|
icon: e.icon ? c(Da, { icon: e.icon }, null) : null,
|
|
2888
2888
|
onClick: () => {
|
|
2889
2889
|
t.click?.({
|
|
@@ -2911,7 +2911,7 @@ var ya = "-", ba = {
|
|
|
2911
2911
|
}) ?? null] });
|
|
2912
2912
|
},
|
|
2913
2913
|
renderDefault({ props: e = {}, events: t = {} }, { row: n, field: r }, i) {
|
|
2914
|
-
return c(
|
|
2914
|
+
return c(I, p((0, Q.omit)(e, ["content"]), {
|
|
2915
2915
|
icon: e.icon ? c(Da, { icon: e.icon }, null) : null,
|
|
2916
2916
|
onClick: () => {
|
|
2917
2917
|
t.click?.({
|
|
@@ -2956,7 +2956,7 @@ var ya = "-", ba = {
|
|
|
2956
2956
|
},
|
|
2957
2957
|
$buttons: {
|
|
2958
2958
|
renderItemContent({ props: e = {}, children: t = [] }, { data: n, field: r }, i) {
|
|
2959
|
-
return c("span", { class: "align-gap-box w-fit" }, [t.map((t) => c(
|
|
2959
|
+
return c("span", { class: "align-gap-box w-fit" }, [t.map((t) => c(I, p((0, Q.omit)(Object.assign({}, e, t.props), ["content"]), {
|
|
2960
2960
|
icon: t.props.icon ? c(Da, { icon: t.props.icon }, null) : null,
|
|
2961
2961
|
onClick: () => {
|
|
2962
2962
|
t.events?.click?.({
|
|
@@ -2999,7 +2999,7 @@ var ya = "-", ba = {
|
|
|
2999
2999
|
data: n,
|
|
3000
3000
|
row: r,
|
|
3001
3001
|
field: i
|
|
3002
|
-
})).map((t) => c(
|
|
3002
|
+
})).map((t) => c(I, p((0, Q.omit)(Object.assign({}, e, t.props), ["content", "hiddenIf"]), {
|
|
3003
3003
|
icon: t.props.icon ? c(Da, { icon: t.props.icon }, null) : null,
|
|
3004
3004
|
onClick: () => {
|
|
3005
3005
|
t.events?.click?.({
|
|
@@ -3052,7 +3052,7 @@ var ya = "-", ba = {
|
|
|
3052
3052
|
} },
|
|
3053
3053
|
$radio: {
|
|
3054
3054
|
renderItemContent({ props: e = {}, events: t = {}, options: n, defaultValue: r }, { data: i, field: a }) {
|
|
3055
|
-
return Qi(r) && $(a) && Zi(i[a]) && (i[a] = r), $(a) ? c(
|
|
3055
|
+
return Qi(r) && $(a) && Zi(i[a]) && (i[a] = r), $(a) ? c(fe, p({
|
|
3056
3056
|
value: i[a],
|
|
3057
3057
|
"onUpdate:value": (e) => i[a] = e
|
|
3058
3058
|
}, e, {
|
|
@@ -3067,20 +3067,20 @@ var ya = "-", ba = {
|
|
|
3067
3067
|
}), null) : null;
|
|
3068
3068
|
},
|
|
3069
3069
|
renderDefault({ props: e = {}, options: t }, { row: n, field: r }) {
|
|
3070
|
-
return $(r) ? c(
|
|
3070
|
+
return $(r) ? c(fe, p({
|
|
3071
3071
|
value: n[r],
|
|
3072
3072
|
"onUpdate:value": (e) => n[r] = e
|
|
3073
3073
|
}, e, { options: e.options ?? t ?? [] }), null) : null;
|
|
3074
3074
|
},
|
|
3075
3075
|
renderReadonly({ props: e = {}, options: t }, { data: n, field: r }) {
|
|
3076
|
-
return $(r) ? c(
|
|
3076
|
+
return $(r) ? c(fe, p({
|
|
3077
3077
|
value: n[r],
|
|
3078
3078
|
"onUpdate:value": (e) => n[r] = e
|
|
3079
3079
|
}, (0, Q.merge)({}, { disabled: !0 }, e), { options: e.options ?? t ?? [] }), null) : null;
|
|
3080
3080
|
}
|
|
3081
3081
|
},
|
|
3082
3082
|
$autoComplete: { renderItemContent({ props: e = {}, events: t = {} }, { data: n, field: r }) {
|
|
3083
|
-
return $(r) ? c(
|
|
3083
|
+
return $(r) ? c(F, p({
|
|
3084
3084
|
value: n[r],
|
|
3085
3085
|
"onUpdate:value": (e) => n[r] = e
|
|
3086
3086
|
}, Object.assign({}, { filterOption: ka.autoComplete.filterOption }, e), { onChange: (...e) => {
|
|
@@ -3111,7 +3111,7 @@ var ya = "-", ba = {
|
|
|
3111
3111
|
},
|
|
3112
3112
|
$checkbox: {
|
|
3113
3113
|
renderItemContent({ props: e = {}, options: t, events: n = {}, defaultValue: r }, { data: i, field: a }) {
|
|
3114
|
-
return Qi(r) && $(a) && Zi(i[a]) && (i[a] = r), $(a) ? c(
|
|
3114
|
+
return Qi(r) && $(a) && Zi(i[a]) && (i[a] = r), $(a) ? c(R, p({
|
|
3115
3115
|
value: i[a],
|
|
3116
3116
|
"onUpdate:value": (e) => i[a] = e
|
|
3117
3117
|
}, e, {
|
|
@@ -3125,13 +3125,13 @@ var ya = "-", ba = {
|
|
|
3125
3125
|
}), null) : null;
|
|
3126
3126
|
},
|
|
3127
3127
|
renderDefault({ props: e = {}, options: t }, { row: n, field: r }) {
|
|
3128
|
-
return $(r) ? c(
|
|
3128
|
+
return $(r) ? c(R, p({
|
|
3129
3129
|
value: n[r],
|
|
3130
3130
|
"onUpdate:value": (e) => n[r] = e
|
|
3131
3131
|
}, e, { options: e.options ?? t ?? [] }), null) : null;
|
|
3132
3132
|
},
|
|
3133
3133
|
renderReadonly({ props: e = {}, options: t }, { data: n, field: r }) {
|
|
3134
|
-
return $(r) ? c(
|
|
3134
|
+
return $(r) ? c(R, p({
|
|
3135
3135
|
value: n[r],
|
|
3136
3136
|
"onUpdate:value": (e) => n[r] = e
|
|
3137
3137
|
}, (0, Q.merge)({}, { disabled: !0 }, e), { options: e.options ?? t ?? [] }), null) : null;
|
|
@@ -3216,7 +3216,7 @@ var ya = "-", ba = {
|
|
|
3216
3216
|
renders: Na,
|
|
3217
3217
|
addRender: Pa
|
|
3218
3218
|
}, Ia = /* @__PURE__ */ l((e, { emit: t }) => {
|
|
3219
|
-
let { itemRender: n, defaultHandler: r } = e, { renderFormParams: i } =
|
|
3219
|
+
let { itemRender: n, defaultHandler: r } = e, { renderFormParams: i } = k(e), a = (e) => {
|
|
3220
3220
|
t("trigger", e);
|
|
3221
3221
|
}, o = (e, n) => {
|
|
3222
3222
|
t("delayTrigger", e, n);
|
|
@@ -3244,7 +3244,7 @@ var ya = "-", ba = {
|
|
|
3244
3244
|
},
|
|
3245
3245
|
emits: ["trigger", "delayTrigger"]
|
|
3246
3246
|
}), La = /* @__PURE__ */ l((e) => {
|
|
3247
|
-
let { formData: t } =
|
|
3247
|
+
let { formData: t } = k(e);
|
|
3248
3248
|
return () => e.item.slots?.default?.({
|
|
3249
3249
|
data: t.value,
|
|
3250
3250
|
field: e.item.field
|
|
@@ -3288,15 +3288,15 @@ var ya = "-", ba = {
|
|
|
3288
3288
|
(0, Q.isEqual)(e, t) || h();
|
|
3289
3289
|
}, { deep: !0 }), (t, r) => {
|
|
3290
3290
|
let a = E("a-form-item"), s = E("a-col");
|
|
3291
|
-
return x(), n(s, p({ key: `_col_${l.value}` }, e.item.col ?? (e.item.span ? { span: e.item.span } :
|
|
3292
|
-
default:
|
|
3291
|
+
return x(), n(s, p({ key: `_col_${l.value}` }, e.item.col ?? (e.item.span ? { span: e.item.span } : j(fa))), {
|
|
3292
|
+
default: P(() => [(x(), n(a, p({
|
|
3293
3293
|
key: `_item_${l.value}`,
|
|
3294
3294
|
class: [`p-content-align-${e.item.align ?? "left"} ${e.item.forceRequired ? "p-required" : ""}`, { "p-error-hang-out": c.value }],
|
|
3295
3295
|
colon: "",
|
|
3296
3296
|
label: e.item.title,
|
|
3297
3297
|
name: e.item.field,
|
|
3298
3298
|
"wrapper-col": e.item.wrapperCol ?? (e.item.title ? void 0 : { span: 24 })
|
|
3299
|
-
},
|
|
3299
|
+
}, j(Q.omit)(e.item, [
|
|
3300
3300
|
"field",
|
|
3301
3301
|
"title",
|
|
3302
3302
|
"span",
|
|
@@ -3306,13 +3306,13 @@ var ya = "-", ba = {
|
|
|
3306
3306
|
"forceRequired",
|
|
3307
3307
|
"tooltip"
|
|
3308
3308
|
])), o({
|
|
3309
|
-
default:
|
|
3309
|
+
default: P(() => [e.item.slots?.default ? (x(), n(j(La), {
|
|
3310
3310
|
key: `_sl_${e.item.field ?? "_"}_${l.value}`,
|
|
3311
3311
|
"form-data": e.formData,
|
|
3312
3312
|
item: e.item,
|
|
3313
3313
|
"pass-delay-trigger": u,
|
|
3314
3314
|
"pass-trigger": f
|
|
3315
|
-
}, null, 8, ["form-data", "item"])) : e.item.itemRender?.name ? (x(), n(
|
|
3315
|
+
}, null, 8, ["form-data", "item"])) : e.item.itemRender?.name ? (x(), n(j(Ia), {
|
|
3316
3316
|
key: `_re_${e.item.field ?? "_"}_${l.value}`,
|
|
3317
3317
|
"default-handler": { reset: m },
|
|
3318
3318
|
"item-render": e.item.itemRender,
|
|
@@ -3330,11 +3330,11 @@ var ya = "-", ba = {
|
|
|
3330
3330
|
_: 2
|
|
3331
3331
|
}, [e.item.slots?.title ? {
|
|
3332
3332
|
name: "label",
|
|
3333
|
-
fn:
|
|
3333
|
+
fn: P(() => [(x(), n(D(e.item.slots.title)))]),
|
|
3334
3334
|
key: "0"
|
|
3335
3335
|
} : void 0, g.value ? {
|
|
3336
3336
|
name: "tooltip",
|
|
3337
|
-
fn:
|
|
3337
|
+
fn: P(() => [(x(), n(D(g.value)))]),
|
|
3338
3338
|
key: "1"
|
|
3339
3339
|
} : void 0]), 1040, [
|
|
3340
3340
|
"class",
|
|
@@ -3382,7 +3382,7 @@ var ya = "-", ba = {
|
|
|
3382
3382
|
},
|
|
3383
3383
|
emits: ["apply", "reset"],
|
|
3384
3384
|
setup(a, { expose: o, emit: s }) {
|
|
3385
|
-
let l = a, u = s, { items: d, data: f } =
|
|
3385
|
+
let l = a, u = s, { items: d, data: f } = k(l);
|
|
3386
3386
|
function m() {
|
|
3387
3387
|
u("apply", f.value);
|
|
3388
3388
|
}
|
|
@@ -3415,17 +3415,17 @@ var ya = "-", ba = {
|
|
|
3415
3415
|
return o({
|
|
3416
3416
|
reset: _,
|
|
3417
3417
|
$form: t(() => h.value)
|
|
3418
|
-
}), (t, o) =>
|
|
3418
|
+
}), (t, o) => j(d).some((e) => e.field && e.itemRender || e.slots?.default) ? (x(), i("div", Ba, [(x(), n(j(oe), p({
|
|
3419
3419
|
name: a.name,
|
|
3420
3420
|
key: g.value,
|
|
3421
3421
|
ref_key: "formEl",
|
|
3422
3422
|
ref: h,
|
|
3423
|
-
model:
|
|
3423
|
+
model: j(f)
|
|
3424
3424
|
}, y.value, { onSubmit: m }), {
|
|
3425
|
-
default:
|
|
3426
|
-
default:
|
|
3425
|
+
default: P(() => [c(j(he), { gutter: [6, 12] }, {
|
|
3426
|
+
default: P(() => [(x(!0), i(e, null, w(j(d), (e, t) => (x(), n(za, {
|
|
3427
3427
|
key: `_col_${e.field || t}`,
|
|
3428
|
-
"form-data":
|
|
3428
|
+
"form-data": j(f),
|
|
3429
3429
|
item: e,
|
|
3430
3430
|
onReset: v,
|
|
3431
3431
|
onTrigger: S
|
|
@@ -3442,7 +3442,7 @@ var ya = "-", ba = {
|
|
|
3442
3442
|
name: "RenderAntTitle",
|
|
3443
3443
|
props: ["column"]
|
|
3444
3444
|
}), Ua = ({ title: e, content: t }) => new Promise((n, r) => {
|
|
3445
|
-
|
|
3445
|
+
ue.confirm({
|
|
3446
3446
|
title: e,
|
|
3447
3447
|
content: t,
|
|
3448
3448
|
onOk: () => {
|
|
@@ -3580,38 +3580,38 @@ var $a = { key: 0 }, eo = {
|
|
|
3580
3580
|
"resetQuery"
|
|
3581
3581
|
],
|
|
3582
3582
|
setup(l, { expose: u, emit: d }) {
|
|
3583
|
-
let f = l, { formConfig: g, pageConfig: _, columns: b, toolbarConfig: T, proxyConfig:
|
|
3583
|
+
let f = l, { formConfig: g, pageConfig: _, columns: b, toolbarConfig: T, proxyConfig: A, tableConfig: te, selectConfig: ne, scrollMode: N } = k(f), F = t(() => f.autoBoxSizeOffset ?? ca().autoBoxSizeOffset), L = S({
|
|
3584
3584
|
table: !1,
|
|
3585
3585
|
toolbar: !1,
|
|
3586
3586
|
form: !1
|
|
3587
|
-
}),
|
|
3587
|
+
}), re = (e) => {
|
|
3588
3588
|
(0, Q.isObject)(e) ? Object.keys(e).forEach((t) => {
|
|
3589
|
-
|
|
3590
|
-
}) : (0, Q.isBoolean)(e) && (
|
|
3591
|
-
},
|
|
3592
|
-
let { ajax: t } =
|
|
3589
|
+
L[t] = e[t];
|
|
3590
|
+
}) : (0, Q.isBoolean)(e) && (L.form = e, L.table = e, L.toolbar = e);
|
|
3591
|
+
}, R = C(), ie = C(), ae = C(), se = C(), ce = C(500), z = C([]), B = C([]), le = (e) => {
|
|
3592
|
+
let { ajax: t } = A.value;
|
|
3593
3593
|
switch (e) {
|
|
3594
3594
|
case "multiDelete":
|
|
3595
|
-
t.multiDelete && (
|
|
3595
|
+
t.multiDelete && (z.value.length > 0 ? Ua({
|
|
3596
3596
|
title: "警告",
|
|
3597
3597
|
content: "确认删除选中的数据吗?"
|
|
3598
3598
|
}).then(() => {
|
|
3599
|
-
|
|
3599
|
+
L.table = !0, L.toolbar = !0, t.multiDelete(z.value).then(() => {
|
|
3600
3600
|
Oe.success("删除成功"), ze();
|
|
3601
3601
|
}).catch(() => {
|
|
3602
3602
|
Oe.error("删除失败");
|
|
3603
3603
|
}).finally(() => {
|
|
3604
|
-
|
|
3604
|
+
L.table = !1, L.toolbar = !1, ge.multiDelete = !1;
|
|
3605
3605
|
});
|
|
3606
3606
|
}) : Oe.warn("请选择要删除的数据"));
|
|
3607
3607
|
break;
|
|
3608
3608
|
}
|
|
3609
|
-
},
|
|
3609
|
+
}, ue = t(() => {
|
|
3610
3610
|
let e = [];
|
|
3611
3611
|
return ta(b.value ?? [], (t) => {
|
|
3612
3612
|
t.slots && t.slots.title && (t.field ||= "__holder__" + e.length, e.push(t));
|
|
3613
3613
|
}), e;
|
|
3614
|
-
}),
|
|
3614
|
+
}), de = C(), fe = C(), pe = C(Yi()), me = C(Yi()), ge = S([...(f.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(f.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), _e = (e, t) => {
|
|
3615
3615
|
ge[e] = t;
|
|
3616
3616
|
}, ye = (0, Q.debounce)(() => {
|
|
3617
3617
|
me.value = Yi();
|
|
@@ -3623,20 +3623,20 @@ var $a = { key: 0 }, eo = {
|
|
|
3623
3623
|
}), Se = S({
|
|
3624
3624
|
page: 1,
|
|
3625
3625
|
size: _.value?.pageSize ?? 10
|
|
3626
|
-
}), Ce = C(0), we = C(0), Te = C([]), Ee = t(() =>
|
|
3626
|
+
}), Ce = C(0), we = C(0), Te = C([]), Ee = t(() => A.value && A.value.ajax ? _.value ? "pagination" : "list" : "bad"), De = t(() => !!ne.value?.showCount), ke = ee(), je = d, Me = t(() => B.value.filter((e) => z.value.includes(e[f.rowKey ?? "id"]))), Ne = (0, Q.debounce)((e) => {
|
|
3627
3627
|
je("toolbarButtonClick", {
|
|
3628
3628
|
data: Te.value,
|
|
3629
3629
|
code: e,
|
|
3630
|
-
selectedKeys:
|
|
3630
|
+
selectedKeys: z.value,
|
|
3631
3631
|
records: Me.value
|
|
3632
|
-
}),
|
|
3632
|
+
}), le(e);
|
|
3633
3633
|
}, 100), Pe = ({ key: e }) => Ne(e), Fe = (0, Q.debounce)((e) => {
|
|
3634
3634
|
je("toolbarToolClick", {
|
|
3635
3635
|
data: Te.value,
|
|
3636
3636
|
code: e,
|
|
3637
|
-
selectedKeys:
|
|
3637
|
+
selectedKeys: z.value,
|
|
3638
3638
|
records: Me.value
|
|
3639
|
-
}),
|
|
3639
|
+
}), le(e);
|
|
3640
3640
|
}, 100), V = C({}), Ie = ({ row: e, field: t }) => {
|
|
3641
3641
|
je("pick", {
|
|
3642
3642
|
row: e,
|
|
@@ -3659,49 +3659,49 @@ var $a = { key: 0 }, eo = {
|
|
|
3659
3659
|
total: (0, Q.isString)(t.total) ? (0, Q.get)(e, t.total) : (0, Q.isFunction)(t.total) ? t.total(e) : void 0,
|
|
3660
3660
|
result: (0, Q.isString)(t.result) ? (0, Q.get)(e, t.result) : (0, Q.isFunction)(t.result) ? t.result(e) : void 0,
|
|
3661
3661
|
message: (0, Q.isString)(t.message) ? (0, Q.get)(e, t.message) : (0, Q.isFunction)(t.message) ? t.message(e) : void 0
|
|
3662
|
-
} : { list: e }, Re = () => (
|
|
3662
|
+
} : { list: e }, Re = () => (B.value = [], z.value = [], Le()), ze = () => (Se.page = 1, B.value = [], z.value = [], U()), Be = (e, t) => (Se.page = e, Se.size = t, U()), U = () => new Promise((e) => {
|
|
3663
3663
|
if (Ee.value !== "bad") {
|
|
3664
|
-
|
|
3665
|
-
let { ajax: t } =
|
|
3664
|
+
L.form = !0, L.table = !0;
|
|
3665
|
+
let { ajax: t } = A.value;
|
|
3666
3666
|
t.query({
|
|
3667
3667
|
form: V.value,
|
|
3668
3668
|
page: Se
|
|
3669
3669
|
}).then((t) => {
|
|
3670
|
-
let { list: n, total: r, result: i, message: a } = H(t,
|
|
3670
|
+
let { list: n, total: r, result: i, message: a } = H(t, A.value.response);
|
|
3671
3671
|
n ? (Te.value = n, Ce.value++) : i ? (Te.value = i, we.value = r ?? i.length, Ce.value++) : (Te.value = [], Ce.value++, a && Oe.warn(a)), e(Te.value);
|
|
3672
3672
|
}).catch((t) => {
|
|
3673
3673
|
console.error("fetchData error", t), e([]);
|
|
3674
3674
|
}).finally(() => {
|
|
3675
|
-
|
|
3675
|
+
L.form = !1, L.table = !1;
|
|
3676
3676
|
});
|
|
3677
3677
|
}
|
|
3678
3678
|
}), Ve = (0, Q.debounce)(U, 160), He = (e, t) => (Object.assign(V.value, e), Se.page = 1, t ? Promise.resolve() : Ve()), W = (e, t) => (V.value = e, Se.page = 1, t ? Promise.resolve() : Ve()), Ue = {
|
|
3679
3679
|
size: "small",
|
|
3680
3680
|
sticky: !0,
|
|
3681
3681
|
transformCellText: ({ text: e }) => (0, Q.isArray)(e) && e.length === 0 ? "-" : e
|
|
3682
|
-
}, We = t(() => (0, Q.merge)({}, Ue,
|
|
3683
|
-
type:
|
|
3682
|
+
}, We = t(() => (0, Q.merge)({}, Ue, te?.value ?? {}, ne.value ? { rowSelection: {
|
|
3683
|
+
type: ne.value.multiple ? "checkbox" : "radio",
|
|
3684
3684
|
preserveSelectedRowKeys: !0,
|
|
3685
|
-
selectedRowKeys:
|
|
3685
|
+
selectedRowKeys: z.value,
|
|
3686
3686
|
onChange: (e) => {
|
|
3687
|
-
|
|
3688
|
-
let t = f.rowKey ?? "id", n =
|
|
3689
|
-
|
|
3687
|
+
z.value = e;
|
|
3688
|
+
let t = f.rowKey ?? "id", n = B.value.map((e) => e[t]), r = e.filter((e) => !n.includes(e)).map((e) => Te.value.find((n) => n[t] === e)).filter((e) => !!e);
|
|
3689
|
+
B.value = [...B.value, ...r];
|
|
3690
3690
|
},
|
|
3691
|
-
getCheckboxProps:
|
|
3691
|
+
getCheckboxProps: ne.value.getCheckboxProps
|
|
3692
3692
|
} } : {})), G = t(() => (0, Q.omit)({
|
|
3693
3693
|
labelCol: pa,
|
|
3694
3694
|
...g.value
|
|
3695
3695
|
}, ["items"])), Ge = () => {
|
|
3696
3696
|
ze();
|
|
3697
3697
|
};
|
|
3698
|
-
|
|
3698
|
+
M(() => [
|
|
3699
3699
|
b.value,
|
|
3700
|
-
|
|
3700
|
+
A.value,
|
|
3701
3701
|
T.value
|
|
3702
3702
|
], () => {
|
|
3703
3703
|
ye();
|
|
3704
|
-
}, { deep: !0 }),
|
|
3704
|
+
}, { deep: !0 }), M(() => [
|
|
3705
3705
|
me.value,
|
|
3706
3706
|
Ce.value,
|
|
3707
3707
|
Ee.value,
|
|
@@ -3710,13 +3710,13 @@ var $a = { key: 0 }, eo = {
|
|
|
3710
3710
|
let K = null, Ke = () => {
|
|
3711
3711
|
K?.destroy(), K = null;
|
|
3712
3712
|
}, qe = () => {
|
|
3713
|
-
Ke(), !(!f.autoBoxSize || !
|
|
3713
|
+
Ke(), !(!f.autoBoxSize || !R.value) && (K = Qa(() => R.value ?? void 0, () => Ja(F.value), { onLayout: () => {
|
|
3714
3714
|
m(() => J());
|
|
3715
3715
|
} }), K.attach());
|
|
3716
3716
|
};
|
|
3717
|
-
|
|
3717
|
+
M(() => f.autoBoxSize, (e) => {
|
|
3718
3718
|
e ? m(() => qe()) : Ke();
|
|
3719
|
-
}),
|
|
3719
|
+
}), M(F, () => {
|
|
3720
3720
|
f.autoBoxSize && K?.update();
|
|
3721
3721
|
}, { deep: !0 });
|
|
3722
3722
|
let Je = null, q = (e) => {
|
|
@@ -3724,21 +3724,21 @@ var $a = { key: 0 }, eo = {
|
|
|
3724
3724
|
return t ? t.querySelector(".ant-table-header") || t.querySelector(".ant-table-thead") : null;
|
|
3725
3725
|
}, J = () => {
|
|
3726
3726
|
Je && cancelAnimationFrame(Je), Je = requestAnimationFrame(() => {
|
|
3727
|
-
if (Je = null, !
|
|
3727
|
+
if (Je = null, !ae.value) return;
|
|
3728
3728
|
if (Qi(f.renderY)) {
|
|
3729
|
-
|
|
3729
|
+
ce.value = f.renderY;
|
|
3730
3730
|
return;
|
|
3731
3731
|
}
|
|
3732
3732
|
if (f.fitContent) {
|
|
3733
3733
|
let e = typeof window < "u" ? window.innerHeight : 800, t = f.fitHeight ?? 30;
|
|
3734
|
-
|
|
3734
|
+
ce.value = Math.max(Math.floor(e * .6) - t, 160);
|
|
3735
3735
|
return;
|
|
3736
3736
|
}
|
|
3737
|
-
let e =
|
|
3738
|
-
|
|
3737
|
+
let e = ae.value.clientHeight, t = se.value?.offsetHeight ?? 0, n = q(ae.value)?.getBoundingClientRect().height ?? 0, r = f.fitHeight ?? 30;
|
|
3738
|
+
ce.value = Math.max(e - t - n - r, 100);
|
|
3739
3739
|
});
|
|
3740
3740
|
}, Ye = null;
|
|
3741
|
-
|
|
3741
|
+
M(ie, (e) => {
|
|
3742
3742
|
Ye?.disconnect(), Ye = null, e && (Ye = new ResizeObserver(() => J()), Ye.observe(e));
|
|
3743
3743
|
}, { immediate: !0 }), u({
|
|
3744
3744
|
commitProxy: {
|
|
@@ -3748,13 +3748,13 @@ var $a = { key: 0 }, eo = {
|
|
|
3748
3748
|
passQuery: He,
|
|
3749
3749
|
forcePassQuery: W
|
|
3750
3750
|
},
|
|
3751
|
-
$table: t(() =>
|
|
3752
|
-
selectedRowKeys: t(() =>
|
|
3751
|
+
$table: t(() => fe.value),
|
|
3752
|
+
selectedRowKeys: t(() => z.value),
|
|
3753
3753
|
setBtnLoading: _e,
|
|
3754
3754
|
selectedRecords: Me,
|
|
3755
|
-
$form: t(() =>
|
|
3755
|
+
$form: t(() => de.value),
|
|
3756
3756
|
getFormData: () => V.value,
|
|
3757
|
-
setLoadings:
|
|
3757
|
+
setLoadings: re,
|
|
3758
3758
|
resizeTable: J
|
|
3759
3759
|
});
|
|
3760
3760
|
let Xe, Ze = null, Qe = null, $e = null;
|
|
@@ -3766,15 +3766,15 @@ var $a = { key: 0 }, eo = {
|
|
|
3766
3766
|
window.getComputedStyle(t).display !== "none" && J();
|
|
3767
3767
|
}
|
|
3768
3768
|
});
|
|
3769
|
-
}),
|
|
3770
|
-
Xe.observe(
|
|
3769
|
+
}), R.value) {
|
|
3770
|
+
Xe.observe(R.value, {
|
|
3771
3771
|
attributes: !0,
|
|
3772
3772
|
attributeFilter: ["style"]
|
|
3773
3773
|
}), Ze = new ResizeObserver(() => J());
|
|
3774
|
-
let e =
|
|
3774
|
+
let e = R.value.parentElement;
|
|
3775
3775
|
for (let t = 0; t < 5 && e && e !== document.body; t++) Ze.observe(e), e = e.parentElement;
|
|
3776
3776
|
}
|
|
3777
|
-
Qe = new ResizeObserver(() => J()),
|
|
3777
|
+
Qe = new ResizeObserver(() => J()), ae.value && Qe.observe(ae.value), $e = new ResizeObserver(() => J()), se.value && $e.observe(se.value), Le(f.manualFetch), m(() => {
|
|
3778
3778
|
f.autoBoxSize && qe(), J();
|
|
3779
3779
|
});
|
|
3780
3780
|
});
|
|
@@ -3788,24 +3788,24 @@ var $a = { key: 0 }, eo = {
|
|
|
3788
3788
|
let d = E("a-menu-item"), m = E("a-menu"), _ = E("a-dropdown"), v = E("a-pagination");
|
|
3789
3789
|
return x(), i("div", p({
|
|
3790
3790
|
ref_key: "boxEl",
|
|
3791
|
-
ref:
|
|
3791
|
+
ref: R,
|
|
3792
3792
|
class: ["p-wrapper flex flex-col gap-8px", l.fitContent ? "w-full h-auto" : l.autoBoxSize ? "overflow-y-auto min-h-0 min-w-0 flex-1 w-full" : "overflow-y-auto h-full"]
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3793
|
+
}, j(ke)), [Ee.value === "bad" ? (x(), i("div", $a, "请检查配置")) : (x(), i(e, { key: 1 }, [
|
|
3794
|
+
j(g)?.items?.some((e) => e.field && e.itemRender) ? (x(), i("div", {
|
|
3795
3795
|
key: 0,
|
|
3796
3796
|
class: "p-pane p-form-wrapper",
|
|
3797
3797
|
ref_key: "pFormWrapper",
|
|
3798
|
-
ref:
|
|
3799
|
-
}, [c(
|
|
3800
|
-
default:
|
|
3801
|
-
name:
|
|
3798
|
+
ref: ie
|
|
3799
|
+
}, [c(j(ve), { spinning: L.form }, {
|
|
3800
|
+
default: P(() => [(x(), n(j(oe), p({
|
|
3801
|
+
name: j(g)?.name,
|
|
3802
3802
|
key: pe.value,
|
|
3803
3803
|
ref_key: "formEl",
|
|
3804
|
-
ref:
|
|
3804
|
+
ref: de,
|
|
3805
3805
|
model: V.value
|
|
3806
3806
|
}, G.value, { onSubmit: Ge }), {
|
|
3807
|
-
default:
|
|
3808
|
-
default:
|
|
3807
|
+
default: P(() => [c(j(he), { gutter: [6, 12] }, {
|
|
3808
|
+
default: P(() => [(x(!0), i(e, null, w(j(g).items, (e, t) => (x(), n(za, {
|
|
3809
3809
|
key: `_col_${e.field || t}`,
|
|
3810
3810
|
"form-data": V.value,
|
|
3811
3811
|
item: e,
|
|
@@ -3817,31 +3817,31 @@ var $a = { key: 0 }, eo = {
|
|
|
3817
3817
|
}, 16, ["name", "model"]))]),
|
|
3818
3818
|
_: 1
|
|
3819
3819
|
}, 8, ["spinning"])], 512)) : r("", !0),
|
|
3820
|
-
|
|
3821
|
-
overlay:
|
|
3822
|
-
default:
|
|
3823
|
-
default:
|
|
3820
|
+
j(T) ? (x(), i("div", eo, [a("div", to, [j(T).buttons && j(T).buttons.length > 0 ? (x(!0), i(e, { key: 0 }, w(j(T).buttons, (t, o) => (x(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (x(), n(_, { key: 0 }, {
|
|
3821
|
+
overlay: P(() => [c(m, { onClick: Pe }, {
|
|
3822
|
+
default: P(() => [(x(!0), i(e, null, w(t.dropdowns, (t) => (x(), n(d, { key: t.code }, {
|
|
3823
|
+
default: P(() => [t.content && et(Y(t.content)) ? (x(), i(e, { key: 0 }, [s(O(Y(t.content)), 1)], 64)) : t.content ? (x(), n(D(Y(t.content)), { key: 1 })) : r("", !0)]),
|
|
3824
3824
|
_: 2
|
|
3825
3825
|
}, 1024))), 128))]),
|
|
3826
3826
|
_: 2
|
|
3827
3827
|
}, 1024)]),
|
|
3828
|
-
default:
|
|
3828
|
+
default: P(() => [c(j(I), {
|
|
3829
3829
|
type: t.type,
|
|
3830
3830
|
size: t.size ?? "middle",
|
|
3831
|
-
disabled:
|
|
3832
|
-
loading:
|
|
3831
|
+
disabled: j(T).disabled || t.disabled,
|
|
3832
|
+
loading: L.toolbar || !!t.code && ge[t.code],
|
|
3833
3833
|
danger: t.danger,
|
|
3834
3834
|
shape: t.shape,
|
|
3835
3835
|
ghost: t.ghost,
|
|
3836
3836
|
block: t.block
|
|
3837
3837
|
}, {
|
|
3838
|
-
default:
|
|
3839
|
-
t.icon ? (x(), n(
|
|
3838
|
+
default: P(() => [a("div", no, [
|
|
3839
|
+
t.icon ? (x(), n(j(Da), {
|
|
3840
3840
|
key: 0,
|
|
3841
3841
|
icon: t.icon
|
|
3842
3842
|
}, null, 8, ["icon"])) : r("", !0),
|
|
3843
3843
|
t.content && et(Y(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Y(t.content)), 1)], 64)) : t.content ? (x(), n(D(Y(t.content)), { key: 2 })) : r("", !0),
|
|
3844
|
-
c(
|
|
3844
|
+
c(j(Ae))
|
|
3845
3845
|
])]),
|
|
3846
3846
|
_: 2
|
|
3847
3847
|
}, 1032, [
|
|
@@ -3855,19 +3855,19 @@ var $a = { key: 0 }, eo = {
|
|
|
3855
3855
|
"block"
|
|
3856
3856
|
])]),
|
|
3857
3857
|
_: 2
|
|
3858
|
-
}, 1024)) : t.code ? (x(), n(
|
|
3858
|
+
}, 1024)) : t.code ? (x(), n(j(I), {
|
|
3859
3859
|
key: 1,
|
|
3860
3860
|
type: t.type,
|
|
3861
3861
|
size: t.size ?? "middle",
|
|
3862
|
-
disabled:
|
|
3863
|
-
loading:
|
|
3862
|
+
disabled: j(T).disabled || t.disabled,
|
|
3863
|
+
loading: L.toolbar || !!t.code && ge[t.code],
|
|
3864
3864
|
danger: t.danger,
|
|
3865
3865
|
shape: t.shape,
|
|
3866
3866
|
ghost: t.ghost,
|
|
3867
3867
|
block: t.block,
|
|
3868
|
-
onClick: (e) =>
|
|
3868
|
+
onClick: (e) => j(Ne)(t.code)
|
|
3869
3869
|
}, {
|
|
3870
|
-
default:
|
|
3870
|
+
default: P(() => [a("div", ro, [t.icon ? (x(), n(j(Da), {
|
|
3871
3871
|
key: 0,
|
|
3872
3872
|
icon: t.icon
|
|
3873
3873
|
}, null, 8, ["icon"])) : r("", !0), t.content && et(Y(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Y(t.content)), 1)], 64)) : t.content ? (x(), n(D(Y(t.content)), { key: 2 })) : r("", !0)])]),
|
|
@@ -3882,19 +3882,19 @@ var $a = { key: 0 }, eo = {
|
|
|
3882
3882
|
"ghost",
|
|
3883
3883
|
"block",
|
|
3884
3884
|
"onClick"
|
|
3885
|
-
])) : (x(), i("div", io))], 64))), 128)) : r("", !0)]), a("span", ao, [
|
|
3885
|
+
])) : (x(), i("div", io))], 64))), 128)) : r("", !0)]), a("span", ao, [j(T).tools && j(T).tools.length > 0 ? (x(!0), i(e, { key: 0 }, w(j(T).tools, (t, o) => (x(), n(j(I), {
|
|
3886
3886
|
key: o,
|
|
3887
3887
|
type: t.type,
|
|
3888
3888
|
size: t.size ?? "middle",
|
|
3889
|
-
disabled:
|
|
3889
|
+
disabled: j(T).disabled || t.disabled,
|
|
3890
3890
|
danger: t.danger,
|
|
3891
3891
|
shape: t.shape,
|
|
3892
3892
|
ghost: t.ghost,
|
|
3893
3893
|
block: t.block,
|
|
3894
|
-
onClick: (e) =>
|
|
3895
|
-
loading:
|
|
3894
|
+
onClick: (e) => j(Fe)(t.code),
|
|
3895
|
+
loading: L.toolbar || !!t.code && ge[t.code]
|
|
3896
3896
|
}, {
|
|
3897
|
-
default:
|
|
3897
|
+
default: P(() => [a("div", oo, [t.icon ? (x(), n(j(Da), {
|
|
3898
3898
|
key: 0,
|
|
3899
3899
|
icon: t.icon
|
|
3900
3900
|
}, null, 8, ["icon"])) : r("", !0), t.content && et(Y(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Y(t.content)), 1)], 64)) : t.content ? (x(), n(D(Y(t.content)), { key: 2 })) : r("", !0)])]),
|
|
@@ -3912,36 +3912,36 @@ var $a = { key: 0 }, eo = {
|
|
|
3912
3912
|
]))), 128)) : r("", !0)])])) : r("", !0),
|
|
3913
3913
|
a("div", {
|
|
3914
3914
|
ref_key: "tableWrapperEl",
|
|
3915
|
-
ref:
|
|
3916
|
-
class: h(l.fitContent ? "p-pane" : `p-pane flex-1 h-0 min-h-0 flex flex-col p-${
|
|
3917
|
-
}, [a("div", { class: h(l.fitContent ? "p-grid-table-body" : "p-grid-table-body flex-1 min-h-0 overflow-hidden") }, [(x(), n(
|
|
3915
|
+
ref: ae,
|
|
3916
|
+
class: h(l.fitContent ? "p-pane" : `p-pane flex-1 h-0 min-h-0 flex flex-col p-${j(N) ?? "inner"}-scroll`)
|
|
3917
|
+
}, [a("div", { class: h(l.fitContent ? "p-grid-table-body" : "p-grid-table-body flex-1 min-h-0 overflow-hidden") }, [(x(), n(j(xe), p({
|
|
3918
3918
|
key: me.value + "_table",
|
|
3919
3919
|
"row-key": l.rowKey ?? "id",
|
|
3920
3920
|
ref_key: "tableEl",
|
|
3921
|
-
ref:
|
|
3921
|
+
ref: fe,
|
|
3922
3922
|
"row-class-name": l.striped ? (e, t) => t % 2 == 1 ? "p-grid-row-striped" : "" : "",
|
|
3923
|
-
columns: nt(
|
|
3923
|
+
columns: nt(j(b) ?? []).map((e) => j(da)(e)),
|
|
3924
3924
|
"data-source": Te.value,
|
|
3925
|
-
loading:
|
|
3925
|
+
loading: L.table,
|
|
3926
3926
|
pagination: !1
|
|
3927
3927
|
}, We.value, { scroll: {
|
|
3928
3928
|
x: "max-content",
|
|
3929
|
-
y:
|
|
3930
|
-
} }), o({ _: 2 }, [
|
|
3929
|
+
y: ce.value
|
|
3930
|
+
} }), o({ _: 2 }, [ue.value.length > 0 ? {
|
|
3931
3931
|
name: "headerCell",
|
|
3932
|
-
fn:
|
|
3932
|
+
fn: P(({ column: e }) => [ue.value.some((t) => e.key && t.field === e.key) ? (x(), n(j(Ha), {
|
|
3933
3933
|
key: me.value + "_title_" + Ce.value + "_slot_" + e.key,
|
|
3934
|
-
column:
|
|
3934
|
+
column: ue.value.find((t) => e.key && t.field === e.key)
|
|
3935
3935
|
}, null, 8, ["column"])) : r("", !0)]),
|
|
3936
3936
|
key: "0"
|
|
3937
3937
|
} : void 0, be.value.length > 0 ? {
|
|
3938
3938
|
name: "bodyCell",
|
|
3939
|
-
fn:
|
|
3939
|
+
fn: P(({ column: e, record: t, index: i }) => [be.value.some((t) => e.key && t.field === e.key) ? (x(), n(j(wa), {
|
|
3940
3940
|
key: me.value + "_cell_" + Ce.value + "_slot_" + e.key,
|
|
3941
3941
|
column: be.value.find((t) => e.key && t.field === e.key),
|
|
3942
3942
|
"default-handler": {
|
|
3943
3943
|
pick: Ie,
|
|
3944
|
-
setLoadings:
|
|
3944
|
+
setLoadings: re
|
|
3945
3945
|
},
|
|
3946
3946
|
row: t,
|
|
3947
3947
|
"row-index": i,
|
|
@@ -3963,9 +3963,9 @@ var $a = { key: 0 }, eo = {
|
|
|
3963
3963
|
"scroll"
|
|
3964
3964
|
]))], 2), a("div", {
|
|
3965
3965
|
ref_key: "tableFooterEl",
|
|
3966
|
-
ref:
|
|
3966
|
+
ref: se,
|
|
3967
3967
|
class: "flex-shrink-0"
|
|
3968
|
-
}, [Ee.value !== "pagination" && De.value ? (x(), i("div", so, " 已选:" + O(
|
|
3968
|
+
}, [Ee.value !== "pagination" && De.value ? (x(), i("div", so, " 已选:" + O(z.value.length), 1)) : Ee.value === "pagination" ? (x(), i("div", co, [a("div", lo, [De.value ? (x(), i(e, { key: 0 }, [s(" 已选:" + O(z.value.length), 1)], 64)) : r("", !0)]), c(v, {
|
|
3969
3969
|
size: "small",
|
|
3970
3970
|
responsive: !1,
|
|
3971
3971
|
"show-size-changer": !0,
|
|
@@ -4267,22 +4267,22 @@ var $a = { key: 0 }, eo = {
|
|
|
4267
4267
|
function O(e, t) {
|
|
4268
4268
|
return !T(e) || !t ? 0 : D(e);
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function k(e) {
|
|
4271
4271
|
return +!!T(e);
|
|
4272
4272
|
}
|
|
4273
|
-
function
|
|
4273
|
+
function A(e) {
|
|
4274
4274
|
return !T(e);
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4276
|
+
function j(e) {
|
|
4277
4277
|
return !T(e);
|
|
4278
4278
|
}
|
|
4279
|
-
function
|
|
4279
|
+
function ee(e, t) {
|
|
4280
4280
|
return T(e) && t;
|
|
4281
4281
|
}
|
|
4282
|
-
function
|
|
4282
|
+
function te(e, t) {
|
|
4283
4283
|
return T(e) ? t.innerVisible || t.isFocus || t.isDragging : !0;
|
|
4284
4284
|
}
|
|
4285
|
-
class
|
|
4285
|
+
class ne {
|
|
4286
4286
|
constructor(e, t, r, i, a, o, s) {
|
|
4287
4287
|
n(this, "ctx"), n(this, "x", 0), n(this, "y", 0), n(this, "width", 0), n(this, "height", 0), n(this, "visibleWidth", 0), n(this, "visibleHeight", 0), n(this, "fixed"), n(this, "cellType"), n(this, "drawX", 0), n(this, "drawY", 0), n(this, "cellImages", /* @__PURE__ */ new Map()), this.ctx = e, this.x = t, this.y = r, this.width = i, this.height = a, this.fixed = s, this.cellType = o;
|
|
4288
4288
|
}
|
|
@@ -4329,7 +4329,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4329
4329
|
return i ? i.isInside(n, r) : !1;
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
|
-
class
|
|
4332
|
+
class M {
|
|
4333
4333
|
constructor(e, t, r, i, a, o) {
|
|
4334
4334
|
n(this, "source"), n(this, "name"), n(this, "x"), n(this, "y"), n(this, "width"), n(this, "height"), n(this, "visible", !0), this.source = o, this.name = e, this.x = t - 1, this.y = r - 1, this.width = i, this.height = a;
|
|
4335
4335
|
}
|
|
@@ -4347,27 +4347,27 @@ var $a = { key: 0 }, eo = {
|
|
|
4347
4347
|
return this.visible ? !!(this.source && e > this.x && e < this.x + this.width && t > this.y && t < this.y + this.height) : !1;
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
|
-
function M(e) {
|
|
4351
|
-
return e === !0 ? "default" : e === !1 ? "inner" : e;
|
|
4352
|
-
}
|
|
4353
4350
|
function N(e) {
|
|
4354
|
-
return
|
|
4351
|
+
return e === !0 ? "default" : e === !1 ? "inner" : e;
|
|
4355
4352
|
}
|
|
4356
4353
|
function P(e) {
|
|
4357
|
-
|
|
4358
|
-
return t === "default" || t === "inner";
|
|
4354
|
+
return N(e) === "default";
|
|
4359
4355
|
}
|
|
4360
4356
|
function F(e) {
|
|
4361
|
-
let t =
|
|
4362
|
-
return t === "default" || t === "
|
|
4357
|
+
let t = N(e);
|
|
4358
|
+
return t === "default" || t === "inner";
|
|
4363
4359
|
}
|
|
4364
4360
|
function I(e) {
|
|
4365
|
-
|
|
4361
|
+
let t = N(e);
|
|
4362
|
+
return t === "default" || t === "outer";
|
|
4366
4363
|
}
|
|
4367
|
-
function
|
|
4368
|
-
return
|
|
4364
|
+
function L(e) {
|
|
4365
|
+
return N(e) === "default";
|
|
4369
4366
|
}
|
|
4370
|
-
|
|
4367
|
+
function re(e, t) {
|
|
4368
|
+
return L(e) || t;
|
|
4369
|
+
}
|
|
4370
|
+
class R extends ne {
|
|
4371
4371
|
constructor(e, t, r, i, a, o, s, c, l, u = "body", d = !0) {
|
|
4372
4372
|
super(e, i, a, o, s, u, c.fixed), n(this, "parentRowKey", ""), n(this, "parentRowKeys", []), n(this, "formatter"), n(this, "formatterFooter"), n(this, "hoverIconName", ""), n(this, "operation", !1), n(this, "align"), n(this, "verticalAlign"), n(this, "fixed"), n(this, "type"), n(this, "editorType"), n(this, "editorProps"), n(this, "cellType"), n(this, "level"), n(this, "colspan", 1), n(this, "rowspan", 1), n(this, "mergeRow", !1), n(this, "mergeCol", !1), n(this, "relationRowKeys", []), n(this, "relationColKeys", []), n(this, "key"), n(this, "column"), n(this, "rowIndex"), n(this, "colIndex"), n(this, "rowKey"), n(this, "row"), n(this, "value"), n(this, "render"), n(this, "renderFooter"), n(this, "style", {}), n(this, "domDataset", {}), n(this, "rules", []), n(this, "message", ""), n(this, "text", ""), n(this, "displayText", ""), n(this, "visibleWidth", 0), n(this, "visibleHeight", 0), n(this, "isHasChanged", !1), n(this, "drawX", 0), n(this, "drawY", 0), n(this, "drawCellBgColor", ""), n(this, "drawCellSkyBgColor", ""), n(this, "drawTextColor", ""), n(this, "drawTextFont", ""), n(this, "drawTextX", 0), n(this, "drawTextY", 0), n(this, "drawTextWidth", 0), n(this, "drawTextHeight", 0), n(this, "autoRowHeight", !1), n(this, "calculatedHeight", 0), n(this, "ellipsis", !1), n(this, "rowExpand", !1), n(this, "rowHasChildren", !1), n(this, "overflowTooltipShow", !0), n(this, "selectorCellValueType", "value"), n(this, "overflowTooltipMaxWidth", 500), n(this, "overflowTooltipPlacement", "top"), n(this, "maxLineClamp", "auto"), n(this, "precision"), n(this, "min"), n(this, "max"), n(this, "maxlength"), n(this, "mixedRender", !1), n(this, "renderType", "default"), n(this, "renderFooterType", "default"), this.visibleWidth = this.width, this.visibleHeight = this.height, this.colIndex = r, this.rowIndex = t, this.key = c.key, this.type = c.type || "", this.editorType = c.editorType || "text", this.selectorCellValueType = c.selectorCellValueType || this.ctx.config.SELECTOR_CELL_VALUE_TYPE || "value", this.editorProps = c.editorProps || {}, this.cellType = u, this.align = c.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = c.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = c.fixed || "", this.level = c.level || 0, this.operation = c.operation || !1, this.column = c, this.rules = c.rules || [], this.row = l, this.rowKey = this.cellType === "body" ? this.ctx.database.getRowKeyForRowIndex(t) : `${this.cellType}_${this.rowIndex}`, this.value = this.getValue(), this.render = c.render, this.overflowTooltipShow = c.overflowTooltipShow !== !1, this.autoRowHeight = c.autoRowHeight === void 0 ? this.ctx.config.AUTO_ROW_HEIGHT : c.autoRowHeight, this.overflowTooltipMaxWidth = c.overflowTooltipMaxWidth || 500, this.overflowTooltipPlacement = c.overflowTooltipPlacement || "top", this.renderFooter = c.renderFooter, this.hoverIconName = c.hoverIconName, this.formatter = c.formatter, this.formatterFooter = c.formatterFooter, this.maxLineClamp = c.maxLineClamp || "auto", this.precision = c.precision, this.min = c.min, this.max = c.max, this.maxlength = c.maxlength, this.mixedRender = c.mixedRender || !1, this.renderType = c.renderType || "default", this.renderFooterType = c.renderFooterType || "default";
|
|
4373
4373
|
let f = this.ctx.database.getRowForRowKey(this.rowKey);
|
|
@@ -4502,11 +4502,11 @@ var $a = { key: 0 }, eo = {
|
|
|
4502
4502
|
let t = y.x, n = y.width;
|
|
4503
4503
|
g = i + t + n, v = g + p - e / 2;
|
|
4504
4504
|
} else this.type === "tree-selection" ? (g += x, v = g + d + p - e / 2) : (g += x, v = g + p - e / 2);
|
|
4505
|
-
this.drawTextX = v, this.drawTextWidth = this.drawX + this.visibleWidth - v, !(g + p + e > this.drawX + this.visibleWidth) && (_ + m + e > this.drawY + this.visibleHeight || this.setImage("tree", new
|
|
4505
|
+
this.drawTextX = v, this.drawTextWidth = this.drawX + this.visibleWidth - v, !(g + p + e > this.drawX + this.visibleWidth) && (_ + m + e > this.drawY + this.visibleHeight || this.setImage("tree", new M(a, g, _, p, m, r)));
|
|
4506
4506
|
}
|
|
4507
4507
|
updateDragImage() {
|
|
4508
4508
|
if (this.cellType === "body" && this.column.dragRow) {
|
|
4509
|
-
let { DRAG_ROW_ICON_SIZE: e, CELL_PADDING: t } = this.ctx.config, n = new
|
|
4509
|
+
let { DRAG_ROW_ICON_SIZE: e, CELL_PADDING: t } = this.ctx.config, n = new M("drag", this.drawX + t / 2, this.drawY + (this.visibleHeight - e) / 2, e, e, this.ctx.icons.get("drag"));
|
|
4510
4510
|
this.rowspan === 0 && n.setVisible(!1), this.setImage("drag", n);
|
|
4511
4511
|
}
|
|
4512
4512
|
}
|
|
@@ -4640,7 +4640,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4640
4640
|
}
|
|
4641
4641
|
let g = this.getImage("drag"), _ = g ? g.width : 0;
|
|
4642
4642
|
if (f += _, f + l + u > this.drawX + this.visibleWidth || p + l + u > this.drawY + this.visibleHeight) return;
|
|
4643
|
-
let v = new
|
|
4643
|
+
let v = new M(h, f, p, l, l, m);
|
|
4644
4644
|
if (a === "index-selection") {
|
|
4645
4645
|
v.setVisible(!1), (this.ctx.hoverCell && this.ctx.hoverCell.rowIndex === o || ["checkbox-disabled", "checkbox-check"].includes(h)) && v.setVisible(!0);
|
|
4646
4646
|
let e = this.rowIndex, t = this.rowIndex, n = this.ctx.hoverCell, { yArr: r } = this.getSpanInfo();
|
|
@@ -4671,7 +4671,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4671
4671
|
e = this.drawX - c + i - t - n, a = this.drawY - s + (o - t) / 2;
|
|
4672
4672
|
}
|
|
4673
4673
|
}
|
|
4674
|
-
let o = this.ctx.icons.get(this.hoverIconName), s = new
|
|
4674
|
+
let o = this.ctx.icons.get(this.hoverIconName), s = new M(this.hoverIconName, e, a, t, t, o);
|
|
4675
4675
|
(this.rowspan === 0 || this.colspan === 0) && s.setVisible(!1), this.setImage("hover", s);
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
@@ -4760,7 +4760,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4760
4760
|
};
|
|
4761
4761
|
}
|
|
4762
4762
|
drawContainer() {
|
|
4763
|
-
let { paint: e, config: { BORDER_COLOR: t, BORDER: n } } = this.ctx, { drawX: r, drawY: i } = this, a =
|
|
4763
|
+
let { paint: e, config: { BORDER_COLOR: t, BORDER: n } } = this.ctx, { drawX: r, drawY: i } = this, a = P(n);
|
|
4764
4764
|
e.drawRect(r, i, this.visibleWidth, this.visibleHeight, {
|
|
4765
4765
|
borderColor: a ? t : "transparent",
|
|
4766
4766
|
fillColor: this.drawCellBgColor
|
|
@@ -4771,7 +4771,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4771
4771
|
}
|
|
4772
4772
|
drawHorizontalBorder() {
|
|
4773
4773
|
let { config: { BORDER_COLOR: e, BORDER: t } } = this.ctx;
|
|
4774
|
-
if (
|
|
4774
|
+
if (P(t) || !F(t)) return;
|
|
4775
4775
|
let { drawX: n, drawY: r } = this;
|
|
4776
4776
|
this.ctx.paint.drawLine([
|
|
4777
4777
|
n,
|
|
@@ -4974,7 +4974,7 @@ var $a = { key: 0 }, eo = {
|
|
|
4974
4974
|
}
|
|
4975
4975
|
}
|
|
4976
4976
|
}
|
|
4977
|
-
class
|
|
4977
|
+
class ie {
|
|
4978
4978
|
constructor(e, t) {
|
|
4979
4979
|
n(this, "ctx"), n(this, "data"), n(this, "columns"), n(this, "footerData", []), n(this, "rowKeyMap", /* @__PURE__ */ new Map()), n(this, "colIndexKeyMap", /* @__PURE__ */ new Map()), n(this, "headerMap", /* @__PURE__ */ new Map()), n(this, "rowIndexRowKeyMap", /* @__PURE__ */ new Map()), n(this, "rowKeyRowIndexMap", /* @__PURE__ */ new Map()), n(this, "checkboxKeyMap", /* @__PURE__ */ new Map()), n(this, "selectionMap", /* @__PURE__ */ new Map()), n(this, "expandMap", /* @__PURE__ */ new Map()), n(this, "originalDataMap", /* @__PURE__ */ new Map()), n(this, "changedDataMap", /* @__PURE__ */ new Map()), n(this, "validationErrorMap", /* @__PURE__ */ new Map()), n(this, "itemRowKeyMap", /* @__PURE__ */ new WeakMap()), n(this, "bufferData", []), n(this, "customHeader", {
|
|
4980
4980
|
fixedData: {},
|
|
@@ -5831,7 +5831,7 @@ var $a = { key: 0 }, eo = {
|
|
|
5831
5831
|
}
|
|
5832
5832
|
getVirtualBodyCell(e, t, n = !0) {
|
|
5833
5833
|
let r = this.getColumnByColIndex(t), i = this.getRowForRowIndex(e);
|
|
5834
|
-
return !r || !i ? void 0 : new
|
|
5834
|
+
return !r || !i ? void 0 : new R(this.ctx, e, t, 0, 0, 0, 0, r, i.item, "body", n);
|
|
5835
5835
|
}
|
|
5836
5836
|
getVirtualBodyCellByKey(e, t) {
|
|
5837
5837
|
let n = this.getRowIndexForRowKey(e), r = this.getColIndexForKey(t);
|
|
@@ -5930,7 +5930,7 @@ var $a = { key: 0 }, eo = {
|
|
|
5930
5930
|
this.changedDataMap.clear();
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
5933
|
-
class
|
|
5933
|
+
class ae {
|
|
5934
5934
|
constructor(e) {
|
|
5935
5935
|
n(this, "ctx"), n(this, "history", []), n(this, "historyIndex", -1), this.ctx = e, this.init();
|
|
5936
5936
|
}
|
|
@@ -5979,7 +5979,7 @@ var $a = { key: 0 }, eo = {
|
|
|
5979
5979
|
this.history = [], this.historyIndex = -1;
|
|
5980
5980
|
}
|
|
5981
5981
|
}
|
|
5982
|
-
class
|
|
5982
|
+
class oe {
|
|
5983
5983
|
constructor(e) {
|
|
5984
5984
|
n(this, "eventTasks", /* @__PURE__ */ new Set()), n(this, "ctx"), this.ctx = e, this.init();
|
|
5985
5985
|
}
|
|
@@ -6070,7 +6070,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6070
6070
|
}
|
|
6071
6071
|
}
|
|
6072
6072
|
}
|
|
6073
|
-
class
|
|
6073
|
+
class se {
|
|
6074
6074
|
constructor() {
|
|
6075
6075
|
n(this, "events", /* @__PURE__ */ new Map());
|
|
6076
6076
|
}
|
|
@@ -6104,7 +6104,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6104
6104
|
this.events.clear();
|
|
6105
6105
|
}
|
|
6106
6106
|
}
|
|
6107
|
-
class
|
|
6107
|
+
class ce {
|
|
6108
6108
|
constructor(e) {
|
|
6109
6109
|
n(this, "ctx"), n(this, "textCacheMap", /* @__PURE__ */ new Map());
|
|
6110
6110
|
let t = e.getContext("2d");
|
|
@@ -6450,7 +6450,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6450
6450
|
};
|
|
6451
6451
|
}
|
|
6452
6452
|
}
|
|
6453
|
-
class
|
|
6453
|
+
class z {
|
|
6454
6454
|
constructor(e) {
|
|
6455
6455
|
n(this, "_config", {}), n(this, "CSS_PREFIX", "e-virt-table"), n(this, "ICONS", []), n(this, "ROW_KEY", ""), n(this, "DISABLED", !1), n(this, "HEADER_FONT", "12px normal Arial"), n(this, "BODY_FONT", "12px normal Arial"), n(this, "BORDER", !0), n(this, "STRIPE", !1), n(this, "STRIPE_COLOR", "#fafafa"), n(this, "BORDER_COLOR", "#e1e6eb"), n(this, "HEIGHT", 0), n(this, "PLACEHOLDER_COLOR", "#CDD0DC"), n(this, "EMPTY_BODY_HEIGHT", 120), n(this, "EMPTY_CUSTOM_STYLE", {}), n(this, "EMPTY_TEXT", ""), n(this, "LOADING_TEXT", ""), n(this, "MAX_HEIGHT", 1e3), n(this, "BORDER_RADIUS", 8), n(this, "ENABLE_OFFSET_HEIGHT", !1), n(this, "OFFSET_HEIGHT", 0), n(this, "HEADER_HEIGHT", 36), n(this, "ENABLE_HEADER_STICKY", !1), n(this, "HEADER_BG_COLOR", "#F8FAFF"), n(this, "BODY_BG_COLOR", "#FFF"), n(this, "HEADER_TEXT_COLOR", "#1D2129"), n(this, "REQUIRED_COLOR", "#F56C6C"), n(this, "BODY_TEXT_COLOR", "#4E5969"), n(this, "FOOTER_TEXT_COLOR", "#4E5969"), n(this, "LOADING_ICON_SVG", ""), n(this, "LOADING_ICON_COLOR", "#4E5969"), n(this, "EXPAND_ICON_SVG", ""), n(this, "SHRINK_ICON_SVG", ""), n(this, "EXPAND_ICON_COLOR", "#4E5969"), n(this, "SHRINK_ICON_COLOR", "#4E5969"), n(this, "ERROR_TIP_ICON_COLOR", "red"), n(this, "ERROR_TIP_ICON_SIZE", 6), n(this, "COLUMNS_ALIGN", "left"), n(this, "COLUMNS_VERTICAL_ALIGN", "middle"), n(this, "EXPAND_LAZY", !0), n(this, "DEFAULT_EXPAND_ALL", !1), n(this, "CELL_WIDTH", 100), n(this, "CELL_HEIGHT", 36), n(this, "CELL_PADDING", 8), n(this, "CELL_HOVER_ICON_SIZE", 14), n(this, "CELL_HOVER_ICON_BG_COLOR", "#fff"), n(this, "CELL_HOVER_ICON_BORDER_COLOR", "#DDE0EA"), n(this, "MIN_ZOOM", .5), n(this, "MAX_ZOOM", 2), n(this, "ENABLE_ZOOM_WHEEL", !0), n(this, "SCROLLER_TRACK_SIZE", 14), n(this, "scrollbarMode", "outer"), n(this, "SCROLLBAR_SHOW_DELAY", 300), n(this, "SCROLLER_SIZE", 8), n(this, "SCROLLER_COLOR", "#dee0e3"), n(this, "SCROLLER_TRACK_COLOR", "#fff"), n(this, "SCROLLER_FOCUS_COLOR", "#bbbec4"), n(this, "SELECT_BORDER_COLOR", "rgb(82,146,247)"), n(this, "SELECT_AREA_COLOR", "rgba(82,146,247,0.1)"), n(this, "SELECT_ROW_COL_BG_COLOR", "transparent"), n(this, "AUTOFILL_POINT_BORDER_COLOR", "#fff"), n(this, "EDIT_BG_COLOR", "#fcf6ed"), n(this, "CHECKBOX_KEY", ""), n(this, "CHECKBOX_COLOR", "rgb(82,146,247)"), n(this, "FINDER_CELL_BG_COLOR", "rgb(255,229,144)"), n(this, "ENABLE_FINDER", !0), n(this, "CHECKBOX_SIZE", 20), n(this, "CHECKBOX_DISABLED_SVG", ""), n(this, "CHECKBOX_DISABLED_COLOR", "#F1F2F4"), n(this, "CHECKBOX_CHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_COLOR", "#DDE0EA"), n(this, "CHECKBOX_INDETERMINATE_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_COLOR", "#DDE0EA"), n(this, "ICON_EDIT_SVG", ""), n(this, "ICON_EDIT_COLOR", "#4E5969"), n(this, "ICON_SELECT_SVG", ""), n(this, "ICON_SELECT_COLOR", "#4E5969"), n(this, "SORT_STRICTLY", !0), n(this, "SORT_ASC_ICON_SVG", ""), n(this, "SORT_DESC_ICON_SVG", ""), n(this, "SORTABLE_ICON_SVG", ""), n(this, "SORT_ICON_COLOR", "rgb(82,146,247)"), n(this, "READONLY_COLOR", "#fff"), n(this, "READONLY_TEXT_COLOR", "#4E5969"), n(this, "ERROR_TIP_COLOR", "#ED3F14"), n(this, "FOOTER_BG_COLOR", "#fafafa"), n(this, "FOOTER_FIXED", !0), n(this, "FOOTER_POSITION", "bottom"), n(this, "CELL_FOOTER_HEIGHT", 36), n(this, "ENABLE_SELECTOR", !0), n(this, "TREE_SELECT_MODE", "auto"), n(this, "TREE_CHILDREN_KEY", "children"), n(this, "TREE_INDENT", 20), n(this, "TREE_ICON_SIZE", 20), n(this, "TREE_LINE", !1), n(this, "TREE_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_EDIT_SINGLE_CLICK", !1), n(this, "ENABLE_EDIT_CLICK_SELECTOR", !0), n(this, "SELECTOR_AREA_MIN_X", 0), n(this, "SELECTOR_AREA_MAX_X_OFFSET", 0), n(this, "SELECTOR_AREA_MAX_X", 0), n(this, "SELECTOR_AREA_MIN_Y", 0), n(this, "SELECTOR_AREA_MAX_Y", 0), n(this, "SELECTOR_AREA_MAX_Y_OFFSET", 0), n(this, "SELECTOR_CELL_VALUE_TYPE", "value"), n(this, "ENABLE_AUTO_THEME", !0), n(this, "ENABLE_SELECTOR_SINGLE", !1), n(this, "ENABLE_SELECTOR_SPAN_COL", !0), n(this, "ENABLE_SELECTOR_SPAN_ROW", !0), n(this, "ENABLE_SELECTOR_ALL_ROWS", !0), n(this, "ENABLE_SELECTOR_ALL_COLS", !0), n(this, "ENABLE_MERGE_CELL_LINK", !1), n(this, "ENABLE_AUTOFILL", !1), n(this, "ENABLE_AUTOFILL_SPAN_COL", !0), n(this, "ENABLE_AUTOFILL_SPAN_ROW", !0), n(this, "ENABLE_CONTEXT_MENU", !1), n(this, "ENABLE_HEADER_CONTEXT_MENU", !1), n(this, "ENABLE_TEXT_SELECTION", !0), n(this, "ENABLE_COPY", !0), n(this, "ENABLE_PASTER", !0), n(this, "ENABLE_RESIZE_ROW", !0), n(this, "ENABLE_RESIZE_COLUMN", !0), n(this, "RESIZE_ROW_LINE_COLOR", "#e1e6eb"), n(this, "RESIZE_COLUMN_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_RESIZE_COLUMN_TEXT", !0), n(this, "RESIZE_COLUMN_TEXT_COLOR", "#fff"), n(this, "RESIZE_COLUMN_TEXT_BG_COLOR", "rgb(82,146,247)"), n(this, "RESIZE_ROW_MIN_HEIGHT", 36), n(this, "RESIZE_COLUMN_MIN_WIDTH", 40), n(this, "DRAG_TIP_BG_COLOR", "rgba(82,146,247,0.1)"), n(this, "DRAG_TIP_LINE_COLOR", "rgb(82,146,247)"), n(this, "ENABLE_KEYBOARD", !0), n(this, "ENABLE_HISTORY", !1), n(this, "ENABLE_VALIDATOR_IMMEDIATE", !0), n(this, "HISTORY_NUM", 50), n(this, "HIGHLIGHT_HOVER_ROW", !1), n(this, "HIGHLIGHT_HOVER_ROW_COLOR", "rgba(186,203,231,0.1)"), n(this, "HIGHLIGHT_SELECTED_ROW", !1), n(this, "HIGHLIGHT_SELECTED_ROW_COLOR", "rgba(82,146,247,0.1)"), n(this, "TOOLTIP_BG_COLOR", "#303133"), n(this, "TOOLTIP_TEXT_COLOR", "#fff"), n(this, "TOOLTIP_ZINDEX", 3e3), n(this, "TOOLTIP_CUSTOM_STYLE", {}), n(this, "CONTEXT_MENU", [
|
|
6456
6456
|
{ value: "copy" },
|
|
@@ -6479,7 +6479,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6479
6479
|
}), Object.assign(this, e, this._config);
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
let
|
|
6482
|
+
let B = "<svg t=\"1724122015492\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4237\" width=\"32\" height=\"32\"><path d=\"M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z\" p-id=\"4238\"></path></svg>\r\n", le = "<svg t=\"1722595535853\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z\" p-id=\"4552\"></path></svg>\n", ue = "<svg t=\"1724122044148\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z\" p-id=\"4552\"></path></svg>\n", de = "<svg t=\"1755138507987\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5079\" width=\"200\" height=\"200\"><path d=\"M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432\" fill=\"currentColor\" p-id=\"2016\"></path><path d=\"M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448\" fill=\"currentColor\" p-id=\"2015\"></path></svg>\n", fe = de.replace("fill=\"currentColor\" p-id=\"2016\"", "fill=\"#bec4c7\" p-id=\"2016\""), pe = de.replace("fill=\"currentColor\" p-id=\"2015\"", "fill=\"#bec4c7\" p-id=\"2015\"");
|
|
6483
6483
|
class me {
|
|
6484
6484
|
constructor(e) {
|
|
6485
6485
|
n(this, "ctx"), n(this, "list", [
|
|
@@ -6494,14 +6494,14 @@ var $a = { key: 0 }, eo = {
|
|
|
6494
6494
|
name: "expand",
|
|
6495
6495
|
configName: "EXPAND_ICON_SVG",
|
|
6496
6496
|
configColorName: "EXPAND_ICON_COLOR",
|
|
6497
|
-
svg:
|
|
6497
|
+
svg: B,
|
|
6498
6498
|
color: "#4E5969"
|
|
6499
6499
|
},
|
|
6500
6500
|
{
|
|
6501
6501
|
name: "shrink",
|
|
6502
6502
|
configName: "SHRINK_ICON_SVG",
|
|
6503
6503
|
configColorName: "SHRINK_ICON_COLOR",
|
|
6504
|
-
svg:
|
|
6504
|
+
svg: ue,
|
|
6505
6505
|
color: "#4E5969"
|
|
6506
6506
|
},
|
|
6507
6507
|
{
|
|
@@ -6515,7 +6515,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6515
6515
|
name: "checkbox-check",
|
|
6516
6516
|
configName: "CHECKBOX_CHECK_SVG",
|
|
6517
6517
|
configColorName: "CHECKBOX_COLOR",
|
|
6518
|
-
svg:
|
|
6518
|
+
svg: le,
|
|
6519
6519
|
color: "rgb(82,146,247)"
|
|
6520
6520
|
},
|
|
6521
6521
|
{
|
|
@@ -6528,7 +6528,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6528
6528
|
{
|
|
6529
6529
|
name: "checkbox-check-disabled",
|
|
6530
6530
|
configName: "CHECKBOX_CHECK_DISABLED_SVG",
|
|
6531
|
-
svg:
|
|
6531
|
+
svg: le,
|
|
6532
6532
|
color: "#DDE0EA"
|
|
6533
6533
|
},
|
|
6534
6534
|
{
|
|
@@ -6549,14 +6549,14 @@ var $a = { key: 0 }, eo = {
|
|
|
6549
6549
|
name: "icon-select",
|
|
6550
6550
|
configName: "ICON_SELECT_SVG",
|
|
6551
6551
|
configColorName: "ICON_SELECT_COLOR",
|
|
6552
|
-
svg:
|
|
6552
|
+
svg: ue,
|
|
6553
6553
|
color: "#4E5969"
|
|
6554
6554
|
},
|
|
6555
6555
|
{
|
|
6556
6556
|
name: "sort-asc",
|
|
6557
6557
|
configName: "SORT_ASC_ICON_SVG",
|
|
6558
6558
|
configColorName: "SORT_ICON_COLOR",
|
|
6559
|
-
svg:
|
|
6559
|
+
svg: fe,
|
|
6560
6560
|
color: "rgb(82,146,247)"
|
|
6561
6561
|
},
|
|
6562
6562
|
{
|
|
@@ -6569,7 +6569,7 @@ var $a = { key: 0 }, eo = {
|
|
|
6569
6569
|
{
|
|
6570
6570
|
name: "sort-default",
|
|
6571
6571
|
configName: "SORTABLE_ICON_SVG",
|
|
6572
|
-
svg:
|
|
6572
|
+
svg: de,
|
|
6573
6573
|
color: "#bec4c7"
|
|
6574
6574
|
},
|
|
6575
6575
|
{
|
|
@@ -6919,13 +6919,13 @@ var $a = { key: 0 }, eo = {
|
|
|
6919
6919
|
type: "body"
|
|
6920
6920
|
}), n(this, "database"), n(this, "history"), n(this, "config");
|
|
6921
6921
|
let { containerElement: r, stageElement: i, canvasElement: a, overlayerElement: o, editorElement: s, emptyElement: c, loadingElement: l, contextMenuElement: u } = e;
|
|
6922
|
-
this.containerElement = r, i.tabIndex = 0, this.stageElement = i, this.canvasElement = a, this.overlayerElement = o, this.editorElement = s, this.emptyElement = c, this.loadingElement = l, this.contextMenuElement = u, this.config = new
|
|
6922
|
+
this.containerElement = r, i.tabIndex = 0, this.stageElement = i, this.canvasElement = a, this.overlayerElement = o, this.editorElement = s, this.emptyElement = c, this.loadingElement = l, this.contextMenuElement = u, this.config = new z(t.config || {}), this.eventBus = new se(), this.eventBrowser = new oe(this), this.eventTable = new he(this), this.paint = new ce(this.canvasElement), this.database = new ie(this, t), this.history = new ae(this), this.icons = new me(this), this.zoomScale = new ye();
|
|
6923
6923
|
}
|
|
6924
6924
|
get zoom() {
|
|
6925
6925
|
return this.zoomScale.value;
|
|
6926
6926
|
}
|
|
6927
6927
|
setConfig(e) {
|
|
6928
|
-
this.config = new
|
|
6928
|
+
this.config = new z(e);
|
|
6929
6929
|
}
|
|
6930
6930
|
setItemValueByEditor(e, t, n, r = !0, i = !0, a = !0) {
|
|
6931
6931
|
if (this.config.ENABLE_MERGE_CELL_LINK) {
|
|
@@ -7109,7 +7109,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7109
7109
|
}
|
|
7110
7110
|
onMouseMove(e, t) {
|
|
7111
7111
|
let { clientX: n, clientY: r, buttons: i } = e, a = this.ctx.zoomScale.toLogical(e.offsetX), o = this.ctx.zoomScale.toLogical(e.offsetY), s = !1;
|
|
7112
|
-
if (
|
|
7112
|
+
if (ee(this.ctx.config, t) ? this.startInnerShowTimer() : s = this.hideInnerScrollbar(), this.canInteractWithScrollbar() && (this.isOnScrollbar(a, o) || this.isOnTrack(a, o)) && e.target === this.ctx.canvasElement ? (this.isFocus = !0, this.ctx.stageElement.style.cursor = "pointer") : this.isFocus = !1, i === 0 || n == this.clientX && r == this.clientY) return s;
|
|
7113
7113
|
let c = 0;
|
|
7114
7114
|
if (c = this.type === "horizontal" ? n - this.clientX : r - this.clientY, c = this.ctx.zoomScale.toLogical(c), this.isDragging && c !== 0) {
|
|
7115
7115
|
let e = 0;
|
|
@@ -7133,7 +7133,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7133
7133
|
return T(this.ctx.config);
|
|
7134
7134
|
}
|
|
7135
7135
|
shouldDrawInnerScrollbar() {
|
|
7136
|
-
return
|
|
7136
|
+
return te(this.ctx.config, {
|
|
7137
7137
|
innerVisible: this.innerVisible,
|
|
7138
7138
|
isFocus: this.isFocus,
|
|
7139
7139
|
isDragging: this.isDragging
|
|
@@ -7162,7 +7162,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7162
7162
|
this.type === "vertical" && e.shiftKey === !1 ? (this.hasScrollbar() && !(this.scroll === 0 && n < 0 || this.scroll === this.distance && n > 0) && e.preventDefault(), this.scroll = Math.max(0, Math.min(this.scroll + n, this.distance))) : this.type === "horizontal" && (e.shiftKey ? this.scroll = Math.max(0, Math.min(this.scroll + n, this.distance)) : this.scroll = Math.max(0, Math.min(this.scroll + t, this.distance)));
|
|
7163
7163
|
}
|
|
7164
7164
|
updatedSize() {
|
|
7165
|
-
let { body: e, header: t, stageHeight: n, stageWidth: r, config: { SCROLLER_SIZE: i = 0, BORDER: a } } = this.ctx, o = E(this.ctx.config), s = D(this.ctx.config), c = r, l = n, u = t.height, d = t.width, f = e.height, p = this.ctx.footer.height, m = l - o - u, h = c - o, g = Math.max(0, f - m + p), _ = Math.max(0, d - h), v =
|
|
7165
|
+
let { body: e, header: t, stageHeight: n, stageWidth: r, config: { SCROLLER_SIZE: i = 0, BORDER: a } } = this.ctx, o = E(this.ctx.config), s = D(this.ctx.config), c = r, l = n, u = t.height, d = t.width, f = e.height, p = this.ctx.footer.height, m = l - o - u, h = c - o, g = Math.max(0, f - m + p), _ = Math.max(0, d - h), v = k(this.ctx.config);
|
|
7166
7166
|
if (this.type === "vertical") {
|
|
7167
7167
|
this.visibleDistance = m, this.distance = g;
|
|
7168
7168
|
let e = O(this.ctx.config, _ > 0);
|
|
@@ -7183,7 +7183,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7183
7183
|
c - s,
|
|
7184
7184
|
l
|
|
7185
7185
|
];
|
|
7186
|
-
let t =
|
|
7186
|
+
let t = L(a) ? 0 : .5;
|
|
7187
7187
|
this.trackX = 0, this.trackY = l - s + t, this.trackWidth = Math.max(0, c - e), this.trackHeight = s, this.barWidth = xe(this.distance, this.visibleDistance, d, this.thumbTrackDistance), this.thumbTravelDistance = Math.max(0, this.thumbTrackDistance - this.barWidth - v), this.barY = this.trackY - 1 + (s - i) / 2, this.barHeight = i;
|
|
7188
7188
|
let n = this.distance ? this.scroll / this.distance : 0;
|
|
7189
7189
|
this.barX = n * this.thumbTravelDistance, this.scroll = Math.max(0, Math.min(this.scroll, this.distance));
|
|
@@ -7192,7 +7192,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7192
7192
|
draw() {
|
|
7193
7193
|
let { config: { SCROLLER_FOCUS_COLOR: e, SCROLLER_COLOR: t, BORDER_COLOR: n, BORDER: r, SCROLLER_TRACK_COLOR: i } } = this.ctx;
|
|
7194
7194
|
if (this.updatedSize(), this.isInnerMode() && !this.shouldDrawInnerScrollbar()) return this.isFocus || this.isDragging;
|
|
7195
|
-
let a =
|
|
7195
|
+
let a = A(this.ctx.config), o = j(this.ctx.config), s = a && L(r) ? n : "transparent", c = this.hasScrollbar(), l = re(r, c);
|
|
7196
7196
|
return o && l ? (this.ctx.paint.drawRect(this.trackX, this.trackY, this.trackWidth, this.trackHeight, { fillColor: i }), this.drawTrackHeaderBackground(), a && (this.ctx.paint.drawRect(this.trackX, this.trackY, this.trackWidth, this.trackHeight, { borderColor: s }), this.drawRightBoundaryBorder())) : o && this.drawInactiveTrackBackground(), c && this.ctx.paint.drawRect(this.barX, this.barY, this.barWidth, this.barHeight, {
|
|
7197
7197
|
fillColor: this.isFocus || this.isDragging ? e : t,
|
|
7198
7198
|
radius: 4
|
|
@@ -7321,7 +7321,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7321
7321
|
e && (this.adjustPositionX = "", this.timerX &&= (clearInterval(this.timerX), 0)), t && (this.adjustPositionY = "", this.timerY &&= (clearInterval(this.timerY), 0));
|
|
7322
7322
|
}
|
|
7323
7323
|
}
|
|
7324
|
-
class we extends
|
|
7324
|
+
class we extends ne {
|
|
7325
7325
|
constructor(e, t, r, a, o, s, c) {
|
|
7326
7326
|
super(e, r, a, o, s, "header", c.fixed), n(this, "align"), n(this, "hideHeaderSelection", !1), n(this, "verticalAlign", "middle"), n(this, "fixed"), n(this, "minWidth"), n(this, "maxWidth"), n(this, "widthFillDisable"), n(this, "type"), n(this, "operation", !1), n(this, "editorType"), n(this, "level"), n(this, "text"), n(this, "hide", !1), n(this, "displayText", ""), n(this, "colspan"), n(this, "rowspan"), n(this, "row"), n(this, "key"), n(this, "required", !1), n(this, "readonly", !1), n(this, "ellipsis", !1), n(this, "overflowTooltipShow", !0), n(this, "children", []), n(this, "column"), n(this, "colIndex"), n(this, "rowKey"), n(this, "rules"), n(this, "hasChildren"), n(this, "render"), n(this, "style", {}), n(this, "drawX", 0), n(this, "drawY", 0), n(this, "sortIconName", "sort-default"), n(this, "sortAscIconName", "sort-asc"), n(this, "sortDescIconName", "sort-desc"), n(this, "visibleWidth", 0), n(this, "visibleHeight", 0), n(this, "maxLineClampHeader", "auto"), n(this, "domDataset", {}), n(this, "textOffsetRight", 0), n(this, "textOffsetLeft", 0), n(this, "textInfo"), n(this, "drawTextX", 0), n(this, "drawTextY", 0), n(this, "drawTextWidth", 0), n(this, "drawTextHeight", 0), n(this, "drawCellBgColor", ""), n(this, "drawTextColor", ""), n(this, "drawTextFont", ""), n(this, "drawSelectionImageX", 0), n(this, "drawSelectionImageY", 0), n(this, "drawSelectionImageWidth", 0), n(this, "drawSelectionImageHeight", 0), n(this, "drawSelectionImageName", ""), n(this, "drawSelectionImageSource"), n(this, "drawSortImageX", 0), n(this, "drawSortImageY", 0), n(this, "drawSortImageWidth", 0), n(this, "drawSortImageHeight", 0), n(this, "drawSortImageName", ""), n(this, "drawSortImageSource"), n(this, "renderHeaderType", "default"), this.ctx = e, this.x = r, this.y = a, this.width = o, this.height = s, this.visibleWidth = o, this.visibleHeight = s, this.colIndex = t, this.key = c.key, this.minWidth = c.minWidth, this.maxWidth = c.maxWidth, this.hide = (typeof c.hide == "function" ? c.hide(c) : c.hide) || !1, this.type = c.type || "", this.editorType = c.editorType || "text", this.hideHeaderSelection = c.hideHeaderSelection || !1, this.align = c.headerAlign || c.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = c.headerVerticalAlign || c.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = c.fixed || "", this.level = c.level || 0, this.operation = c.operation || !1, this.text = c.title, this.column = c, this.colspan = c.colspan || 1, this.widthFillDisable = c.widthFillDisable || !1, this.rowspan = c.rowspan || 1, this.rules = c.rules, this.readonly = c.readonly || !1, this.required = c.required || !1, this.sortIconName = c.sortIconName || "sort-default", this.sortAscIconName = c.sortAscIconName || "sort-asc", this.sortDescIconName = c.sortDescIconName || "sort-desc", this.rowKey = i(), this.overflowTooltipShow = c.overflowTooltipHeaderShow !== !1, this.hasChildren = c.children && c.children.length > 0 || !1, this.render = c.renderHeader, this.maxLineClampHeader = c.maxLineClampHeader || "auto", this.renderHeaderType = c.renderHeaderType || "default";
|
|
7327
7327
|
}
|
|
@@ -7361,7 +7361,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7361
7361
|
drawEdge() {
|
|
7362
7362
|
let { paint: e, config: { BORDER_COLOR: t, BORDER: n } } = this.ctx;
|
|
7363
7363
|
e.drawRect(this.drawX, this.drawY, this.width, this.height, {
|
|
7364
|
-
borderColor:
|
|
7364
|
+
borderColor: P(n) ? t : "transparent",
|
|
7365
7365
|
fillColor: this.drawCellBgColor
|
|
7366
7366
|
});
|
|
7367
7367
|
}
|
|
@@ -7420,7 +7420,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7420
7420
|
this.drawTextX = a + r - i / 2, this.drawTextWidth = this.drawX + this.visibleWidth - this.drawTextX, (this.align === "left" || this.align === "right") && (a = this.drawX + i, this.drawTextX = a + r - i / 2, this.drawTextWidth = this.drawX + this.visibleWidth - this.drawTextX), this.verticalAlign === "top" ? o = this.drawY + i / 2 : this.verticalAlign === "bottom" && (o = this.drawY + this.height - r - i / 2), this.column.dragRow && (a += this.ctx.config.DRAG_ROW_ICON_SIZE, this.drawTextX += this.ctx.config.DRAG_ROW_ICON_SIZE, this.drawTextWidth -= this.ctx.config.DRAG_ROW_ICON_SIZE);
|
|
7421
7421
|
let s = this.ctx.icons.get("checkbox-uncheck"), c = "checkbox-uncheck";
|
|
7422
7422
|
e ? (s = this.ctx.icons.get("checkbox-indeterminate"), c = "checkbox-indeterminate") : t && n ? (s = this.ctx.icons.get("checkbox-check"), c = "checkbox-check") : t && !n ? (s = this.ctx.icons.get("checkbox-check-disabled"), c = "checkbox-check-disabled") : !t && n ? (s = this.ctx.icons.get("checkbox-uncheck"), c = "checkbox-uncheck") : (s = this.ctx.icons.get("checkbox-disabled"), c = "checkbox-disabled");
|
|
7423
|
-
let l = new
|
|
7423
|
+
let l = new M(c, a, o, r, r, s);
|
|
7424
7424
|
l.setVisible(!this.hideHeaderSelection), this.setImage("selection", l);
|
|
7425
7425
|
}
|
|
7426
7426
|
}
|
|
@@ -7428,7 +7428,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7428
7428
|
if (!this.column.sortBy || !this.textInfo) return;
|
|
7429
7429
|
let { right: e, top: t, height: n } = this.textInfo, r = e + 4, i = t + (n - 16) / 2, a = this.sortIconName, o = this.ctx.database.getSortState(this.key);
|
|
7430
7430
|
o.direction === "asc" ? a = this.sortAscIconName : o.direction === "desc" && (a = this.sortDescIconName);
|
|
7431
|
-
let s = this.ctx.icons.get(a), c = new
|
|
7431
|
+
let s = this.ctx.icons.get(a), c = new M(a, r, i, 16, 16, s);
|
|
7432
7432
|
this.setImage("sort", c);
|
|
7433
7433
|
}
|
|
7434
7434
|
getText() {
|
|
@@ -7774,7 +7774,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7774
7774
|
}
|
|
7775
7775
|
drawBottomLine() {
|
|
7776
7776
|
let { stageWidth: e, config: { BORDER_COLOR: t, BORDER: n } } = this.ctx;
|
|
7777
|
-
if (!
|
|
7777
|
+
if (!F(n)) return;
|
|
7778
7778
|
let r = [
|
|
7779
7779
|
0,
|
|
7780
7780
|
this.height,
|
|
@@ -7801,7 +7801,7 @@ var $a = { key: 0 }, eo = {
|
|
|
7801
7801
|
update() {
|
|
7802
7802
|
let { header: e } = this.ctx, t = [], n = [], r = [], i = [];
|
|
7803
7803
|
e.renderLeafCellHeaders.forEach((e) => {
|
|
7804
|
-
let a = new
|
|
7804
|
+
let a = new R(this.ctx, this.rowIndex, e.colIndex, e.x, this.y, e.width, this.height, e.column, this.data, this.rowType);
|
|
7805
7805
|
a.fixed ? n.push(a) : r.push(a), t.push(a), a.autoRowHeight && i.push(a);
|
|
7806
7806
|
}), this.cells = t, this.calculatedHeightCells = i, this.fixedCells = n, this.noFixedCells = r;
|
|
7807
7807
|
}
|
|
@@ -8166,7 +8166,7 @@ var $a = { key: 0 }, eo = {
|
|
|
8166
8166
|
}
|
|
8167
8167
|
drawTopLine() {
|
|
8168
8168
|
let { stageWidth: e, config: { BORDER_COLOR: t, BORDER: n } } = this.ctx;
|
|
8169
|
-
if (!
|
|
8169
|
+
if (!F(n)) return;
|
|
8170
8170
|
let r = [
|
|
8171
8171
|
0,
|
|
8172
8172
|
this.y,
|
|
@@ -8916,15 +8916,15 @@ var $a = { key: 0 }, eo = {
|
|
|
8916
8916
|
y: r
|
|
8917
8917
|
}, p = He(i), m = U(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
8918
8918
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
8919
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Me(d[_], T), D = Me(d[v], T), O = E,
|
|
8919
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Me(d[_], T), D = Me(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Le(O, A, k), ee = !c.arrow && ze(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, te = ee ? A < O ? A - O : A - k : 0;
|
|
8920
8920
|
return {
|
|
8921
|
-
[p]: f[p] +
|
|
8921
|
+
[p]: f[p] + te,
|
|
8922
8922
|
data: {
|
|
8923
|
-
[p]:
|
|
8924
|
-
centerOffset:
|
|
8925
|
-
...
|
|
8923
|
+
[p]: j,
|
|
8924
|
+
centerOffset: A - j - te,
|
|
8925
|
+
...ee && { alignmentOffset: te }
|
|
8926
8926
|
},
|
|
8927
|
-
reset:
|
|
8927
|
+
reset: ee
|
|
8928
8928
|
};
|
|
8929
8929
|
}
|
|
8930
8930
|
}), et = function(e) {
|
|
@@ -10043,7 +10043,7 @@ var $a = { key: 0 }, eo = {
|
|
|
10043
10043
|
let a = this.createElement("span", "e-virt-table-menu-item-text");
|
|
10044
10044
|
if (a.textContent = e.label || "", i.appendChild(a), r.appendChild(i), (n = e.children) != null && n.length) {
|
|
10045
10045
|
let t = this.createElement("span", "e-virt-table-menu-arrow");
|
|
10046
|
-
t.innerHTML =
|
|
10046
|
+
t.innerHTML = B, r.appendChild(t);
|
|
10047
10047
|
let n = this.createSubmenu(e.children);
|
|
10048
10048
|
r._submenu = n, this.container.appendChild(n);
|
|
10049
10049
|
}
|
|
@@ -10441,7 +10441,7 @@ var $a = { key: 0 }, eo = {
|
|
|
10441
10441
|
let t = document.createElement("div");
|
|
10442
10442
|
t.className = "e-virt-table-finder-bar-input-wrapper", this.input = document.createElement("input"), this.input.type = "text", this.input.className = "e-virt-table-finder-bar-input", this.input.placeholder = "", t.appendChild(this.input), this.loadingEl = document.createElement("div"), this.loadingEl.className = "e-virt-table-finder-bar-loading", this.loadingEl.innerHTML = "<svg t=\"1724133395728\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2893\" width=\"32\" height=\"32\"><path d=\"M512 226.8476541a19.82487759 19.82487759 0 0 1 14.66497778 5.70304692c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497779v122.20814825a19.82487759 19.82487759 0 0 1-5.70304693 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304691 19.82487759 19.82487759 0 0 1-14.66497778-5.70304691 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778v-122.20814825a19.82487759 19.82487759 0 0 1 5.70304693-14.66497779 19.82487759 19.82487759 0 0 1 14.66497778-5.70304692z m0 407.36049415a19.82487759 19.82487759 0 0 1 14.66497778 5.70304691c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497778v122.20814827a19.82487759 19.82487759 0 0 1-5.70304693 14.66497776 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693 19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497776v-122.20814827a19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304691zM797.1523459 512a19.82487759 19.82487759 0 0 1-5.70304692 14.66497778 19.82487759 19.82487759 0 0 1-14.66497779 5.70304693h-122.20814825a19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304693h122.20814825a19.82487759 19.82487759 0 0 1 14.66497779 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304692 14.66497778z m-407.36049415 0a19.82487759 19.82487759 0 0 1-5.70304691 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693h-122.20814827a19.82487759 19.82487759 0 0 1-14.66497776-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497776-5.70304693h122.20814827a19.82487759 19.82487759 0 0 1 14.66497778 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304691 14.66497778zM310.22076878 310.22076878a21.29137537 21.29137537 0 0 1 14.66497779-5.70304693c5.51294514 0 10.18401235 1.90101585 14.01320099 5.70304693l86.55052591 86.57768347a20.91117183 20.91117183 0 0 1 5.73020449 14.31193182 19.28172983 19.28172983 0 0 1-6.05609289 14.013201 19.11878565 19.11878565 0 0 1-14.013201 6.05609289 20.96548698 20.96548698 0 0 1-14.31193182-5.70304692L310.22076878 338.87178998a19.06447114 19.06447114 0 0 1-5.70304693-14.01320099c0-5.54010272 1.90101585-10.42842865 5.70304693-14.66497778z m288.32975775 288.32975775a19.79772001 19.79772001 0 0 1 14.3390894-6.35482371c5.29568642 0 10.04822572 2.11827457 14.31193182 6.38198066l86.57768347 86.55052651c3.80203107 3.80203107 5.70304692 8.47309828 5.70304691 14.01320102a19.55330372 19.55330372 0 0 1-6.05609225 14.31193182 19.66193339 19.66193339 0 0 1-14.31193245 6.05609288 19.01015661 19.01015661 0 0 1-14.01320099-5.70304692l-86.55052591-86.57768347a19.79772001 19.79772001 0 0 1-6.38198129-14.31193245c0-5.29568642 2.11827457-10.07538268 6.38198129-14.33908939zM713.77923122 310.22076878c3.80203107 4.26370672 5.70304692 9.15203265 5.70304693 14.66497779s-1.90101585 10.18401235-5.70304693 14.01320099l-86.57768347 86.55052591a20.91117183 20.91117183 0 0 1-14.31193182 5.73020449 19.28172983 19.28172983 0 0 1-14.013201-6.05609289 19.11878565 19.11878565 0 0 1-6.05609289-14.013201c0-5.29568642 1.90101585-10.07538268 5.70304692-14.31193182l86.57768348-86.57768347c3.80203107-3.80203107 8.50025585-5.70304692 14.01320099-5.70304693 5.54010272 0 10.40127108 1.90101585 14.66497779 5.70304693zM425.44947347 598.57768347a19.79772001 19.79772001 0 0 1 6.35482371 14.33908939c0 5.29568642-2.11827457 10.04822572-6.38198066 14.31193245L338.89894756 713.77923122a19.06447114 19.06447114 0 0 1-14.01320099 5.70304693 19.55330372 19.55330372 0 0 1-14.31193245-6.05609227 19.68909035 19.68909035 0 0 1-6.05609227-14.31193245 19.01015661 19.01015661 0 0 1 5.70304693-14.01320099l86.57768347-86.55052591a19.79772001 19.79772001 0 0 1 14.31193182-6.38198129c5.29568642 0 10.07538268 2.11827457 14.3390894 6.38198129z\" fill=\"#000000\" fill-opacity=\".65\" p-id=\"2894\"></path></svg>\n", t.appendChild(this.loadingEl), this.countEl = document.createElement("span"), this.countEl.className = "e-virt-table-finder-bar-count";
|
|
10443
10443
|
let n = document.createElement("div");
|
|
10444
|
-
return n.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML =
|
|
10444
|
+
return n.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML = B, this.nextBtn = document.createElement("button"), this.nextBtn.className = "e-virt-table-finder-bar-nav-btn next-btn", this.nextBtn.innerHTML = B, n.appendChild(this.prevBtn), n.appendChild(this.nextBtn), this.closeBtn = document.createElement("button"), this.closeBtn.className = "e-virt-table-finder-bar-nav-btn close-btn", this.closeBtn.innerHTML = "×", e.appendChild(t), e.appendChild(this.countEl), e.appendChild(n), e.appendChild(this.closeBtn), e;
|
|
10445
10445
|
}
|
|
10446
10446
|
bindEvents() {
|
|
10447
10447
|
this.input.addEventListener("input", () => {
|
|
@@ -10687,7 +10687,7 @@ var $a = { key: 0 }, eo = {
|
|
|
10687
10687
|
}
|
|
10688
10688
|
updateStageBorder() {
|
|
10689
10689
|
let { BORDER: e, BORDER_COLOR: t, BORDER_RADIUS: n } = this.ctx.config;
|
|
10690
|
-
this.ctx.stageElement.dataset.borderStyle =
|
|
10690
|
+
this.ctx.stageElement.dataset.borderStyle = N(e), this.ctx.stageElement.style.borderColor = I(e) ? t : "transparent", this.ctx.stageElement.style.borderRadius = `${n}px`;
|
|
10691
10691
|
}
|
|
10692
10692
|
draw(e = !1) {
|
|
10693
10693
|
this.animationFrameId && cancelAnimationFrame(this.animationFrameId), this.animationFrameId = requestAnimationFrame(() => {
|
|
@@ -11108,6 +11108,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11108
11108
|
emits: [
|
|
11109
11109
|
"change",
|
|
11110
11110
|
"selectionChange",
|
|
11111
|
+
"sortChange",
|
|
11111
11112
|
"ready"
|
|
11112
11113
|
],
|
|
11113
11114
|
setup(o, { expose: s, emit: l }) {
|
|
@@ -11120,53 +11121,53 @@ var xo = /* @__PURE__ */ l({
|
|
|
11120
11121
|
...m,
|
|
11121
11122
|
...f.config
|
|
11122
11123
|
}
|
|
11123
|
-
})), v = null, S = null, O =
|
|
11124
|
-
let t = e?.BORDER_RADIUS ?? 4, n =
|
|
11124
|
+
})), v = null, S = null, O = ee(), k = C(null), A = C(null), te = C(null), ne = C(null), N = C(), F = C("text"), I = C(), L = {}, re = {}, R = (e = g.value.config) => {
|
|
11125
|
+
let t = e?.BORDER_RADIUS ?? 4, n = k.value?.querySelector?.(".e-virt-table-stage");
|
|
11125
11126
|
n && (n.style.borderRadius = `${t}px`);
|
|
11126
|
-
},
|
|
11127
|
-
let e =
|
|
11127
|
+
}, ie = t(() => {
|
|
11128
|
+
let e = N.value;
|
|
11128
11129
|
return e ? {
|
|
11129
11130
|
width: `${e.width}px`,
|
|
11130
11131
|
height: `${e.height}px`
|
|
11131
11132
|
} : {};
|
|
11132
|
-
}),
|
|
11133
|
+
}), ae = (e) => ba[e] || (({ cellValue: e }) => e), oe = (e) => Fa.renders[e]?.renderDefault, se = (e, ...t) => ({ row: n, rowIndex: r, value: i }) => e({
|
|
11133
11134
|
row: n,
|
|
11134
11135
|
rowIndex: r,
|
|
11135
11136
|
cellValue: i
|
|
11136
|
-
}, ...t),
|
|
11137
|
+
}, ...t), ce = (e) => {
|
|
11137
11138
|
if (e.slots?.default && (0, Q.isFunction)(e.slots?.default)) return (t) => e.slots?.default?.({
|
|
11138
11139
|
row: t.row,
|
|
11139
11140
|
column: e,
|
|
11140
11141
|
rowIndex: t.rowIndex
|
|
11141
11142
|
});
|
|
11142
11143
|
if (e.slots?.default && (0, Q.isString)(e.slots?.default)) return `slot:${e.slots?.default}`;
|
|
11143
|
-
if (e.cellRender && e.cellRender.name) return (t) =>
|
|
11144
|
+
if (e.cellRender && e.cellRender.name) return (t) => oe(e.cellRender.name)?.(e.cellRender, {
|
|
11144
11145
|
data: f.data,
|
|
11145
11146
|
row: t.row,
|
|
11146
11147
|
rowIndex: t.rowIndex,
|
|
11147
11148
|
field: e.field || t.column.key,
|
|
11148
11149
|
title: t.column?.title ?? ""
|
|
11149
11150
|
}, {});
|
|
11150
|
-
},
|
|
11151
|
+
}, z = (e) => {
|
|
11151
11152
|
if (e.slots?.title && (0, Q.isFunction)(e.slots?.title)) return (t) => e.slots?.title?.({ column: e });
|
|
11152
|
-
},
|
|
11153
|
+
}, B = (e) => (e.slots?.edit && (e.field || e.key) && (0, Q.isFunction)(e.slots?.edit) ? L[`__slot:${e.field || e.key}`] = e : e.editRender?.name && (e.field || e.key) && (re[e.field || e.key] = e.editRender), {
|
|
11153
11154
|
...(0, Q.omit)(e, ["formatter"]),
|
|
11154
11155
|
key: e.key || e.field || Yi(),
|
|
11155
|
-
formatter: (0, Q.isString)(e.formatter) ?
|
|
11156
|
+
formatter: (0, Q.isString)(e.formatter) ? se(ae(e.formatter)) : (0, Q.isArray)(e.formatter) && (0, Q.isString)(e.formatter[0]) ? se(ae(e.formatter[0]), ...e.formatter.slice(1)) : (0, Q.isFunction)(e.formatter) ? se(e.formatter) : void 0,
|
|
11156
11157
|
editorType: e.editorType ?? (e.slots?.edit && (e.field || e.key) && (0, Q.isFunction)(e.slots?.edit) ? `__slot:${e.field || e.key}` : e.editRender?.name ? e.editRender.name : void 0),
|
|
11157
|
-
render:
|
|
11158
|
-
renderHeader:
|
|
11159
|
-
children: e.children?.map((e) =>
|
|
11158
|
+
render: ce(e),
|
|
11159
|
+
renderHeader: z(e),
|
|
11160
|
+
children: e.children?.map((e) => B(e))
|
|
11160
11161
|
});
|
|
11161
11162
|
y(() => {
|
|
11162
|
-
|
|
11163
|
+
k.value && (yo(), v = new fo.default(k.value, {
|
|
11163
11164
|
config: g.value.config,
|
|
11164
|
-
columns: f.columns.map((e) =>
|
|
11165
|
+
columns: f.columns.map((e) => B(e)),
|
|
11165
11166
|
data: f.data,
|
|
11166
11167
|
footerData: f.footerData,
|
|
11167
|
-
emptyElement:
|
|
11168
|
-
overlayerElement:
|
|
11169
|
-
editorElement:
|
|
11168
|
+
emptyElement: te.value || void 0,
|
|
11169
|
+
overlayerElement: ne.value || void 0,
|
|
11170
|
+
editorElement: A.value || void 0
|
|
11170
11171
|
}), Object.keys(O).forEach((e) => {
|
|
11171
11172
|
let t = O[e];
|
|
11172
11173
|
if (typeof t == "function" && e.startsWith("on")) {
|
|
@@ -11176,38 +11177,42 @@ var xo = /* @__PURE__ */ l({
|
|
|
11176
11177
|
}), v.on("change", (e) => {
|
|
11177
11178
|
u("change", e);
|
|
11178
11179
|
}), v.on("overlayerChange", (e) => {
|
|
11179
|
-
|
|
11180
|
+
I.value = e;
|
|
11180
11181
|
}), v.on("startEdit", (e) => {
|
|
11181
|
-
|
|
11182
|
+
N.value = e, F.value = e.editorType, F.value;
|
|
11182
11183
|
}), v.on("doneEdit", () => {
|
|
11183
|
-
|
|
11184
|
+
F.value = "text";
|
|
11184
11185
|
}), v.on("selectionChange", (e) => {
|
|
11185
11186
|
d.value = e, u("selectionChange", e);
|
|
11186
|
-
}),
|
|
11187
|
+
}), v.on("sortChange", (e) => {
|
|
11188
|
+
u("sortChange", e);
|
|
11189
|
+
}), u("ready", v), R(), S = bo({
|
|
11187
11190
|
getTable: () => v,
|
|
11188
11191
|
getConfig: () => g.value.config
|
|
11189
11192
|
}));
|
|
11190
11193
|
}), b(() => {
|
|
11191
11194
|
S?.disconnect();
|
|
11192
11195
|
});
|
|
11193
|
-
function
|
|
11194
|
-
if (!v || !
|
|
11195
|
-
let { rowKey: t, key: n } =
|
|
11196
|
+
function le(e) {
|
|
11197
|
+
if (!v || !N.value) return;
|
|
11198
|
+
let { rowKey: t, key: n } = N.value;
|
|
11196
11199
|
v?.setItemValueByEditor(t, n, e);
|
|
11197
11200
|
}
|
|
11198
|
-
let
|
|
11199
|
-
return
|
|
11201
|
+
let ue = () => document.body;
|
|
11202
|
+
return M(() => f.data, (e) => {
|
|
11200
11203
|
v?.loadData(e);
|
|
11201
11204
|
}, { deep: !0 }), va(() => f.columns, (e, t) => {
|
|
11202
|
-
(0, Q.isEqual)(e, t) || v?.loadColumns(e.map((e) =>
|
|
11203
|
-
}, { deep: !0 }),
|
|
11204
|
-
v?.loadConfig(e),
|
|
11205
|
-
}, { deep: !0 }),
|
|
11205
|
+
(0, Q.isEqual)(e, t) || v?.loadColumns(e.map((e) => B(e)));
|
|
11206
|
+
}, { deep: !0 }), M(() => g.value.config, (e) => {
|
|
11207
|
+
v?.loadConfig(e), R(e);
|
|
11208
|
+
}, { deep: !0 }), M(() => f.footerData, (e) => {
|
|
11206
11209
|
v?.loadFooterData(e || []);
|
|
11207
|
-
}, { deep: !0 }),
|
|
11210
|
+
}, { deep: !0 }), M(() => f.loading, (e, t) => {
|
|
11208
11211
|
e !== t && v?.setLoading(e);
|
|
11209
11212
|
}, { immediate: !0 }), s({
|
|
11210
|
-
$table
|
|
11213
|
+
get $table() {
|
|
11214
|
+
return v;
|
|
11215
|
+
},
|
|
11211
11216
|
selectedRecords: t(() => d.value),
|
|
11212
11217
|
reloadData: () => {
|
|
11213
11218
|
v?.loadData(f.data);
|
|
@@ -11215,46 +11220,46 @@ var xo = /* @__PURE__ */ l({
|
|
|
11215
11220
|
}), (t, s) => {
|
|
11216
11221
|
let l = E("a-empty"), u = E("a-spin");
|
|
11217
11222
|
return x(), n(u, { spinning: o.loading }, {
|
|
11218
|
-
default:
|
|
11223
|
+
default: P(() => [a("div", {
|
|
11219
11224
|
ref_key: "eVirtTableRef",
|
|
11220
|
-
ref:
|
|
11225
|
+
ref: k
|
|
11221
11226
|
}, [
|
|
11222
11227
|
a("div", {
|
|
11223
11228
|
ref_key: "eVirtTableEditorRef",
|
|
11224
|
-
ref:
|
|
11225
|
-
}, [
|
|
11226
|
-
row:
|
|
11227
|
-
column:
|
|
11228
|
-
rowIndex:
|
|
11229
|
+
ref: A
|
|
11230
|
+
}, [F.value.startsWith("__slot:") ? (x(), n(D(L[F.value].slots.edit({
|
|
11231
|
+
row: N.value.row,
|
|
11232
|
+
column: L[F.value],
|
|
11233
|
+
rowIndex: N.value.rowIndex
|
|
11229
11234
|
})), {
|
|
11230
11235
|
key: 0,
|
|
11231
11236
|
bordered: !1,
|
|
11232
|
-
style: _(
|
|
11237
|
+
style: _(ie.value),
|
|
11233
11238
|
class: "ev-editor-wrapper",
|
|
11234
|
-
"get-popup-container":
|
|
11235
|
-
value:
|
|
11236
|
-
"onUpdate:value": s[0] ||= (e) =>
|
|
11237
|
-
cell:
|
|
11238
|
-
onBlur:
|
|
11239
|
+
"get-popup-container": ue,
|
|
11240
|
+
value: N.value.value,
|
|
11241
|
+
"onUpdate:value": s[0] ||= (e) => N.value.value = e,
|
|
11242
|
+
cell: N.value,
|
|
11243
|
+
onBlur: le
|
|
11239
11244
|
}, null, 40, [
|
|
11240
11245
|
"style",
|
|
11241
11246
|
"value",
|
|
11242
11247
|
"cell"
|
|
11243
|
-
])) :
|
|
11248
|
+
])) : j(Fa).renders[F.value]?.renderEdit ? (x(), n(j(po), {
|
|
11244
11249
|
key: 1,
|
|
11245
|
-
"cell-render":
|
|
11250
|
+
"cell-render": re[N.value.key],
|
|
11246
11251
|
class: "ev-editor-wrapper",
|
|
11247
|
-
style: _(
|
|
11252
|
+
style: _(ie.value),
|
|
11248
11253
|
"render-table-params": {
|
|
11249
11254
|
data: f.data,
|
|
11250
|
-
row:
|
|
11251
|
-
rowIndex:
|
|
11252
|
-
field:
|
|
11253
|
-
title:
|
|
11255
|
+
row: N.value?.row,
|
|
11256
|
+
rowIndex: N.value?.rowIndex ?? -1,
|
|
11257
|
+
field: N.value?.key ?? "",
|
|
11258
|
+
title: N.value?.column?.title ?? ""
|
|
11254
11259
|
},
|
|
11255
11260
|
bordered: !1,
|
|
11256
|
-
"get-popup-container":
|
|
11257
|
-
onBlur:
|
|
11261
|
+
"get-popup-container": ue,
|
|
11262
|
+
onBlur: le
|
|
11258
11263
|
}, null, 8, [
|
|
11259
11264
|
"cell-render",
|
|
11260
11265
|
"style",
|
|
@@ -11262,12 +11267,12 @@ var xo = /* @__PURE__ */ l({
|
|
|
11262
11267
|
])) : r("", !0)], 512),
|
|
11263
11268
|
a("div", {
|
|
11264
11269
|
ref_key: "eVirtTableEmptyRef",
|
|
11265
|
-
ref:
|
|
11270
|
+
ref: te
|
|
11266
11271
|
}, [T(t.$slots, "empty", {}, () => [c(l, { description: "空数据" })])], 512),
|
|
11267
11272
|
a("div", {
|
|
11268
11273
|
ref_key: "eVirtTableOverlayerRef",
|
|
11269
|
-
ref:
|
|
11270
|
-
}, [(x(!0), i(e, null, w(
|
|
11274
|
+
ref: ne
|
|
11275
|
+
}, [(x(!0), i(e, null, w(I.value?.views || [], (a) => (x(), i("div", {
|
|
11271
11276
|
class: h(a.class),
|
|
11272
11277
|
style: _(a.style),
|
|
11273
11278
|
key: a.type
|
|
@@ -11325,126 +11330,129 @@ var xo = /* @__PURE__ */ l({
|
|
|
11325
11330
|
"toolbarButtonClick",
|
|
11326
11331
|
"toolbarToolClick",
|
|
11327
11332
|
"pick",
|
|
11328
|
-
"resetQuery"
|
|
11333
|
+
"resetQuery",
|
|
11334
|
+
"sortChange"
|
|
11329
11335
|
],
|
|
11330
11336
|
setup(l, { expose: d, emit: f }) {
|
|
11331
|
-
let h = l, _ =
|
|
11337
|
+
let h = l, _ = ee(), b = f, A = (e) => {
|
|
11338
|
+
b("sortChange", e);
|
|
11339
|
+
}, { formConfig: te, pageConfig: ne, columns: N, toolbarConfig: F, proxyConfig: L, config: re, staticConfig: R } = k(h), ie = la(), ae = t(() => h.autoBoxSizeOffset ?? ca().autoBoxSizeOffset), se = C(Yi()), ce = C({}), z = t(() => ({
|
|
11332
11340
|
...h,
|
|
11333
11341
|
config: {
|
|
11334
|
-
...
|
|
11342
|
+
...ie,
|
|
11335
11343
|
...h.config,
|
|
11336
11344
|
...h.border === void 0 ? {} : { BORDER: h.border },
|
|
11337
11345
|
...h.scrollbarMode === void 0 ? {} : { scrollbarMode: h.scrollbarMode },
|
|
11338
11346
|
...h.scrollbarShowDelay === void 0 ? {} : { SCROLLBAR_SHOW_DELAY: h.scrollbarShowDelay }
|
|
11339
11347
|
}
|
|
11340
|
-
})),
|
|
11341
|
-
t(() =>
|
|
11342
|
-
current:
|
|
11343
|
-
total:
|
|
11344
|
-
pageSize:
|
|
11348
|
+
})), B = t(() => L.value && L.value.ajax ? ne.value ? "pagination" : "list" : "bad");
|
|
11349
|
+
t(() => B.value === "pagination" ? {
|
|
11350
|
+
current: pe.page,
|
|
11351
|
+
total: ge.value,
|
|
11352
|
+
pageSize: pe.size,
|
|
11345
11353
|
responsive: !1,
|
|
11346
11354
|
showSizeChanger: !0,
|
|
11347
11355
|
showTotal: (e) => `共${e}条数据`
|
|
11348
11356
|
} : !1);
|
|
11349
|
-
let
|
|
11357
|
+
let le = t(() => (ne.value?.pageSizes ?? [
|
|
11350
11358
|
10,
|
|
11351
11359
|
20,
|
|
11352
11360
|
50,
|
|
11353
11361
|
100
|
|
11354
|
-
]).map(String)),
|
|
11362
|
+
]).map(String)), ue = t(() => (0, Q.omit)({
|
|
11355
11363
|
labelCol: pa,
|
|
11356
|
-
...
|
|
11357
|
-
}, ["items"])),
|
|
11364
|
+
...te.value
|
|
11365
|
+
}, ["items"])), fe = S({
|
|
11358
11366
|
toolbar: !1,
|
|
11359
11367
|
form: !1,
|
|
11360
11368
|
table: !1
|
|
11361
|
-
}),
|
|
11369
|
+
}), pe = S({
|
|
11362
11370
|
page: 1,
|
|
11363
11371
|
size: ne.value?.pageSize ?? 10
|
|
11364
|
-
}),
|
|
11365
|
-
|
|
11366
|
-
},
|
|
11367
|
-
|
|
11368
|
-
},
|
|
11369
|
-
(0, Q.isObject)(e) ? (Object.prototype.hasOwnProperty.call(e, "toolbar") && (
|
|
11370
|
-
},
|
|
11371
|
-
|
|
11372
|
-
},
|
|
11372
|
+
}), me = C(0), ge = C(0), _e = C([]), ye = C(), be = C(), xe = C(), Se = C(), Ce = C(), we = C(), Te = C(), Ee = C(500), De = C({}), Oe = (e) => {
|
|
11373
|
+
De.value[pe.page] = e;
|
|
11374
|
+
}, ke = S([...(h.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(h.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), je = (e, t) => {
|
|
11375
|
+
ke[e] = t;
|
|
11376
|
+
}, Me = (e) => {
|
|
11377
|
+
(0, Q.isObject)(e) ? (Object.prototype.hasOwnProperty.call(e, "toolbar") && (fe.toolbar = e.toolbar), Object.prototype.hasOwnProperty.call(e, "form") && (fe.form = e.form), Object.prototype.hasOwnProperty.call(e, "table") && (fe.table = e.table)) : (0, Q.isBoolean)(e) && (fe.form = e, fe.toolbar = e, fe.table = e);
|
|
11378
|
+
}, Ne = t(() => (0, Q.uniq)(Object.values(De.value).flat(), (e) => e[z.value.config?.ROW_KEY ?? "id"])), Pe = () => {
|
|
11379
|
+
Be();
|
|
11380
|
+
}, Fe = t(() => Ne.value.map((e) => e[z.value.config?.ROW_KEY ?? "id"])), V = (e, t) => t ? {
|
|
11373
11381
|
list: (0, Q.isString)(t.list) ? (0, Q.get)(e, t.list) : (0, Q.isFunction)(t.list) ? t.list(e) : void 0,
|
|
11374
11382
|
total: (0, Q.isString)(t.total) ? (0, Q.get)(e, t.total) : (0, Q.isFunction)(t.total) ? t.total(e) : void 0,
|
|
11375
11383
|
result: (0, Q.isString)(t.result) ? (0, Q.get)(e, t.result) : (0, Q.isFunction)(t.result) ? t.result(e) : void 0,
|
|
11376
11384
|
message: (0, Q.isString)(t.message) ? (0, Q.get)(e, t.message) : (0, Q.isFunction)(t.message) ? t.message(e) : void 0
|
|
11377
|
-
} : { list: e },
|
|
11385
|
+
} : { list: e }, Ie = (0, Q.debounce)((e) => {
|
|
11378
11386
|
b("toolbarButtonClick", {
|
|
11379
|
-
data:
|
|
11387
|
+
data: _e.value,
|
|
11380
11388
|
code: e,
|
|
11381
|
-
selectedKeys:
|
|
11382
|
-
records:
|
|
11383
|
-
}),
|
|
11384
|
-
}, 100),
|
|
11389
|
+
selectedKeys: Fe.value,
|
|
11390
|
+
records: Ne.value
|
|
11391
|
+
}), W(e);
|
|
11392
|
+
}, 100), Le = ({ key: e }) => Ie(e), H = (0, Q.debounce)((e) => {
|
|
11385
11393
|
b("toolbarToolClick", {
|
|
11386
|
-
data:
|
|
11394
|
+
data: _e.value,
|
|
11387
11395
|
code: e,
|
|
11388
|
-
selectedKeys:
|
|
11389
|
-
records:
|
|
11390
|
-
}),
|
|
11391
|
-
}, 100),
|
|
11392
|
-
if (
|
|
11393
|
-
|
|
11396
|
+
selectedKeys: Fe.value,
|
|
11397
|
+
records: Ne.value
|
|
11398
|
+
}), W(e);
|
|
11399
|
+
}, 100), Re = () => new Promise((e) => {
|
|
11400
|
+
if (B.value !== "bad") {
|
|
11401
|
+
Me({
|
|
11394
11402
|
table: !0,
|
|
11395
11403
|
form: !0
|
|
11396
11404
|
});
|
|
11397
|
-
let { ajax: t } =
|
|
11405
|
+
let { ajax: t } = L.value;
|
|
11398
11406
|
t.query({
|
|
11399
|
-
form:
|
|
11400
|
-
page:
|
|
11407
|
+
form: ce.value,
|
|
11408
|
+
page: pe
|
|
11401
11409
|
}).then((t) => {
|
|
11402
|
-
let { list: n, total: r, result: i, message: a } =
|
|
11403
|
-
n ? (
|
|
11410
|
+
let { list: n, total: r, result: i, message: a } = V(t, L.value.response);
|
|
11411
|
+
n ? (_e.value = n, me.value++) : i ? (_e.value = i, ge.value = r ?? i.length, me.value++) : (_e.value = [], me.value++, a && Ka(a)), e(_e.value);
|
|
11404
11412
|
}).catch((t) => {
|
|
11405
11413
|
console.error("fetchData error", t), e([]);
|
|
11406
11414
|
}).finally(() => {
|
|
11407
|
-
|
|
11415
|
+
Me({
|
|
11408
11416
|
table: !1,
|
|
11409
11417
|
form: !1
|
|
11410
11418
|
});
|
|
11411
11419
|
});
|
|
11412
11420
|
}
|
|
11413
|
-
}),
|
|
11414
|
-
let { ajax: t } =
|
|
11421
|
+
}), ze = (e, t) => (pe.page = e, pe.size = t, Re()), Be = () => (pe.page = 1, De.value = {}, Re()), U = (0, Q.debounce)(Re, 160), Ve = (e, t) => (Object.assign(ce.value, e), pe.page = 1, t ? Promise.resolve() : U()), He = (e, t) => (ce.value = e, pe.page = 1, t ? Promise.resolve() : U()), W = (e) => {
|
|
11422
|
+
let { ajax: t } = L.value;
|
|
11415
11423
|
switch (e) {
|
|
11416
11424
|
case "multiDelete":
|
|
11417
|
-
t.multiDelete && (
|
|
11425
|
+
t.multiDelete && (Fe.value.length > 0 ? Ua({
|
|
11418
11426
|
title: "警告",
|
|
11419
11427
|
content: "确认删除选中的数据吗?"
|
|
11420
11428
|
}).then(() => {
|
|
11421
|
-
|
|
11429
|
+
Me({
|
|
11422
11430
|
table: !0,
|
|
11423
11431
|
toolbar: !0
|
|
11424
|
-
}), t.multiDelete(
|
|
11425
|
-
Wa("删除成功"),
|
|
11432
|
+
}), t.multiDelete(Fe.value).then(() => {
|
|
11433
|
+
Wa("删除成功"), Be();
|
|
11426
11434
|
}).catch(() => {
|
|
11427
11435
|
Ga("删除失败");
|
|
11428
11436
|
}).finally(() => {
|
|
11429
|
-
|
|
11437
|
+
Me({
|
|
11430
11438
|
table: !1,
|
|
11431
11439
|
toolbar: !1
|
|
11432
|
-
}),
|
|
11440
|
+
}), ke.multiDelete = !1;
|
|
11433
11441
|
});
|
|
11434
11442
|
}) : Ka("请选择要删除的数据"));
|
|
11435
11443
|
break;
|
|
11436
11444
|
}
|
|
11437
|
-
},
|
|
11445
|
+
}, Ue = t(() => !R.value || !R.value.selectable && !R.value.tree ? N.value : [R.value.selectable && R.value.tree ? {
|
|
11438
11446
|
type: "selection-tree",
|
|
11439
11447
|
width: 40,
|
|
11440
11448
|
widthFillDisable: !0,
|
|
11441
11449
|
title: ""
|
|
11442
|
-
} :
|
|
11450
|
+
} : R.value.selectable ? {
|
|
11443
11451
|
type: "selection",
|
|
11444
11452
|
width: 40,
|
|
11445
11453
|
widthFillDisable: !0,
|
|
11446
11454
|
title: ""
|
|
11447
|
-
} :
|
|
11455
|
+
} : R.value.tree ? {
|
|
11448
11456
|
type: "tree",
|
|
11449
11457
|
width: 40,
|
|
11450
11458
|
widthFillDisable: !0,
|
|
@@ -11454,103 +11462,103 @@ var xo = /* @__PURE__ */ l({
|
|
|
11454
11462
|
width: 40,
|
|
11455
11463
|
widthFillDisable: !0,
|
|
11456
11464
|
title: ""
|
|
11457
|
-
}, ...
|
|
11458
|
-
if (
|
|
11459
|
-
if (
|
|
11465
|
+
}, ...N.value]), We = (e) => {
|
|
11466
|
+
if (te.value && te.value.items.length > 0) {
|
|
11467
|
+
if (te.value.customReset) te.value.customReset();
|
|
11460
11468
|
else {
|
|
11461
11469
|
let e = {};
|
|
11462
|
-
ta(
|
|
11470
|
+
ta(te.value.items, (t) => {
|
|
11463
11471
|
t.field && t.itemRender ? Qi(t.itemRender.defaultValue) ? e[t.field] = t.itemRender.defaultValue : e[t.field] = void 0 : t.field && t.slots && (Qi(t.slots.defaultValue) ? e[t.field] = t.slots.defaultValue : e[t.field] = void 0);
|
|
11464
|
-
}),
|
|
11472
|
+
}), ce.value = e;
|
|
11465
11473
|
}
|
|
11466
11474
|
b("resetQuery");
|
|
11467
11475
|
}
|
|
11468
|
-
|
|
11469
|
-
},
|
|
11470
|
-
|
|
11471
|
-
},
|
|
11472
|
-
|
|
11473
|
-
m(() =>
|
|
11474
|
-
} }),
|
|
11476
|
+
pe.page = 1, e || U();
|
|
11477
|
+
}, G = () => (De.value = {}, We()), Ge = (e) => (0, Q.isFunction)(e) ? e() : e, K = (e) => (0, Q.isString)(e), Ke = null, qe = () => {
|
|
11478
|
+
Ke?.destroy(), Ke = null;
|
|
11479
|
+
}, Je = () => {
|
|
11480
|
+
qe(), !(!h.autoBoxSize || !xe.value) && (Ke = Qa(() => xe.value ?? void 0, () => Ja(ae.value), { onLayout: () => {
|
|
11481
|
+
m(() => J());
|
|
11482
|
+
} }), Ke.attach());
|
|
11475
11483
|
};
|
|
11476
|
-
|
|
11477
|
-
e ? m(() =>
|
|
11478
|
-
}),
|
|
11479
|
-
h.autoBoxSize &&
|
|
11484
|
+
M(() => h.autoBoxSize, (e) => {
|
|
11485
|
+
e ? m(() => Je()) : qe();
|
|
11486
|
+
}), M(ae, () => {
|
|
11487
|
+
h.autoBoxSize && Ke?.update();
|
|
11480
11488
|
}, { deep: !0 });
|
|
11481
|
-
let
|
|
11482
|
-
|
|
11483
|
-
if (
|
|
11484
|
-
let e =
|
|
11485
|
-
|
|
11489
|
+
let q = null, J = () => {
|
|
11490
|
+
q && cancelAnimationFrame(q), q = requestAnimationFrame(() => {
|
|
11491
|
+
if (q = null, !we.value) return;
|
|
11492
|
+
let e = we.value.clientHeight, t = h.fitHeight ?? 0;
|
|
11493
|
+
Ee.value = Math.max(e - t, 100);
|
|
11486
11494
|
});
|
|
11487
|
-
},
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
}, { immediate: !0 }),
|
|
11491
|
-
let
|
|
11495
|
+
}, Ye = null;
|
|
11496
|
+
M(Se, (e) => {
|
|
11497
|
+
Ye?.disconnect(), Ye = null, e && (Ye = new ResizeObserver(() => J()), Ye.observe(e));
|
|
11498
|
+
}, { immediate: !0 }), M(B, () => m(() => J()));
|
|
11499
|
+
let Xe, Ze = null, Qe = null;
|
|
11492
11500
|
return y(() => {
|
|
11493
|
-
if (
|
|
11501
|
+
if (J(), window.addEventListener("resize", J), Xe = new MutationObserver((e) => {
|
|
11494
11502
|
e.forEach((e) => {
|
|
11495
11503
|
if (e.type === "attributes" && e.attributeName === "style") {
|
|
11496
11504
|
let t = e.target;
|
|
11497
|
-
window.getComputedStyle(t).display !== "none" &&
|
|
11505
|
+
window.getComputedStyle(t).display !== "none" && J();
|
|
11498
11506
|
}
|
|
11499
11507
|
});
|
|
11500
|
-
}),
|
|
11501
|
-
|
|
11508
|
+
}), xe.value) {
|
|
11509
|
+
Xe.observe(xe.value, {
|
|
11502
11510
|
attributes: !0,
|
|
11503
11511
|
attributeFilter: ["style"]
|
|
11504
|
-
}),
|
|
11505
|
-
let e =
|
|
11506
|
-
for (let t = 0; t < 5 && e && e !== document.body; t++)
|
|
11512
|
+
}), Ze = new ResizeObserver(() => J());
|
|
11513
|
+
let e = xe.value.parentElement;
|
|
11514
|
+
for (let t = 0; t < 5 && e && e !== document.body; t++) Ze.observe(e), e = e.parentElement;
|
|
11507
11515
|
}
|
|
11508
|
-
|
|
11509
|
-
h.autoBoxSize &&
|
|
11516
|
+
Qe = new ResizeObserver(() => J()), we.value && Qe.observe(we.value), We(h.manualFetch), m(() => {
|
|
11517
|
+
h.autoBoxSize && Je(), J();
|
|
11510
11518
|
});
|
|
11511
11519
|
}), v(() => {
|
|
11512
|
-
|
|
11520
|
+
q && cancelAnimationFrame(q), window.removeEventListener("resize", J), Xe.disconnect(), Ye?.disconnect(), Ze?.disconnect(), Qe?.disconnect(), qe();
|
|
11513
11521
|
}), d({
|
|
11514
11522
|
commitProxy: {
|
|
11515
|
-
query:
|
|
11516
|
-
reload:
|
|
11517
|
-
reloadPage:
|
|
11518
|
-
passQuery:
|
|
11519
|
-
forcePassQuery:
|
|
11523
|
+
query: U,
|
|
11524
|
+
reload: G,
|
|
11525
|
+
reloadPage: Be,
|
|
11526
|
+
passQuery: Ve,
|
|
11527
|
+
forcePassQuery: He
|
|
11520
11528
|
},
|
|
11521
|
-
$canvasTable: t(() =>
|
|
11522
|
-
selectedRowKeys:
|
|
11523
|
-
setBtnLoading:
|
|
11524
|
-
selectedRecords:
|
|
11525
|
-
$form: t(() =>
|
|
11526
|
-
getFormData: () =>
|
|
11527
|
-
setLoadings:
|
|
11528
|
-
resizeTable:
|
|
11529
|
+
$canvasTable: t(() => be.value),
|
|
11530
|
+
selectedRowKeys: Fe,
|
|
11531
|
+
setBtnLoading: je,
|
|
11532
|
+
selectedRecords: Ne,
|
|
11533
|
+
$form: t(() => ye.value),
|
|
11534
|
+
getFormData: () => ce.value,
|
|
11535
|
+
setLoadings: Me,
|
|
11536
|
+
resizeTable: J
|
|
11529
11537
|
}), (t, d) => {
|
|
11530
11538
|
let f = E("a-menu-item"), m = E("a-menu"), v = E("a-dropdown");
|
|
11531
11539
|
return x(), i("div", p({
|
|
11532
11540
|
ref_key: "boxEl",
|
|
11533
|
-
ref:
|
|
11541
|
+
ref: xe,
|
|
11534
11542
|
class: ["p-wrapper flex flex-col gap-8px overflow-y-auto", l.autoBoxSize ? "min-h-0 min-w-0 flex-1 w-full" : "h-full"]
|
|
11535
|
-
},
|
|
11536
|
-
|
|
11543
|
+
}, j(_)), [B.value === "bad" ? (x(), i("div", So, "请检查配置")) : (x(), i(e, { key: 1 }, [
|
|
11544
|
+
j(te)?.items?.some((e) => e.field && e.itemRender) ? (x(), i("div", {
|
|
11537
11545
|
key: 0,
|
|
11538
11546
|
class: "p-pane p-form-wrapper",
|
|
11539
11547
|
ref_key: "pFormWrapper",
|
|
11540
|
-
ref:
|
|
11541
|
-
}, [c(
|
|
11542
|
-
default:
|
|
11548
|
+
ref: Se
|
|
11549
|
+
}, [c(j(ve), { spinning: fe.form }, {
|
|
11550
|
+
default: P(() => [(x(), n(j(oe), p({
|
|
11543
11551
|
key: se.value,
|
|
11544
11552
|
ref_key: "formEl",
|
|
11545
|
-
ref:
|
|
11546
|
-
model:
|
|
11547
|
-
},
|
|
11548
|
-
default:
|
|
11549
|
-
default:
|
|
11553
|
+
ref: ye,
|
|
11554
|
+
model: ce.value
|
|
11555
|
+
}, ue.value, { onSubmit: Pe }), {
|
|
11556
|
+
default: P(() => [c(j(he), { gutter: [6, 12] }, {
|
|
11557
|
+
default: P(() => [(x(!0), i(e, null, w(j(te).items, (e, t) => (x(), n(za, {
|
|
11550
11558
|
key: `_col_${e.field || t}`,
|
|
11551
|
-
"form-data":
|
|
11559
|
+
"form-data": ce.value,
|
|
11552
11560
|
item: e,
|
|
11553
|
-
onReset: d[0] ||= (e) =>
|
|
11561
|
+
onReset: d[0] ||= (e) => We(h.lazyReset)
|
|
11554
11562
|
}, null, 8, ["form-data", "item"]))), 128))]),
|
|
11555
11563
|
_: 1
|
|
11556
11564
|
})]),
|
|
@@ -11558,31 +11566,31 @@ var xo = /* @__PURE__ */ l({
|
|
|
11558
11566
|
}, 16, ["model"]))]),
|
|
11559
11567
|
_: 1
|
|
11560
11568
|
}, 8, ["spinning"])], 512)) : r("", !0),
|
|
11561
|
-
|
|
11562
|
-
overlay:
|
|
11563
|
-
default:
|
|
11564
|
-
default:
|
|
11569
|
+
j(F) ? (x(), i("div", Co, [a("div", wo, [j(F).buttons && j(F).buttons.length > 0 ? (x(!0), i(e, { key: 0 }, w(j(F).buttons, (t, o) => (x(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (x(), n(v, { key: 0 }, {
|
|
11570
|
+
overlay: P(() => [c(m, { onClick: Le }, {
|
|
11571
|
+
default: P(() => [(x(!0), i(e, null, w(t.dropdowns, (e) => (x(), n(f, { key: e.code }, {
|
|
11572
|
+
default: P(() => [s(O(e.content), 1)]),
|
|
11565
11573
|
_: 2
|
|
11566
11574
|
}, 1024))), 128))]),
|
|
11567
11575
|
_: 2
|
|
11568
11576
|
}, 1024)]),
|
|
11569
|
-
default:
|
|
11577
|
+
default: P(() => [c(j(I), {
|
|
11570
11578
|
type: t.type,
|
|
11571
11579
|
size: t.size ?? "middle",
|
|
11572
|
-
disabled:
|
|
11573
|
-
loading:
|
|
11580
|
+
disabled: j(F).disabled || t.disabled,
|
|
11581
|
+
loading: fe.toolbar || !!t.code && ke[t.code],
|
|
11574
11582
|
danger: t.danger,
|
|
11575
11583
|
shape: t.shape,
|
|
11576
11584
|
ghost: t.ghost,
|
|
11577
11585
|
block: t.block
|
|
11578
11586
|
}, {
|
|
11579
|
-
default:
|
|
11580
|
-
t.icon ? (x(), n(
|
|
11587
|
+
default: P(() => [a("div", To, [
|
|
11588
|
+
t.icon ? (x(), n(j(Da), {
|
|
11581
11589
|
key: 0,
|
|
11582
11590
|
icon: t.icon
|
|
11583
11591
|
}, null, 8, ["icon"])) : r("", !0),
|
|
11584
|
-
t.content && Ge(
|
|
11585
|
-
c(
|
|
11592
|
+
t.content && K(Ge(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Ge(t.content)), 1)], 64)) : t.content ? (x(), n(D(Ge(t.content)), { key: 2 })) : r("", !0),
|
|
11593
|
+
c(j(Ae))
|
|
11586
11594
|
])]),
|
|
11587
11595
|
_: 2
|
|
11588
11596
|
}, 1032, [
|
|
@@ -11596,22 +11604,22 @@ var xo = /* @__PURE__ */ l({
|
|
|
11596
11604
|
"block"
|
|
11597
11605
|
])]),
|
|
11598
11606
|
_: 2
|
|
11599
|
-
}, 1024)) : t.code ? (x(), n(
|
|
11607
|
+
}, 1024)) : t.code ? (x(), n(j(I), {
|
|
11600
11608
|
key: 1,
|
|
11601
11609
|
type: t.type,
|
|
11602
11610
|
size: t.size ?? "middle",
|
|
11603
|
-
disabled:
|
|
11604
|
-
loading:
|
|
11611
|
+
disabled: j(F).disabled || t.disabled,
|
|
11612
|
+
loading: fe.toolbar || !!t.code && ke[t.code],
|
|
11605
11613
|
danger: t.danger,
|
|
11606
11614
|
shape: t.shape,
|
|
11607
11615
|
ghost: t.ghost,
|
|
11608
11616
|
block: t.block,
|
|
11609
|
-
onClick: (e) =>
|
|
11617
|
+
onClick: (e) => j(Ie)(t.code)
|
|
11610
11618
|
}, {
|
|
11611
|
-
default:
|
|
11619
|
+
default: P(() => [a("div", Eo, [t.icon ? (x(), n(j(Da), {
|
|
11612
11620
|
key: 0,
|
|
11613
11621
|
icon: t.icon
|
|
11614
|
-
}, null, 8, ["icon"])) : r("", !0), t.content && Ge(
|
|
11622
|
+
}, null, 8, ["icon"])) : r("", !0), t.content && K(Ge(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Ge(t.content)), 1)], 64)) : t.content ? (x(), n(D(Ge(t.content)), { key: 2 })) : r("", !0)])]),
|
|
11615
11623
|
_: 2
|
|
11616
11624
|
}, 1032, [
|
|
11617
11625
|
"type",
|
|
@@ -11623,22 +11631,22 @@ var xo = /* @__PURE__ */ l({
|
|
|
11623
11631
|
"ghost",
|
|
11624
11632
|
"block",
|
|
11625
11633
|
"onClick"
|
|
11626
|
-
])) : (x(), i("div", Do))], 64))), 128)) : r("", !0)]), a("span", Oo, [
|
|
11634
|
+
])) : (x(), i("div", Do))], 64))), 128)) : r("", !0)]), a("span", Oo, [j(F).tools && j(F).tools.length > 0 ? (x(!0), i(e, { key: 0 }, w(j(F).tools, (t, o) => (x(), n(j(I), {
|
|
11627
11635
|
key: o,
|
|
11628
11636
|
type: t.type,
|
|
11629
11637
|
size: t.size ?? "middle",
|
|
11630
|
-
disabled:
|
|
11638
|
+
disabled: j(F).disabled || t.disabled,
|
|
11631
11639
|
danger: t.danger,
|
|
11632
11640
|
shape: t.shape,
|
|
11633
11641
|
ghost: t.ghost,
|
|
11634
11642
|
block: t.block,
|
|
11635
|
-
onClick: (e) =>
|
|
11636
|
-
loading:
|
|
11643
|
+
onClick: (e) => j(H)(t.code),
|
|
11644
|
+
loading: fe.toolbar || !!t.code && ke[t.code]
|
|
11637
11645
|
}, {
|
|
11638
|
-
default:
|
|
11646
|
+
default: P(() => [a("div", ko, [t.icon ? (x(), n(j(Da), {
|
|
11639
11647
|
key: 0,
|
|
11640
11648
|
icon: t.icon
|
|
11641
|
-
}, null, 8, ["icon"])) : r("", !0), t.content && Ge(
|
|
11649
|
+
}, null, 8, ["icon"])) : r("", !0), t.content && K(Ge(t.content)) ? (x(), i(e, { key: 1 }, [s(O(Ge(t.content)), 1)], 64)) : t.content ? (x(), n(D(Ge(t.content)), { key: 2 })) : r("", !0)])]),
|
|
11642
11650
|
_: 2
|
|
11643
11651
|
}, 1032, [
|
|
11644
11652
|
"type",
|
|
@@ -11653,26 +11661,27 @@ var xo = /* @__PURE__ */ l({
|
|
|
11653
11661
|
]))), 128)) : r("", !0)])])) : r("", !0),
|
|
11654
11662
|
a("div", {
|
|
11655
11663
|
ref_key: "tableWrapperEl",
|
|
11656
|
-
ref:
|
|
11664
|
+
ref: Ce,
|
|
11657
11665
|
class: "flex-1 h-0 min-h-0 flex flex-col p-inner-scroll"
|
|
11658
11666
|
}, [a("div", {
|
|
11659
11667
|
ref_key: "tableBodyEl",
|
|
11660
|
-
ref:
|
|
11668
|
+
ref: we,
|
|
11661
11669
|
class: "flex-1 min-h-0 overflow-hidden"
|
|
11662
11670
|
}, [c(xo, {
|
|
11663
11671
|
ref_key: "canvasTableRef",
|
|
11664
|
-
ref:
|
|
11665
|
-
columns:
|
|
11672
|
+
ref: be,
|
|
11673
|
+
columns: Ue.value,
|
|
11666
11674
|
config: {
|
|
11667
|
-
...
|
|
11668
|
-
HEIGHT:
|
|
11675
|
+
...z.value.config,
|
|
11676
|
+
HEIGHT: Ee.value
|
|
11669
11677
|
},
|
|
11670
|
-
data:
|
|
11671
|
-
loading:
|
|
11672
|
-
onSelectionChange:
|
|
11678
|
+
data: _e.value,
|
|
11679
|
+
loading: fe.table,
|
|
11680
|
+
onSelectionChange: Oe,
|
|
11681
|
+
onSortChange: A
|
|
11673
11682
|
}, o({ _: 2 }, [w(t.$slots, (e, n) => ({
|
|
11674
11683
|
name: n,
|
|
11675
|
-
fn:
|
|
11684
|
+
fn: P((e) => [T(t.$slots, n, g(u(e)))])
|
|
11676
11685
|
}))]), 1032, [
|
|
11677
11686
|
"columns",
|
|
11678
11687
|
"config",
|
|
@@ -11680,20 +11689,20 @@ var xo = /* @__PURE__ */ l({
|
|
|
11680
11689
|
"loading"
|
|
11681
11690
|
])], 512), a("div", {
|
|
11682
11691
|
ref_key: "tableFooterEl",
|
|
11683
|
-
ref:
|
|
11692
|
+
ref: Te,
|
|
11684
11693
|
class: "flex-shrink-0"
|
|
11685
|
-
}, [
|
|
11694
|
+
}, [j(R)?.selectable && j(R).showCount ? (x(), i("div", Ao, " 已选:" + O(Fe.value.length), 1)) : r("", !0), B.value === "pagination" ? (x(), n(j(de), {
|
|
11686
11695
|
key: 1,
|
|
11687
11696
|
class: "p-canvas-pagination",
|
|
11688
11697
|
size: "small",
|
|
11689
|
-
current:
|
|
11690
|
-
"page-size":
|
|
11691
|
-
"page-size-options":
|
|
11692
|
-
"show-size-changer":
|
|
11693
|
-
"show-quick-jumper":
|
|
11698
|
+
current: pe.page,
|
|
11699
|
+
"page-size": pe.size,
|
|
11700
|
+
"page-size-options": le.value,
|
|
11701
|
+
"show-size-changer": j(ne)?.showSizeChanger ?? !0,
|
|
11702
|
+
"show-quick-jumper": j(ne)?.showQuickJumper,
|
|
11694
11703
|
"show-total": (e) => `共${e}条数据`,
|
|
11695
|
-
total:
|
|
11696
|
-
onChange:
|
|
11704
|
+
total: ge.value,
|
|
11705
|
+
onChange: ze
|
|
11697
11706
|
}, null, 8, [
|
|
11698
11707
|
"current",
|
|
11699
11708
|
"page-size",
|
|
@@ -11714,12 +11723,12 @@ var xo = /* @__PURE__ */ l({
|
|
|
11714
11723
|
source: {}
|
|
11715
11724
|
},
|
|
11716
11725
|
setup(e, { expose: r }) {
|
|
11717
|
-
let i = e, a = C(), { source: o } =
|
|
11726
|
+
let i = e, a = C(), { source: o } = k(i), s = t(() => a.value?.$form), c = t(() => i.getFormSetting(o.value));
|
|
11718
11727
|
return r({ $form: s }), (t, r) => (x(), n(Va, p({
|
|
11719
11728
|
name: e.name,
|
|
11720
11729
|
ref_key: "formEl",
|
|
11721
11730
|
ref: a
|
|
11722
|
-
}, c.value, { data:
|
|
11731
|
+
}, c.value, { data: j(o) }), null, 16, ["name", "data"]));
|
|
11723
11732
|
}
|
|
11724
11733
|
}), No = /* @__PURE__ */ l({
|
|
11725
11734
|
__name: "CollapseCard",
|
|
@@ -11751,13 +11760,13 @@ var xo = /* @__PURE__ */ l({
|
|
|
11751
11760
|
"onUpdate:activeKey": i[0] ||= (e) => r.value = e,
|
|
11752
11761
|
class: "collapsible-card"
|
|
11753
11762
|
}, {
|
|
11754
|
-
default:
|
|
11763
|
+
default: P(() => [c(a, {
|
|
11755
11764
|
key: "content",
|
|
11756
11765
|
"force-render": "",
|
|
11757
11766
|
header: e.title
|
|
11758
11767
|
}, o({ _: 2 }, [w(t.$slots, (e, n) => ({
|
|
11759
11768
|
name: n,
|
|
11760
|
-
fn:
|
|
11769
|
+
fn: P(() => [T(t.$slots, n)])
|
|
11761
11770
|
}))]), 1032, ["header"])]),
|
|
11762
11771
|
_: 3
|
|
11763
11772
|
}, 8, ["active-key"])) : (x(), n(l, {
|
|
@@ -11766,7 +11775,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11766
11775
|
title: e.title
|
|
11767
11776
|
}, o({ _: 2 }, [w(t.$slots, (e, n) => ({
|
|
11768
11777
|
name: n,
|
|
11769
|
-
fn:
|
|
11778
|
+
fn: P(() => [T(t.$slots, n)])
|
|
11770
11779
|
}))]), 1032, ["title"]));
|
|
11771
11780
|
};
|
|
11772
11781
|
}
|
|
@@ -11799,7 +11808,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11799
11808
|
}),
|
|
11800
11809
|
emits: ["update:modelValue"],
|
|
11801
11810
|
setup(l, { expose: u }) {
|
|
11802
|
-
let d =
|
|
11811
|
+
let d = oe.useForm, f = C(), p = l, h = C(), g = te(l, "modelValue"), _ = C(0), v = C([]), y = C([]), b = (e) => {
|
|
11803
11812
|
_.value = e;
|
|
11804
11813
|
}, S = t(() => p.max ?? Infinity), D = (e) => {
|
|
11805
11814
|
(p.createItem ?? (() => Promise.resolve({})))({ list: g.value }).then((t) => {
|
|
@@ -11808,21 +11817,21 @@ var xo = /* @__PURE__ */ l({
|
|
|
11808
11817
|
__index: ((0, Q.max)(g.value, (e) => e.__index ?? -1)?.__index ?? -1) + 1
|
|
11809
11818
|
}], _.value = e;
|
|
11810
11819
|
});
|
|
11811
|
-
},
|
|
11820
|
+
}, k = p.itemMenus ?? [{
|
|
11812
11821
|
content: "复制",
|
|
11813
11822
|
code: "copy"
|
|
11814
11823
|
}, {
|
|
11815
11824
|
content: "删除",
|
|
11816
11825
|
code: "delete"
|
|
11817
|
-
}],
|
|
11826
|
+
}], A = (e) => e?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement ?? h.value?.$el ?? document.body, ee = t(() => p.forceRender || g.value.length <= 5), F = (e) => {
|
|
11818
11827
|
let t = g.value.find((t, n) => n === e)?.__index;
|
|
11819
11828
|
$(t) && (v.value = v.value.filter((e) => e !== t));
|
|
11820
|
-
},
|
|
11829
|
+
}, L = () => {
|
|
11821
11830
|
m().then(() => {
|
|
11822
|
-
|
|
11831
|
+
F(_.value), y.value[_.value]?.$form?.validate();
|
|
11823
11832
|
});
|
|
11824
|
-
},
|
|
11825
|
-
|
|
11833
|
+
}, re = (e, t) => p.getTabLabel?.(e, t) ?? `${p.tabLabel} ${p.keepSerial ? t + 1 : (e.__index ?? 0) + 1}`;
|
|
11834
|
+
M(() => g.value, () => {
|
|
11826
11835
|
if (!p.keepSerial) {
|
|
11827
11836
|
let e = g.value.filter((e) => !$(e.__index));
|
|
11828
11837
|
e.length > 0 && e.forEach((e) => {
|
|
@@ -11830,7 +11839,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11830
11839
|
});
|
|
11831
11840
|
}
|
|
11832
11841
|
}, { immediate: !0 });
|
|
11833
|
-
let
|
|
11842
|
+
let R = (0, Q.debounce)(({ key: e }, t, n) => {
|
|
11834
11843
|
if (p.menuHandler && (0, Q.isFunction)(p.menuHandler)) p.menuHandler({
|
|
11835
11844
|
code: (0, Q.toString)(e),
|
|
11836
11845
|
data: t,
|
|
@@ -11854,11 +11863,11 @@ var xo = /* @__PURE__ */ l({
|
|
|
11854
11863
|
break;
|
|
11855
11864
|
}
|
|
11856
11865
|
}, 100);
|
|
11857
|
-
|
|
11866
|
+
N(() => {
|
|
11858
11867
|
g.value.length === 0 ? _.value = 0 : _.value >= g.value.length && (_.value = g.value.length - 1);
|
|
11859
11868
|
});
|
|
11860
|
-
let
|
|
11861
|
-
|
|
11869
|
+
let ie = (0, Q.debounce)(F, 50);
|
|
11870
|
+
N(() => {
|
|
11862
11871
|
let e = g.value.map((e, t) => v.value.includes(e.__index) ? t : void 0).filter($), t = f.value?.$el;
|
|
11863
11872
|
t && t.querySelectorAll(":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn").forEach((t, n) => {
|
|
11864
11873
|
e.includes(n) ? t.classList.add("p-error-group-tab") : t.classList.remove("p-error-group-tab");
|
|
@@ -11873,7 +11882,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11873
11882
|
activeKey: t(() => _.value),
|
|
11874
11883
|
setActiveKey: b,
|
|
11875
11884
|
validateAll: () => {
|
|
11876
|
-
let e =
|
|
11885
|
+
let e = ee.value ? y.value.map((e) => e.$form?.validate()) : g.value.map((e) => d(e, p.getFormSetting(e).rules)?.validate() ?? Promise.resolve());
|
|
11877
11886
|
return Promise.allSettled(e).then((e) => {
|
|
11878
11887
|
if (v.value = e.map((e, t) => e.status === "rejected" && typeof g.value[t]?.__index == "number" ? g.value[t].__index : void 0).filter((e) => typeof e == "number"), !p.lazyErrorMark && v.value.length) {
|
|
11879
11888
|
let e = v.value[0], t = g.value.findIndex((t) => t.__index === e);
|
|
@@ -11888,7 +11897,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
11888
11897
|
validate: async (e, t) => {
|
|
11889
11898
|
let n = g.value.findIndex((t) => t.__index === e);
|
|
11890
11899
|
try {
|
|
11891
|
-
return await (
|
|
11900
|
+
return await (ee.value ? y.value[n]?.$form?.validate() ?? Promise.resolve() : d(g.value[n], p.getFormSetting(g.value[n]).rules)?.validate() ?? Promise.resolve()), v.value = v.value.filter((t) => t !== e), Promise.resolve();
|
|
11892
11901
|
} catch (n) {
|
|
11893
11902
|
return !v.value.includes(e) && !t && (v.value = [...v.value, e]), Promise.reject(n);
|
|
11894
11903
|
}
|
|
@@ -11896,13 +11905,13 @@ var xo = /* @__PURE__ */ l({
|
|
|
11896
11905
|
validateFields: async (e, t, n) => {
|
|
11897
11906
|
let r = g.value.findIndex((t) => t.__index === e), i = p.getFormSetting(g.value[r]).rules, a = d(g.value[r], i);
|
|
11898
11907
|
try {
|
|
11899
|
-
return await (
|
|
11908
|
+
return await (ee.value ? y.value[r]?.$form?.validateFields(t) ?? Promise.resolve() : Promise.allSettled(t.map((e) => a.validateField(e, g.value[r][e], i[e] ?? [])))), Promise.resolve();
|
|
11900
11909
|
} catch (t) {
|
|
11901
11910
|
return !v.value.includes(e) && !n && (v.value = [...v.value, e]), Promise.reject(t);
|
|
11902
11911
|
}
|
|
11903
11912
|
}
|
|
11904
11913
|
});
|
|
11905
|
-
let
|
|
11914
|
+
let se = ne(), ce = t(() => Object.keys(se).filter((e) => e.startsWith("group-")).map((e) => ({
|
|
11906
11915
|
original: e,
|
|
11907
11916
|
target: e.replace("group-", "")
|
|
11908
11917
|
})));
|
|
@@ -11916,10 +11925,10 @@ var xo = /* @__PURE__ */ l({
|
|
|
11916
11925
|
collapsible: l.collapsible,
|
|
11917
11926
|
"default-collapsed": l.defaultCollapsed
|
|
11918
11927
|
}, o({
|
|
11919
|
-
default:
|
|
11928
|
+
default: P(() => [l.loading ? (x(), n(d, {
|
|
11920
11929
|
key: 0,
|
|
11921
11930
|
class: "w-full"
|
|
11922
|
-
})) : (x(), n(
|
|
11931
|
+
})) : (x(), n(j(Se), {
|
|
11923
11932
|
key: 1,
|
|
11924
11933
|
ref_key: "tabsRef",
|
|
11925
11934
|
ref: f,
|
|
@@ -11927,39 +11936,39 @@ var xo = /* @__PURE__ */ l({
|
|
|
11927
11936
|
activeKey: _.value,
|
|
11928
11937
|
"onUpdate:activeKey": u[1] ||= (e) => _.value = e,
|
|
11929
11938
|
"hide-add": "",
|
|
11930
|
-
onChange:
|
|
11939
|
+
onChange: L
|
|
11931
11940
|
}, {
|
|
11932
|
-
rightExtra:
|
|
11941
|
+
rightExtra: P(() => [T(t.$slots, "rightExtra", {}, () => [l.showAdd && g.value.length < S.value ? (x(), n(j(I), {
|
|
11933
11942
|
key: 0,
|
|
11934
11943
|
type: "link",
|
|
11935
11944
|
onClick: u[0] ||= (e) => D(g.value.length)
|
|
11936
11945
|
}, {
|
|
11937
|
-
default:
|
|
11946
|
+
default: P(() => [...u[2] ||= [s(" + 新增 ", -1)]]),
|
|
11938
11947
|
_: 1
|
|
11939
11948
|
})) : r("", !0)])]),
|
|
11940
|
-
default:
|
|
11949
|
+
default: P(() => [(x(!0), i(e, null, w(g.value, (t, o) => (x(), n(j(be), {
|
|
11941
11950
|
key: o,
|
|
11942
|
-
tab:
|
|
11943
|
-
"force-render":
|
|
11951
|
+
tab: re(t, o),
|
|
11952
|
+
"force-render": ee.value
|
|
11944
11953
|
}, {
|
|
11945
|
-
closeIcon:
|
|
11954
|
+
closeIcon: P(() => [l.editAble && j(k)?.length ? (x(), n(j(ae), {
|
|
11946
11955
|
key: 0,
|
|
11947
|
-
"get-popup-container":
|
|
11956
|
+
"get-popup-container": A
|
|
11948
11957
|
}, {
|
|
11949
|
-
overlay:
|
|
11950
|
-
default:
|
|
11958
|
+
overlay: P(() => [c(j(B), { onClick: (e) => j(R)(e, t, o) }, {
|
|
11959
|
+
default: P(() => [(x(!0), i(e, null, w(j(k).filter((e) => e.visibleMethod?.({
|
|
11951
11960
|
data: t,
|
|
11952
11961
|
index: o
|
|
11953
|
-
}) ?? !0), (e) => (x(), n(
|
|
11954
|
-
default:
|
|
11962
|
+
}) ?? !0), (e) => (x(), n(j(le), { key: e.code }, {
|
|
11963
|
+
default: P(() => [a("div", null, O(e.content), 1)]),
|
|
11955
11964
|
_: 2
|
|
11956
11965
|
}, 1024))), 128))]),
|
|
11957
11966
|
_: 2
|
|
11958
11967
|
}, 1032, ["onClick"])]),
|
|
11959
|
-
default:
|
|
11968
|
+
default: P(() => [c(j(Me))]),
|
|
11960
11969
|
_: 2
|
|
11961
11970
|
}, 1024)) : r("", !0)]),
|
|
11962
|
-
default:
|
|
11971
|
+
default: P(() => [(x(), n(Mo, {
|
|
11963
11972
|
ref_for: !0,
|
|
11964
11973
|
ref_key: "blockInstance",
|
|
11965
11974
|
ref: y,
|
|
@@ -11967,8 +11976,8 @@ var xo = /* @__PURE__ */ l({
|
|
|
11967
11976
|
source: t,
|
|
11968
11977
|
name: l.name ? `${l.name}_${o}` : void 0,
|
|
11969
11978
|
"get-form-setting": l.getFormSetting,
|
|
11970
|
-
onFocusCapture: (e) =>
|
|
11971
|
-
onClickCapture: (e) =>
|
|
11979
|
+
onFocusCapture: (e) => j(ie)(o),
|
|
11980
|
+
onClickCapture: (e) => j(ie)(o)
|
|
11972
11981
|
}, null, 8, [
|
|
11973
11982
|
"source",
|
|
11974
11983
|
"name",
|
|
@@ -11981,9 +11990,9 @@ var xo = /* @__PURE__ */ l({
|
|
|
11981
11990
|
_: 3
|
|
11982
11991
|
}, 8, ["activeKey"]))]),
|
|
11983
11992
|
_: 2
|
|
11984
|
-
}, [w(
|
|
11993
|
+
}, [w(ce.value, (e) => ({
|
|
11985
11994
|
name: e.target,
|
|
11986
|
-
fn:
|
|
11995
|
+
fn: P(() => [T(t.$slots, e.original)])
|
|
11987
11996
|
}))]), 1032, [
|
|
11988
11997
|
"title",
|
|
11989
11998
|
"collapsible",
|
|
@@ -12045,7 +12054,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
12045
12054
|
hide: () => {
|
|
12046
12055
|
_.modal = !1;
|
|
12047
12056
|
}
|
|
12048
|
-
}), (t, r) => (x(), n(
|
|
12057
|
+
}), (t, r) => (x(), n(j(ue), {
|
|
12049
12058
|
open: _.modal,
|
|
12050
12059
|
"onUpdate:open": r[0] ||= (e) => _.modal = e,
|
|
12051
12060
|
"destroy-on-close": "",
|
|
@@ -12055,7 +12064,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
12055
12064
|
onCancel: v,
|
|
12056
12065
|
"body-style": e.bodyStyle
|
|
12057
12066
|
}, o({
|
|
12058
|
-
default:
|
|
12067
|
+
default: P(() => [a("div", { style: f }, [c(uo, p(d.value, {
|
|
12059
12068
|
ref_key: "gridEl",
|
|
12060
12069
|
ref: i,
|
|
12061
12070
|
onPick: b
|
|
@@ -12063,17 +12072,17 @@ var xo = /* @__PURE__ */ l({
|
|
|
12063
12072
|
_: 2
|
|
12064
12073
|
}, [u.value ? {
|
|
12065
12074
|
name: "footer",
|
|
12066
|
-
fn:
|
|
12075
|
+
fn: P(() => [a("div", Fo, [a("span", null, [c(j(I), {
|
|
12067
12076
|
class: "mr-4",
|
|
12068
12077
|
onClick: y
|
|
12069
12078
|
}, {
|
|
12070
|
-
default:
|
|
12079
|
+
default: P(() => [...r[1] ||= [s(" 取消 ", -1)]]),
|
|
12071
12080
|
_: 1
|
|
12072
|
-
}), c(
|
|
12081
|
+
}), c(j(I), {
|
|
12073
12082
|
type: "primary",
|
|
12074
12083
|
onClick: w
|
|
12075
12084
|
}, {
|
|
12076
|
-
default:
|
|
12085
|
+
default: P(() => [...r[2] ||= [s(" 确定 ", -1)]]),
|
|
12077
12086
|
_: 1
|
|
12078
12087
|
})])])]),
|
|
12079
12088
|
key: "0"
|
|
@@ -12146,14 +12155,14 @@ var xo = /* @__PURE__ */ l({
|
|
|
12146
12155
|
return (t, a) => {
|
|
12147
12156
|
let u = E("a-descriptions-item"), d = E("a-descriptions");
|
|
12148
12157
|
return x(), n(d, p(l.value, { class: "p-description" }), o({
|
|
12149
|
-
default:
|
|
12158
|
+
default: P(() => [(x(!0), i(e, null, w(r.items, (e, t) => (x(), n(u, {
|
|
12150
12159
|
key: `_desc_${e.field ?? t}`,
|
|
12151
12160
|
label: e.label,
|
|
12152
12161
|
span: e.span,
|
|
12153
12162
|
"label-style": e.labelStyle,
|
|
12154
12163
|
"content-style": e.contentStyle
|
|
12155
12164
|
}, o({
|
|
12156
|
-
default:
|
|
12165
|
+
default: P(() => [c(j(Lo), {
|
|
12157
12166
|
item: e,
|
|
12158
12167
|
data: r.data,
|
|
12159
12168
|
"empty-text": r.emptyText || "-"
|
|
@@ -12165,7 +12174,7 @@ var xo = /* @__PURE__ */ l({
|
|
|
12165
12174
|
_: 2
|
|
12166
12175
|
}, [e.slots?.label ? {
|
|
12167
12176
|
name: "label",
|
|
12168
|
-
fn:
|
|
12177
|
+
fn: P(() => [(x(), n(D(e.slots.label)))]),
|
|
12169
12178
|
key: "0"
|
|
12170
12179
|
} : void 0]), 1032, [
|
|
12171
12180
|
"label",
|
|
@@ -12176,11 +12185,11 @@ var xo = /* @__PURE__ */ l({
|
|
|
12176
12185
|
_: 2
|
|
12177
12186
|
}, [t.$slots.title || r.title ? {
|
|
12178
12187
|
name: "title",
|
|
12179
|
-
fn:
|
|
12188
|
+
fn: P(() => [T(t.$slots, "title", {}, () => [s(O(r.title), 1)])]),
|
|
12180
12189
|
key: "0"
|
|
12181
12190
|
} : void 0, t.$slots.extra || r.extra ? {
|
|
12182
12191
|
name: "extra",
|
|
12183
|
-
fn:
|
|
12192
|
+
fn: P(() => [T(t.$slots, "extra", {}, () => [s(O(r.extra), 1)])]),
|
|
12184
12193
|
key: "1"
|
|
12185
12194
|
} : void 0]), 1040);
|
|
12186
12195
|
};
|