es-plus-ui 1.2.1 → 1.3.1
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/es-plus.js +137 -137
- package/dist/es-plus.js.map +1 -1
- package/dist/es-plus.umd.cjs +1 -1
- package/dist/es-plus.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/es-plus.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as fe, reactive as Je, onMounted as pt, onUpdated as _t
|
|
|
2
2
|
import { ElConfigProvider as We, ElTableColumn as Ee, ElButton as de, ElTable as $t, ElPagination as jt, vLoading as Ut, ElInput as dt, ElSelect as Nt, ElOption as Mt, ElDatePicker as Kt, ElTimePicker as Qt, ElSlider as Wt, ElColorPicker as Gt, ElTransfer as Yt, ElCascader as Jt, ElRadioGroup as Xt, ElRadio as Zt, ElCheckboxGroup as en, ElCheckbox as tn, ElSwitch as nn, ElRate as on, ElUpload as an, ElForm as ln, ElRow as rn, ElCol as Ct, ElFormItem as Qe, ElDropdown as St, ElDropdownMenu as It, ElDropdownItem as Be, ElDialog as sn, ElIcon as wt } from "element-plus";
|
|
3
3
|
import * as ft from "@element-plus/icons-vue";
|
|
4
4
|
import { FullScreen as cn, CopyDocument as un, Close as dn } from "@element-plus/icons-vue";
|
|
5
|
-
const fn = "1.
|
|
5
|
+
const fn = "1.3.1";
|
|
6
6
|
var Ve = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
@@ -192,7 +192,7 @@ const it = fe({
|
|
|
192
192
|
locale: { type: Object, default: null }
|
|
193
193
|
},
|
|
194
194
|
setup(t) {
|
|
195
|
-
const
|
|
195
|
+
const m = t.refs && typeof t.refs == "object" ? t.refs : Je({});
|
|
196
196
|
function h(o) {
|
|
197
197
|
if (!o) return null;
|
|
198
198
|
if (typeof o == "function") return o;
|
|
@@ -213,34 +213,34 @@ const it = fe({
|
|
|
213
213
|
const o = e.component;
|
|
214
214
|
if (!o) return;
|
|
215
215
|
const r = o.exposed || o.proxy;
|
|
216
|
-
r && (
|
|
216
|
+
r && (m.currentRef = r, typeof a == "function" && a(r));
|
|
217
217
|
}
|
|
218
218
|
return pt(() => n()), _t(() => n()), () => {
|
|
219
219
|
var d;
|
|
220
220
|
const { instance: o } = t, r = {
|
|
221
221
|
...o,
|
|
222
222
|
registerRef: (y, c) => {
|
|
223
|
-
c != null && (
|
|
223
|
+
c != null && (m[y] = c);
|
|
224
224
|
},
|
|
225
|
-
getRefs: () =>
|
|
225
|
+
getRefs: () => m
|
|
226
226
|
}, i = t.render(Q, r, t.components || {}) || "";
|
|
227
227
|
return typeof i == "string" ? (e = null, Q(We, {
|
|
228
228
|
locale: t.locale || Ve
|
|
229
229
|
}, () => Q("span", {
|
|
230
230
|
ref: (y) => {
|
|
231
|
-
|
|
231
|
+
m.currentRef = y;
|
|
232
232
|
}
|
|
233
233
|
}, i))) : Vt(i) ? typeof i.type != "string" ? (e = i, a = h(i.ref) || h((d = i.props) == null ? void 0 : d.ref), i) : (e = null, Q(We, {
|
|
234
234
|
locale: t.locale || Ve
|
|
235
235
|
}, () => Q("div", {
|
|
236
236
|
ref: (c) => {
|
|
237
|
-
|
|
237
|
+
m.currentRef = c;
|
|
238
238
|
}
|
|
239
239
|
}, [i]))) : (e = null, Q(We, {
|
|
240
240
|
locale: t.locale || Ve
|
|
241
241
|
}, () => Q(i, {
|
|
242
242
|
ref: (y) => {
|
|
243
|
-
|
|
243
|
+
m.currentRef = y;
|
|
244
244
|
}
|
|
245
245
|
})));
|
|
246
246
|
};
|
|
@@ -251,7 +251,7 @@ const it = fe({
|
|
|
251
251
|
cols: {}
|
|
252
252
|
},
|
|
253
253
|
setup(t) {
|
|
254
|
-
const
|
|
254
|
+
const m = ce("$EsPlus", {}), h = fe({
|
|
255
255
|
props: {
|
|
256
256
|
row: { type: Object, default: () => ({}) },
|
|
257
257
|
index: { type: Number, default: 0 },
|
|
@@ -281,7 +281,7 @@ const it = fe({
|
|
|
281
281
|
for (let y = 1; y < i.length; y++)
|
|
282
282
|
d += e(i[y]);
|
|
283
283
|
o[d] = n[r];
|
|
284
|
-
} else r === "key" ? (o.prop = n[r], o[r] = n[r]) : r === "label" && n.labelKey && typeof
|
|
284
|
+
} else r === "key" ? (o.prop = n[r], o[r] = n[r]) : r === "label" && n.labelKey && typeof m.t == "function" ? o.label = m.t(n.labelKey) : o[r] = n[r];
|
|
285
285
|
return o.align || (o.align = "center"), o;
|
|
286
286
|
};
|
|
287
287
|
return (n, o) => t.cols.groups && Array.isArray(t.cols.groups) ? (b(), T(p(Ee), Fe(J({ key: 0 }, a(t.cols))), {
|
|
@@ -346,7 +346,7 @@ const it = fe({
|
|
|
346
346
|
instance: {}
|
|
347
347
|
},
|
|
348
348
|
setup(t) {
|
|
349
|
-
const
|
|
349
|
+
const m = t, h = (c) => {
|
|
350
350
|
if (!c.render || typeof c.render != "function") return null;
|
|
351
351
|
try {
|
|
352
352
|
return c.render();
|
|
@@ -364,7 +364,7 @@ const it = fe({
|
|
|
364
364
|
}, n = (c) => c.map((f) => {
|
|
365
365
|
const l = { ...f };
|
|
366
366
|
return a([], f.permissionValue) ? typeof f.isHide == "function" ? l.isHide = f.isHide() : l.isHide = f.isHide || !1 : l.isHide = !0, l;
|
|
367
|
-
}), o = w(() => n((
|
|
367
|
+
}), o = w(() => n((m.btnConfig || []).filter((c) => c.code === 1)).filter((c) => !c.isHide)), r = w(() => n((m.btnConfig || []).filter((c) => c.code === 2)).filter((c) => !c.isHide)), i = w(() => m.leftText || o.value.length > 0 || r.value.length > 0), d = (c) => typeof c.disabled == "function" ? c.disabled() : c.disabled || !1, y = (c) => ({
|
|
368
368
|
display: "inline-block",
|
|
369
369
|
marginLeft: c !== 0 ? "8px" : "0px"
|
|
370
370
|
});
|
|
@@ -432,22 +432,22 @@ const it = fe({
|
|
|
432
432
|
])
|
|
433
433
|
])) : G("", !0);
|
|
434
434
|
}
|
|
435
|
-
}), De = (t,
|
|
435
|
+
}), De = (t, m) => {
|
|
436
436
|
const h = t.__vccOpts || t;
|
|
437
|
-
for (const [e, a] of
|
|
437
|
+
for (const [e, a] of m)
|
|
438
438
|
h[e] = a;
|
|
439
439
|
return h;
|
|
440
440
|
}, In = /* @__PURE__ */ De(Sn, [["__scopeId", "data-v-aa1d960e"]]);
|
|
441
|
-
function wn(t,
|
|
441
|
+
function wn(t, m, h, e, a) {
|
|
442
442
|
const n = V(400), o = V(null), r = (f) => Math.sign(f) === -1, i = () => {
|
|
443
443
|
var E, R, k, H;
|
|
444
|
-
const f = ((E =
|
|
444
|
+
const f = ((E = m.value) == null ? void 0 : E.offsetHeight) || 0, l = ((k = (R = h.value) == null ? void 0 : R.$el) == null ? void 0 : k.offsetHeight) || 0, S = ((H = e.value) == null ? void 0 : H.offsetHeight) || 0;
|
|
445
445
|
return Math.round(S + f + l);
|
|
446
446
|
}, d = () => {
|
|
447
447
|
var C, z, A, $, ee;
|
|
448
448
|
const f = t.value;
|
|
449
449
|
if (!f) return;
|
|
450
|
-
const l = typeof a.tabHeight == "number" ? a.tabHeight : a.heightType === "height" ? ((C = f.parentElement) == null ? void 0 : C.offsetHeight) || f.offsetHeight : parseInt(a.tabHeight, 10) || 450, S = isNaN(l) ? 450 : l, E = S - i(), R = r(E) ? i() + 300 : S, k = ((z = e.value) == null ? void 0 : z.offsetHeight) || 0, H = ((A =
|
|
450
|
+
const l = typeof a.tabHeight == "number" ? a.tabHeight : a.heightType === "height" ? ((C = f.parentElement) == null ? void 0 : C.offsetHeight) || f.offsetHeight : parseInt(a.tabHeight, 10) || 450, S = isNaN(l) ? 450 : l, E = S - i(), R = r(E) ? i() + 300 : S, k = ((z = e.value) == null ? void 0 : z.offsetHeight) || 0, H = ((A = m.value) == null ? void 0 : A.offsetHeight) || 0, q = ((ee = ($ = h.value) == null ? void 0 : $.$el) == null ? void 0 : ee.offsetHeight) || 0, W = Math.floor(R) - Math.round(k + H + q);
|
|
451
451
|
n.value !== W && (n.value = W);
|
|
452
452
|
}, y = () => {
|
|
453
453
|
qe(() => {
|
|
@@ -458,7 +458,7 @@ function wn(t, g, h, e, a) {
|
|
|
458
458
|
});
|
|
459
459
|
});
|
|
460
460
|
const f = a.heightType === "height" && t.value.parentElement || t.value;
|
|
461
|
-
o.value.observe(f),
|
|
461
|
+
o.value.observe(f), m.value && o.value.observe(m.value);
|
|
462
462
|
});
|
|
463
463
|
}, c = () => {
|
|
464
464
|
o.value && (o.value.disconnect(), o.value = null);
|
|
@@ -471,7 +471,7 @@ function wn(t, g, h, e, a) {
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
function Fn(t) {
|
|
474
|
-
const
|
|
474
|
+
const m = V([]), h = V({}), e = V(!1), a = (i, d) => {
|
|
475
475
|
if (t) {
|
|
476
476
|
if (e.value) return;
|
|
477
477
|
h.value[d] = i;
|
|
@@ -482,14 +482,14 @@ function Fn(t) {
|
|
|
482
482
|
const S = l[t];
|
|
483
483
|
S && !c[S] && (y.push(l), c[S] = !0);
|
|
484
484
|
});
|
|
485
|
-
}),
|
|
485
|
+
}), m.value = y;
|
|
486
486
|
} else
|
|
487
|
-
|
|
487
|
+
m.value = i;
|
|
488
488
|
}, n = (i, d) => {
|
|
489
|
-
if (i != null && i.length && t &&
|
|
489
|
+
if (i != null && i.length && t && m.value.length) {
|
|
490
490
|
const y = [];
|
|
491
491
|
i.forEach((c) => {
|
|
492
|
-
|
|
492
|
+
m.value.forEach((f) => {
|
|
493
493
|
c[t] === f[t] && y.push(c);
|
|
494
494
|
});
|
|
495
495
|
}), y.forEach((c) => {
|
|
@@ -499,14 +499,14 @@ function Fn(t) {
|
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
501
|
return {
|
|
502
|
-
multipleSelection:
|
|
502
|
+
multipleSelection: m,
|
|
503
503
|
selectionsByPage: h,
|
|
504
504
|
isInitChange: e,
|
|
505
505
|
handleSelectionChange: a,
|
|
506
506
|
handleSelectData: n,
|
|
507
507
|
clearAllSelection: (i) => {
|
|
508
508
|
var d;
|
|
509
|
-
|
|
509
|
+
m.value = [], h.value = {}, (d = i.clearSelection) == null || d.call(i);
|
|
510
510
|
},
|
|
511
511
|
initSelection: (i, d) => {
|
|
512
512
|
if (e.value = !0, !d) {
|
|
@@ -522,16 +522,16 @@ function Fn(t) {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toString.call(t) === "[object Object]", yt = (t,
|
|
525
|
+
const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toString.call(t) === "[object Object]", yt = (t, m, h = 0) => {
|
|
526
526
|
if (h > 3 || !oe(t)) return;
|
|
527
|
-
const e = Object.prototype.hasOwnProperty.call(t,
|
|
527
|
+
const e = Object.prototype.hasOwnProperty.call(t, m) ? t[m] : void 0;
|
|
528
528
|
for (const a in t)
|
|
529
529
|
if (Object.prototype.hasOwnProperty.call(t, a) && oe(t[a])) {
|
|
530
|
-
const n = yt(t[a],
|
|
530
|
+
const n = yt(t[a], m, h + 1);
|
|
531
531
|
if (n !== void 0) return n;
|
|
532
532
|
}
|
|
533
533
|
return e;
|
|
534
|
-
}, Pn = (t) => t.then((
|
|
534
|
+
}, Pn = (t) => t.then((m) => ({ status: "fulfilled", value: m })).catch((m) => ({ status: "rejected", reason: m })), Rn = { class: "table_containers" }, On = {
|
|
535
535
|
"element-loading-background": "rgba(0, 0, 0, 0.03)",
|
|
536
536
|
"element-loading-text": "努力加载中...",
|
|
537
537
|
class: "page-loading-con tableContainer"
|
|
@@ -557,7 +557,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
557
557
|
pagination: { default: () => ({}) }
|
|
558
558
|
},
|
|
559
559
|
emits: ["update:dataSource", "update:pagination", "pagination-current-change", "size-change", "change-table-sort"],
|
|
560
|
-
setup(t, { expose:
|
|
560
|
+
setup(t, { expose: m, emit: h }) {
|
|
561
561
|
const e = t, a = h, n = Ot(), o = V(Ve), r = ce("elLocale", null);
|
|
562
562
|
r && (o.value = r);
|
|
563
563
|
const i = $e() || {}, d = ce("$esPlusTable", {}), y = ce("$EsPlus", {}), c = (s) => {
|
|
@@ -734,7 +734,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
734
734
|
const K = s[B] ?? yt(s, B);
|
|
735
735
|
I === "tableData" ? H.value = Array.isArray(K) ? K : [] : O.value[I] = typeof K == "number" ? K : parseInt(K, 10) || 0;
|
|
736
736
|
});
|
|
737
|
-
},
|
|
737
|
+
}, g = (s, x = {}) => {
|
|
738
738
|
var kt, xt;
|
|
739
739
|
const { success: I, fail: B } = x, _ = ((kt = e.options) == null ? void 0 : kt.apiParams) || {}, K = ((xt = e.options) == null ? void 0 : xt.actionUrl) || _.url || "";
|
|
740
740
|
if (!K || !Object.keys(_).length) return;
|
|
@@ -761,7 +761,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
761
761
|
};
|
|
762
762
|
e.options.httpRequest ? bt(e.options.httpRequest) : d.$httpRequest && bt(d.$httpRequest);
|
|
763
763
|
}, j = (s) => new Promise((x, I) => {
|
|
764
|
-
O.value.current = 1,
|
|
764
|
+
O.value.current = 1, g(
|
|
765
765
|
{ ...s || {}, pageIndex: O.value.current, pageSize: O.value.pageSize },
|
|
766
766
|
{
|
|
767
767
|
success: (B) => {
|
|
@@ -773,7 +773,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
773
773
|
}
|
|
774
774
|
);
|
|
775
775
|
}), F = () => {
|
|
776
|
-
|
|
776
|
+
g(
|
|
777
777
|
{ pageIndex: O.value.current, pageSize: O.value.pageSize },
|
|
778
778
|
{
|
|
779
779
|
success: (s) => {
|
|
@@ -782,7 +782,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
782
782
|
}
|
|
783
783
|
);
|
|
784
784
|
}, M = () => {
|
|
785
|
-
|
|
785
|
+
g(
|
|
786
786
|
{ pageIndex: O.value.current, pageSize: O.value.pageSize },
|
|
787
787
|
{
|
|
788
788
|
success: (s) => {
|
|
@@ -822,7 +822,7 @@ const oe = (t) => typeof t == "object" && t !== null && Object.prototype.toStrin
|
|
|
822
822
|
clearAllSelection: () => Ke(f.value),
|
|
823
823
|
refsInstance: () => f.value,
|
|
824
824
|
httpRequestInstance: j
|
|
825
|
-
})),
|
|
825
|
+
})), m({
|
|
826
826
|
httpRequestInstance: j,
|
|
827
827
|
getSelectionRows: () => Ne.value,
|
|
828
828
|
clearSelection: () => {
|
|
@@ -977,29 +977,29 @@ re.install = function(t) {
|
|
|
977
977
|
};
|
|
978
978
|
re.isPlugin = !0;
|
|
979
979
|
re.Plugin = {
|
|
980
|
-
install(t,
|
|
980
|
+
install(t, m = {}) {
|
|
981
981
|
t.provide("$esPlusTable", {
|
|
982
|
-
...
|
|
983
|
-
}), t.component(re.name, { ...re, methods: { ...re.methods, ...
|
|
982
|
+
...m.methods || {}
|
|
983
|
+
}), t.component(re.name, { ...re, methods: { ...re.methods, ...m.methods || {} } });
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
|
-
const se = (t,
|
|
987
|
-
const h =
|
|
986
|
+
const se = (t, m) => {
|
|
987
|
+
const h = m.split(/\.|\[|\]/).filter(Boolean);
|
|
988
988
|
let e = t;
|
|
989
989
|
for (const a of h) {
|
|
990
990
|
if (e == null) return;
|
|
991
991
|
e = e[a];
|
|
992
992
|
}
|
|
993
993
|
return e;
|
|
994
|
-
}, ie = (t,
|
|
995
|
-
const e =
|
|
994
|
+
}, ie = (t, m, h) => {
|
|
995
|
+
const e = m.split(/\.|\[|\]/).filter(Boolean), a = e.pop();
|
|
996
996
|
let n = t;
|
|
997
997
|
for (const o of e)
|
|
998
998
|
n[o] == null && (n[o] = {}), n = n[o];
|
|
999
999
|
a && (n[a] = h);
|
|
1000
1000
|
};
|
|
1001
1001
|
function Ln() {
|
|
1002
|
-
return { formInputComponents: (
|
|
1002
|
+
return { formInputComponents: (m) => (/* @__PURE__ */ new Map([
|
|
1003
1003
|
[
|
|
1004
1004
|
"Input",
|
|
1005
1005
|
(e, a, { row: n }) => e(dt, {
|
|
@@ -1184,10 +1184,10 @@ function Ln() {
|
|
|
1184
1184
|
})), e(an, f, l);
|
|
1185
1185
|
}
|
|
1186
1186
|
]
|
|
1187
|
-
])).get(
|
|
1187
|
+
])).get(m.formtype) || (() => null) };
|
|
1188
1188
|
}
|
|
1189
1189
|
function Tn(t) {
|
|
1190
|
-
const
|
|
1190
|
+
const m = V(!1), h = w(() => {
|
|
1191
1191
|
var c, f;
|
|
1192
1192
|
return ((f = (c = t.layoutFormProps) == null ? void 0 : c.fromLayProps) == null ? void 0 : f.isBtnHidden) ?? !1;
|
|
1193
1193
|
}), e = w(() => {
|
|
@@ -1239,11 +1239,11 @@ function Tn(t) {
|
|
|
1239
1239
|
var C;
|
|
1240
1240
|
return q + (((C = t.formItemList[W]) == null ? void 0 : C.span) || 6);
|
|
1241
1241
|
}, 0);
|
|
1242
|
-
return !
|
|
1242
|
+
return !m.value && S <= R ? R : 24;
|
|
1243
1243
|
}), d = w(() => {
|
|
1244
1244
|
var l, S;
|
|
1245
1245
|
const c = ((S = (l = t.layoutFormProps) == null ? void 0 : l.fromLayProps) == null ? void 0 : S.minFoldRows) || 0, { columnNodeIndex: f } = o.value;
|
|
1246
|
-
if (
|
|
1246
|
+
if (m.value) {
|
|
1247
1247
|
const E = f[c - 1] ?? f[f.length - 1] ?? 9999;
|
|
1248
1248
|
return t.formItemList.map((R, k) => ({
|
|
1249
1249
|
...R,
|
|
@@ -1255,11 +1255,11 @@ function Tn(t) {
|
|
|
1255
1255
|
return be(
|
|
1256
1256
|
r,
|
|
1257
1257
|
(c) => {
|
|
1258
|
-
|
|
1258
|
+
m.value = c;
|
|
1259
1259
|
},
|
|
1260
1260
|
{ immediate: !0 }
|
|
1261
1261
|
), {
|
|
1262
|
-
folded:
|
|
1262
|
+
folded: m,
|
|
1263
1263
|
isBtnHidden: h,
|
|
1264
1264
|
rowLayout: e,
|
|
1265
1265
|
formLayout: a,
|
|
@@ -1269,12 +1269,12 @@ function Tn(t) {
|
|
|
1269
1269
|
getBtnColSpan: i,
|
|
1270
1270
|
formItem: d,
|
|
1271
1271
|
changeFolded: () => {
|
|
1272
|
-
|
|
1272
|
+
m.value = !m.value;
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
1276
|
function Hn(t) {
|
|
1277
|
-
const
|
|
1277
|
+
const m = (r, i = {}, d) => {
|
|
1278
1278
|
const { success: y, fail: c, ...f } = i || {};
|
|
1279
1279
|
if (oe(i.apiParams) && Object.keys(i.apiParams).length && i.apiParams.url) {
|
|
1280
1280
|
const l = { ...r, ...Le(p(i.apiParams.model || {})) }, S = { ...Le(p(i.apiParams.options || {})) };
|
|
@@ -1332,7 +1332,7 @@ function Hn(t) {
|
|
|
1332
1332
|
return f;
|
|
1333
1333
|
}, n = (r, i, d, y) => new Promise((c, f) => {
|
|
1334
1334
|
qe(() => {
|
|
1335
|
-
|
|
1335
|
+
m(
|
|
1336
1336
|
{ pageIndex: 1, pageSize: 1e3, ...r || {} },
|
|
1337
1337
|
{
|
|
1338
1338
|
...i || {},
|
|
@@ -1348,7 +1348,7 @@ function Hn(t) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
});
|
|
1350
1350
|
return {
|
|
1351
|
-
queryTableListMethod:
|
|
1351
|
+
queryTableListMethod: m,
|
|
1352
1352
|
getEveryFormQueryField: async (r, i) => {
|
|
1353
1353
|
try {
|
|
1354
1354
|
if (!Array.isArray(r)) return [];
|
|
@@ -1383,17 +1383,17 @@ function Hn(t) {
|
|
|
1383
1383
|
configFormField: e
|
|
1384
1384
|
};
|
|
1385
1385
|
}
|
|
1386
|
-
const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, Pt = (t,
|
|
1386
|
+
const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, Pt = (t, m, h, e) => {
|
|
1387
1387
|
var o;
|
|
1388
|
-
const a = Y(t,
|
|
1388
|
+
const a = Y(t, m);
|
|
1389
1389
|
if (e) {
|
|
1390
1390
|
a.appContext = e, a.appContext.provides || (a.appContext.provides = {});
|
|
1391
1391
|
const r = (o = e.provides) == null ? void 0 : o.elLocale;
|
|
1392
1392
|
r && (a.appContext.provides.elLocale = r), a.appContext.config || (a.appContext.config = {}), a.appContext.config.globalProperties || (a.appContext.config.globalProperties = {});
|
|
1393
1393
|
}
|
|
1394
|
-
return ut(a, h), Dn(
|
|
1395
|
-
}, He = (t,
|
|
1396
|
-
if (t = t || Ae, Object.assign({ onlyInstance: !1 },
|
|
1394
|
+
return ut(a, h), Dn(m.appendTo).appendChild(h), a;
|
|
1395
|
+
}, He = (t, m = {}) => {
|
|
1396
|
+
if (t = t || Ae, Object.assign({ onlyInstance: !1 }, m).onlyInstance) {
|
|
1397
1397
|
const e = $e(), a = (e == null ? void 0 : e.appContext) || null, n = document.createElement("div"), o = () => {
|
|
1398
1398
|
ut(null, n), n.remove();
|
|
1399
1399
|
}, r = (i) => {
|
|
@@ -1448,7 +1448,7 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1448
1448
|
fieldFieldOutput: {}
|
|
1449
1449
|
},
|
|
1450
1450
|
emits: ["confirm", "reset"],
|
|
1451
|
-
setup(t, { expose:
|
|
1451
|
+
setup(t, { expose: m, emit: h }) {
|
|
1452
1452
|
var _e;
|
|
1453
1453
|
const e = t, a = $e(), n = ce("$esPlusForm", {}), o = ce("$EsPlus", {}), r = (u) => {
|
|
1454
1454
|
if (!u) return !0;
|
|
@@ -1460,8 +1460,8 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1460
1460
|
const u = a == null ? void 0 : a.ctx;
|
|
1461
1461
|
return typeof (u == null ? void 0 : u.getTableInstantce) == "function" ? u == null ? void 0 : u.getTableInstantce() : u == null ? void 0 : u.getTableInstantce;
|
|
1462
1462
|
}), c = w(() => !!(y.value && Object.keys(y.value).length)), f = Object.fromEntries(Object.entries(ft)), l = (u) => u ? f[u] || u : void 0, S = (u) => {
|
|
1463
|
-
const { icon: v, ...
|
|
1464
|
-
return
|
|
1463
|
+
const { icon: v, ...g } = u;
|
|
1464
|
+
return g;
|
|
1465
1465
|
}, E = V(null), R = V({}), k = V(e.formItemList), H = (u) => {
|
|
1466
1466
|
u && (E.value = u);
|
|
1467
1467
|
}, { formInputComponents: q } = Ln(), W = (n == null ? void 0 : n.$httpRequest) || void 0, C = e.fieldFieldOutput || (n == null ? void 0 : n.fieldFieldOutput), { getEveryFormQueryField: z } = Hn(W), A = V(((_e = e.layoutFormProps) == null ? void 0 : _e.fromLayProps) || {}), $ = w(() => ({
|
|
@@ -1473,8 +1473,8 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1473
1473
|
be(
|
|
1474
1474
|
() => e.formItemList,
|
|
1475
1475
|
async (u) => {
|
|
1476
|
-
const v = Array.isArray(u) ? u : [],
|
|
1477
|
-
if (!
|
|
1476
|
+
const v = Array.isArray(u) ? u : [], g = v.filter((F) => F && F.isInitRun !== !1 && !ee.value.has(F.prop));
|
|
1477
|
+
if (!g.length) {
|
|
1478
1478
|
k.value = v.map((F) => {
|
|
1479
1479
|
var ne;
|
|
1480
1480
|
if (!F) return null;
|
|
@@ -1483,8 +1483,8 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1483
1483
|
}).filter((F) => !!F);
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
|
-
const j = await z(
|
|
1487
|
-
|
|
1486
|
+
const j = await z(g, C);
|
|
1487
|
+
g.forEach((F) => ee.value.add(F.prop)), k.value = v.map((F) => {
|
|
1488
1488
|
var Se;
|
|
1489
1489
|
if (!F) return null;
|
|
1490
1490
|
const M = j.find((Ie) => Ie && Ie.prop === F.prop), ne = k.value.find((Ie) => Ie && Ie.prop === F.prop);
|
|
@@ -1521,15 +1521,15 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1521
1521
|
colRightBtn: e.configBtn.filter((u) => u.direction === "right" || !u.direction),
|
|
1522
1522
|
colLeftBtn: e.configBtn.filter((u) => u.direction === "left")
|
|
1523
1523
|
})), Ze = w(() => typeof e.renderBtn == "function"), et = async (u) => {
|
|
1524
|
-
var v,
|
|
1525
|
-
u.triggerEvent && ["query", "rest"].includes(u.key || "") ? tt(e.model, E.value, u.key) : (u.key === "rest" && E.value && E.value.resetFields(), (
|
|
1526
|
-
}, tt = async (u, v,
|
|
1524
|
+
var v, g;
|
|
1525
|
+
u.triggerEvent && ["query", "rest"].includes(u.key || "") ? tt(e.model, E.value, u.key) : (u.key === "rest" && E.value && E.value.resetFields(), (g = u.click) == null || g.call(u, e.model, E.value, (v = y.value) == null ? void 0 : v.httpRequestInstance));
|
|
1526
|
+
}, tt = async (u, v, g) => {
|
|
1527
1527
|
var j, F, M, ne;
|
|
1528
|
-
|
|
1528
|
+
g === "query" ? c.value && ((F = (j = y.value) == null ? void 0 : j.httpRequestInstance) == null || F.call(j, u)) : g === "rest" && v && (c.value && ((ne = (M = y.value) == null ? void 0 : M.httpRequestInstance) == null || ne.call(M, u)), v.resetFields());
|
|
1529
1529
|
}, nt = (u) => {
|
|
1530
1530
|
if (c.value) {
|
|
1531
|
-
const { style: v, ...
|
|
1532
|
-
return { style: { marginBottom: "10px", ...v }, ...
|
|
1531
|
+
const { style: v, ...g } = u;
|
|
1532
|
+
return { style: { marginBottom: "10px", ...v }, ...g };
|
|
1533
1533
|
}
|
|
1534
1534
|
return u;
|
|
1535
1535
|
}, Re = (() => {
|
|
@@ -1555,10 +1555,10 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1555
1555
|
Q(dt, {
|
|
1556
1556
|
size: "small",
|
|
1557
1557
|
maxlength: 3,
|
|
1558
|
-
formatter: (
|
|
1558
|
+
formatter: (g) => g.replace(/^0|[^0-9]/g, ""),
|
|
1559
1559
|
modelValue: v.width,
|
|
1560
|
-
"onUpdate:modelValue": (
|
|
1561
|
-
v.width =
|
|
1560
|
+
"onUpdate:modelValue": (g) => {
|
|
1561
|
+
v.width = g;
|
|
1562
1562
|
}
|
|
1563
1563
|
}, {
|
|
1564
1564
|
prepend: () => "宽度",
|
|
@@ -1580,10 +1580,10 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1580
1580
|
Q(dt, {
|
|
1581
1581
|
size: "small",
|
|
1582
1582
|
maxlength: 3,
|
|
1583
|
-
formatter: (
|
|
1583
|
+
formatter: (g) => g.replace(/^0|[^0-9]/g, ""),
|
|
1584
1584
|
modelValue: v.width,
|
|
1585
|
-
"onUpdate:modelValue": (
|
|
1586
|
-
v.width =
|
|
1585
|
+
"onUpdate:modelValue": (g) => {
|
|
1586
|
+
v.width = g;
|
|
1587
1587
|
}
|
|
1588
1588
|
}, {
|
|
1589
1589
|
prepend: () => "宽度",
|
|
@@ -1622,13 +1622,13 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1622
1622
|
{
|
|
1623
1623
|
name: "取消",
|
|
1624
1624
|
icon: "Close",
|
|
1625
|
-
click: (v, { close:
|
|
1625
|
+
click: (v, { close: g }) => g()
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
1628
|
name: "确认",
|
|
1629
1629
|
type: "primary",
|
|
1630
1630
|
icon: "Check",
|
|
1631
|
-
click: (v, { close:
|
|
1631
|
+
click: (v, { close: g }) => g()
|
|
1632
1632
|
}
|
|
1633
1633
|
]
|
|
1634
1634
|
});
|
|
@@ -1658,7 +1658,7 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1658
1658
|
setup(u) {
|
|
1659
1659
|
return () => {
|
|
1660
1660
|
var M;
|
|
1661
|
-
const { formItemList: v, formModel:
|
|
1661
|
+
const { formItemList: v, formModel: g, row: j } = u, F = ((M = u.render) == null ? void 0 : M.call(u, j, g, v, Q)) || "";
|
|
1662
1662
|
return typeof F == "string" ? Q("span", F) : F;
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
@@ -1674,14 +1674,14 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1674
1674
|
setup(u) {
|
|
1675
1675
|
return () => {
|
|
1676
1676
|
var M;
|
|
1677
|
-
const { row: v, index:
|
|
1677
|
+
const { row: v, index: g, model: j } = u, F = ((M = u.render) == null ? void 0 : M.call(u, Q, j, { row: v, index: g })) || "";
|
|
1678
1678
|
return typeof F == "string" ? Q("span", F) : F;
|
|
1679
1679
|
};
|
|
1680
1680
|
}
|
|
1681
1681
|
}), Ke = async (u) => {
|
|
1682
|
-
const
|
|
1683
|
-
if (!
|
|
1684
|
-
(await z(
|
|
1682
|
+
const g = pe.value.filter((F) => F && u.includes(F.prop));
|
|
1683
|
+
if (!g.length) return;
|
|
1684
|
+
(await z(g, C)).forEach((F) => {
|
|
1685
1685
|
if (!F) return;
|
|
1686
1686
|
const M = k.value.findIndex((ne) => ne && ne.prop === F.prop);
|
|
1687
1687
|
M !== -1 && (k.value[M] = {
|
|
@@ -1690,7 +1690,7 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1690
1690
|
});
|
|
1691
1691
|
});
|
|
1692
1692
|
}, Ce = () => E.value;
|
|
1693
|
-
return
|
|
1693
|
+
return m({
|
|
1694
1694
|
formItmeRequestInstance: Ke,
|
|
1695
1695
|
getFormRef: Ce,
|
|
1696
1696
|
validate: () => {
|
|
@@ -1718,29 +1718,29 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1718
1718
|
U("div", zn, [
|
|
1719
1719
|
Y(p(rn), Fe(Bt(p(Z))), {
|
|
1720
1720
|
default: P(() => [
|
|
1721
|
-
(b(!0), D(X, null, ge(p(he), (
|
|
1722
|
-
key:
|
|
1723
|
-
span:
|
|
1721
|
+
(b(!0), D(X, null, ge(p(he), (g, j) => gt((b(), T(p(Ct), {
|
|
1722
|
+
key: g.prop,
|
|
1723
|
+
span: g.span || 6
|
|
1724
1724
|
}, {
|
|
1725
1725
|
default: P(() => [
|
|
1726
1726
|
Y(p(Qe), J({
|
|
1727
|
-
label: i(
|
|
1728
|
-
}, { ref_for: !0 }, nt(
|
|
1729
|
-
prop:
|
|
1727
|
+
label: i(g)
|
|
1728
|
+
}, { ref_for: !0 }, nt(g.formItemOptions || {}), {
|
|
1729
|
+
prop: g.prop,
|
|
1730
1730
|
onClick: qt(() => {
|
|
1731
1731
|
}, ["stop"])
|
|
1732
1732
|
}), {
|
|
1733
1733
|
default: P(() => [
|
|
1734
|
-
|
|
1734
|
+
g.formtype ? (b(), T(p(Me), {
|
|
1735
1735
|
key: 0,
|
|
1736
|
-
row:
|
|
1737
|
-
render: p(q)(
|
|
1736
|
+
row: g,
|
|
1737
|
+
render: p(q)(g),
|
|
1738
1738
|
index: j,
|
|
1739
1739
|
model: t.model
|
|
1740
1740
|
}, null, 8, ["row", "render", "index", "model"])) : (b(), T(p(Me), {
|
|
1741
1741
|
key: 1,
|
|
1742
|
-
row:
|
|
1743
|
-
render:
|
|
1742
|
+
row: g,
|
|
1743
|
+
render: g.render,
|
|
1744
1744
|
index: j,
|
|
1745
1745
|
model: t.model
|
|
1746
1746
|
}, null, 8, ["row", "render", "index", "model"]))
|
|
@@ -1750,7 +1750,7 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 2
|
|
1752
1752
|
}, 1032, ["span"])), [
|
|
1753
|
-
[Lt, !(
|
|
1753
|
+
[Lt, !(g != null && g.isFold)]
|
|
1754
1754
|
])), 128)),
|
|
1755
1755
|
p(L) ? G("", !0) : (b(), D(X, { key: 0 }, [
|
|
1756
1756
|
Ze.value ? (b(), T(p(st), {
|
|
@@ -1771,22 +1771,22 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1771
1771
|
class: "btn-formItem"
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: P(() => [
|
|
1774
|
-
(b(!0), D(X, null, ge(je.value.colLeftBtn, (
|
|
1775
|
-
key:
|
|
1774
|
+
(b(!0), D(X, null, ge(je.value.colLeftBtn, (g, j) => (b(), D(X, {
|
|
1775
|
+
key: g.key || j
|
|
1776
1776
|
}, [
|
|
1777
|
-
r(
|
|
1777
|
+
r(g.permissionValue) ? (b(), T(p(de), J({
|
|
1778
1778
|
key: 0,
|
|
1779
1779
|
ref_for: !0
|
|
1780
|
-
}, S(
|
|
1781
|
-
icon: l(
|
|
1782
|
-
disabled: typeof
|
|
1780
|
+
}, S(g), {
|
|
1781
|
+
icon: l(g.icon),
|
|
1782
|
+
disabled: typeof g.disabled == "function" ? g.disabled() || !1 : g.disabled || !1,
|
|
1783
1783
|
onClick: () => {
|
|
1784
1784
|
var F;
|
|
1785
|
-
return
|
|
1785
|
+
return g.click(t.model, E.value, (F = y.value) == null ? void 0 : F.httpRequestInstance);
|
|
1786
1786
|
}
|
|
1787
1787
|
}), {
|
|
1788
1788
|
default: P(() => [
|
|
1789
|
-
ae(me(
|
|
1789
|
+
ae(me(g.name), 1)
|
|
1790
1790
|
]),
|
|
1791
1791
|
_: 2
|
|
1792
1792
|
}, 1040, ["icon", "disabled", "onClick"])) : G("", !0)
|
|
@@ -1801,19 +1801,19 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1801
1801
|
class: "btn-formItem"
|
|
1802
1802
|
}, {
|
|
1803
1803
|
default: P(() => [
|
|
1804
|
-
(b(!0), D(X, null, ge(je.value.colRightBtn, (
|
|
1805
|
-
key:
|
|
1804
|
+
(b(!0), D(X, null, ge(je.value.colRightBtn, (g, j) => (b(), D(X, {
|
|
1805
|
+
key: g.key || j
|
|
1806
1806
|
}, [
|
|
1807
|
-
r(
|
|
1807
|
+
r(g.permissionValue) ? (b(), T(p(de), J({
|
|
1808
1808
|
key: 0,
|
|
1809
1809
|
ref_for: !0
|
|
1810
|
-
}, S(
|
|
1811
|
-
icon: l(
|
|
1812
|
-
disabled: typeof
|
|
1813
|
-
onClick: () => et(
|
|
1810
|
+
}, S(g), {
|
|
1811
|
+
icon: l(g.icon),
|
|
1812
|
+
disabled: typeof g.disabled == "function" ? g.disabled() || !1 : g.disabled || !1,
|
|
1813
|
+
onClick: () => et(g)
|
|
1814
1814
|
}), {
|
|
1815
1815
|
default: P(() => [
|
|
1816
|
-
ae(me(
|
|
1816
|
+
ae(me(g.name), 1)
|
|
1817
1817
|
]),
|
|
1818
1818
|
_: 2
|
|
1819
1819
|
}, 1040, ["icon", "disabled", "onClick"])) : G("", !0)
|
|
@@ -1886,22 +1886,22 @@ const Dn = (t) => typeof t == "string" ? document.querySelector(t) || document.b
|
|
|
1886
1886
|
class: "buttonOperate",
|
|
1887
1887
|
style: ke({ "text-align": p(ye) === 24 ? "right" : "left" })
|
|
1888
1888
|
}, [
|
|
1889
|
-
t.configBtn.length ? (b(!0), D(X, { key: 0 }, ge(t.configBtn, (
|
|
1890
|
-
key:
|
|
1889
|
+
t.configBtn.length ? (b(!0), D(X, { key: 0 }, ge(t.configBtn, (g, j) => (b(), D(X, {
|
|
1890
|
+
key: g.key || j
|
|
1891
1891
|
}, [
|
|
1892
|
-
r(
|
|
1892
|
+
r(g.permissionValue) ? (b(), T(p(de), J({
|
|
1893
1893
|
key: 0,
|
|
1894
1894
|
ref_for: !0
|
|
1895
|
-
}, S(
|
|
1896
|
-
icon: l(
|
|
1897
|
-
disabled: typeof
|
|
1895
|
+
}, S(g), {
|
|
1896
|
+
icon: l(g.icon),
|
|
1897
|
+
disabled: typeof g.disabled == "function" ? g.disabled() || !1 : g.disabled || !1,
|
|
1898
1898
|
onClick: () => {
|
|
1899
1899
|
var F;
|
|
1900
|
-
return
|
|
1900
|
+
return g == null ? void 0 : g.click(t.model, E.value, (F = y.value) == null ? void 0 : F.httpRequestInstance);
|
|
1901
1901
|
}
|
|
1902
1902
|
}), {
|
|
1903
1903
|
default: P(() => [
|
|
1904
|
-
ae(me(
|
|
1904
|
+
ae(me(g.name), 1)
|
|
1905
1905
|
]),
|
|
1906
1906
|
_: 2
|
|
1907
1907
|
}, 1040, ["icon", "disabled", "onClick"])) : G("", !0)
|
|
@@ -1980,11 +1980,11 @@ ue.install = function(t) {
|
|
|
1980
1980
|
};
|
|
1981
1981
|
ue.isPlugin = !0;
|
|
1982
1982
|
ue.Plugin = {
|
|
1983
|
-
install(t,
|
|
1983
|
+
install(t, m = {}) {
|
|
1984
1984
|
t.provide("$esPlusForm", {
|
|
1985
|
-
...
|
|
1985
|
+
...m.methods,
|
|
1986
1986
|
useDialog: () => He()
|
|
1987
|
-
}), t.component(ue.name, { ...ue, methods: { ...ue.methods, ...
|
|
1987
|
+
}), t.component(ue.name, { ...ue, methods: { ...ue.methods, ...m.methods || {}, useDialog: () => He() } });
|
|
1988
1988
|
}
|
|
1989
1989
|
};
|
|
1990
1990
|
const jn = { class: "dp-dialog_wrapper" }, Un = { class: "dialog-title" }, Nn = { class: "btns" }, Mn = {
|
|
@@ -2010,8 +2010,8 @@ const jn = { class: "dp-dialog_wrapper" }, Un = { class: "dialog-title" }, Nn =
|
|
|
2010
2010
|
fullscreen: { type: Boolean }
|
|
2011
2011
|
},
|
|
2012
2012
|
emits: ["update:visible", "closed", "submit"],
|
|
2013
|
-
setup(t, { emit:
|
|
2014
|
-
const h = t, e =
|
|
2013
|
+
setup(t, { emit: m }) {
|
|
2014
|
+
const h = t, e = m, a = Ot(), n = $e(), o = Et(), r = Object.fromEntries(Object.entries(ft).map(([L]) => [L, ft[L]])), i = V(null), d = Je({}), y = V(!1), c = n, f = V(Ve), l = ce("$EsPlus", {}), S = (L) => {
|
|
2015
2015
|
if (!L) return !0;
|
|
2016
2016
|
const Z = l.permission;
|
|
2017
2017
|
return typeof Z == "function" ? Z(L) : !0;
|
|
@@ -2166,7 +2166,7 @@ const Qn = { class: "es-crud-page" }, Wn = /* @__PURE__ */ fe({
|
|
|
2166
2166
|
autoLoad: { type: Boolean, default: !0 }
|
|
2167
2167
|
},
|
|
2168
2168
|
emits: ["query", "add", "edit", "delete", "view", "export", "row-click", "btn-click"],
|
|
2169
|
-
setup(t, { expose:
|
|
2169
|
+
setup(t, { expose: m, emit: h }) {
|
|
2170
2170
|
const e = t, a = h, n = V(null), o = V(null), r = V([]), i = Je({});
|
|
2171
2171
|
be(
|
|
2172
2172
|
() => e.schema.formItems,
|
|
@@ -2279,7 +2279,7 @@ const Qn = { class: "es-crud-page" }, Wn = /* @__PURE__ */ fe({
|
|
|
2279
2279
|
var C, z;
|
|
2280
2280
|
return ((z = (C = n.value) == null ? void 0 : C.getSelectionRows) == null ? void 0 : z.call(C)) || [];
|
|
2281
2281
|
}
|
|
2282
|
-
return
|
|
2282
|
+
return m({
|
|
2283
2283
|
refresh: q,
|
|
2284
2284
|
getSelectedRows: W,
|
|
2285
2285
|
tableRef: n,
|
|
@@ -2328,9 +2328,9 @@ const Gn = ["xlink:href"], Yn = /* @__PURE__ */ fe({
|
|
|
2328
2328
|
className: {}
|
|
2329
2329
|
},
|
|
2330
2330
|
setup(t) {
|
|
2331
|
-
const
|
|
2332
|
-
mask: `url(${
|
|
2333
|
-
"-webkit-mask": `url(${
|
|
2331
|
+
const m = t, h = w(() => o(m.iconClass)), e = w(() => `#icon-${m.iconClass}`), a = w(() => m.className ? "svg-icon " + m.className : "svg-icon"), n = w(() => ({
|
|
2332
|
+
mask: `url(${m.iconClass}) no-repeat 50% 50%`,
|
|
2333
|
+
"-webkit-mask": `url(${m.iconClass}) no-repeat 50% 50%`
|
|
2334
2334
|
})), o = (r) => /^(https?:|mailto:|tel:|open)/.test(r);
|
|
2335
2335
|
return (r, i) => h.value ? (b(), D("div", {
|
|
2336
2336
|
key: 0,
|
|
@@ -2344,18 +2344,18 @@ const Gn = ["xlink:href"], Yn = /* @__PURE__ */ fe({
|
|
|
2344
2344
|
U("use", { "xlink:href": e.value }, null, 8, Gn)
|
|
2345
2345
|
], 2));
|
|
2346
2346
|
}
|
|
2347
|
-
}), Ye = /* @__PURE__ */ De(Yn, [["__scopeId", "data-v-
|
|
2347
|
+
}), Ye = /* @__PURE__ */ De(Yn, [["__scopeId", "data-v-50f5fe3f"]]);
|
|
2348
2348
|
Ye.install = function(t) {
|
|
2349
2349
|
t.component(Ye.name, Ye);
|
|
2350
2350
|
};
|
|
2351
|
-
const Rt = [Ae, ue, re, Ge, Ye], Jn = (t,
|
|
2352
|
-
Rt.forEach((h) => {
|
|
2351
|
+
const Rt = [Ae, ue, re, Ge, Ye], Jn = (t, m = {}) => {
|
|
2352
|
+
m.skipComponentRegistration || Rt.forEach((h) => {
|
|
2353
2353
|
h.name && t.component(h.name, h);
|
|
2354
|
-
}),
|
|
2355
|
-
h.isPlugin && h.Plugin && t.use(h.Plugin,
|
|
2354
|
+
}), m.globalProperties !== !1 && (t.config.globalProperties.$useDialog = He, Rt.forEach((h) => {
|
|
2355
|
+
h.isPlugin && h.Plugin && t.use(h.Plugin, m[h.name] || {});
|
|
2356
2356
|
})), t.provide("$EsPlus", {
|
|
2357
2357
|
useDialog: He,
|
|
2358
|
-
...
|
|
2358
|
+
...m
|
|
2359
2359
|
});
|
|
2360
2360
|
}, to = {
|
|
2361
2361
|
version: fn,
|