@a2simcode/ui 0.0.91 → 0.0.93
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/simcode-ui.es.js +158 -155
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/examples/table-panel/tree-parent-key.vue +1 -0
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as
|
|
1
|
+
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as En, createTextVNode as qt, createVNode as X, defineComponent as le, getCurrentInstance as Ys, guardReactiveProps as _l, h as Qu, inject as ed, mergeModels as ho, mergeProps as $e, nextTick as kt, normalizeClass as ze, normalizeProps as mi, normalizeStyle as we, onBeforeUnmount as vo, onMounted as xt, onUnmounted as mo, openBlock as _, provide as td, reactive as Ma, ref as P, render as oi, renderList as je, renderSlot as Ue, resolveComponent as I, resolveDirective as yi, resolveDynamicComponent as Aa, shallowRef as bi, toDisplayString as me, unref as K, useModel as po, useSlots as nd, useTemplateRef as la, vShow as lo, watch as at, watchEffect as Ks, withCtx as N, withDirectives as Sn, withKeys as Zi, withModifiers as jt } from "vue";
|
|
2
2
|
import { Icon as gr, getIcon as ia } from "@iconify/vue";
|
|
3
3
|
import Gs from "dayjs";
|
|
4
4
|
import ad from "crypto-js/aes";
|
|
@@ -197,7 +197,7 @@ var pn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
197
197
|
"j-button-first-compact-item": e.firstCompactItem == !0
|
|
198
198
|
}]),
|
|
199
199
|
disabled: e.disabled,
|
|
200
|
-
onClick:
|
|
200
|
+
onClick: jt(i, ["stop"])
|
|
201
201
|
}, [
|
|
202
202
|
u.value ? (_(), H(ra, {
|
|
203
203
|
key: 0,
|
|
@@ -234,16 +234,16 @@ function sf(e) {
|
|
|
234
234
|
};
|
|
235
235
|
return typeof Element < "u" && e instanceof Element ? "element" : n[t.call(e)];
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function vn(e) {
|
|
238
238
|
const t = sf(e);
|
|
239
239
|
let n;
|
|
240
240
|
if (t === "array") n = [];
|
|
241
241
|
else if (t === "object") n = {};
|
|
242
242
|
else return e;
|
|
243
243
|
if (t === "array") for (let a = 0, o = e.length; a < o; a++)
|
|
244
|
-
e[a] = (e[a] === 0, e[a]), e[a] && delete e[a].$parent, n.push(
|
|
244
|
+
e[a] = (e[a] === 0, e[a]), e[a] && delete e[a].$parent, n.push(vn(e[a]));
|
|
245
245
|
else t === "object" && Object.keys(e).forEach((a) => {
|
|
246
|
-
e && delete e.$parent, n[a] =
|
|
246
|
+
e && delete e.$parent, n[a] = vn(e[a]);
|
|
247
247
|
});
|
|
248
248
|
return n;
|
|
249
249
|
}
|
|
@@ -411,10 +411,13 @@ function hf(e, t, n, a, o, i) {
|
|
|
411
411
|
if (e.length === 0 || !t && !e[0]._id) return e;
|
|
412
412
|
const l = t || "_id";
|
|
413
413
|
n = n || "_pid";
|
|
414
|
-
|
|
414
|
+
const r = [];
|
|
415
|
+
let s = {};
|
|
415
416
|
if (a ? e.forEach((c) => {
|
|
416
|
-
s[c[a]] || (s[c[a]] = !0, r.push(
|
|
417
|
-
}) :
|
|
417
|
+
s[c[a]] || (s[c[a]] = !0, r.push(vn(c)));
|
|
418
|
+
}) : e.forEach((c) => {
|
|
419
|
+
r.push(vn(c));
|
|
420
|
+
}), s = {}, l === n) {
|
|
418
421
|
const c = [];
|
|
419
422
|
return r.forEach((u) => {
|
|
420
423
|
(!i || i.indexOf(u[l]) === -1) && (a && (u.value = u[a]), o && (u.label = u[o]), c.push(u));
|
|
@@ -716,7 +719,7 @@ function kn(e, t) {
|
|
|
716
719
|
function Rn(e, t) {
|
|
717
720
|
td(e, t);
|
|
718
721
|
}
|
|
719
|
-
function
|
|
722
|
+
function At() {
|
|
720
723
|
return kn(Bt.APP_PROVIDE, {
|
|
721
724
|
t: (e, ...t) => {
|
|
722
725
|
if (!e) return "";
|
|
@@ -900,7 +903,7 @@ var Df = /* @__PURE__ */ le({
|
|
|
900
903
|
};
|
|
901
904
|
}
|
|
902
905
|
}), dc = Df, Ff = (e, t) => {
|
|
903
|
-
const n = document.createElement("div"), a = X(dc);
|
|
906
|
+
const n = document.createElement("div"), a = X(dc, {});
|
|
904
907
|
t && (a.appContext = t), oi(a, n);
|
|
905
908
|
const o = e.afterClose;
|
|
906
909
|
e.afterClose = () => {
|
|
@@ -908,9 +911,9 @@ var Df = /* @__PURE__ */ le({
|
|
|
908
911
|
}, a.component && a.component.exposed && a.component.exposed.open(e);
|
|
909
912
|
};
|
|
910
913
|
function xo() {
|
|
911
|
-
const e = Ys()?.appContext;
|
|
912
|
-
return { openLayer: (
|
|
913
|
-
Ff(
|
|
914
|
+
const e = Ys()?.appContext, { useData: t } = At(), n = t();
|
|
915
|
+
return console.log(e, n), { openLayer: (o) => {
|
|
916
|
+
Ff(o, e);
|
|
914
917
|
} };
|
|
915
918
|
}
|
|
916
919
|
var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
@@ -930,7 +933,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
930
933
|
setup(e) {
|
|
931
934
|
const t = e, n = j(() => {
|
|
932
935
|
if (!Array.isArray(t.list) && Object.keys(t.list).length > 0) return t.list;
|
|
933
|
-
const i = {}, l =
|
|
936
|
+
const i = {}, l = vn(t.list), r = l.length;
|
|
934
937
|
for (let s = 0; s < r; s++) {
|
|
935
938
|
const c = l[s];
|
|
936
939
|
c.groupId = c.groupId || Al(), i[c.groupId] = i[c.groupId] || [], i[c.groupId].push(c);
|
|
@@ -948,7 +951,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
948
951
|
type: "text",
|
|
949
952
|
label: p.label,
|
|
950
953
|
size: e.size,
|
|
951
|
-
onClick:
|
|
954
|
+
onClick: jt((g) => o(p), ["stop"])
|
|
952
955
|
}), null, 16, [
|
|
953
956
|
"label",
|
|
954
957
|
"size",
|
|
@@ -963,7 +966,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
963
966
|
compact: !0,
|
|
964
967
|
"last-compact-item": h === u.length - 1,
|
|
965
968
|
"first-compact-item": h === 0,
|
|
966
|
-
onClick:
|
|
969
|
+
onClick: jt((p) => o(f), ["stop"])
|
|
967
970
|
}), null, 16, [
|
|
968
971
|
"label",
|
|
969
972
|
"size",
|
|
@@ -983,7 +986,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
983
986
|
compact: !0,
|
|
984
987
|
"last-compact-item": h === u.length - 1,
|
|
985
988
|
"first-compact-item": h === 0,
|
|
986
|
-
onClick:
|
|
989
|
+
onClick: jt((p) => o(f), ["stop"])
|
|
987
990
|
}), null, 16, [
|
|
988
991
|
"label",
|
|
989
992
|
"size",
|
|
@@ -1137,7 +1140,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
1137
1140
|
onBlur: s,
|
|
1138
1141
|
onClear: c,
|
|
1139
1142
|
onChange: u
|
|
1140
|
-
}),
|
|
1143
|
+
}), En({ _: 2 }, [
|
|
1141
1144
|
e.prefixIcon ? {
|
|
1142
1145
|
name: "prefix",
|
|
1143
1146
|
fn: N(() => [X(h, { icon: e.prefixIcon }, null, 8, ["icon"])]),
|
|
@@ -1585,7 +1588,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
1585
1588
|
"collapse-tags-tooltip": e.collapseTagsTooltip,
|
|
1586
1589
|
placeholder: e.placeholder,
|
|
1587
1590
|
onChange: u
|
|
1588
|
-
}),
|
|
1591
|
+
}), En({
|
|
1589
1592
|
default: N(() => [e.isGroup ? (_(!0), O(xe, { key: 0 }, je(c.value, (b) => (_(), H(g, {
|
|
1590
1593
|
key: b.label,
|
|
1591
1594
|
label: b.label
|
|
@@ -2008,7 +2011,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
2008
2011
|
onChange: r,
|
|
2009
2012
|
onBlur: s,
|
|
2010
2013
|
onFocus: c
|
|
2011
|
-
},
|
|
2014
|
+
}, En({
|
|
2012
2015
|
"decrease-icon": N(() => [e.decreaseIcon ? (_(), H(p, {
|
|
2013
2016
|
key: 0,
|
|
2014
2017
|
icon: e.decreaseIcon
|
|
@@ -2179,7 +2182,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
2179
2182
|
onChange: u,
|
|
2180
2183
|
onFocus: d,
|
|
2181
2184
|
onBlur: f
|
|
2182
|
-
},
|
|
2185
|
+
}, En({
|
|
2183
2186
|
default: N(({ item: w }) => [Ue(g.$slots, "default", { item: w }, () => [V("div", null, me(w[e.valueKey] || ""), 1)])]),
|
|
2184
2187
|
_: 2
|
|
2185
2188
|
}, [
|
|
@@ -4157,7 +4160,7 @@ var $h = class {
|
|
|
4157
4160
|
}
|
|
4158
4161
|
},
|
|
4159
4162
|
setup(e) {
|
|
4160
|
-
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ca(), { t: s } =
|
|
4163
|
+
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ca(), { t: s } = At(), c = j(() => {
|
|
4161
4164
|
const v = Ea({
|
|
4162
4165
|
config: {
|
|
4163
4166
|
...t.config || {},
|
|
@@ -4423,14 +4426,14 @@ var $h = class {
|
|
|
4423
4426
|
modelValue: v.value,
|
|
4424
4427
|
"onUpdate:modelValue": F[0] || (F[0] = (M) => v.value = M),
|
|
4425
4428
|
onChange: m
|
|
4426
|
-
}),
|
|
4429
|
+
}), En({ _: 2 }, [je(k.value, (M, C) => ({
|
|
4427
4430
|
name: C,
|
|
4428
4431
|
fn: N(() => [(_(!0), O(xe, null, je(M, (L) => (_(), H($, $e({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128))])
|
|
4429
4432
|
}))]), 1040, ["modelValue"])) : x.value.display != !1 ? (_(), H(Aa(y.value), $e({
|
|
4430
4433
|
key: 1,
|
|
4431
4434
|
ref_key: "compRef",
|
|
4432
4435
|
ref: E
|
|
4433
|
-
}, x.value, { onChange: m }),
|
|
4436
|
+
}, x.value, { onChange: m }), En({ _: 2 }, [je(k.value, (M, C) => ({
|
|
4434
4437
|
name: C,
|
|
4435
4438
|
fn: N(() => [x.value.needRow ? (_(), H(D, {
|
|
4436
4439
|
key: 0,
|
|
@@ -4688,7 +4691,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4688
4691
|
"change"
|
|
4689
4692
|
],
|
|
4690
4693
|
setup(e, { expose: t, emit: n }) {
|
|
4691
|
-
const a = Ys(), o = e, i = n, { formData: l } = ca(), { useData: r } =
|
|
4694
|
+
const a = Ys(), o = e, i = n, { formData: l } = ca(), { useData: r } = At(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = xo(), d = j(() => o.heightMode === "auto" ? { height: "auto" } : {}), f = P(40), h = j(() => {
|
|
4692
4695
|
const B = {};
|
|
4693
4696
|
return o.heightMode === "auto" && (o.emptyTipText && f.value < 200 ? B.height = "200px" : B.height = f.value + "px", B.flex = "none", o.maxHeight && (B.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), B;
|
|
4694
4697
|
}), p = P(null);
|
|
@@ -4851,13 +4854,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4851
4854
|
}
|
|
4852
4855
|
return { elements: Te };
|
|
4853
4856
|
}, Xe = (B) => {
|
|
4854
|
-
const { dataValue: z, rect: G, table: J, col: Z, row: Q } = B, pe = J.getBodyField(Z, Q), Be = ht(J.options?.columns || [], pe)?._compConfig || {}, ye = Number(Be.min) || 0, Te = Number(Be.max) || 100, Le = Number(z) || 0, Ne = Te - ye, Ce = Ne === 0 ? 0 : Math.max(0, Math.min(100, (Le - ye) / Ne * 100)), ue = 4, We = 8, De = 8, Me = (G.height - ue) / 2, it = String(Le), Ae = an(it) || 0, Ze = We, mt = Me, ke = G.width - We * 2 - Ae - De, Tt = ke * Ce / 100, ut = [],
|
|
4857
|
+
const { dataValue: z, rect: G, table: J, col: Z, row: Q } = B, pe = J.getBodyField(Z, Q), Be = ht(J.options?.columns || [], pe)?._compConfig || {}, ye = Number(Be.min) || 0, Te = Number(Be.max) || 100, Le = Number(z) || 0, Ne = Te - ye, Ce = Ne === 0 ? 0 : Math.max(0, Math.min(100, (Le - ye) / Ne * 100)), ue = 4, We = 8, De = 8, Me = (G.height - ue) / 2, it = String(Le), Ae = an(it) || 0, Ze = We, mt = Me, ke = G.width - We * 2 - Ae - De, Tt = ke * Ce / 100, ut = [], Pt = (Ot, $t, ea) => {
|
|
4855
4858
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4856
4859
|
return `M ${Pe} 0 L ${Ot - Pe} 0 Q ${Ot} 0 ${Ot} ${Pe} L ${Ot} ${$t - Pe} Q ${Ot} ${$t} ${Ot - Pe} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4857
|
-
},
|
|
4860
|
+
}, _n = (Ot, $t, ea) => {
|
|
4858
4861
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4859
|
-
return Ot <= Pe * 2 ?
|
|
4860
|
-
}, Qn =
|
|
4862
|
+
return Ot <= Pe * 2 ? Pt(Ot, $t, ea) : `M ${Pe} 0 L ${Ot} 0 L ${Ot} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4863
|
+
}, Qn = Pt(ke, ue, ue / 2);
|
|
4861
4864
|
if (ut.push({
|
|
4862
4865
|
type: "icon",
|
|
4863
4866
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${ke}" height="${ue}" viewBox="0 0 ${ke} ${ue}"><path d="${Qn}" fill="#e5e6eb"/></svg>`,
|
|
@@ -4866,7 +4869,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4866
4869
|
width: ke,
|
|
4867
4870
|
height: ue
|
|
4868
4871
|
}), Tt > 0) {
|
|
4869
|
-
const Ot =
|
|
4872
|
+
const Ot = _n(Tt, ue, ue / 2);
|
|
4870
4873
|
ut.push({
|
|
4871
4874
|
type: "icon",
|
|
4872
4875
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Tt}" height="${ue}" viewBox="0 0 ${Tt} ${ue}"><path d="${Ot}" fill="#165dff"/></svg>`,
|
|
@@ -4950,8 +4953,8 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4950
4953
|
width: xa,
|
|
4951
4954
|
height: ue
|
|
4952
4955
|
}), { tagWidth: xa };
|
|
4953
|
-
},
|
|
4954
|
-
let
|
|
4956
|
+
}, Pt = [];
|
|
4957
|
+
let _n = [], Qn = 0;
|
|
4955
4958
|
for (let Pe = 0; Pe < Ne.length; Pe++) {
|
|
4956
4959
|
const Mt = Ne[Pe], cn = Mt.label, Dt = Tt(cn), jn = {
|
|
4957
4960
|
label: cn,
|
|
@@ -4959,19 +4962,19 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4959
4962
|
text: Mt.textColor || ge(Mt.color || "#f2f3f5"),
|
|
4960
4963
|
width: Dt
|
|
4961
4964
|
};
|
|
4962
|
-
|
|
4963
|
-
items:
|
|
4965
|
+
_n.length > 0 && Qn + Me + Dt > Ze ? (Pt.push({
|
|
4966
|
+
items: _n,
|
|
4964
4967
|
lineWidth: Qn
|
|
4965
|
-
}),
|
|
4968
|
+
}), _n = [jn], Qn = Dt) : (_n.push(jn), Qn += _n.length > 1 ? Me + Dt : Dt);
|
|
4966
4969
|
}
|
|
4967
|
-
|
|
4968
|
-
items:
|
|
4970
|
+
_n.length > 0 && Pt.push({
|
|
4971
|
+
items: _n,
|
|
4969
4972
|
lineWidth: Qn
|
|
4970
4973
|
});
|
|
4971
4974
|
const zi = G.height;
|
|
4972
4975
|
let Lo = Math.max(1, Math.floor((zi + it) / (ue + it))), Ot = !1;
|
|
4973
|
-
if (
|
|
4974
|
-
const Pe =
|
|
4976
|
+
if (Pt.length > Lo && (Ot = !0, Pt.length = Lo), Ot) {
|
|
4977
|
+
const Pe = Pt[Pt.length - 1], Mt = Tt("...");
|
|
4975
4978
|
let cn = Pe.lineWidth + (Pe.items.length > 0 ? Me : 0) + Mt;
|
|
4976
4979
|
for (; cn > Ze && Pe.items.length > 0; ) {
|
|
4977
4980
|
const Dt = Pe.items.pop();
|
|
@@ -4985,16 +4988,16 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4985
4988
|
width: Mt
|
|
4986
4989
|
}), Pe.lineWidth += Pe.items.length > 1 ? Me + Mt : Mt;
|
|
4987
4990
|
}
|
|
4988
|
-
const $t =
|
|
4991
|
+
const $t = Pt.length * ue + (Pt.length > 1 ? (Pt.length - 1) * it : 0);
|
|
4989
4992
|
let ea = Math.max(0, (G.height - $t) / 2);
|
|
4990
|
-
for (let Pe = 0; Pe <
|
|
4991
|
-
const Mt =
|
|
4993
|
+
for (let Pe = 0; Pe < Pt.length; Pe++) {
|
|
4994
|
+
const Mt = Pt[Pe];
|
|
4992
4995
|
let cn = Le === "center" ? Ae + Math.max(0, (Ze - Mt.lineWidth) / 2) : Le === "right" ? Ae + Math.max(0, Ze - Mt.lineWidth) : Ae;
|
|
4993
4996
|
for (let Dt = 0; Dt < Mt.items.length; Dt++) {
|
|
4994
4997
|
const jn = Mt.items[Dt], { tagWidth: zo } = ut(cn, ea, jn.label, jn.bg, jn.text);
|
|
4995
4998
|
cn += zo + (Dt < Mt.items.length - 1 ? Me : 0);
|
|
4996
4999
|
}
|
|
4997
|
-
ea += ue + (Pe <
|
|
5000
|
+
ea += ue + (Pe < Pt.length - 1 ? it : 0);
|
|
4998
5001
|
}
|
|
4999
5002
|
return { elements: ke };
|
|
5000
5003
|
}, ge = (B) => {
|
|
@@ -5070,7 +5073,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5070
5073
|
}, Ke = (B) => {
|
|
5071
5074
|
const { table: z, row: G, col: J, rect: Z } = B, { height: Q, width: pe } = Z ?? z.getCellRect(J, G), { Group: Be, CheckBox: ye } = Ie.CustomLayout, Te = z.getBodyField(J, G), Le = ht(z.options?.columns || [], Te), Ne = z.getCellOriginRecord(J, G) || {}, Ce = Le?.style?.textAlign === "right" ? "flex-end" : Le?.style?.textAlign === "center" ? "center" : "flex-start", ue = Le?.style?.textAlign === "right" ? "flex-end" : Le?.style?.textAlign === "center" ? "center" : "flex-start", We = (mt, ke) => {
|
|
5072
5075
|
const Tt = Ne?.[Te];
|
|
5073
|
-
Ne[Te] = (Array.isArray(Tt) ? Tt : []).map((ut,
|
|
5076
|
+
Ne[Te] = (Array.isArray(Tt) ? Tt : []).map((ut, Pt) => Pt !== mt ? ut : ut && typeof ut == "object" ? {
|
|
5074
5077
|
...ut,
|
|
5075
5078
|
...ke
|
|
5076
5079
|
} : { ...ke });
|
|
@@ -5120,8 +5123,8 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5120
5123
|
]
|
|
5121
5124
|
});
|
|
5122
5125
|
ut.render?.(), Ze.add(ut), ut.addEventListener("checkbox_state_change", () => {
|
|
5123
|
-
const
|
|
5124
|
-
We(mt, { checked:
|
|
5126
|
+
const Pt = !!ut.attribute?.checked;
|
|
5127
|
+
We(mt, { checked: Pt }), De();
|
|
5125
5128
|
});
|
|
5126
5129
|
}
|
|
5127
5130
|
return {
|
|
@@ -5451,7 +5454,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5451
5454
|
clearColWidthCache: !1,
|
|
5452
5455
|
clearRowHeightCache: !1
|
|
5453
5456
|
}), o.heightMode === "auto" && (f.value = g.getAllRowsHeight()), B ? x.value = 0 : (x.value = z.length, z.length > 0 && Rt(z));
|
|
5454
|
-
},
|
|
5457
|
+
}, wn = j(() => o.editConfig.isAddBtn), xn = j(() => o.editConfig.addBtnText || "添加"), tn = j(() => o.editConfig.isRemoveBtn), rt = j(() => o.editConfig.readonly), Xt = j(() => o.isMultiple || tn.value), Ga = () => {
|
|
5455
5458
|
const B = o.modelValue || [];
|
|
5456
5459
|
return B.forEach((z) => {
|
|
5457
5460
|
z._i || (z._i = Dn());
|
|
@@ -5472,7 +5475,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5472
5475
|
const B = {};
|
|
5473
5476
|
B._i = Dn(), Io.value.forEach((z) => {
|
|
5474
5477
|
const G = z.config?.valueRowKey || z.id || "";
|
|
5475
|
-
G && (B[G] =
|
|
5478
|
+
G && (B[G] = vn(z.config?.defaultValue));
|
|
5476
5479
|
}), g && (g.addRecord(B), o.heightMode === "auto" && ot(), g.scrollToCell({
|
|
5477
5480
|
col: 0,
|
|
5478
5481
|
row: g.records.length
|
|
@@ -5553,12 +5556,12 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5553
5556
|
ref: p,
|
|
5554
5557
|
class: ze("j-block")
|
|
5555
5558
|
}, null, 512)], 4),
|
|
5556
|
-
V("div", Kh, [e.isPage || !rt.value && (
|
|
5559
|
+
V("div", Kh, [e.isPage || !rt.value && (wn.value || tn.value) ? (_(), O("div", Gh, [
|
|
5557
5560
|
X(J, null, {
|
|
5558
|
-
default: N(() => [
|
|
5561
|
+
default: N(() => [wn.value ? (_(), H(G, {
|
|
5559
5562
|
key: 0,
|
|
5560
5563
|
type: "link",
|
|
5561
|
-
label:
|
|
5564
|
+
label: xn.value,
|
|
5562
5565
|
icon: "mdi:add",
|
|
5563
5566
|
onClick: zt
|
|
5564
5567
|
}, null, 8, ["label"])) : U("", !0), tn.value ? (_(), H(G, {
|
|
@@ -5713,7 +5716,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5713
5716
|
"closed"
|
|
5714
5717
|
],
|
|
5715
5718
|
setup(e, { expose: t, emit: n }) {
|
|
5716
|
-
const a = e, o = n, { t: i } =
|
|
5719
|
+
const a = e, o = n, { t: i } = At(), l = P(!1), r = P(!1), s = P(""), c = P(!1), u = P(!0), d = P(!1), f = P(!0), h = P(-1), p = Ma({
|
|
5717
5720
|
isMove: !1,
|
|
5718
5721
|
pageX: 0,
|
|
5719
5722
|
pageY: 0,
|
|
@@ -6009,7 +6012,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6009
6012
|
"closed"
|
|
6010
6013
|
],
|
|
6011
6014
|
setup(e, { expose: t, emit: n }) {
|
|
6012
|
-
const a = e, o = n, { logoImg: i, t: l } =
|
|
6015
|
+
const a = e, o = n, { logoImg: i, t: l } = At(), r = P(!1), s = P(!1), c = P(""), u = P(!1), d = P(!0), f = P(!1), h = P(!0), p = P(-1);
|
|
6013
6016
|
at(() => a.visible, (R) => {
|
|
6014
6017
|
r.value = R;
|
|
6015
6018
|
}, { immediate: !0 });
|
|
@@ -6081,7 +6084,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6081
6084
|
"destroy-on-close": e.destroyOnClose,
|
|
6082
6085
|
onClosed: w
|
|
6083
6086
|
}, {
|
|
6084
|
-
default: N(() => [
|
|
6087
|
+
default: N(() => [Sn((_(), O("div", {
|
|
6085
6088
|
class: "j-block j-dialog-full-window",
|
|
6086
6089
|
"element-loading-text": K(l)(c.value)
|
|
6087
6090
|
}, [V("div", sp, [
|
|
@@ -6268,7 +6271,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6268
6271
|
"cancel"
|
|
6269
6272
|
],
|
|
6270
6273
|
setup(e, { expose: t, emit: n }) {
|
|
6271
|
-
const a = e, { t: o } =
|
|
6274
|
+
const a = e, { t: o } = At(), i = n, l = P(!1), r = P(""), s = j(() => ["ltr", "rtl"].indexOf(a.direction) !== -1 ? `${a.width}px` : `${a.height}px`), c = j({
|
|
6272
6275
|
get() {
|
|
6273
6276
|
return a.visible;
|
|
6274
6277
|
},
|
|
@@ -6346,7 +6349,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6346
6349
|
"close-on-click-modal": !0,
|
|
6347
6350
|
onClosed: f
|
|
6348
6351
|
}, {
|
|
6349
|
-
default: N(() => [
|
|
6352
|
+
default: N(() => [Sn((_(), O("div", {
|
|
6350
6353
|
class: ze(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
6351
6354
|
"element-loading-text": r.value
|
|
6352
6355
|
}, [
|
|
@@ -6695,8 +6698,8 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6695
6698
|
placeholder: e.placeholder,
|
|
6696
6699
|
size: e.size,
|
|
6697
6700
|
onSelect: r,
|
|
6698
|
-
onKeyup: Zi(
|
|
6699
|
-
onKeydown: Zi(
|
|
6701
|
+
onKeyup: Zi(jt(c, ["stop"]), ["enter"]),
|
|
6702
|
+
onKeydown: Zi(jt(s, ["stop"]), ["enter"])
|
|
6700
6703
|
}, {
|
|
6701
6704
|
prefix: N(() => [X(p, null, {
|
|
6702
6705
|
default: N(() => [(_(!0), O(xe, null, je(i.value, (v, b) => (_(), H(h, {
|
|
@@ -6705,7 +6708,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6705
6708
|
closable: !e.readonly,
|
|
6706
6709
|
style: we(l.value[b] || {}),
|
|
6707
6710
|
size: e.size,
|
|
6708
|
-
onClose:
|
|
6711
|
+
onClose: jt((w) => u(b), ["prevent"])
|
|
6709
6712
|
}, {
|
|
6710
6713
|
default: N(() => [qt(me(v), 1)]),
|
|
6711
6714
|
_: 2
|
|
@@ -6966,7 +6969,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6966
6969
|
}
|
|
6967
6970
|
},
|
|
6968
6971
|
setup(e) {
|
|
6969
|
-
const { t } =
|
|
6972
|
+
const { t } = At();
|
|
6970
6973
|
return (n, a) => {
|
|
6971
6974
|
const o = I("j-icon"), i = I("el-text"), l = I("j-button"), r = I("el-progress"), s = I("el-link");
|
|
6972
6975
|
return _(), O("div", { class: ze(["j-upload-list", {
|
|
@@ -6996,17 +6999,17 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6996
6999
|
default: N(() => [qt(me(K(Vo)(c.size)), 1)]),
|
|
6997
7000
|
_: 2
|
|
6998
7001
|
}, 1024)])]),
|
|
6999
|
-
|
|
7002
|
+
Sn(V("div", Wp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
|
|
7000
7003
|
key: 0,
|
|
7001
7004
|
icon: "mdi:eye",
|
|
7002
7005
|
type: "link",
|
|
7003
|
-
onClick:
|
|
7006
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7004
7007
|
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
7005
7008
|
key: 1,
|
|
7006
7009
|
icon: "mdi:delete",
|
|
7007
7010
|
type: "link",
|
|
7008
7011
|
danger: "",
|
|
7009
|
-
onClick:
|
|
7012
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7010
7013
|
}, null, 8, ["onClick"])) : U("", !0)], 512), [[lo, c.status === "error"]]),
|
|
7011
7014
|
c.status === "uploading" ? (_(), H(r, {
|
|
7012
7015
|
key: 2,
|
|
@@ -7030,17 +7033,17 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7030
7033
|
style: { width: "100%" },
|
|
7031
7034
|
alt: ""
|
|
7032
7035
|
}, null, 8, Up)) : U("", !0),
|
|
7033
|
-
|
|
7036
|
+
Sn(V("div", Yp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
|
|
7034
7037
|
key: 0,
|
|
7035
7038
|
type: "link",
|
|
7036
7039
|
icon: "mdi:eye",
|
|
7037
|
-
onClick:
|
|
7040
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7038
7041
|
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
7039
7042
|
key: 1,
|
|
7040
7043
|
type: "link",
|
|
7041
7044
|
danger: "",
|
|
7042
7045
|
icon: "mdi:delete",
|
|
7043
|
-
onClick:
|
|
7046
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7044
7047
|
}, null, 8, ["onClick"])) : U("", !0)], 512), [[lo, c.status === "error"]]),
|
|
7045
7048
|
c.status === "uploading" ? (_(), H(r, {
|
|
7046
7049
|
key: 1,
|
|
@@ -7060,7 +7063,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7060
7063
|
V("div", Kp, [X(s, {
|
|
7061
7064
|
type: "primary",
|
|
7062
7065
|
underline: "never",
|
|
7063
|
-
onClick:
|
|
7066
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7064
7067
|
}, {
|
|
7065
7068
|
default: N(() => [qt(me(`${K(t)(c.name)}${c.status === "unUpload" ? "(" + K(t)("未传") + ")" : ""}`), 1)]),
|
|
7066
7069
|
_: 2
|
|
@@ -7079,12 +7082,12 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7079
7082
|
icon: "check-circle",
|
|
7080
7083
|
size: 24
|
|
7081
7084
|
})) : U("", !0),
|
|
7082
|
-
e.readonly ? U("", !0) :
|
|
7085
|
+
e.readonly ? U("", !0) : Sn((_(), H(o, {
|
|
7083
7086
|
key: 2,
|
|
7084
7087
|
class: "j-upload-item-error",
|
|
7085
7088
|
icon: "delete",
|
|
7086
7089
|
size: 24,
|
|
7087
|
-
onClick:
|
|
7090
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7088
7091
|
}, null, 8, ["onClick"])), [[lo, c.status === "error"]]),
|
|
7089
7092
|
c.status === "uploading" ? (_(), H(r, {
|
|
7090
7093
|
key: 3,
|
|
@@ -7222,7 +7225,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7222
7225
|
"notUploadChange"
|
|
7223
7226
|
],
|
|
7224
7227
|
setup(e, { emit: t }) {
|
|
7225
|
-
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } =
|
|
7228
|
+
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } = At(), { fileChunkedUpload: d, deleteFile: f } = u(), h = j(() => n.isUploadImg ? n.accept || "image/*" : n.accept), p = j(() => {
|
|
7226
7229
|
if (n.limit !== -1)
|
|
7227
7230
|
return n.limit;
|
|
7228
7231
|
}), g = j(() => n.limit === -1 ? "" : `,${r("上传数量")}${n.limit}`), v = P(""), b = j(() => ({
|
|
@@ -7485,7 +7488,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7485
7488
|
style: { "max-width": "1024px" },
|
|
7486
7489
|
src: _e.value,
|
|
7487
7490
|
alt: ""
|
|
7488
|
-
}, null, 8, eg)])) : _e.value != "" ?
|
|
7491
|
+
}, null, 8, eg)])) : _e.value != "" ? Sn((_(), O("div", tg, [V("iframe", {
|
|
7489
7492
|
ref: "iframe",
|
|
7490
7493
|
src: _e.value,
|
|
7491
7494
|
style: {
|
|
@@ -8286,7 +8289,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
8286
8289
|
default: N(() => [X(p, {
|
|
8287
8290
|
"right-move": !1,
|
|
8288
8291
|
right: 560
|
|
8289
|
-
},
|
|
8292
|
+
}, En({
|
|
8290
8293
|
default: N(() => [X(h, {
|
|
8291
8294
|
value: i.value,
|
|
8292
8295
|
"onUpdate:value": f[0] || (f[0] = (v) => i.value = v),
|
|
@@ -8988,7 +8991,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
8988
8991
|
},
|
|
8989
8992
|
emits: ["click"],
|
|
8990
8993
|
setup(e, { emit: t }) {
|
|
8991
|
-
const { t: n } =
|
|
8994
|
+
const { t: n } = At(), { activeMenuId: a } = wo(), o = t, i = (l) => {
|
|
8992
8995
|
o("click", l);
|
|
8993
8996
|
};
|
|
8994
8997
|
return (l, r) => {
|
|
@@ -9000,7 +9003,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9000
9003
|
content: N(() => [V("span", null, me(K(n)(e.item.label)), 1)]),
|
|
9001
9004
|
default: N(() => [V("div", {
|
|
9002
9005
|
class: ze(["j-menu-item", { collapsed: e.collapsed }]),
|
|
9003
|
-
onClick: r[0] || (r[0] =
|
|
9006
|
+
onClick: r[0] || (r[0] = jt((d) => i(e.item), ["stop"]))
|
|
9004
9007
|
}, [V("div", {
|
|
9005
9008
|
class: ze(["j-menu-item-content", {
|
|
9006
9009
|
active: e.item.value === K(a),
|
|
@@ -9059,7 +9062,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9059
9062
|
collapsed: e.collapsed,
|
|
9060
9063
|
sub: e.item.indent > 0
|
|
9061
9064
|
}]),
|
|
9062
|
-
onClick: r[1] || (r[1] =
|
|
9065
|
+
onClick: r[1] || (r[1] = jt((d) => i(e.item), ["stop"]))
|
|
9063
9066
|
}, [V("div", {
|
|
9064
9067
|
class: ze(["j-menu-item-content", {
|
|
9065
9068
|
active: e.item.value === K(a),
|
|
@@ -9346,7 +9349,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9346
9349
|
}),
|
|
9347
9350
|
emits: ["update:checkAll", "update:checkFields"],
|
|
9348
9351
|
setup(e, { expose: t }) {
|
|
9349
|
-
const { t: n } =
|
|
9352
|
+
const { t: n } = At(), a = e, o = po(e, "checkAll"), i = po(e, "checkFields"), l = P(!1), r = P(""), s = j(() => a.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
|
|
9350
9353
|
label: f.config?.label,
|
|
9351
9354
|
value: f.id
|
|
9352
9355
|
}))), c = () => {
|
|
@@ -9417,7 +9420,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9417
9420
|
}),
|
|
9418
9421
|
emits: /* @__PURE__ */ ho(["filter", "close"], ["update:relation", "update:isPin"]),
|
|
9419
9422
|
setup(e, { expose: t, emit: n }) {
|
|
9420
|
-
const { t: a } =
|
|
9423
|
+
const { t: a } = At(), o = e, i = po(e, "relation"), l = po(e, "isPin"), r = P([]), s = () => {
|
|
9421
9424
|
l.value = !l.value;
|
|
9422
9425
|
}, c = [
|
|
9423
9426
|
{
|
|
@@ -9792,7 +9795,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9792
9795
|
} },
|
|
9793
9796
|
emits: ["save", "clear"],
|
|
9794
9797
|
setup(e, { expose: t, emit: n }) {
|
|
9795
|
-
const { t: a } =
|
|
9798
|
+
const { t: a } = At(), o = e, i = n, l = j(() => o.columns.filter((p) => !p.children?.length && p.config?.sorter?.isNot !== !0).map((p) => ({
|
|
9796
9799
|
label: p.config?.label,
|
|
9797
9800
|
value: p.id
|
|
9798
9801
|
}))), r = P([]), s = j(() => r.value.map((p) => p.value)), c = [{
|
|
@@ -9867,7 +9870,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9867
9870
|
},
|
|
9868
9871
|
emits: ["save"],
|
|
9869
9872
|
setup(e, { expose: t, emit: n }) {
|
|
9870
|
-
const { t: a } =
|
|
9873
|
+
const { t: a } = At(), o = e, i = n, l = P(), r = P(""), s = {}, c = P([]), u = P([]), d = (m, E) => {
|
|
9871
9874
|
const S = [], T = /* @__PURE__ */ new Map();
|
|
9872
9875
|
m.forEach((R) => {
|
|
9873
9876
|
T.set(R.id || "", R), s[R.id || ""] = R;
|
|
@@ -10105,7 +10108,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10105
10108
|
},
|
|
10106
10109
|
emits: ["select", "ready"],
|
|
10107
10110
|
setup(e, { expose: t, emit: n }) {
|
|
10108
|
-
const { t: a } =
|
|
10111
|
+
const { t: a } = At(), { openLayer: o } = xo(), i = e, l = n;
|
|
10109
10112
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
10110
10113
|
const r = P();
|
|
10111
10114
|
let s = [];
|
|
@@ -10123,11 +10126,11 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10123
10126
|
const ot = vt.get(ce.id);
|
|
10124
10127
|
if (ot) {
|
|
10125
10128
|
if (ce.display) {
|
|
10126
|
-
let
|
|
10127
|
-
ot.children && ot.children.length > 0 && (
|
|
10129
|
+
let wn = ot;
|
|
10130
|
+
ot.children && ot.children.length > 0 && (wn = {
|
|
10128
10131
|
...ot,
|
|
10129
10132
|
children: k(ot.children, ce.children)
|
|
10130
|
-
}), Rt.push(
|
|
10133
|
+
}), Rt.push(wn);
|
|
10131
10134
|
}
|
|
10132
10135
|
vt.delete(ce.id);
|
|
10133
10136
|
}
|
|
@@ -10157,7 +10160,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10157
10160
|
}, ht = () => {
|
|
10158
10161
|
p.value = [], r.value && (r.value.setSelection?.([]), g.value && (g.value = !1, r.value.setRecords(s)));
|
|
10159
10162
|
}, nt = () => {
|
|
10160
|
-
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : r.value?.setRecords(s), r.value?.setSelection?.(p.value);
|
|
10163
|
+
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : (console.log(s, "tableData"), r.value?.setRecords(s)), r.value?.setSelection?.(p.value);
|
|
10161
10164
|
}, Pn = j(() => {
|
|
10162
10165
|
if (p.value.length > 0 && i.isMultiple) {
|
|
10163
10166
|
const he = [
|
|
@@ -10222,7 +10225,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10222
10225
|
sn !== null && (Ut += z === sn ? -1 : 8), Ut += ce(Yt), sn = z;
|
|
10223
10226
|
}), Ut;
|
|
10224
10227
|
})(he) <= vt) return he;
|
|
10225
|
-
const
|
|
10228
|
+
const wn = {
|
|
10226
10229
|
id: "__table_panel_more__",
|
|
10227
10230
|
label: "",
|
|
10228
10231
|
config: {
|
|
@@ -10230,13 +10233,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10230
10233
|
notLabel: !0
|
|
10231
10234
|
},
|
|
10232
10235
|
children: []
|
|
10233
|
-
},
|
|
10236
|
+
}, xn = 28, tn = [];
|
|
10234
10237
|
let rt = 0, Xt = null;
|
|
10235
10238
|
for (let zt = 0; zt < he.length; zt++) {
|
|
10236
10239
|
const Ut = he[zt], sn = Rt(Ut, zt);
|
|
10237
10240
|
let Yt = rt;
|
|
10238
10241
|
Xt !== null && (Yt += sn === Xt ? -1 : 8), Yt += ce(Ut);
|
|
10239
|
-
const B = he.length - (zt + 1) > 0 ? (Yt > 0 ? 8 : 0) +
|
|
10242
|
+
const B = he.length - (zt + 1) > 0 ? (Yt > 0 ? 8 : 0) + xn : 0;
|
|
10240
10243
|
if (Yt + B <= vt)
|
|
10241
10244
|
tn.push(Ut), rt = Yt, Xt = sn;
|
|
10242
10245
|
else break;
|
|
@@ -10244,7 +10247,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10244
10247
|
const Ga = he.slice(tn.length);
|
|
10245
10248
|
if (Ga.length === 0) return he;
|
|
10246
10249
|
const Io = {
|
|
10247
|
-
...
|
|
10250
|
+
...wn,
|
|
10248
10251
|
children: Ga
|
|
10249
10252
|
};
|
|
10250
10253
|
return tn.length === 0 ? [Io] : [...tn, Io];
|
|
@@ -10325,7 +10328,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10325
10328
|
},
|
|
10326
10329
|
getInstance: Ka
|
|
10327
10330
|
}), (he, se) => {
|
|
10328
|
-
const vt = I("j-buttons"), Rt = I("j-icon"), ce = I("el-popover"), ot = I("el-tooltip"),
|
|
10331
|
+
const vt = I("j-buttons"), Rt = I("j-icon"), ce = I("el-popover"), ot = I("el-tooltip"), wn = I("el-input"), xn = I("j-button"), tn = I("j-table");
|
|
10329
10332
|
return _(), O("div", { class: ze(["j-table-panel-wrapper", {
|
|
10330
10333
|
fullscreen: Ke.value,
|
|
10331
10334
|
"no-padding": e.noPadding || Ke.value
|
|
@@ -10334,7 +10337,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10334
10337
|
ref: Jt,
|
|
10335
10338
|
class: "j-table-panel-top-left"
|
|
10336
10339
|
}, [X(vt, { list: ee.value }, null, 8, ["list"])], 512), V("div", Qv, [
|
|
10337
|
-
T.value && !w.value ? (_(), O("div", em, [X(
|
|
10340
|
+
T.value && !w.value ? (_(), O("div", em, [X(wn, {
|
|
10338
10341
|
modelValue: S.value,
|
|
10339
10342
|
"onUpdate:modelValue": se[2] || (se[2] = (rt) => S.value = rt),
|
|
10340
10343
|
modelModifiers: { trim: !0 },
|
|
@@ -10392,7 +10395,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10392
10395
|
persistent: !1,
|
|
10393
10396
|
onHide: Ee
|
|
10394
10397
|
}, {
|
|
10395
|
-
reference: N(() => [X(
|
|
10398
|
+
reference: N(() => [X(xn, {
|
|
10396
10399
|
icon: "mdi:filter-outline",
|
|
10397
10400
|
label: "筛选",
|
|
10398
10401
|
type: "text",
|
|
@@ -10431,7 +10434,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10431
10434
|
trigger: "click",
|
|
10432
10435
|
onShow: ae
|
|
10433
10436
|
}, {
|
|
10434
|
-
reference: N(() => [X(
|
|
10437
|
+
reference: N(() => [X(xn, {
|
|
10435
10438
|
class: ze({ active: dt.value.length > 0 }),
|
|
10436
10439
|
type: "text",
|
|
10437
10440
|
icon: "mdi:sort"
|
|
@@ -10461,7 +10464,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10461
10464
|
trigger: "click",
|
|
10462
10465
|
onShow: ge
|
|
10463
10466
|
}, {
|
|
10464
|
-
reference: N(() => [X(
|
|
10467
|
+
reference: N(() => [X(xn, {
|
|
10465
10468
|
class: ze({ active: te.value }),
|
|
10466
10469
|
type: "text",
|
|
10467
10470
|
icon: "mdi:table-headers-eye"
|
|
@@ -10482,7 +10485,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10482
10485
|
placement: "bottom",
|
|
10483
10486
|
content: K(a)("刷新")
|
|
10484
10487
|
}, {
|
|
10485
|
-
default: N(() => [X(
|
|
10488
|
+
default: N(() => [X(xn, {
|
|
10486
10489
|
type: "text",
|
|
10487
10490
|
icon: "mdi:refresh",
|
|
10488
10491
|
onClick: ba
|
|
@@ -10494,14 +10497,14 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10494
10497
|
placement: "bottom",
|
|
10495
10498
|
content: Ke.value ? K(a)("退出全屏") : K(a)("全屏")
|
|
10496
10499
|
}, {
|
|
10497
|
-
default: N(() => [X(
|
|
10500
|
+
default: N(() => [X(xn, {
|
|
10498
10501
|
type: "text",
|
|
10499
10502
|
icon: Ke.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
10500
10503
|
onClick: It
|
|
10501
10504
|
}, null, 8, ["icon"])]),
|
|
10502
10505
|
_: 1
|
|
10503
10506
|
}, 8, ["content"])) : U("", !0)
|
|
10504
|
-
])]), V("div", tm, [
|
|
10507
|
+
])]), V("div", tm, [Sn(V("div", nm, [V("div", am, [X(Rt, {
|
|
10505
10508
|
icon: "mdi:loading",
|
|
10506
10509
|
class: "loading-spin",
|
|
10507
10510
|
size: 24
|
|
@@ -10582,7 +10585,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10582
10585
|
},
|
|
10583
10586
|
emits: ["update:modelValue", "change"],
|
|
10584
10587
|
setup(e, { emit: t }) {
|
|
10585
|
-
const n = e, a = t, { t: o } =
|
|
10588
|
+
const n = e, a = t, { t: o } = At(), i = P(""), l = j(() => i.value === "" ? n.options : n.options.filter((c) => (c.label || "").includes(i.value))), r = j(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), s = (c) => {
|
|
10586
10589
|
if (c.disabled || r.value.includes(c.value)) return;
|
|
10587
10590
|
const u = [...r.value, c.value].join(",");
|
|
10588
10591
|
a("update:modelValue", u), a("change", {
|
|
@@ -10624,7 +10627,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10624
10627
|
}, 8, ["modelValue", "placeholder"])]), V("div", um, [(_(!0), O(xe, null, je(l.value, (g) => (_(), O("div", {
|
|
10625
10628
|
key: g.value,
|
|
10626
10629
|
class: ze(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
10627
|
-
onClick:
|
|
10630
|
+
onClick: jt((v) => s(g), ["stop"])
|
|
10628
10631
|
}, [g.icon ? (_(), H(f, {
|
|
10629
10632
|
key: 0,
|
|
10630
10633
|
class: "j-button-select-icon",
|
|
@@ -10754,7 +10757,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10754
10757
|
},
|
|
10755
10758
|
emits: ["node-drop"],
|
|
10756
10759
|
setup(e, { expose: t, emit: n }) {
|
|
10757
|
-
const a = e, o = n, { useData: i, t: l } =
|
|
10760
|
+
const a = e, o = n, { useData: i, t: l } = At(), { getTreeData: r, loadData: s } = i(), c = P(), u = P(!1), d = P(""), f = P([]), h = {
|
|
10758
10761
|
children: "children",
|
|
10759
10762
|
label: "label",
|
|
10760
10763
|
disabled: "disabled"
|
|
@@ -10790,7 +10793,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10790
10793
|
}, E = (D, M, C, L) => {
|
|
10791
10794
|
o("node-drop", D, M, C, L);
|
|
10792
10795
|
}, S = (D) => {
|
|
10793
|
-
const M =
|
|
10796
|
+
const M = vn(a.treeButtons);
|
|
10794
10797
|
return D && a.filterButton ? a.filterButton({
|
|
10795
10798
|
buttons: M,
|
|
10796
10799
|
node: D
|
|
@@ -10819,7 +10822,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10819
10822
|
getCheck: x
|
|
10820
10823
|
}), (D, M) => {
|
|
10821
10824
|
const C = I("j-icon"), L = I("j-button"), W = I("el-dropdown-item"), ie = I("el-dropdown-menu"), fe = I("el-dropdown"), _e = I("el-tree"), Ve = I("el-empty"), dt = yi("loading");
|
|
10822
|
-
return
|
|
10825
|
+
return Sn((_(), O("div", {
|
|
10823
10826
|
class: ze([
|
|
10824
10827
|
"j-block",
|
|
10825
10828
|
"j-tree",
|
|
@@ -10875,7 +10878,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10875
10878
|
key: qe,
|
|
10876
10879
|
disabled: Se.disabled,
|
|
10877
10880
|
divided: Se.divided,
|
|
10878
|
-
onClick:
|
|
10881
|
+
onClick: jt((ct) => A(Se, ae.data), ["stop"])
|
|
10879
10882
|
}, {
|
|
10880
10883
|
default: N(() => [V("div", {
|
|
10881
10884
|
class: "j-flex-item",
|
|
@@ -10959,7 +10962,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10959
10962
|
},
|
|
10960
10963
|
emits: ["update:modelValue", "change"],
|
|
10961
10964
|
setup(e, { emit: t }) {
|
|
10962
|
-
const n = e, { useData: a } =
|
|
10965
|
+
const n = e, { useData: a } = At(), { getTreeData: o } = a(), i = j(() => (console.log(a(), o), o ? o({
|
|
10963
10966
|
dataType: n.dataType,
|
|
10964
10967
|
dataCode: n.dataCode,
|
|
10965
10968
|
labelKey: n.labelKey,
|
|
@@ -11082,7 +11085,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11082
11085
|
},
|
|
11083
11086
|
emits: ["change"],
|
|
11084
11087
|
setup(e, { expose: t, emit: n }) {
|
|
11085
|
-
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } =
|
|
11088
|
+
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } = At();
|
|
11086
11089
|
let p;
|
|
11087
11090
|
i && (p = i());
|
|
11088
11091
|
const g = (Y) => {
|
|
@@ -11140,7 +11143,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11140
11143
|
}, Ve = async (Y, re) => {
|
|
11141
11144
|
v.value = !1;
|
|
11142
11145
|
const q = !!re;
|
|
11143
|
-
S.splice(0, S.length), R = {}, F = {}, $ = [], W = re, so(m), so(T), A.value = {}, q && ie(re, ""), _e(Y, S, q), D =
|
|
11146
|
+
S.splice(0, S.length), R = {}, F = {}, $ = [], W = re, so(m), so(T), A.value = {}, q && ie(re, ""), _e(Y, S, q), D = vn(m), kt(() => {
|
|
11144
11147
|
v.value = !0, kt(() => {
|
|
11145
11148
|
rn(a.config?.codeInit, {});
|
|
11146
11149
|
});
|
|
@@ -11386,7 +11389,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11386
11389
|
"label-position": x.value,
|
|
11387
11390
|
"label-width": y.value,
|
|
11388
11391
|
size: e.config?.size,
|
|
11389
|
-
onSubmit: re[0] || (re[0] =
|
|
11392
|
+
onSubmit: re[0] || (re[0] = jt(() => {
|
|
11390
11393
|
}, ["prevent"]))
|
|
11391
11394
|
}, {
|
|
11392
11395
|
default: N(() => [k.value ? (_(), H(q, $e({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (_(), H(ee, {
|
|
@@ -11668,7 +11671,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11668
11671
|
const x = { _i: Dn() };
|
|
11669
11672
|
a.columns.forEach((k) => {
|
|
11670
11673
|
const m = k.config?.valueRowKey || k.id || "";
|
|
11671
|
-
m && (x[m] =
|
|
11674
|
+
m && (x[m] = vn(k.config?.defaultValue));
|
|
11672
11675
|
}), g.value.push(x), o("change", {
|
|
11673
11676
|
id: a.id,
|
|
11674
11677
|
value: x,
|
|
@@ -11891,7 +11894,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11891
11894
|
clearable: !e.readonly && e.clearable,
|
|
11892
11895
|
onClick: u,
|
|
11893
11896
|
onClear: d
|
|
11894
|
-
},
|
|
11897
|
+
}, En({ _: 2 }, [e.readonly ? void 0 : {
|
|
11895
11898
|
name: "append",
|
|
11896
11899
|
fn: N(() => [X(K(ol), {
|
|
11897
11900
|
icon: e.icon,
|
|
@@ -11979,7 +11982,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11979
11982
|
}
|
|
11980
11983
|
},
|
|
11981
11984
|
setup(e) {
|
|
11982
|
-
const t = e, n = ca(), { t: a } =
|
|
11985
|
+
const t = e, n = ca(), { t: a } = At(), o = j(() => t.formConfig?.gutter || 16), i = j(() => t.formConfig?.span || 24), l = j(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = j(() => t.formConfig?.labelPosition || n.labelPosition?.value || "right"), s = j(() => t.schema?.length === 1 && (t.schema?.[0]?.type === "j-tabs" || t.schema?.[0]?.type === "j-layout" || t.schema?.[0]?.config?.isAutoWindow)), c = P(!1), u = () => {
|
|
11983
11986
|
c.value = !0;
|
|
11984
11987
|
};
|
|
11985
11988
|
return cc({
|
|
@@ -12012,7 +12015,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
12012
12015
|
"label-position": r.value,
|
|
12013
12016
|
"label-width": l.value,
|
|
12014
12017
|
size: e.formConfig?.size,
|
|
12015
|
-
onSubmit: f[0] || (f[0] =
|
|
12018
|
+
onSubmit: f[0] || (f[0] = jt(() => {
|
|
12016
12019
|
}, ["prevent"]))
|
|
12017
12020
|
}, {
|
|
12018
12021
|
default: N(() => [s.value ? (_(), H(p, mi($e({ key: 0 }, e.schema[0])), null, 16)) : (_(), H(g, {
|
|
@@ -12149,7 +12152,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
12149
12152
|
loading: e.loading,
|
|
12150
12153
|
disabled: e.disabled || e.readonly,
|
|
12151
12154
|
onChange: i
|
|
12152
|
-
}),
|
|
12155
|
+
}), En({ _: 2 }, [
|
|
12153
12156
|
l.$slots["active-action"] ? {
|
|
12154
12157
|
name: "active-action",
|
|
12155
12158
|
fn: N(() => [Ue(l.$slots, "active-action")]),
|
|
@@ -13227,12 +13230,12 @@ function Yy(e, t, n) {
|
|
|
13227
13230
|
enclosedElements: i
|
|
13228
13231
|
};
|
|
13229
13232
|
}
|
|
13230
|
-
function
|
|
13233
|
+
function mn(e, t) {
|
|
13231
13234
|
t = !!t, tt(e) || (e = [e]);
|
|
13232
13235
|
var n, a, o, i;
|
|
13233
13236
|
return ne(e, function(l) {
|
|
13234
13237
|
var r = l;
|
|
13235
|
-
l.waypoints && !t && (r =
|
|
13238
|
+
l.waypoints && !t && (r = mn(l.waypoints, !0));
|
|
13236
13239
|
var s = r.x, c = r.y, u = r.height || 0, d = r.width || 0;
|
|
13237
13240
|
(s < n || n === void 0) && (n = s), (c < a || a === void 0) && (a = c), (s + d > o || o === void 0) && (o = s + d), (c + u > i || i === void 0) && (i = c + u);
|
|
13238
13241
|
}), {
|
|
@@ -13246,7 +13249,7 @@ function Ky(e, t) {
|
|
|
13246
13249
|
var n = {};
|
|
13247
13250
|
return ne(e, function(a) {
|
|
13248
13251
|
var o = a;
|
|
13249
|
-
o.waypoints && (o =
|
|
13252
|
+
o.waypoints && (o = mn(o)), !Et(t.y) && o.x > t.x && (n[a.id] = a), !Et(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Et(t.width) && Et(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Et(t.width) || !Et(t.height)) && (n[a.id] = a);
|
|
13250
13253
|
}), n;
|
|
13251
13254
|
}
|
|
13252
13255
|
function Gy(e) {
|
|
@@ -13374,7 +13377,7 @@ function Pc(e, t, n, a, o) {
|
|
|
13374
13377
|
}, u || {}), ne(c, function(h) {
|
|
13375
13378
|
Et(h.x) || (h.x = 0), Et(h.y) || (h.y = 0);
|
|
13376
13379
|
});
|
|
13377
|
-
var f =
|
|
13380
|
+
var f = mn(Zt(c, function(h) {
|
|
13378
13381
|
return !h.hidden;
|
|
13379
13382
|
}));
|
|
13380
13383
|
ne(c, function(h) {
|
|
@@ -14174,7 +14177,7 @@ var Ab = Math.sign || function(e) {
|
|
|
14174
14177
|
min: 0.2,
|
|
14175
14178
|
max: 4
|
|
14176
14179
|
}, Vc = 10, Pb = 0.1, jb = 0.75;
|
|
14177
|
-
function
|
|
14180
|
+
function yn(e, t, n) {
|
|
14178
14181
|
e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = El(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || jb;
|
|
14179
14182
|
var a = this;
|
|
14180
14183
|
t.on("canvas.mouseover", function() {
|
|
@@ -14183,22 +14186,22 @@ function mn(e, t, n) {
|
|
|
14183
14186
|
a._init(!1);
|
|
14184
14187
|
});
|
|
14185
14188
|
}
|
|
14186
|
-
|
|
14189
|
+
yn.$inject = [
|
|
14187
14190
|
"config.zoomScroll",
|
|
14188
14191
|
"eventBus",
|
|
14189
14192
|
"canvas"
|
|
14190
14193
|
];
|
|
14191
|
-
|
|
14194
|
+
yn.prototype.scroll = function(t) {
|
|
14192
14195
|
this._canvas.scroll(t);
|
|
14193
14196
|
};
|
|
14194
|
-
|
|
14197
|
+
yn.prototype.reset = function() {
|
|
14195
14198
|
this._canvas.zoom("fit-viewport");
|
|
14196
14199
|
};
|
|
14197
|
-
|
|
14200
|
+
yn.prototype.zoom = function(t, n) {
|
|
14198
14201
|
var a = Fc(Fl, Vc * 2);
|
|
14199
14202
|
this._totalDelta += t, Math.abs(this._totalDelta) > Pb && (this._zoom(t, n, a), this._totalDelta = 0);
|
|
14200
14203
|
};
|
|
14201
|
-
|
|
14204
|
+
yn.prototype._handleWheel = function(t) {
|
|
14202
14205
|
if (this._enabled) {
|
|
14203
14206
|
var n = this._container;
|
|
14204
14207
|
t.preventDefault();
|
|
@@ -14219,26 +14222,26 @@ mn.prototype._handleWheel = function(t) {
|
|
|
14219
14222
|
}, this.scroll(l);
|
|
14220
14223
|
}
|
|
14221
14224
|
};
|
|
14222
|
-
|
|
14225
|
+
yn.prototype.stepZoom = function(t, n) {
|
|
14223
14226
|
var a = Fc(Fl, Vc);
|
|
14224
14227
|
this._zoom(t, n, a);
|
|
14225
14228
|
};
|
|
14226
|
-
|
|
14229
|
+
yn.prototype._zoom = function(e, t, n) {
|
|
14227
14230
|
var a = this._canvas, o = e > 0 ? 1 : -1, i = pl(a.zoom()), l = Math.round(i / n) * n;
|
|
14228
14231
|
l += n * o;
|
|
14229
14232
|
var r = Math.pow(10, l);
|
|
14230
14233
|
a.zoom(Mb(Fl, r), t);
|
|
14231
14234
|
};
|
|
14232
|
-
|
|
14235
|
+
yn.prototype.toggle = function(t) {
|
|
14233
14236
|
var n = this._container, a = this._handleWheel, o = this._enabled;
|
|
14234
14237
|
return typeof t > "u" && (t = !o), o !== t && Qe[t ? "bind" : "unbind"](n, "wheel", a, !1), this._enabled = t, t;
|
|
14235
14238
|
};
|
|
14236
|
-
|
|
14239
|
+
yn.prototype._init = function(e) {
|
|
14237
14240
|
this.toggle(e);
|
|
14238
14241
|
};
|
|
14239
14242
|
var Nc = {
|
|
14240
14243
|
__init__: ["zoomScroll"],
|
|
14241
|
-
zoomScroll: ["type",
|
|
14244
|
+
zoomScroll: ["type", yn]
|
|
14242
14245
|
};
|
|
14243
14246
|
function ft(e, t) {
|
|
14244
14247
|
this._handlerMap = {}, this._stack = [], this._stackIdx = -1, this._currentExecution = {
|
|
@@ -14777,7 +14780,7 @@ Ul.prototype.preExecute = function(e) {
|
|
|
14777
14780
|
ne(t, function(u) {
|
|
14778
14781
|
Et(u.x) || (u.x = 0), Et(u.y) || (u.y = 0);
|
|
14779
14782
|
});
|
|
14780
|
-
var r =
|
|
14783
|
+
var r = mn(Zt(t, function(u) {
|
|
14781
14784
|
return !u.hidden;
|
|
14782
14785
|
}));
|
|
14783
14786
|
ne(t, function(u) {
|
|
@@ -17958,7 +17961,7 @@ function hi(e, t) {
|
|
|
17958
17961
|
var n = e.snapped;
|
|
17959
17962
|
return n ? typeof t == "string" ? n[t] : n.x && n.y : !1;
|
|
17960
17963
|
}
|
|
17961
|
-
function
|
|
17964
|
+
function Cn(e, t, n) {
|
|
17962
17965
|
if (typeof t != "string") throw new Error("axis must be in [x, y]");
|
|
17963
17966
|
if (typeof n != "number" && n !== !1) throw new Error("value must be Number or false");
|
|
17964
17967
|
var a, o = e[t], i = e.snapped = e.snapped || {};
|
|
@@ -18013,7 +18016,7 @@ function Au(e) {
|
|
|
18013
18016
|
dy: i.dy - f,
|
|
18014
18017
|
x: c,
|
|
18015
18018
|
y: u
|
|
18016
|
-
}), (d || l.vertical.indexOf(r) !== -1) &&
|
|
18019
|
+
}), (d || l.vertical.indexOf(r) !== -1) && Cn(i, "x", c), (f || l.horizontal.indexOf(s) !== -1) && Cn(i, "y", u);
|
|
18017
18020
|
}
|
|
18018
18021
|
});
|
|
18019
18022
|
function o(i) {
|
|
@@ -18033,7 +18036,7 @@ function Au(e) {
|
|
|
18033
18036
|
"connect.end"
|
|
18034
18037
|
], 1500, function(i) {
|
|
18035
18038
|
var l = i.context.hover, r = l && n(l, i);
|
|
18036
|
-
!Vt(l) || !r || !r.x || !r.y || (
|
|
18039
|
+
!Vt(l) || !r || !r.x || !r.y || (Cn(i, "x", r.x), Cn(i, "y", r.y));
|
|
18037
18040
|
}), e.on(["bendpoint.move.move", "bendpoint.move.end"], 1500, function(i) {
|
|
18038
18041
|
var l = i.context, r = o(l), s = l.hover, c = s && n(s, i), u = i.x, d = i.y, f, h;
|
|
18039
18042
|
if (r) {
|
|
@@ -18044,7 +18047,7 @@ function Au(e) {
|
|
|
18044
18047
|
dy: i.dy - g,
|
|
18045
18048
|
x: i.x - p,
|
|
18046
18049
|
y: i.y - g
|
|
18047
|
-
}), (p || r.vertical.indexOf(u) !== -1) &&
|
|
18050
|
+
}), (p || r.vertical.indexOf(u) !== -1) && Cn(i, "x", f), (g || r.horizontal.indexOf(d) !== -1) && Cn(i, "y", h);
|
|
18048
18051
|
}
|
|
18049
18052
|
});
|
|
18050
18053
|
}
|
|
@@ -18186,7 +18189,7 @@ Ht.prototype.clear = function() {
|
|
|
18186
18189
|
Ht.prototype._updateOverlayContainer = function(e) {
|
|
18187
18190
|
var t = e.element, n = e.html, a = t.x, o = t.y;
|
|
18188
18191
|
if (t.waypoints) {
|
|
18189
|
-
var i =
|
|
18192
|
+
var i = mn(t);
|
|
18190
18193
|
a = i.x, o = i.y;
|
|
18191
18194
|
}
|
|
18192
18195
|
Pu(n, a, o), ln(e.html, "data-container-id", t.id);
|
|
@@ -18195,11 +18198,11 @@ Ht.prototype._updateOverlay = function(e) {
|
|
|
18195
18198
|
var t = e.position, n = e.htmlContainer, a = e.element, o = t.left, i = t.top;
|
|
18196
18199
|
if (t.right !== void 0) {
|
|
18197
18200
|
var l;
|
|
18198
|
-
a.waypoints ? l =
|
|
18201
|
+
a.waypoints ? l = mn(a).width : l = a.width, o = t.right * -1 + l;
|
|
18199
18202
|
}
|
|
18200
18203
|
if (t.bottom !== void 0) {
|
|
18201
18204
|
var r;
|
|
18202
|
-
a.waypoints ? r =
|
|
18205
|
+
a.waypoints ? r = mn(a).height : r = a.height, i = t.bottom * -1 + r;
|
|
18203
18206
|
}
|
|
18204
18207
|
Pu(n, o || 0, i || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
|
|
18205
18208
|
};
|
|
@@ -18953,7 +18956,7 @@ ya.prototype.updateShapeOutline = function(e, t) {
|
|
|
18953
18956
|
});
|
|
18954
18957
|
};
|
|
18955
18958
|
ya.prototype.updateConnectionOutline = function(e, t) {
|
|
18956
|
-
var n =
|
|
18959
|
+
var n = mn(t);
|
|
18957
18960
|
be(e, {
|
|
18958
18961
|
x: n.x - this.offset,
|
|
18959
18962
|
y: n.y - this.offset,
|
|
@@ -19000,7 +19003,7 @@ fr.prototype._updateMultiSelectionOutline = function(e) {
|
|
|
19000
19003
|
Tl(t);
|
|
19001
19004
|
var n = e.length > 1;
|
|
19002
19005
|
if (st(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
|
|
19003
|
-
var a = Qx(
|
|
19006
|
+
var a = Qx(mn(e)), o = He("rect");
|
|
19004
19007
|
be(o, Re({ rx: 3 }, a)), st(o).add("djs-selection-outline"), Fe(t, o);
|
|
19005
19008
|
}
|
|
19006
19009
|
};
|
|
@@ -19391,7 +19394,7 @@ function w0(e) {
|
|
|
19391
19394
|
}
|
|
19392
19395
|
function x0(e, t) {
|
|
19393
19396
|
var n;
|
|
19394
|
-
if (e.length === void 0 ? n = Zt(e.children, w0) : n = e, n.length) return b0(
|
|
19397
|
+
if (e.length === void 0 ? n = Zt(e.children, w0) : n = e, n.length) return b0(mn(n), t);
|
|
19395
19398
|
}
|
|
19396
19399
|
var Ns = 10;
|
|
19397
19400
|
function jo(e, t, n, a) {
|
|
@@ -19761,7 +19764,7 @@ Ii.prototype.initDefaults = function(e) {
|
|
|
19761
19764
|
});
|
|
19762
19765
|
};
|
|
19763
19766
|
var A0 = 1250;
|
|
19764
|
-
function
|
|
19767
|
+
function bn(e, t, n) {
|
|
19765
19768
|
var a = this;
|
|
19766
19769
|
this._elementRegistry = e, t.on(["create.start", "shape.move.start"], function(o) {
|
|
19767
19770
|
a.initSnap(o);
|
|
@@ -19780,12 +19783,12 @@ function yn(e, t, n) {
|
|
|
19780
19783
|
n.hide();
|
|
19781
19784
|
});
|
|
19782
19785
|
}
|
|
19783
|
-
|
|
19786
|
+
bn.$inject = [
|
|
19784
19787
|
"elementRegistry",
|
|
19785
19788
|
"eventBus",
|
|
19786
19789
|
"snapping"
|
|
19787
19790
|
];
|
|
19788
|
-
|
|
19791
|
+
bn.prototype.initSnap = function(e) {
|
|
19789
19792
|
var t = this._elementRegistry, n = e.context, a = n.shape, o = n.snapContext;
|
|
19790
19793
|
o || (o = n.snapContext = new qn());
|
|
19791
19794
|
var i;
|
|
@@ -19811,7 +19814,7 @@ yn.prototype.initSnap = function(e) {
|
|
|
19811
19814
|
y: r.y - e.y
|
|
19812
19815
|
})), o;
|
|
19813
19816
|
};
|
|
19814
|
-
|
|
19817
|
+
bn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
19815
19818
|
return ne(this.getSnapTargets(t, n), function(a) {
|
|
19816
19819
|
if (ja(a)) {
|
|
19817
19820
|
ja(t) && e.add("mid", Ta(a));
|
|
@@ -19827,7 +19830,7 @@ yn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
19827
19830
|
e.add("mid", Ta(a));
|
|
19828
19831
|
}), !Et(t.x) || !Et(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Ta(t)), e;
|
|
19829
19832
|
};
|
|
19830
|
-
|
|
19833
|
+
bn.prototype.getSnapTargets = function(e, t) {
|
|
19831
19834
|
return Mu(t).filter(function(n) {
|
|
19832
19835
|
return !P0(n);
|
|
19833
19836
|
});
|
|
@@ -19836,18 +19839,18 @@ function P0(e) {
|
|
|
19836
19839
|
return !!e.hidden;
|
|
19837
19840
|
}
|
|
19838
19841
|
function Va(e) {
|
|
19839
|
-
e.invoke(
|
|
19842
|
+
e.invoke(bn, this);
|
|
19840
19843
|
}
|
|
19841
|
-
sa(Va,
|
|
19844
|
+
sa(Va, bn);
|
|
19842
19845
|
Va.$inject = ["injector"];
|
|
19843
19846
|
Va.prototype.initSnap = function(e) {
|
|
19844
|
-
return
|
|
19847
|
+
return bn.prototype.initSnap.call(this, e);
|
|
19845
19848
|
};
|
|
19846
19849
|
Va.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
19847
|
-
return
|
|
19850
|
+
return bn.prototype.addSnapTargetPoints.call(this, e, t, n);
|
|
19848
19851
|
};
|
|
19849
19852
|
Va.prototype.getSnapTargets = function(e, t) {
|
|
19850
|
-
return
|
|
19853
|
+
return bn.prototype.getSnapTargets.call(this, e, t);
|
|
19851
19854
|
};
|
|
19852
19855
|
var j0 = 1250;
|
|
19853
19856
|
function Oo(e, t) {
|
|
@@ -19858,7 +19861,7 @@ function Oo(e, t) {
|
|
|
19858
19861
|
var o = a.context, i = o.shape, l = i.parent, r = o.direction, s = o.snapContext;
|
|
19859
19862
|
if (!(a.originalEvent && Rc(a.originalEvent)) && !hi(a)) {
|
|
19860
19863
|
var c = s.pointsForTarget(l);
|
|
19861
|
-
c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), B0(r) &&
|
|
19864
|
+
c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), B0(r) && Cn(a, "x", a.x), I0(r) && Cn(a, "y", a.y), t.snap(a, c);
|
|
19862
19865
|
}
|
|
19863
19866
|
}), e.on(["resize.cleanup"], function() {
|
|
19864
19867
|
t.hide();
|
|
@@ -19927,7 +19930,7 @@ Zn.prototype.snap = function(e, t) {
|
|
|
19927
19930
|
}), o.x && o.y) return !1;
|
|
19928
19931
|
}), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), ne(["x", "y"], function(i) {
|
|
19929
19932
|
var l = o[i];
|
|
19930
|
-
Qt(l) &&
|
|
19933
|
+
Qt(l) && Cn(e, i, l.originValue);
|
|
19931
19934
|
});
|
|
19932
19935
|
};
|
|
19933
19936
|
Zn.prototype._createLine = function(e) {
|
|
@@ -19966,7 +19969,7 @@ var $0 = {
|
|
|
19966
19969
|
"resizeSnapping",
|
|
19967
19970
|
"snapping"
|
|
19968
19971
|
],
|
|
19969
|
-
createMoveSnapping: ["type",
|
|
19972
|
+
createMoveSnapping: ["type", bn],
|
|
19970
19973
|
resizeSnapping: ["type", Oo],
|
|
19971
19974
|
snapping: ["type", Zn]
|
|
19972
19975
|
}, D0 = {
|
|
@@ -20523,13 +20526,13 @@ var r_ = {
|
|
|
20523
20526
|
"rowChange"
|
|
20524
20527
|
],
|
|
20525
20528
|
setup(e, { expose: t, emit: n }) {
|
|
20526
|
-
const a = e, o = n, { t: i } =
|
|
20529
|
+
const a = e, o = n, { t: i } = At(), { formData: l } = ca(), r = j(() => a.editConfig.isAddBtn !== !1), s = j(() => a.editConfig.addBtnText || "添加"), c = j(() => a.editConfig.buttonsAlign || "left"), u = j(() => a.editConfig.isRemoveBtn !== !1), d = j(() => a.editConfig.readonly), f = j(() => a.editConfig.isNullValue !== !1), h = P([]), p = (m) => {
|
|
20527
20530
|
o("rowChange", m);
|
|
20528
20531
|
}, g = () => {
|
|
20529
20532
|
const m = { _i: Dn() };
|
|
20530
20533
|
a.columns.forEach((E) => {
|
|
20531
20534
|
const S = E.config?.valueRowKey || E.id || "";
|
|
20532
|
-
S && (m[S] =
|
|
20535
|
+
S && (m[S] = vn(E.config?.defaultValue));
|
|
20533
20536
|
}), h.value.push(m), o("change", {
|
|
20534
20537
|
id: a.id,
|
|
20535
20538
|
value: m,
|
|
@@ -20611,7 +20614,7 @@ var r_ = {
|
|
|
20611
20614
|
span: M.config?.span || e.span || 24,
|
|
20612
20615
|
style: we({ "margin-bottom": (M.getInputType ? M.getInputType($) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
20613
20616
|
}, {
|
|
20614
|
-
default: N(() => [
|
|
20617
|
+
default: N(() => [Sn(X(T, {
|
|
20615
20618
|
"label-width": x(M.config?.labelWidth),
|
|
20616
20619
|
label: K(i)(M.config?.label || ""),
|
|
20617
20620
|
extra: M.config?.labelExtra,
|
|
@@ -20780,7 +20783,7 @@ export {
|
|
|
20780
20783
|
Dn as buildUUID,
|
|
20781
20784
|
so as clearJson,
|
|
20782
20785
|
il as clone,
|
|
20783
|
-
|
|
20786
|
+
vn as deepClone,
|
|
20784
20787
|
pC as default,
|
|
20785
20788
|
dC as eventBus,
|
|
20786
20789
|
Do as formatToDate,
|
|
@@ -20814,7 +20817,7 @@ export {
|
|
|
20814
20817
|
hf as toTree,
|
|
20815
20818
|
lC as uniqueArray,
|
|
20816
20819
|
df as upFirst,
|
|
20817
|
-
|
|
20820
|
+
At as useAppInject,
|
|
20818
20821
|
fC as useAppProvide,
|
|
20819
20822
|
Bf as useAuthPageInject,
|
|
20820
20823
|
If as useAuthPageProvide,
|