@vue-start/pro 0.5.49 → 0.5.50
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/CHANGELOG.md +5 -0
- package/dist/index.es.js +295 -286
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { inject as he, defineComponent as k, provide as pe, createVNode as i, mergeProps as
|
|
2
|
-
import { reduce as ue, get as b, map as F, isString as de, forEach as ae, isFunction as _, filter as G, keys as X, omit as D, isArray as Z, split as Ln, isEmpty as
|
|
1
|
+
import { inject as he, defineComponent as k, provide as pe, createVNode as i, mergeProps as L, isVNode as Ne, Fragment as se, reactive as fe, computed as w, ref as H, createTextVNode as Ae, toRef as Dn, KeepAlive as On, Teleport as jt, h as ke, resolveComponent as Kn } from "vue";
|
|
2
|
+
import { reduce as ue, get as b, map as F, isString as de, forEach as ae, isFunction as _, filter as G, keys as X, omit as D, isArray as Z, split as Ln, isEmpty as Bt, isObject as De, mergeWith as Rn, size as Q, startsWith as Fn, pick as J, mapKeys as $n, set as me, debounce as qt, clone as jn, some as Pe, isBoolean as Oe, has as lt, sortBy as Ut, every as Bn, find as ot, findIndex as qn, findLast as Un, isNumber as st, join as Qe, endsWith as Vt, add as Vn, subtract as zn, head as Hn, cloneDeep as zt } from "lodash";
|
|
3
3
|
import { filter as Ke, tap as He, merge as Wn, Subject as _n } from "rxjs";
|
|
4
4
|
import { map as Gn, tap as Xn } from "rxjs/operators";
|
|
5
|
-
import { mergeStateToData as Yn, mergeStateToData2 as Qn, useEffect as re, useUpdateKey as Je, useRuleState as nt, convertCollection as
|
|
6
|
-
import { useRequestProvide as $e, isDoneRequestActor as dt, isFailedRequestActor as
|
|
7
|
-
import { useDispatchStore as
|
|
8
|
-
import { useRoute as ft, RouterView as ur, useRouter as
|
|
9
|
-
import
|
|
10
|
-
import { css as
|
|
11
|
-
import { mix as
|
|
5
|
+
import { mergeStateToData as Yn, mergeStateToData2 as Qn, useEffect as re, useUpdateKey as Je, useRuleState as nt, convertCollection as Ht, useWatch as Se, useState as Pt, signTableMerge as Jn, useResizeObserver as Ue, findTreeItem as We, jsonToStr as _e, filterCollection as Zn, getMenuTopNameMap as Ct, treeToMap as Wt, findFirstValidMenu as _t, strToJson as ct, decimalFixed as er, thousandDivision as tr, listToMap as nr, setReactiveValue as it, restorePath as Gt, isValidPath as Xt, isPathHasParent as Yt, useSafeActivated as rr } from "@vue-start/hooks";
|
|
6
|
+
import { useRequestProvide as $e, isDoneRequestActor as dt, isFailedRequestActor as Qt } from "@vue-start/request";
|
|
7
|
+
import { useDispatchStore as Jt, useObservableRef as Zt, useStoreConn as en, createStateUse as tn, useStore as ar, shallowEqual as or } from "@vue-start/store";
|
|
8
|
+
import { useRoute as ft, RouterView as ur, useRouter as nn, parseQuery as Mt, stringifyQuery as lr } from "vue-router";
|
|
9
|
+
import xt from "dayjs";
|
|
10
|
+
import { css as It } from "@emotion/css";
|
|
11
|
+
import { mix as rn } from "polished";
|
|
12
12
|
import { Global as sr } from "@vue-start/css";
|
|
13
|
-
const
|
|
13
|
+
const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
14
14
|
color: {
|
|
15
15
|
primary: "#409eff",
|
|
16
16
|
success: "#67c23a",
|
|
@@ -59,7 +59,7 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
59
59
|
convertColumn: { type: Function },
|
|
60
60
|
columnState: { type: Object },
|
|
61
61
|
columnState2: { type: Object }
|
|
62
|
-
}),
|
|
62
|
+
}), Ie = dr(), Ze = (e, t, n) => {
|
|
63
63
|
let o = e;
|
|
64
64
|
return t && (o = Yn(o, t, (r) => ve(r))), n && (o = Qn(o, n, (r) => ve(r))), o;
|
|
65
65
|
}, fr = () => ({
|
|
@@ -114,7 +114,7 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
114
114
|
}
|
|
115
115
|
}), _a = (e = {}) => (t) => {
|
|
116
116
|
t.provide(yt, e);
|
|
117
|
-
},
|
|
117
|
+
}, on = (e) => (t, n) => {
|
|
118
118
|
const { requestSubject$: o } = $e(), r = new Set(F(t, (a) => de(a) ? a : a.name));
|
|
119
119
|
re(() => {
|
|
120
120
|
const a = o.pipe(
|
|
@@ -127,7 +127,7 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
127
127
|
a.unsubscribe();
|
|
128
128
|
};
|
|
129
129
|
}, []);
|
|
130
|
-
}, Ga =
|
|
130
|
+
}, Ga = on(dt), Xa = on(Qt), mr = (e, t, n) => {
|
|
131
131
|
const { requestSubject$: o, dispatchRequest: r } = $e(), a = new Set(F(e, (l) => de(l) ? l : l.name)), u = {};
|
|
132
132
|
re(() => {
|
|
133
133
|
const l = Wn(
|
|
@@ -139,7 +139,7 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
139
139
|
})
|
|
140
140
|
),
|
|
141
141
|
o.pipe(
|
|
142
|
-
Ke(
|
|
142
|
+
Ke(Qt),
|
|
143
143
|
He((s) => {
|
|
144
144
|
var d, m;
|
|
145
145
|
a.has(s.name) && ((d = t.onFailed) == null || d.call(t, s), (m = t.onFinish) == null || m.call(t, s), u[s.name] = void 0);
|
|
@@ -156,14 +156,14 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
156
156
|
var r;
|
|
157
157
|
const o = (r = e.res) == null ? void 0 : r.data;
|
|
158
158
|
return t ? t(o, e) : n ? b(o, n) : o;
|
|
159
|
-
},
|
|
159
|
+
}, un = (e, t) => _(e) ? "meta_" + e(t) : "meta_" + e, Ya = (e, t) => {
|
|
160
160
|
const { registerMetaMap: n, dispatchRequest: o } = oe(), r = b(n, e);
|
|
161
161
|
if (!r)
|
|
162
162
|
return {};
|
|
163
|
-
const a =
|
|
163
|
+
const a = un(r.storeName || e, t || r.initParams), l = Zt(en((s) => b(s, a)));
|
|
164
164
|
return l.value || o(e, t || r.initParams || {}), l;
|
|
165
165
|
}, vr = (e, t) => {
|
|
166
|
-
const { requestSubject$: n } = $e(), o =
|
|
166
|
+
const { requestSubject$: n } = $e(), o = Jt(), r = (a) => {
|
|
167
167
|
const u = b(e, a.name), l = b(t, a.name);
|
|
168
168
|
return !!(u && l && l.actor);
|
|
169
169
|
};
|
|
@@ -175,7 +175,7 @@ const rn = Symbol("logon-user"), Ua = () => he(rn), mt = {
|
|
|
175
175
|
const l = b(e, u.name);
|
|
176
176
|
if (!l)
|
|
177
177
|
return;
|
|
178
|
-
const s = l.storeName || u.name, d = yr(u, l.convertData, l.convertPath), m =
|
|
178
|
+
const s = l.storeName || u.name, d = yr(u, l.convertData, l.convertPath), m = un(s, u.req);
|
|
179
179
|
o(m, d, !1, void 0);
|
|
180
180
|
})
|
|
181
181
|
).subscribe();
|
|
@@ -240,7 +240,7 @@ const pr = () => ({
|
|
|
240
240
|
const t = Y(), n = t(j.RowKey), o = t(j.ColKey);
|
|
241
241
|
return () => {
|
|
242
242
|
let r;
|
|
243
|
-
return !n || !o ? null : i(n, e.row, hr(r = F(e.items, (a) => i(o,
|
|
243
|
+
return !n || !o ? null : i(n, e.row, hr(r = F(e.items, (a) => i(o, L({
|
|
244
244
|
key: a.rowKey
|
|
245
245
|
}, e.col, a.col), {
|
|
246
246
|
default: () => [a.vNode]
|
|
@@ -259,16 +259,16 @@ const pr = () => ({
|
|
|
259
259
|
return D(e, o);
|
|
260
260
|
}
|
|
261
261
|
return e;
|
|
262
|
-
},
|
|
262
|
+
}, ln = (e) => {
|
|
263
263
|
if (!!e)
|
|
264
264
|
return Z(e) ? e : e && de(e) && e.indexOf(".") > 0 ? Ln(e, ".") : [e];
|
|
265
265
|
}, Qa = (e, t, n) => !t || !n ? e : F(e, (o) => {
|
|
266
266
|
const r = _(n) ? n(o) : b(o, n), a = b(t, r);
|
|
267
|
-
return !a ||
|
|
267
|
+
return !a || Bt(a) || _(a) || !De(a) ? o : Rn(o, a, (u, l) => {
|
|
268
268
|
if (Z(u) || Z(l))
|
|
269
269
|
return l;
|
|
270
270
|
});
|
|
271
|
-
}),
|
|
271
|
+
}), Ce = (e, t) => {
|
|
272
272
|
const n = ue(
|
|
273
273
|
e,
|
|
274
274
|
(o, r) => ({
|
|
@@ -292,8 +292,8 @@ const pr = () => ({
|
|
|
292
292
|
}, br = (e, t) => b(e, ["extra", t]) || b(e, t), ye = (e, t) => {
|
|
293
293
|
const n = X(e), o = `${t}-`, r = G(n, (u) => Fn(u, o)), a = J(e, r);
|
|
294
294
|
return $n(a, (u, l) => l.replace(o, ""));
|
|
295
|
-
},
|
|
296
|
-
pe(
|
|
295
|
+
}, sn = Symbol("pro-form-list"), cn = () => he(sn), dn = (e) => {
|
|
296
|
+
pe(sn, e);
|
|
297
297
|
}, Sr = k({
|
|
298
298
|
props: {
|
|
299
299
|
pathList: {
|
|
@@ -302,13 +302,13 @@ const pr = () => ({
|
|
|
302
302
|
},
|
|
303
303
|
setup: (e, {
|
|
304
304
|
slots: t
|
|
305
|
-
}) => (
|
|
305
|
+
}) => (dn({
|
|
306
306
|
pathList: e.pathList
|
|
307
307
|
}), () => {
|
|
308
308
|
var n;
|
|
309
309
|
return (n = t.default) == null ? void 0 : n.call(t);
|
|
310
310
|
})
|
|
311
|
-
}),
|
|
311
|
+
}), Et = () => ({
|
|
312
312
|
rowKey: {
|
|
313
313
|
type: String,
|
|
314
314
|
default: "id"
|
|
@@ -347,7 +347,7 @@ const pr = () => ({
|
|
|
347
347
|
}
|
|
348
348
|
}), Za = k({
|
|
349
349
|
props: {
|
|
350
|
-
...
|
|
350
|
+
...Et(),
|
|
351
351
|
...D(we.props, "items")
|
|
352
352
|
},
|
|
353
353
|
setup: (e, {
|
|
@@ -358,7 +358,7 @@ const pr = () => ({
|
|
|
358
358
|
readonly: a,
|
|
359
359
|
elementMap: u,
|
|
360
360
|
formElementMap: l
|
|
361
|
-
} =
|
|
361
|
+
} = mn(), s = cn(), d = ln(e.name), m = s != null && s.pathList ? [...s.pathList, ...d] : d, [y, f] = Je(), h = () => {
|
|
362
362
|
var N;
|
|
363
363
|
if (((N = e.onPreAdd) == null ? void 0 : N.call(e)) === !0)
|
|
364
364
|
return;
|
|
@@ -374,8 +374,8 @@ const pr = () => ({
|
|
|
374
374
|
}
|
|
375
375
|
M();
|
|
376
376
|
}, E = (v, M) => {
|
|
377
|
-
var
|
|
378
|
-
if (((
|
|
377
|
+
var R;
|
|
378
|
+
if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
|
|
379
379
|
index: v,
|
|
380
380
|
item: M
|
|
381
381
|
})) === !0)
|
|
@@ -398,7 +398,7 @@ const pr = () => ({
|
|
|
398
398
|
item: v,
|
|
399
399
|
formState: r,
|
|
400
400
|
pathList: M
|
|
401
|
-
}) :
|
|
401
|
+
}) : xn(u, l, v);
|
|
402
402
|
}, C = (v, M) => {
|
|
403
403
|
if (!l || Q(e.columns) <= 0)
|
|
404
404
|
return null;
|
|
@@ -414,18 +414,18 @@ const pr = () => ({
|
|
|
414
414
|
col: e.col,
|
|
415
415
|
items: N
|
|
416
416
|
}, null);
|
|
417
|
-
}, T = X(
|
|
418
|
-
return () => o ? i(o,
|
|
417
|
+
}, T = X(Et());
|
|
418
|
+
return () => o ? i(o, L({
|
|
419
419
|
class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
|
|
420
420
|
name: e.name
|
|
421
421
|
}, D(e, T)), {
|
|
422
422
|
default: () => {
|
|
423
423
|
var v, M;
|
|
424
424
|
return [F(b(r, m), (N, A) => {
|
|
425
|
-
const
|
|
425
|
+
const R = [...m, A];
|
|
426
426
|
return i(Sr, {
|
|
427
427
|
key: N[e.rowKey] + y.value,
|
|
428
|
-
pathList:
|
|
428
|
+
pathList: R
|
|
429
429
|
}, {
|
|
430
430
|
default: () => {
|
|
431
431
|
var q, B, W, ee, ne, x;
|
|
@@ -435,7 +435,7 @@ const pr = () => ({
|
|
|
435
435
|
state: r,
|
|
436
436
|
path: m,
|
|
437
437
|
index: A
|
|
438
|
-
}), C(
|
|
438
|
+
}), C(R), (B = t.default) == null ? void 0 : B.call(t), !a.value && i(se, null, [i("div", {
|
|
439
439
|
class: "pro-form-list-item-add",
|
|
440
440
|
onClick: h
|
|
441
441
|
}, [((W = t.itemAdd) == null ? void 0 : W.call(t)) || ((ee = e.renderItemAdd) == null ? void 0 : ee.call(e))]), i("div", {
|
|
@@ -451,14 +451,14 @@ const pr = () => ({
|
|
|
451
451
|
}
|
|
452
452
|
}) : null;
|
|
453
453
|
}
|
|
454
|
-
}),
|
|
455
|
-
pe(
|
|
454
|
+
}), fn = Symbol("pro-form"), mn = () => he(fn), Pr = (e, t = 300, n) => qt(e, t, n), Cr = (e) => {
|
|
455
|
+
pe(fn, e);
|
|
456
456
|
};
|
|
457
457
|
let le;
|
|
458
458
|
(function(e) {
|
|
459
459
|
e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
|
|
460
460
|
})(le || (le = {}));
|
|
461
|
-
const
|
|
461
|
+
const wt = () => ({
|
|
462
462
|
clsName: {
|
|
463
463
|
type: String,
|
|
464
464
|
default: "pro-form"
|
|
@@ -511,8 +511,8 @@ const Et = () => ({
|
|
|
511
511
|
}), eo = k({
|
|
512
512
|
inheritAttrs: !1,
|
|
513
513
|
props: {
|
|
514
|
-
...
|
|
515
|
-
...
|
|
514
|
+
...Ie,
|
|
515
|
+
...wt(),
|
|
516
516
|
...D(we.props, "items")
|
|
517
517
|
},
|
|
518
518
|
setup: (e, {
|
|
@@ -526,7 +526,7 @@ const Et = () => ({
|
|
|
526
526
|
formElementMap: u
|
|
527
527
|
} = oe(), l = e.elementMap || a, s = e.formElementMap || u, d = e.model || fe({}), m = nt(d, e.showStateRules, e.showState), y = nt(d, e.readonlyStateRules, e.readonlyState), f = nt(d, e.disableStateRules, e.disableState), h = w(() => e.readonly), E = w(() => {
|
|
528
528
|
const I = Ze(e.columns, e.columnState, e.columnState2);
|
|
529
|
-
return e.convertColumn ?
|
|
529
|
+
return e.convertColumn ? Ht(I, e.convertColumn) : I;
|
|
530
530
|
}), P = H(!1), C = H(0), T = (...I) => {
|
|
531
531
|
var U;
|
|
532
532
|
((U = e.onPreFinish) == null ? void 0 : U.call(e, ...I)) !== !0 && n("finish", ...I, {
|
|
@@ -536,9 +536,9 @@ const Et = () => ({
|
|
|
536
536
|
}, v = e.debounceSubmit, M = (typeof v == "object" ? v.wait : v) || 300, N = Pr((...I) => T(...I), M, v == null ? void 0 : v.options), A = (I) => {
|
|
537
537
|
const K = gr(I, m, e.showStateRules);
|
|
538
538
|
v !== void 0 ? N(K, I) : T(K, I);
|
|
539
|
-
},
|
|
539
|
+
}, R = H();
|
|
540
540
|
o({
|
|
541
|
-
...
|
|
541
|
+
...Ce(e.formMethods || [], R),
|
|
542
542
|
userOpe: P,
|
|
543
543
|
asyncNum: C
|
|
544
544
|
}), Cr({
|
|
@@ -550,11 +550,11 @@ const Et = () => ({
|
|
|
550
550
|
formElementMap: s,
|
|
551
551
|
readonly: h,
|
|
552
552
|
columns: E,
|
|
553
|
-
formRef:
|
|
553
|
+
formRef: R,
|
|
554
554
|
userOpe: P,
|
|
555
555
|
asyncNum: C,
|
|
556
556
|
...e.provideExtra
|
|
557
|
-
}),
|
|
557
|
+
}), dn({});
|
|
558
558
|
const q = [{
|
|
559
559
|
value: le.RESET,
|
|
560
560
|
label: "\u91CD\u7F6E"
|
|
@@ -568,24 +568,24 @@ const Et = () => ({
|
|
|
568
568
|
var I, K;
|
|
569
569
|
if ((I = e.operate) != null && I.onReset) {
|
|
570
570
|
e.operate.onReset({
|
|
571
|
-
form:
|
|
571
|
+
form: R.value
|
|
572
572
|
});
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
(K =
|
|
575
|
+
(K = R.value) == null || K.resetFields();
|
|
576
576
|
}, W = () => {
|
|
577
577
|
var I, K;
|
|
578
578
|
if ((I = e.operate) != null && I.onSubmit) {
|
|
579
579
|
e.operate.onSubmit({
|
|
580
|
-
form:
|
|
580
|
+
form: R.value
|
|
581
581
|
});
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
|
-
(K =
|
|
584
|
+
(K = R.value) == null || K.submit();
|
|
585
585
|
}, ee = () => {
|
|
586
586
|
var I, K;
|
|
587
587
|
(K = (I = e.operate) == null ? void 0 : I.onContinue) == null || K.call(I, {
|
|
588
|
-
form:
|
|
588
|
+
form: R.value
|
|
589
589
|
});
|
|
590
590
|
}, ne = {
|
|
591
591
|
[le.RESET]: B,
|
|
@@ -608,7 +608,7 @@ const Et = () => ({
|
|
|
608
608
|
};
|
|
609
609
|
}), p = (I) => {
|
|
610
610
|
const K = ve(I);
|
|
611
|
-
return K && t[K] ? t[K](I, d) :
|
|
611
|
+
return K && t[K] ? t[K](I, d) : xn(l, s, I);
|
|
612
612
|
}, g = w(() => {
|
|
613
613
|
const I = G(E.value, (K) => {
|
|
614
614
|
const U = ve(K);
|
|
@@ -619,14 +619,14 @@ const Et = () => ({
|
|
|
619
619
|
vNode: p(K),
|
|
620
620
|
col: b(K, ["extra", "col"])
|
|
621
621
|
})) : F(I, (K) => p(K));
|
|
622
|
-
}), O = [...X(
|
|
622
|
+
}), O = [...X(wt()), ...X(Ie)], V = X(D(we.props, "items")), S = b(a, j.FormKey);
|
|
623
623
|
return () => {
|
|
624
|
-
var ge, Ee,
|
|
624
|
+
var ge, Ee, St;
|
|
625
625
|
if (!S)
|
|
626
626
|
return null;
|
|
627
|
-
const I = (ge = t.start) == null ? void 0 : ge.call(t), K = (Ee = t.default) == null ? void 0 : Ee.call(t), U = (
|
|
628
|
-
return ie && ce.push("is-empty"), i(S,
|
|
629
|
-
ref:
|
|
627
|
+
const I = (ge = t.start) == null ? void 0 : ge.call(t), K = (Ee = t.default) == null ? void 0 : Ee.call(t), U = (St = t.end) == null ? void 0 : St.call(t), ce = [e.clsName], ie = Q(g.value) <= 0 && !ut(I) && !ut(K);
|
|
628
|
+
return ie && ce.push("is-empty"), i(S, L({
|
|
629
|
+
ref: R,
|
|
630
630
|
class: ce
|
|
631
631
|
}, D(r, "onFinish"), D(e, ...O, ...V, "onFinish", "operate"), {
|
|
632
632
|
model: d,
|
|
@@ -636,7 +636,7 @@ const Et = () => ({
|
|
|
636
636
|
row: e.row,
|
|
637
637
|
col: e.col,
|
|
638
638
|
items: g.value
|
|
639
|
-
}, null) : g.value]), K, e.operate && !ie && i(vt,
|
|
639
|
+
}, null) : g.value]), K, e.operate && !ie && i(vt, L({
|
|
640
640
|
class: `${e.clsName}-operate`
|
|
641
641
|
}, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
642
642
|
items: x.value,
|
|
@@ -661,7 +661,7 @@ let Ge;
|
|
|
661
661
|
(function(e) {
|
|
662
662
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
663
663
|
})(Ge || (Ge = {}));
|
|
664
|
-
const
|
|
664
|
+
const Tt = () => ({
|
|
665
665
|
initEmit: {
|
|
666
666
|
type: Boolean,
|
|
667
667
|
default: !0
|
|
@@ -683,7 +683,7 @@ const wt = () => ({
|
|
|
683
683
|
}
|
|
684
684
|
}), no = k({
|
|
685
685
|
props: {
|
|
686
|
-
...
|
|
686
|
+
...Tt(),
|
|
687
687
|
needRules: {
|
|
688
688
|
type: Boolean,
|
|
689
689
|
default: !1
|
|
@@ -694,17 +694,17 @@ const wt = () => ({
|
|
|
694
694
|
expose: n
|
|
695
695
|
}) => {
|
|
696
696
|
const r = Y()(j.ProFormKey), a = e.model || fe({}), u = new Set(e.debounceTypes), l = F(G(e.columns, (P) => {
|
|
697
|
-
const C =
|
|
697
|
+
const C = Mn(P);
|
|
698
698
|
return u.has(C);
|
|
699
699
|
}), (P) => ve(P)), s = w(() => F(e.columns, (P) => ({
|
|
700
700
|
...P,
|
|
701
701
|
formItemProps: D(P.formItemProps, "required")
|
|
702
702
|
}))), d = H(), m = e.formMethods || [];
|
|
703
|
-
n(
|
|
703
|
+
n(Ce(m, d));
|
|
704
704
|
const y = () => {
|
|
705
705
|
var P;
|
|
706
706
|
(P = d.value) == null || P.submit();
|
|
707
|
-
}, f =
|
|
707
|
+
}, f = qt(() => {
|
|
708
708
|
y();
|
|
709
709
|
}, e.debounceTime);
|
|
710
710
|
re(() => {
|
|
@@ -721,8 +721,8 @@ const wt = () => ({
|
|
|
721
721
|
}
|
|
722
722
|
y();
|
|
723
723
|
}, () => jn(a));
|
|
724
|
-
const E = X(
|
|
725
|
-
return () => r ? i(r,
|
|
724
|
+
const E = X(Tt());
|
|
725
|
+
return () => r ? i(r, L({
|
|
726
726
|
ref: d,
|
|
727
727
|
class: "pro-search-form"
|
|
728
728
|
}, D(e, E, "columns"), {
|
|
@@ -757,7 +757,7 @@ const wt = () => ({
|
|
|
757
757
|
...t
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
-
}),
|
|
760
|
+
}), Nt = () => ({
|
|
761
761
|
readonly: {
|
|
762
762
|
type: Boolean,
|
|
763
763
|
default: void 0
|
|
@@ -785,7 +785,7 @@ const wt = () => ({
|
|
|
785
785
|
name: r,
|
|
786
786
|
props: {
|
|
787
787
|
...e.props,
|
|
788
|
-
...
|
|
788
|
+
...Nt()
|
|
789
789
|
},
|
|
790
790
|
setup: (a, {
|
|
791
791
|
slots: u
|
|
@@ -799,12 +799,12 @@ const wt = () => ({
|
|
|
799
799
|
disableState: y,
|
|
800
800
|
readonly: f,
|
|
801
801
|
userOpe: h
|
|
802
|
-
} =
|
|
802
|
+
} = mn(), E = cn(), P = w(() => Oe(a.readonly) ? a.readonly : Oe(m[a.name]) ? m[a.name] : f.value), C = () => `${b(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, T = w(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
|
|
803
803
|
required: !0,
|
|
804
804
|
message: C()
|
|
805
|
-
}] : a.rules ? F(a.rules, (B) => (B.required && !B.message && (B.message = C()), B)) : a.rules : a.rules), v =
|
|
805
|
+
}] : a.rules ? F(a.rules, (B) => (B.required && !B.message && (B.message = C()), B)) : a.rules : a.rules), v = ln(a.name), M = E != null && E.pathList ? [...E.pathList, ...v] : v, N = (B) => {
|
|
806
806
|
h.value = !0, me(d, M, B);
|
|
807
|
-
}, A = X(
|
|
807
|
+
}, A = X(Nt()), R = () => {
|
|
808
808
|
const B = b(d, M);
|
|
809
809
|
if (u.renderShow)
|
|
810
810
|
return u.renderShow({
|
|
@@ -813,7 +813,7 @@ const wt = () => ({
|
|
|
813
813
|
path: M
|
|
814
814
|
});
|
|
815
815
|
const W = b(s, o);
|
|
816
|
-
return W ? i(W,
|
|
816
|
+
return W ? i(W, L({
|
|
817
817
|
value: B
|
|
818
818
|
}, a.fieldProps, {
|
|
819
819
|
showProps: a.showProps
|
|
@@ -826,35 +826,35 @@ const wt = () => ({
|
|
|
826
826
|
disabled: W,
|
|
827
827
|
record: d,
|
|
828
828
|
path: M
|
|
829
|
-
}) : i(n,
|
|
829
|
+
}) : i(n, L(t(B, N, W), a.fieldProps), u);
|
|
830
830
|
};
|
|
831
|
-
return () => i(e,
|
|
831
|
+
return () => i(e, L({
|
|
832
832
|
class: "pro-form-item"
|
|
833
833
|
}, D(a, ...A, "name", "rules"), {
|
|
834
834
|
name: M,
|
|
835
835
|
rules: T.value
|
|
836
836
|
}), {
|
|
837
|
-
default: () => [P.value ?
|
|
838
|
-
label: () => i(se, null, [a.label, a.tip && i(xr,
|
|
837
|
+
default: () => [P.value ? R() : q()],
|
|
838
|
+
label: () => i(se, null, [a.label, a.tip && i(xr, L({
|
|
839
839
|
content: a.tip,
|
|
840
840
|
title: a.tip
|
|
841
841
|
}, a.tipProps), null)]),
|
|
842
842
|
...a.slots
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
846
|
-
const [e, t] =
|
|
845
|
+
}), yn = tn("access", void 0, !0), Ir = () => {
|
|
846
|
+
const [e, t] = yn();
|
|
847
847
|
return { access: e, setAccess: t, delAccess: () => {
|
|
848
848
|
t(void 0);
|
|
849
849
|
} };
|
|
850
850
|
}, ao = () => {
|
|
851
|
-
const [e, t] =
|
|
851
|
+
const [e, t] = yn();
|
|
852
852
|
return [e, t, () => {
|
|
853
853
|
t(void 0);
|
|
854
854
|
}];
|
|
855
|
-
},
|
|
856
|
-
const [n, o] =
|
|
857
|
-
return pe(
|
|
855
|
+
}, vn = Symbol("logon-user"), Er = () => he(vn), oo = k((e, { slots: t }) => {
|
|
856
|
+
const [n, o] = Pt(), [r, a] = Pt();
|
|
857
|
+
return pe(vn, { user: n, setUser: o, per: r, setPer: a, opts: {} }), () => {
|
|
858
858
|
var l;
|
|
859
859
|
return (l = t.default) == null ? void 0 : l.call(t);
|
|
860
860
|
};
|
|
@@ -870,7 +870,7 @@ const wt = () => ({
|
|
|
870
870
|
Add: "add",
|
|
871
871
|
Edit: "edit",
|
|
872
872
|
Delete: "delete"
|
|
873
|
-
}, wr = (e, t) => !e || !t ? !1 : Z(t) ? Pe(t, (n) => e[n]) : e[t],
|
|
873
|
+
}, wr = (e, t) => !e || !t ? !1 : Z(t) ? Pe(t, (n) => e[n]) : e[t], hn = () => {
|
|
874
874
|
const { per: e } = Er() || { per: { menus: [], buttonMap: {} } }, t = ft();
|
|
875
875
|
return (n, o) => {
|
|
876
876
|
if (!n)
|
|
@@ -882,8 +882,8 @@ const wt = () => ({
|
|
|
882
882
|
}
|
|
883
883
|
return wr(e.buttonMap, r);
|
|
884
884
|
};
|
|
885
|
-
},
|
|
886
|
-
const e =
|
|
885
|
+
}, pn = () => {
|
|
886
|
+
const e = hn();
|
|
887
887
|
return (t, n, o) => t ? e(t) : n ? e(n, { suffix: !0, splitStr: o }) : !0;
|
|
888
888
|
}, Tr = () => ({
|
|
889
889
|
suffix: { type: [String, Array] },
|
|
@@ -895,7 +895,7 @@ const wt = () => ({
|
|
|
895
895
|
...Tr()
|
|
896
896
|
},
|
|
897
897
|
setup: (e, { slots: t }) => {
|
|
898
|
-
const n =
|
|
898
|
+
const n = hn(), o = w(() => e.value ? n(e.value) : e.suffix ? n(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
|
|
899
899
|
return () => {
|
|
900
900
|
var r;
|
|
901
901
|
return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
|
|
@@ -930,12 +930,12 @@ const Ar = () => ({
|
|
|
930
930
|
setup: (e, {
|
|
931
931
|
slots: t
|
|
932
932
|
}) => {
|
|
933
|
-
const n =
|
|
933
|
+
const n = pn(), o = w(() => {
|
|
934
934
|
const s = G(e.items, (m) => n(m.per, m.perSuffix, e.splitStr) ? _(m.show) ? m.show() : Oe(m.show) ? m.show : !0 : !1), d = F(s, (m) => lt(e.itemState, m.value) ? {
|
|
935
935
|
...m,
|
|
936
936
|
...b(e.itemState, m.value)
|
|
937
937
|
} : m);
|
|
938
|
-
return
|
|
938
|
+
return Ut(d, (m) => m.sort);
|
|
939
939
|
}), r = (s) => {
|
|
940
940
|
var d;
|
|
941
941
|
(d = s.onClick) == null || d.call(s, s);
|
|
@@ -952,14 +952,14 @@ const Ar = () => ({
|
|
|
952
952
|
if (t[s.value])
|
|
953
953
|
return t[s.value](h);
|
|
954
954
|
if (u) {
|
|
955
|
-
const E = i(u,
|
|
955
|
+
const E = i(u, L({
|
|
956
956
|
disabled: d,
|
|
957
957
|
loading: m,
|
|
958
958
|
onClick: () => r(s)
|
|
959
959
|
}, f), Nr(y) ? y : {
|
|
960
960
|
default: () => [y]
|
|
961
961
|
});
|
|
962
|
-
return s.tip && l ? i(l,
|
|
962
|
+
return s.tip && l ? i(l, L({
|
|
963
963
|
placement: "top"
|
|
964
964
|
}, s.tipProps), {
|
|
965
965
|
default: () => [E],
|
|
@@ -1039,8 +1039,8 @@ const Ar = () => ({
|
|
|
1039
1039
|
}), P = (v) => {
|
|
1040
1040
|
var N;
|
|
1041
1041
|
(De(v) ? (N = v.target) == null ? void 0 : N.checked : v) ? u.value = F(a.value, (A) => A.dataIndex) : u.value = F(G(a.value, (A) => {
|
|
1042
|
-
var
|
|
1043
|
-
return (
|
|
1042
|
+
var R;
|
|
1043
|
+
return (R = h(A)) != null && R.disabled ? !0 : (m(A.dataIndex), !1);
|
|
1044
1044
|
}), (A) => A.dataIndex);
|
|
1045
1045
|
}, C = () => {
|
|
1046
1046
|
u.value = F(G(a.value, (v) => {
|
|
@@ -1049,9 +1049,9 @@ const Ar = () => ({
|
|
|
1049
1049
|
}), (v) => v.dataIndex);
|
|
1050
1050
|
}, T = (v, M) => {
|
|
1051
1051
|
var A;
|
|
1052
|
-
(De(M) ? (A = M.target) == null ? void 0 : A.checked : M) ? u.value = [...u.value, v.dataIndex] : u.value = G(u.value, (
|
|
1052
|
+
(De(M) ? (A = M.target) == null ? void 0 : A.checked : M) ? u.value = [...u.value, v.dataIndex] : u.value = G(u.value, (R) => v.dataIndex === R ? (m(v.dataIndex), !1) : !0);
|
|
1053
1053
|
};
|
|
1054
|
-
return () => o ? i(o,
|
|
1054
|
+
return () => o ? i(o, L({
|
|
1055
1055
|
trigger: "click"
|
|
1056
1056
|
}, e.popoverProps), {
|
|
1057
1057
|
default: () => {
|
|
@@ -1089,9 +1089,9 @@ const Ar = () => ({
|
|
|
1089
1089
|
...D(t, "default")
|
|
1090
1090
|
}) : null;
|
|
1091
1091
|
}
|
|
1092
|
-
}),
|
|
1093
|
-
pe(
|
|
1094
|
-
},
|
|
1092
|
+
}), gn = Symbol("pro-table"), Or = () => he(gn), Kr = (e) => {
|
|
1093
|
+
pe(gn, e);
|
|
1094
|
+
}, At = () => ({
|
|
1095
1095
|
clsName: {
|
|
1096
1096
|
type: String,
|
|
1097
1097
|
default: "pro-table"
|
|
@@ -1135,8 +1135,8 @@ const Ar = () => ({
|
|
|
1135
1135
|
}), co = k({
|
|
1136
1136
|
inheritAttrs: !1,
|
|
1137
1137
|
props: {
|
|
1138
|
-
...
|
|
1139
|
-
...
|
|
1138
|
+
...Ie,
|
|
1139
|
+
...At()
|
|
1140
1140
|
},
|
|
1141
1141
|
setup: (e, {
|
|
1142
1142
|
slots: t,
|
|
@@ -1147,7 +1147,7 @@ const Ar = () => ({
|
|
|
1147
1147
|
elementMap: r
|
|
1148
1148
|
} = oe(), a = e.elementMap || r, {
|
|
1149
1149
|
router: u
|
|
1150
|
-
} =
|
|
1150
|
+
} = Me(), l = b(r, j.TableKey), s = () => ({
|
|
1151
1151
|
title: "\u5E8F\u53F7",
|
|
1152
1152
|
dataIndex: "serialNumber",
|
|
1153
1153
|
width: 80,
|
|
@@ -1251,38 +1251,38 @@ const Ar = () => ({
|
|
|
1251
1251
|
tableRef: M,
|
|
1252
1252
|
toolbar: e.toolbar,
|
|
1253
1253
|
...e.provideExtra
|
|
1254
|
-
}), n(
|
|
1255
|
-
const N = H(), A = H(0),
|
|
1254
|
+
}), n(Ce(e.tableMethods || [], M));
|
|
1255
|
+
const N = H(), A = H(0), R = H(), q = H(!1), B = H(), W = H(!1);
|
|
1256
1256
|
Ue(N, (c) => {
|
|
1257
1257
|
const p = b(c, [0, "contentRect"]), g = window.getComputedStyle(N.value);
|
|
1258
1258
|
if (p.height && g) {
|
|
1259
1259
|
const O = g.getPropertyValue("margin-bottom"), V = parseInt(O.replace("px", ""));
|
|
1260
1260
|
A.value = p.height + V;
|
|
1261
1261
|
}
|
|
1262
|
-
}), Ue(
|
|
1263
|
-
q.value = !!
|
|
1262
|
+
}), Ue(R, () => {
|
|
1263
|
+
q.value = !!R.value.innerHTML;
|
|
1264
1264
|
}), Ue(B, (c) => {
|
|
1265
1265
|
W.value = !!B.value.innerHTML;
|
|
1266
1266
|
});
|
|
1267
|
-
const ee = w(() => W.value || q.value ? `${e.clsName}-toolbar-valid` : ""), ne = X(
|
|
1267
|
+
const ee = w(() => W.value || q.value ? `${e.clsName}-toolbar-valid` : ""), ne = X(At()), x = ye(t, "columnSetting");
|
|
1268
1268
|
return () => {
|
|
1269
1269
|
var g, O;
|
|
1270
1270
|
if (!l)
|
|
1271
1271
|
return null;
|
|
1272
1272
|
const c = h.value ? i(Dr, (g = e.toolbar) == null ? void 0 : g.columnSetting, x) : null, p = [e.clsName];
|
|
1273
|
-
return (q.value || W.value) && p.push("has-header"), i("div",
|
|
1273
|
+
return (q.value || W.value) && p.push("has-header"), i("div", L({
|
|
1274
1274
|
class: p,
|
|
1275
1275
|
style: `--pro-table-toolbar-hei: ${A.value}px`
|
|
1276
1276
|
}, J(o, "class")), [i("div", {
|
|
1277
1277
|
ref: N,
|
|
1278
1278
|
class: `${e.clsName}-toolbar ${ee.value}`
|
|
1279
1279
|
}, [i("div", {
|
|
1280
|
-
ref:
|
|
1280
|
+
ref: R,
|
|
1281
1281
|
class: `${e.clsName}-toolbar-start`
|
|
1282
1282
|
}, [(O = t.toolbar) == null ? void 0 : O.call(t)]), i("div", {
|
|
1283
1283
|
ref: B,
|
|
1284
1284
|
class: `${e.clsName}-toolbar-extra`
|
|
1285
|
-
}, [t.toolbarExtra ? t.toolbarExtra([c]) : i(se, null, [c])])]), i(l,
|
|
1285
|
+
}, [t.toolbarExtra ? t.toolbarExtra([c]) : i(se, null, [c])])]), i(l, L({
|
|
1286
1286
|
ref: M
|
|
1287
1287
|
}, D(o, "class"), D(e, ne), {
|
|
1288
1288
|
mergeOpts: e.mergeOpts,
|
|
@@ -1291,7 +1291,7 @@ const Ar = () => ({
|
|
|
1291
1291
|
}), t)]);
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
|
-
}),
|
|
1294
|
+
}), bn = Symbol("pro-layout"), je = () => he(bn), Lr = () => ({
|
|
1295
1295
|
includes: {
|
|
1296
1296
|
type: Array,
|
|
1297
1297
|
default: []
|
|
@@ -1311,7 +1311,7 @@ const Ar = () => ({
|
|
|
1311
1311
|
} = je(), {
|
|
1312
1312
|
router: l,
|
|
1313
1313
|
route: s
|
|
1314
|
-
} =
|
|
1314
|
+
} = Me(), d = w(() => {
|
|
1315
1315
|
if (!r.value) {
|
|
1316
1316
|
const {
|
|
1317
1317
|
parentList: y
|
|
@@ -1354,7 +1354,7 @@ const Ar = () => ({
|
|
|
1354
1354
|
const {
|
|
1355
1355
|
router: t,
|
|
1356
1356
|
route: n
|
|
1357
|
-
} =
|
|
1357
|
+
} = Me(), {
|
|
1358
1358
|
menuMap: o,
|
|
1359
1359
|
tabs: r,
|
|
1360
1360
|
refresh: a,
|
|
@@ -1447,12 +1447,12 @@ const Ar = () => ({
|
|
|
1447
1447
|
onDragEnd: A
|
|
1448
1448
|
});
|
|
1449
1449
|
}, [v]);
|
|
1450
|
-
const
|
|
1450
|
+
const R = H();
|
|
1451
1451
|
re(() => {
|
|
1452
1452
|
var p;
|
|
1453
|
-
const c = (p =
|
|
1453
|
+
const c = (p = R.value) == null ? void 0 : p.originRef;
|
|
1454
1454
|
!c || c == null || c.handleOpen();
|
|
1455
|
-
},
|
|
1455
|
+
}, R);
|
|
1456
1456
|
const q = (c) => {
|
|
1457
1457
|
c || (l.ctxMenuItem = null);
|
|
1458
1458
|
}, B = (c) => {
|
|
@@ -1497,14 +1497,14 @@ const Ar = () => ({
|
|
|
1497
1497
|
oncontextmenu: C
|
|
1498
1498
|
}, [Ae("\u2715")])]);
|
|
1499
1499
|
})])]
|
|
1500
|
-
}), l.ctxMenuItem && l.ctxMenuPos && i(
|
|
1500
|
+
}), l.ctxMenuItem && l.ctxMenuPos && i(jt, {
|
|
1501
1501
|
to: "body"
|
|
1502
1502
|
}, {
|
|
1503
1503
|
default: () => [i("div", {
|
|
1504
1504
|
class: "pro-layout-tabs-menus",
|
|
1505
1505
|
style: `left:${l.ctxMenuPos.x}px;top:${l.ctxMenuPos.y}px`
|
|
1506
1506
|
}, [i(ne, {
|
|
1507
|
-
ref:
|
|
1507
|
+
ref: R,
|
|
1508
1508
|
trigger: "click",
|
|
1509
1509
|
options: W.value,
|
|
1510
1510
|
hideOnClick: !1,
|
|
@@ -1535,7 +1535,7 @@ const Ar = () => ({
|
|
|
1535
1535
|
o.width = 200, o.height = 130;
|
|
1536
1536
|
let r = o.getContext("2d");
|
|
1537
1537
|
r.rotate(-20 * Math.PI / 180), r.font = "12px Vedana", r.fillStyle = "rgba(200, 200, 200, 0.30)", r.textBaseline = "middle", r.fillText(e.str, o.width / 10, o.height / 2), n.imgStr = o.toDataURL("image/png"), r = null, o = null;
|
|
1538
|
-
}, [() => e.str, t]), () => i(
|
|
1538
|
+
}, [() => e.str, t]), () => i(jt, {
|
|
1539
1539
|
to: "body"
|
|
1540
1540
|
}, {
|
|
1541
1541
|
default: () => [i("div", {
|
|
@@ -1635,9 +1635,9 @@ const Ar = () => ({
|
|
|
1635
1635
|
const o = Y(), r = o(j.MenusKey), a = o(j.ScrollKey) || "div", {
|
|
1636
1636
|
router: u,
|
|
1637
1637
|
route: l
|
|
1638
|
-
} =
|
|
1638
|
+
} = Me(), s = w(() => {
|
|
1639
1639
|
var S;
|
|
1640
|
-
return
|
|
1640
|
+
return Ht(e.menus, (I) => {
|
|
1641
1641
|
var ie, ge, Ee;
|
|
1642
1642
|
const K = ((ie = e.fieldNames) == null ? void 0 : ie.value) || "value", U = ((ge = e.fieldNames) == null ? void 0 : ge.label) || "label", ce = ((Ee = e.fieldNames) == null ? void 0 : Ee.hide) || "hide";
|
|
1643
1643
|
return {
|
|
@@ -1650,7 +1650,7 @@ const Ar = () => ({
|
|
|
1650
1650
|
children: ((S = e.fieldNames) == null ? void 0 : S.children) || "children",
|
|
1651
1651
|
childrenName: "children"
|
|
1652
1652
|
});
|
|
1653
|
-
}), d = w(() => Zn(s.value, (S) => !S.hide)), m = w(() =>
|
|
1653
|
+
}), d = w(() => Zn(s.value, (S) => !S.hide)), m = w(() => Ct(s.value)), y = w(() => Ct(d.value)), f = w(() => Wt(s.value, (S) => D(S, "children"))), h = (S) => e.convertName ? e.convertName(S, {
|
|
1654
1654
|
menuTopMap: m.value
|
|
1655
1655
|
}) : S.name, E = (S) => e.convertValue ? e.convertValue(S) : S.value, P = w(() => {
|
|
1656
1656
|
if (e.findCurrentTopName)
|
|
@@ -1672,14 +1672,14 @@ const Ar = () => ({
|
|
|
1672
1672
|
}, N = (S) => {
|
|
1673
1673
|
const I = We(d.value, (K) => K.value === S.value).target;
|
|
1674
1674
|
M(I);
|
|
1675
|
-
}, A = w(() => !!e.tabs),
|
|
1675
|
+
}, A = w(() => !!e.tabs), R = () => {
|
|
1676
1676
|
var I;
|
|
1677
1677
|
let S = (I = e.tabs) == null ? void 0 : I.sessionKey;
|
|
1678
1678
|
return S === void 0 && (S = "pro-layout-tabs"), S;
|
|
1679
|
-
}, q =
|
|
1679
|
+
}, q = _t(d.value, (S) => !S.children || Q(S.children) <= 0), W = H((() => {
|
|
1680
1680
|
if (!A.value)
|
|
1681
1681
|
return [];
|
|
1682
|
-
const S =
|
|
1682
|
+
const S = R();
|
|
1683
1683
|
let I = [];
|
|
1684
1684
|
if (S) {
|
|
1685
1685
|
const K = window.sessionStorage.getItem(S), U = K ? ct(K) : [];
|
|
@@ -1693,7 +1693,7 @@ const Ar = () => ({
|
|
|
1693
1693
|
W.value = G(W.value, (I) => I.value !== S);
|
|
1694
1694
|
};
|
|
1695
1695
|
Se(() => {
|
|
1696
|
-
const S =
|
|
1696
|
+
const S = R();
|
|
1697
1697
|
if (!S)
|
|
1698
1698
|
return;
|
|
1699
1699
|
const I = F(W.value, (K) => ({
|
|
@@ -1708,11 +1708,11 @@ const Ar = () => ({
|
|
|
1708
1708
|
return S === void 0 ? !0 : S;
|
|
1709
1709
|
};
|
|
1710
1710
|
re(() => () => {
|
|
1711
|
-
const S =
|
|
1711
|
+
const S = R();
|
|
1712
1712
|
S && x() && window.sessionStorage.removeItem(S);
|
|
1713
1713
|
}, []);
|
|
1714
1714
|
const c = H(!1);
|
|
1715
|
-
pe(
|
|
1715
|
+
pe(bn, {
|
|
1716
1716
|
convertName: h,
|
|
1717
1717
|
convertValue: E,
|
|
1718
1718
|
menus: s,
|
|
@@ -1754,28 +1754,28 @@ const Ar = () => ({
|
|
|
1754
1754
|
}, K = {
|
|
1755
1755
|
collapse: e.collapse,
|
|
1756
1756
|
...I
|
|
1757
|
-
}, U = i(se, null, [A.value && i($r,
|
|
1757
|
+
}, U = i(se, null, [A.value && i($r, L({
|
|
1758
1758
|
isHideClose: ee
|
|
1759
1759
|
}, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), i("div", {
|
|
1760
1760
|
class: `${e.clsName}-section`
|
|
1761
1761
|
}, [(ce = t.default) == null ? void 0 : ce.call(t), t.routerView ? t.routerView() : i(Rr, e.routeOpts, null), e.watermark && i(Br, e.watermark, null)])]);
|
|
1762
|
-
return e.layout === "vertical" ? i("main",
|
|
1762
|
+
return e.layout === "vertical" ? i("main", L(n, {
|
|
1763
1763
|
class: S
|
|
1764
1764
|
}), [i(qe, {
|
|
1765
1765
|
class: `${e.clsName}-header`
|
|
1766
1766
|
}, {
|
|
1767
|
-
menus: (ie) => ie ? i(r,
|
|
1767
|
+
menus: (ie) => ie ? i(r, L({
|
|
1768
1768
|
style: `width:${ie}px`,
|
|
1769
1769
|
mode: "horizontal"
|
|
1770
1770
|
}, I), O) : null,
|
|
1771
1771
|
...g
|
|
1772
|
-
}), U]) : e.layout === "horizontal" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main",
|
|
1772
|
+
}), U]) : e.layout === "horizontal" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1773
1773
|
class: S
|
|
1774
1774
|
}), [V(K), i("div", {
|
|
1775
1775
|
class: `${e.clsName}-structure`
|
|
1776
1776
|
}, [i(qe, {
|
|
1777
1777
|
class: `${e.clsName}-header`
|
|
1778
|
-
}, g), U])])) : e.layout === "horizontal-v" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main",
|
|
1778
|
+
}, g), U])])) : e.layout === "horizontal-v" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1779
1779
|
class: S
|
|
1780
1780
|
}), [i(qe, {
|
|
1781
1781
|
class: `${e.clsName}-header`
|
|
@@ -1783,12 +1783,12 @@ const Ar = () => ({
|
|
|
1783
1783
|
class: `${e.clsName}-structure`
|
|
1784
1784
|
}, [V(K), i("div", {
|
|
1785
1785
|
class: `${e.clsName}-right`
|
|
1786
|
-
}, [U])])])) : (T.value && S.push("has-left-menu"), e.collapse && S.push("mini"), i("main",
|
|
1786
|
+
}, [U])])])) : (T.value && S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1787
1787
|
class: S
|
|
1788
1788
|
}), [i(qe, {
|
|
1789
1789
|
class: `${e.clsName}-header`
|
|
1790
1790
|
}, {
|
|
1791
|
-
menus: (ie) => ie ? i(r,
|
|
1791
|
+
menus: (ie) => ie ? i(r, L({
|
|
1792
1792
|
style: `width:${ie}px`,
|
|
1793
1793
|
class: `${e.clsName}-menus`,
|
|
1794
1794
|
mode: "horizontal",
|
|
@@ -1837,7 +1837,7 @@ const Ar = () => ({
|
|
|
1837
1837
|
}) => {
|
|
1838
1838
|
const {
|
|
1839
1839
|
router: n
|
|
1840
|
-
} =
|
|
1840
|
+
} = Me(), o = () => {
|
|
1841
1841
|
var r;
|
|
1842
1842
|
if (e.onBackClick) {
|
|
1843
1843
|
(r = e.onBackClick) == null || r.call(e);
|
|
@@ -1883,7 +1883,7 @@ const Ar = () => ({
|
|
|
1883
1883
|
sub: {
|
|
1884
1884
|
type: Boolean
|
|
1885
1885
|
}
|
|
1886
|
-
}),
|
|
1886
|
+
}), Sn = k({
|
|
1887
1887
|
props: {
|
|
1888
1888
|
...rt.props,
|
|
1889
1889
|
...Vr()
|
|
@@ -1898,7 +1898,7 @@ const Ar = () => ({
|
|
|
1898
1898
|
showTabs: d
|
|
1899
1899
|
} = n;
|
|
1900
1900
|
return d.value ? !1 : e.showBack;
|
|
1901
|
-
}), r = Y(), a = r(j.LoadingKey), u = e.as || r(j.ScrollKey) || "div", l = () => a ? i(a,
|
|
1901
|
+
}), r = Y(), a = r(j.LoadingKey), u = e.as || r(j.ScrollKey) || "div", l = () => a ? i(a, L({
|
|
1902
1902
|
loading: !0
|
|
1903
1903
|
}, e.loadingOpts), {
|
|
1904
1904
|
default: () => [i("div", {
|
|
@@ -1913,7 +1913,7 @@ const Ar = () => ({
|
|
|
1913
1913
|
}, {
|
|
1914
1914
|
default: () => {
|
|
1915
1915
|
var E, P;
|
|
1916
|
-
return [(E = t.start) == null ? void 0 : E.call(t), d && i(rt,
|
|
1916
|
+
return [(E = t.start) == null ? void 0 : E.call(t), d && i(rt, L(J(e, s), {
|
|
1917
1917
|
showBack: o.value
|
|
1918
1918
|
}), D(t, "start", "default", "footer")), i("div", {
|
|
1919
1919
|
class: "pro-page-content"
|
|
@@ -1984,11 +1984,11 @@ const Ar = () => ({
|
|
|
1984
1984
|
l.page = P, l.pageSize = C, d();
|
|
1985
1985
|
}, f = ye(t, "search"), h = ye(t, "table"), E = ye(t, "pagination");
|
|
1986
1986
|
return () => {
|
|
1987
|
-
var C, T, v, M, N, A,
|
|
1987
|
+
var C, T, v, M, N, A, R, q;
|
|
1988
1988
|
const P = t.search ? t.search({
|
|
1989
1989
|
executeSearchWithResetPage: m,
|
|
1990
1990
|
pageState: l
|
|
1991
|
-
}) : i(se, null, [r && i(r,
|
|
1991
|
+
}) : i(se, null, [r && i(r, L({
|
|
1992
1992
|
class: `${e.clsName}-search`
|
|
1993
1993
|
}, D(e.searchProps, "onFinish"), {
|
|
1994
1994
|
onFinish: (B) => m(B)
|
|
@@ -1997,7 +1997,7 @@ const Ar = () => ({
|
|
|
1997
1997
|
class: e.clsName
|
|
1998
1998
|
}, [((C = t.start) == null ? void 0 : C.call(t)) || ((T = e.start) == null ? void 0 : T.call(e)), !e.searchInTable && P, ((v = t.divide) == null ? void 0 : v.call(t)) || ((M = e.divide) == null ? void 0 : M.call(e)), t.table ? t.table({
|
|
1999
1999
|
pageState: l
|
|
2000
|
-
}) : i(se, null, [a && i(a,
|
|
2000
|
+
}) : i(se, null, [a && i(a, L({
|
|
2001
2001
|
class: `${e.clsName}-table`,
|
|
2002
2002
|
paginationState: {
|
|
2003
2003
|
page: l.page,
|
|
@@ -2012,14 +2012,14 @@ const Ar = () => ({
|
|
|
2012
2012
|
pageState: l
|
|
2013
2013
|
}) : i(se, null, [e.paginationProps !== !1 && u && i("div", {
|
|
2014
2014
|
class: `${e.clsName}-pagination`
|
|
2015
|
-
}, [i(u,
|
|
2015
|
+
}, [i(u, L(D(Oe(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
2016
2016
|
page: l.page,
|
|
2017
2017
|
pageSize: l.pageSize,
|
|
2018
2018
|
onComposeChange: y
|
|
2019
|
-
}), E)])]), ((
|
|
2019
|
+
}), E)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((q = e.end) == null ? void 0 : q.call(e))]);
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
}),
|
|
2022
|
+
}), kt = () => ({
|
|
2023
2023
|
clsName: {
|
|
2024
2024
|
type: String,
|
|
2025
2025
|
default: "pro-desc"
|
|
@@ -2029,23 +2029,23 @@ const Ar = () => ({
|
|
|
2029
2029
|
}
|
|
2030
2030
|
}), _r = k({
|
|
2031
2031
|
props: {
|
|
2032
|
-
...
|
|
2033
|
-
...
|
|
2032
|
+
...Ie,
|
|
2033
|
+
...kt()
|
|
2034
2034
|
},
|
|
2035
2035
|
setup: (e, {
|
|
2036
2036
|
slots: t
|
|
2037
2037
|
}) => {
|
|
2038
2038
|
const {
|
|
2039
2039
|
elementMap: n
|
|
2040
|
-
} = oe(), o = e.elementMap || n, r = Y(), a = r(j.DescriptionsKey), u = r(j.DescriptionsItemKey), l = w(() => Ze(e.columns, e.columnState, e.columnState2)), s = X(
|
|
2041
|
-
return () => !a || !u ? null : i(a,
|
|
2040
|
+
} = oe(), o = e.elementMap || n, r = Y(), a = r(j.DescriptionsKey), u = r(j.DescriptionsItemKey), l = w(() => Ze(e.columns, e.columnState, e.columnState2)), s = X(Ie), d = X(kt());
|
|
2041
|
+
return () => !a || !u ? null : i(a, L({
|
|
2042
2042
|
class: e.clsName
|
|
2043
2043
|
}, D(e, ...s, ...d, "model")), {
|
|
2044
2044
|
default: () => {
|
|
2045
2045
|
var m, y;
|
|
2046
2046
|
return [(m = t.start) == null ? void 0 : m.call(t), F(l.value, (f) => {
|
|
2047
2047
|
const h = f.dataIndex, E = b(e.model, h);
|
|
2048
|
-
return i(u,
|
|
2048
|
+
return i(u, L({
|
|
2049
2049
|
class: `${e.clsName}-item`
|
|
2050
2050
|
}, b(f.extra, "desc")), {
|
|
2051
2051
|
default: () => {
|
|
@@ -2066,7 +2066,7 @@ const Ar = () => ({
|
|
|
2066
2066
|
...t
|
|
2067
2067
|
});
|
|
2068
2068
|
}
|
|
2069
|
-
}),
|
|
2069
|
+
}), Pn = (e, t) => st(e) ? e : e || t, Gr = () => ({
|
|
2070
2070
|
value: {
|
|
2071
2071
|
type: [String, Number]
|
|
2072
2072
|
},
|
|
@@ -2077,7 +2077,7 @@ const Ar = () => ({
|
|
|
2077
2077
|
props: {
|
|
2078
2078
|
...Gr()
|
|
2079
2079
|
},
|
|
2080
|
-
setup: (e) => () =>
|
|
2080
|
+
setup: (e) => () => Pn(e.value, e.emptyText)
|
|
2081
2081
|
}), Xr = () => ({
|
|
2082
2082
|
content: {
|
|
2083
2083
|
type: [String, Number]
|
|
@@ -2102,10 +2102,10 @@ const Ar = () => ({
|
|
|
2102
2102
|
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((a = e.ellipsis) == null ? void 0 : a.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
|
|
2103
2103
|
};
|
|
2104
2104
|
return () => {
|
|
2105
|
-
const a = i("span",
|
|
2105
|
+
const a = i("span", L({
|
|
2106
2106
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
2107
2107
|
style: `-webkit-line-clamp:${r()}`
|
|
2108
|
-
}, t), [
|
|
2108
|
+
}, t), [Pn(e.content, e.emptyText)]);
|
|
2109
2109
|
return !e.popoverProps || !o ? a : i(o, e.popoverProps, {
|
|
2110
2110
|
default: () => [a],
|
|
2111
2111
|
content: () => e.content
|
|
@@ -2139,7 +2139,7 @@ const Ar = () => ({
|
|
|
2139
2139
|
const o = (a = e.showProps) == null ? void 0 : a.content, r = e.value || st(e.value) ? e.value : o;
|
|
2140
2140
|
return e.convert ? e.convert(r, e) : r;
|
|
2141
2141
|
});
|
|
2142
|
-
return () => i(Yr,
|
|
2142
|
+
return () => i(Yr, L(J(t, "style", "class"), D(e.showProps, "content"), {
|
|
2143
2143
|
content: n.value
|
|
2144
2144
|
}), null);
|
|
2145
2145
|
}
|
|
@@ -2166,7 +2166,7 @@ const Ar = () => ({
|
|
|
2166
2166
|
return () => e.render ? e.render({
|
|
2167
2167
|
value: n.value,
|
|
2168
2168
|
props: e
|
|
2169
|
-
}) : i(et,
|
|
2169
|
+
}) : i(et, L({
|
|
2170
2170
|
class: "pro-show-digit"
|
|
2171
2171
|
}, J(t, "style", "class"), {
|
|
2172
2172
|
value: n.value,
|
|
@@ -2201,7 +2201,7 @@ const Ar = () => ({
|
|
|
2201
2201
|
color: r.value,
|
|
2202
2202
|
value: o.value,
|
|
2203
2203
|
props: e
|
|
2204
|
-
}) : i(et,
|
|
2204
|
+
}) : i(et, L({
|
|
2205
2205
|
class: "pro-show-options"
|
|
2206
2206
|
}, J(t, "style", "class"), {
|
|
2207
2207
|
style: `color:${r.value || ""}`,
|
|
@@ -2238,7 +2238,7 @@ const Ar = () => ({
|
|
|
2238
2238
|
}) => {
|
|
2239
2239
|
const n = w(() => {
|
|
2240
2240
|
const r = e.treeData || e.data || e.options, a = e.fieldNames || e.props;
|
|
2241
|
-
return
|
|
2241
|
+
return Wt(r, (u) => b(u, (a == null ? void 0 : a.label) || "label"), {
|
|
2242
2242
|
value: "value",
|
|
2243
2243
|
children: "children",
|
|
2244
2244
|
...a
|
|
@@ -2250,7 +2250,7 @@ const Ar = () => ({
|
|
|
2250
2250
|
return () => e.render ? e.render({
|
|
2251
2251
|
value: o.value,
|
|
2252
2252
|
props: e
|
|
2253
|
-
}) : i(et,
|
|
2253
|
+
}) : i(et, L({
|
|
2254
2254
|
class: "pro-show-tree"
|
|
2255
2255
|
}, J(t, "style", "class"), {
|
|
2256
2256
|
value: o.value,
|
|
@@ -2279,14 +2279,14 @@ const Ar = () => ({
|
|
|
2279
2279
|
setup: (e, {
|
|
2280
2280
|
attrs: t
|
|
2281
2281
|
}) => {
|
|
2282
|
-
const n = (r) => r && (e.isUnix ?
|
|
2282
|
+
const n = (r) => r && (e.isUnix ? xt.unix(r).format(e.format) : xt(r).format(e.format)), o = w(() => {
|
|
2283
2283
|
let r = e.value;
|
|
2284
2284
|
return Z(e.value) ? r = Qe(F(e.value, (a) => n(a) || ""), e.splitStr) : r = n(e.value) || "", e.convert ? e.convert(r, e) : r;
|
|
2285
2285
|
});
|
|
2286
2286
|
return () => e.render ? e.render({
|
|
2287
2287
|
value: o.value,
|
|
2288
2288
|
props: e
|
|
2289
|
-
}) : i(et,
|
|
2289
|
+
}) : i(et, L({
|
|
2290
2290
|
class: "pro-show-date"
|
|
2291
2291
|
}, J(t, "style", "class"), {
|
|
2292
2292
|
value: o.value,
|
|
@@ -2335,7 +2335,7 @@ const Ar = () => ({
|
|
|
2335
2335
|
return ((P = e.convertItem) == null ? void 0 : P.call(e, f)) || E;
|
|
2336
2336
|
}))), n(m, y);
|
|
2337
2337
|
};
|
|
2338
|
-
return () => r ? i(r,
|
|
2338
|
+
return () => r ? i(r, L({
|
|
2339
2339
|
class: "pro-uploader-text",
|
|
2340
2340
|
value: u.value,
|
|
2341
2341
|
"onUpdate:value": (d) => s(d, "update:value"),
|
|
@@ -2404,7 +2404,7 @@ const Ar = () => ({
|
|
|
2404
2404
|
protocol: u.protocol,
|
|
2405
2405
|
path: u.pathname,
|
|
2406
2406
|
origin: u.origin,
|
|
2407
|
-
query:
|
|
2407
|
+
query: Mt(u.search),
|
|
2408
2408
|
url: u.origin + u.pathname
|
|
2409
2409
|
};
|
|
2410
2410
|
} catch {
|
|
@@ -2412,18 +2412,18 @@ const Ar = () => ({
|
|
|
2412
2412
|
const t = e.indexOf("//") > -1 ? (a = e.split("//")) == null ? void 0 : a[0] : "";
|
|
2413
2413
|
let n = "", o = "";
|
|
2414
2414
|
e.indexOf("?") >= -1 && (n = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
|
|
2415
|
-
const r = o ?
|
|
2415
|
+
const r = o ? Mt(o) : {};
|
|
2416
2416
|
return { protocol: t, query: r, url: n };
|
|
2417
2417
|
},
|
|
2418
2418
|
stringifyUrl: ({ url: e, query: t }) => {
|
|
2419
2419
|
const n = lr(t);
|
|
2420
2420
|
return `${e}${n ? "?" : ""}${n || ""}`;
|
|
2421
2421
|
}
|
|
2422
|
-
},
|
|
2423
|
-
const { convertRouter: e } = oe(), t =
|
|
2422
|
+
}, Me = () => {
|
|
2423
|
+
const { convertRouter: e } = oe(), t = nn(), n = ft(), o = je(), u = { ...t, openMenu: (s) => {
|
|
2424
2424
|
if (!!s) {
|
|
2425
2425
|
if (Q(s.children) > 0) {
|
|
2426
|
-
const d =
|
|
2426
|
+
const d = _t(s.children, (m) => !m.children || Q(m.children) <= 0);
|
|
2427
2427
|
if (d) {
|
|
2428
2428
|
t.push({ name: d.value });
|
|
2429
2429
|
return;
|
|
@@ -2446,7 +2446,7 @@ const Ar = () => ({
|
|
|
2446
2446
|
if (!Z(e) || Q(e) <= 0)
|
|
2447
2447
|
return !1;
|
|
2448
2448
|
const t = e[0];
|
|
2449
|
-
return de(t) ?
|
|
2449
|
+
return de(t) ? Vt(t, "$") : !1;
|
|
2450
2450
|
}, Zr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, ea = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", ta = { get: b, pick: J, add: Vn, subtract: zn }, Xe = (e, t) => {
|
|
2451
2451
|
if (Zr(e)) {
|
|
2452
2452
|
const n = b(t, e.name$);
|
|
@@ -2455,7 +2455,7 @@ const Ar = () => ({
|
|
|
2455
2455
|
const n = {};
|
|
2456
2456
|
return ae(e, (o, r) => {
|
|
2457
2457
|
if (r !== "type$")
|
|
2458
|
-
if (
|
|
2458
|
+
if (Vt(r, "$")) {
|
|
2459
2459
|
const a = Xe(o, t);
|
|
2460
2460
|
me(n, r.replace("$", ""), a);
|
|
2461
2461
|
} else
|
|
@@ -2472,23 +2472,23 @@ const Ar = () => ({
|
|
|
2472
2472
|
}
|
|
2473
2473
|
return e;
|
|
2474
2474
|
}, na = () => {
|
|
2475
|
-
const e =
|
|
2475
|
+
const e = Jt(), { registerStoreMap: t } = oe();
|
|
2476
2476
|
return (n, o) => {
|
|
2477
2477
|
const r = b(t, n);
|
|
2478
2478
|
!r || e(n, o, !!r.persist, r.initialState);
|
|
2479
2479
|
};
|
|
2480
2480
|
}, bo = (e) => {
|
|
2481
2481
|
const { registerStoreMap: t } = oe(), n = b(t, e), o = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
|
|
2482
|
-
return
|
|
2482
|
+
return Zt(en((a) => {
|
|
2483
2483
|
const u = b(a, o);
|
|
2484
2484
|
return u || (_(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
|
|
2485
2485
|
}));
|
|
2486
|
-
},
|
|
2487
|
-
pe(
|
|
2486
|
+
}, Cn = Symbol("pro-module"), xe = () => he(Cn), ra = (e) => {
|
|
2487
|
+
pe(Cn, e);
|
|
2488
2488
|
}, ht = (e) => {
|
|
2489
2489
|
const {
|
|
2490
2490
|
subject$: t
|
|
2491
|
-
} =
|
|
2491
|
+
} = xe();
|
|
2492
2492
|
re(() => {
|
|
2493
2493
|
const n = t.subscribe({
|
|
2494
2494
|
next: (o) => {
|
|
@@ -2535,7 +2535,7 @@ const Ar = () => ({
|
|
|
2535
2535
|
}) => {
|
|
2536
2536
|
const o = ar(), {
|
|
2537
2537
|
router: r
|
|
2538
|
-
} =
|
|
2538
|
+
} = Me(), {
|
|
2539
2539
|
elementMap: a,
|
|
2540
2540
|
registerStoreMap: u,
|
|
2541
2541
|
expressionMethods: l
|
|
@@ -2577,7 +2577,7 @@ const Ar = () => ({
|
|
|
2577
2577
|
}, []);
|
|
2578
2578
|
const {
|
|
2579
2579
|
dispatchRequest: N
|
|
2580
|
-
} = $e(),
|
|
2580
|
+
} = $e(), R = (() => {
|
|
2581
2581
|
const x = {}, c = ue(e.actors || [], (p, g) => ({
|
|
2582
2582
|
...p,
|
|
2583
2583
|
[g.name]: g
|
|
@@ -2595,7 +2595,7 @@ const Ar = () => ({
|
|
|
2595
2595
|
var p;
|
|
2596
2596
|
return x.convertData ? x.convertData(c) : x.convertDataEx ? ee(x.convertDataEx, c) : (p = c.res) == null ? void 0 : p.data;
|
|
2597
2597
|
}, W = (x, ...c) => {
|
|
2598
|
-
const p = b(
|
|
2598
|
+
const p = b(R, x);
|
|
2599
2599
|
if (!p)
|
|
2600
2600
|
return;
|
|
2601
2601
|
const g = q(p, ...c);
|
|
@@ -2604,10 +2604,10 @@ const Ar = () => ({
|
|
|
2604
2604
|
payload: !0
|
|
2605
2605
|
}), N(p.actor, g);
|
|
2606
2606
|
};
|
|
2607
|
-
mr(X(
|
|
2607
|
+
mr(X(R), {
|
|
2608
2608
|
onSuccess: (x) => {
|
|
2609
2609
|
var g;
|
|
2610
|
-
const c = b(
|
|
2610
|
+
const c = b(R, x.name), p = B(c, x);
|
|
2611
2611
|
c != null && c.stateName && T({
|
|
2612
2612
|
type: c.stateName,
|
|
2613
2613
|
payload: p
|
|
@@ -2621,7 +2621,7 @@ const Ar = () => ({
|
|
|
2621
2621
|
},
|
|
2622
2622
|
onFailed: (x) => {
|
|
2623
2623
|
var p;
|
|
2624
|
-
const c = b(
|
|
2624
|
+
const c = b(R, x.name);
|
|
2625
2625
|
y({
|
|
2626
2626
|
type: Le.Fail,
|
|
2627
2627
|
payload: {
|
|
@@ -2631,7 +2631,7 @@ const Ar = () => ({
|
|
|
2631
2631
|
}), (p = c.onFailed) == null || p.call(c, x), c.onFailedEx && ne(c.onFailedEx, [x.err]);
|
|
2632
2632
|
},
|
|
2633
2633
|
onFinish: (x) => {
|
|
2634
|
-
const c = b(
|
|
2634
|
+
const c = b(R, [x.name, "loadingName"]);
|
|
2635
2635
|
c && T({
|
|
2636
2636
|
type: c,
|
|
2637
2637
|
payload: !1
|
|
@@ -2698,7 +2698,7 @@ const Ar = () => ({
|
|
|
2698
2698
|
}), ut = (e) => {
|
|
2699
2699
|
var t, n;
|
|
2700
2700
|
return !(!e || ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : n.toString()) === "Symbol(Comment)");
|
|
2701
|
-
},
|
|
2701
|
+
}, Mn = (e) => e.formValueType || e.valueType || "text", ve = (e) => {
|
|
2702
2702
|
var o, r;
|
|
2703
2703
|
const t = (o = e.formItemProps) == null ? void 0 : o.name;
|
|
2704
2704
|
return ((r = e.inputProps) == null ? void 0 : r.name) || t || e.dataIndex;
|
|
@@ -2728,9 +2728,9 @@ const Ar = () => ({
|
|
|
2728
2728
|
return ke(u, {
|
|
2729
2729
|
...d
|
|
2730
2730
|
}, l);
|
|
2731
|
-
},
|
|
2731
|
+
}, xn = (e, t, n) => {
|
|
2732
2732
|
var m, y;
|
|
2733
|
-
const o =
|
|
2733
|
+
const o = Mn(n), r = b(t, o);
|
|
2734
2734
|
if (!r)
|
|
2735
2735
|
return null;
|
|
2736
2736
|
const a = n.inputProps, u = ((m = a == null ? void 0 : a.fieldProps) == null ? void 0 : m.slots) || ((y = n.formFieldProps) == null ? void 0 : y.slots) || {};
|
|
@@ -2756,12 +2756,12 @@ const Ar = () => ({
|
|
|
2756
2756
|
label: s,
|
|
2757
2757
|
...d
|
|
2758
2758
|
}, u);
|
|
2759
|
-
}, ua = (e) => e && !_(e) && e.elementType, gt = (e, t) => F(t, (n) => Re(e, n)),
|
|
2759
|
+
}, ua = (e) => e && !_(e) && e.elementType, gt = (e, t) => F(t, (n) => Re(e, n)), In = (e, t) => {
|
|
2760
2760
|
var a;
|
|
2761
2761
|
const n = t.elementProps, o = {
|
|
2762
2762
|
...t.elementProps
|
|
2763
2763
|
}, r = n == null ? void 0 : n.class;
|
|
2764
|
-
return r && (typeof r == "object" ? o.class =
|
|
2764
|
+
return r && (typeof r == "object" ? o.class = It(r) : de(r) && r.indexOf(":") > 0 && (o.class = It`
|
|
2765
2765
|
${r}
|
|
2766
2766
|
`)), ae((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (u) => {
|
|
2767
2767
|
const l = b(n, u.name);
|
|
@@ -2784,7 +2784,7 @@ const Ar = () => ({
|
|
|
2784
2784
|
}) : me(o, u.name, Re(e, l)));
|
|
2785
2785
|
}
|
|
2786
2786
|
}), o;
|
|
2787
|
-
},
|
|
2787
|
+
}, En = (e, t) => {
|
|
2788
2788
|
const n = Q(t.children) > 0 ? gt(e, t.children) : void 0, o = t.childrenSlotName || "default", r = D(t.slots, n ? o : "");
|
|
2789
2789
|
return ae(X(r), (a) => {
|
|
2790
2790
|
const u = r[a];
|
|
@@ -2810,7 +2810,7 @@ const Ar = () => ({
|
|
|
2810
2810
|
elementMap: e,
|
|
2811
2811
|
elementConfig: t
|
|
2812
2812
|
});
|
|
2813
|
-
const o =
|
|
2813
|
+
const o = En(e, t), r = In(e, t);
|
|
2814
2814
|
return ke(n, {
|
|
2815
2815
|
key: t.elementId,
|
|
2816
2816
|
...r
|
|
@@ -2830,10 +2830,10 @@ const Ar = () => ({
|
|
|
2830
2830
|
state: t,
|
|
2831
2831
|
sendEvent: n,
|
|
2832
2832
|
execute: o
|
|
2833
|
-
} =
|
|
2833
|
+
} = xe(), {
|
|
2834
2834
|
elementMap: r,
|
|
2835
2835
|
elementConfig: a
|
|
2836
|
-
} = e, u = a.highConfig$, l =
|
|
2836
|
+
} = e, u = a.highConfig$, l = In(r, a);
|
|
2837
2837
|
ae((h = a.highConfig$) == null ? void 0 : h.registerEventList, (E) => {
|
|
2838
2838
|
const P = (...T) => {
|
|
2839
2839
|
const v = `${a.elementId}-${E.name}`;
|
|
@@ -2841,8 +2841,8 @@ const Ar = () => ({
|
|
|
2841
2841
|
type: v,
|
|
2842
2842
|
payload: T
|
|
2843
2843
|
}), o(E.executeList, T);
|
|
2844
|
-
}, C =
|
|
2845
|
-
l &&
|
|
2844
|
+
}, C = Gt(E.name, l);
|
|
2845
|
+
l && Xt(C) && Yt(C, l) && me(l, C, P);
|
|
2846
2846
|
});
|
|
2847
2847
|
const s = w(() => {
|
|
2848
2848
|
if (!u.registerStateList || Q(u.registerStateList) <= 0)
|
|
@@ -2854,7 +2854,7 @@ const Ar = () => ({
|
|
|
2854
2854
|
return me(E, v, M), la(v);
|
|
2855
2855
|
});
|
|
2856
2856
|
return J(E, C);
|
|
2857
|
-
}), d = b(r, a.elementType) || a.elementType, m =
|
|
2857
|
+
}), d = b(r, a.elementType) || a.elementType, m = En(r, a), y = ue(G(u.registerStateList, (E) => E.target === "slot"), (E, P) => ({
|
|
2858
2858
|
...E,
|
|
2859
2859
|
[P.mapName]: () => b(t, P.name)
|
|
2860
2860
|
}), {}), f = {
|
|
@@ -2868,13 +2868,13 @@ const Ar = () => ({
|
|
|
2868
2868
|
}, f);
|
|
2869
2869
|
}
|
|
2870
2870
|
}), ca = (e, t) => {
|
|
2871
|
-
!e || !t ||
|
|
2872
|
-
const r =
|
|
2873
|
-
if (!
|
|
2871
|
+
!e || !t || Bt(t) || Ne(e) || ae(t, (n, o) => {
|
|
2872
|
+
const r = Gt(o, e);
|
|
2873
|
+
if (!Xt(r)) {
|
|
2874
2874
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
|
|
2875
2875
|
return;
|
|
2876
2876
|
}
|
|
2877
|
-
if (!
|
|
2877
|
+
if (!Yt(r, e)) {
|
|
2878
2878
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", r);
|
|
2879
2879
|
return;
|
|
2880
2880
|
}
|
|
@@ -2900,7 +2900,7 @@ const Ar = () => ({
|
|
|
2900
2900
|
setup: (e) => {
|
|
2901
2901
|
const {
|
|
2902
2902
|
execute: t
|
|
2903
|
-
} =
|
|
2903
|
+
} = xe();
|
|
2904
2904
|
return re(() => {
|
|
2905
2905
|
e.initExecuteList && t(e.initExecuteList, []);
|
|
2906
2906
|
}, []), () => null;
|
|
@@ -2912,7 +2912,7 @@ const Ar = () => ({
|
|
|
2912
2912
|
Logic: o
|
|
2913
2913
|
}) => k(() => {
|
|
2914
2914
|
const r = H(), a = (s) => {
|
|
2915
|
-
const d =
|
|
2915
|
+
const d = zt(s);
|
|
2916
2916
|
return n && (Z(d) ? ae(d, (m) => Te(m, n)) : Te(d, n)), d;
|
|
2917
2917
|
};
|
|
2918
2918
|
re(() => {
|
|
@@ -2934,7 +2934,7 @@ const Ar = () => ({
|
|
|
2934
2934
|
class: "pro-module-loading-dom"
|
|
2935
2935
|
}, null)]
|
|
2936
2936
|
}) : null;
|
|
2937
|
-
}),
|
|
2937
|
+
}), wn = Symbol("pro-curd"), te = () => he(wn), da = (e) => pe(wn, e);
|
|
2938
2938
|
var $ = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))($ || {}), z = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(z || {}), be = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(be || {}), Fe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Fe || {});
|
|
2939
2939
|
const fa = () => ({
|
|
2940
2940
|
rowKey: {
|
|
@@ -2974,10 +2974,10 @@ const fa = () => ({
|
|
|
2974
2974
|
subPageProps: {
|
|
2975
2975
|
type: Object
|
|
2976
2976
|
}
|
|
2977
|
-
}),
|
|
2977
|
+
}), bt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Dt = k({
|
|
2978
2978
|
inheritAttrs: !1,
|
|
2979
2979
|
props: {
|
|
2980
|
-
...
|
|
2980
|
+
...Ie,
|
|
2981
2981
|
...fa()
|
|
2982
2982
|
},
|
|
2983
2983
|
setup: (e, {
|
|
@@ -2986,12 +2986,12 @@ const fa = () => ({
|
|
|
2986
2986
|
}) => {
|
|
2987
2987
|
const o = je(), {
|
|
2988
2988
|
route: r
|
|
2989
|
-
} =
|
|
2989
|
+
} = Me(), {
|
|
2990
2990
|
elementMap: a,
|
|
2991
2991
|
state: u,
|
|
2992
2992
|
sendEvent: l,
|
|
2993
2993
|
sendRequest: s
|
|
2994
|
-
} =
|
|
2994
|
+
} = xe(), d = w(() => {
|
|
2995
2995
|
if (e.title)
|
|
2996
2996
|
return e.title;
|
|
2997
2997
|
if (e.useMenuName && o) {
|
|
@@ -3009,7 +3009,7 @@ const fa = () => ({
|
|
|
3009
3009
|
const O = b(g, ["extra", x]) || b(g, x);
|
|
3010
3010
|
return c ? O !== !1 : O;
|
|
3011
3011
|
});
|
|
3012
|
-
return
|
|
3012
|
+
return Ut(p, (g) => b(g, ["extra", `${x}Sort`]) || b(g, `${x}Sort`));
|
|
3013
3013
|
}, f = w(() => y("form", !0)), h = w(() => y("detail", !0)), E = w(() => y("table", !0)), P = w(() => y("search"));
|
|
3014
3014
|
let C;
|
|
3015
3015
|
const T = (x) => {
|
|
@@ -3056,7 +3056,7 @@ const fa = () => ({
|
|
|
3056
3056
|
const M = ue(e.operates, (x, c) => ({
|
|
3057
3057
|
...x,
|
|
3058
3058
|
[c.action]: c
|
|
3059
|
-
}), {}), N = (x) => b(M, x), A = w(() => e.defaultAddRecord),
|
|
3059
|
+
}), {}), N = (x) => b(M, x), A = w(() => e.defaultAddRecord), R = w(() => e.listProps), q = w(() => e.formProps), B = w(() => e.descProps), W = w(() => e.modalProps), ee = w(() => e.pageProps), ne = w(() => e.subPageProps);
|
|
3060
3060
|
return da({
|
|
3061
3061
|
columns: m,
|
|
3062
3062
|
getSignColumns: y,
|
|
@@ -3074,7 +3074,7 @@ const fa = () => ({
|
|
|
3074
3074
|
refreshList: T,
|
|
3075
3075
|
defaultAddRecord: A,
|
|
3076
3076
|
title: d.value,
|
|
3077
|
-
listProps:
|
|
3077
|
+
listProps: R,
|
|
3078
3078
|
formProps: q,
|
|
3079
3079
|
descProps: B,
|
|
3080
3080
|
modalProps: W,
|
|
@@ -3091,7 +3091,7 @@ const fa = () => ({
|
|
|
3091
3091
|
}), Ye = k({
|
|
3092
3092
|
props: {
|
|
3093
3093
|
...D(Ve.props, "state", "requests"),
|
|
3094
|
-
...
|
|
3094
|
+
...Dt.props,
|
|
3095
3095
|
curdState: {
|
|
3096
3096
|
type: Object
|
|
3097
3097
|
}
|
|
@@ -3174,14 +3174,14 @@ const fa = () => ({
|
|
|
3174
3174
|
var E;
|
|
3175
3175
|
(E = a.value) == null || E.sendRequest(f, ...h);
|
|
3176
3176
|
}
|
|
3177
|
-
}), () => i(Ve,
|
|
3177
|
+
}), () => i(Ve, L({
|
|
3178
3178
|
ref: a
|
|
3179
3179
|
}, J(e, y), {
|
|
3180
3180
|
elementMap: e.elementMap || o,
|
|
3181
3181
|
state: l,
|
|
3182
3182
|
requests: m
|
|
3183
3183
|
}), {
|
|
3184
|
-
default: () => [i(
|
|
3184
|
+
default: () => [i(Dt, L({
|
|
3185
3185
|
ref: u
|
|
3186
3186
|
}, D(e, ...y, "curdState", "operates", "convertOperate"), {
|
|
3187
3187
|
formElementMap: e.formElementMap || r,
|
|
@@ -3192,7 +3192,7 @@ const fa = () => ({
|
|
|
3192
3192
|
}), Tn = () => {
|
|
3193
3193
|
const {
|
|
3194
3194
|
dispatch: e
|
|
3195
|
-
} =
|
|
3195
|
+
} = xe(), {
|
|
3196
3196
|
curdState: t,
|
|
3197
3197
|
getOperate: n,
|
|
3198
3198
|
title: o
|
|
@@ -3241,7 +3241,7 @@ const fa = () => ({
|
|
|
3241
3241
|
const {
|
|
3242
3242
|
dispatch: t,
|
|
3243
3243
|
sendRequest: n
|
|
3244
|
-
} =
|
|
3244
|
+
} = xe(), {
|
|
3245
3245
|
rowKey: o,
|
|
3246
3246
|
curdState: r,
|
|
3247
3247
|
listProps: a,
|
|
@@ -3252,7 +3252,7 @@ const fa = () => ({
|
|
|
3252
3252
|
const C = u($.DETAIL);
|
|
3253
3253
|
C != null && C.actor ? n($.DETAIL, P, o) : t({
|
|
3254
3254
|
type: "detailData",
|
|
3255
|
-
payload:
|
|
3255
|
+
payload: zt(P)
|
|
3256
3256
|
});
|
|
3257
3257
|
}, y = (P, {
|
|
3258
3258
|
record: C
|
|
@@ -3322,9 +3322,9 @@ const fa = () => ({
|
|
|
3322
3322
|
expose: n
|
|
3323
3323
|
}) => {
|
|
3324
3324
|
const o = H();
|
|
3325
|
-
n(
|
|
3325
|
+
n(Ce(bt, o));
|
|
3326
3326
|
const r = X(ze.props), u = Y()(j.ProCurdKey);
|
|
3327
|
-
return () => u ? i(u,
|
|
3327
|
+
return () => u ? i(u, L({
|
|
3328
3328
|
ref: o
|
|
3329
3329
|
}, D(e, r)), {
|
|
3330
3330
|
default: () => {
|
|
@@ -3345,10 +3345,10 @@ const fa = () => ({
|
|
|
3345
3345
|
...ya()
|
|
3346
3346
|
},
|
|
3347
3347
|
setup: (e) => {
|
|
3348
|
-
const t =
|
|
3348
|
+
const t = nn(), n = ft(), {
|
|
3349
3349
|
dispatch: o,
|
|
3350
3350
|
sendRequest: r
|
|
3351
|
-
} =
|
|
3351
|
+
} = xe(), {
|
|
3352
3352
|
rowKey: a,
|
|
3353
3353
|
curdState: u
|
|
3354
3354
|
} = te(), l = (y) => {
|
|
@@ -3438,9 +3438,9 @@ const fa = () => ({
|
|
|
3438
3438
|
expose: n
|
|
3439
3439
|
}) => {
|
|
3440
3440
|
const o = H();
|
|
3441
|
-
n(
|
|
3441
|
+
n(Ce(bt, o));
|
|
3442
3442
|
const r = X(at.props);
|
|
3443
|
-
return () => i(Ye,
|
|
3443
|
+
return () => i(Ye, L({
|
|
3444
3444
|
ref: o
|
|
3445
3445
|
}, D(e, r)), {
|
|
3446
3446
|
default: () => {
|
|
@@ -3449,14 +3449,14 @@ const fa = () => ({
|
|
|
3449
3449
|
}
|
|
3450
3450
|
});
|
|
3451
3451
|
}
|
|
3452
|
-
}),
|
|
3452
|
+
}), Ot = k({
|
|
3453
3453
|
props: {
|
|
3454
3454
|
buttonProps: Object
|
|
3455
3455
|
},
|
|
3456
3456
|
setup: (e, {
|
|
3457
3457
|
slots: t
|
|
3458
3458
|
}) => {
|
|
3459
|
-
const n =
|
|
3459
|
+
const n = pn(), {
|
|
3460
3460
|
getOperate: o,
|
|
3461
3461
|
sendCurdEvent: r
|
|
3462
3462
|
} = te(), a = o($.ADD), u = () => {
|
|
@@ -3469,7 +3469,7 @@ const fa = () => ({
|
|
|
3469
3469
|
type: z.EMIT
|
|
3470
3470
|
});
|
|
3471
3471
|
}, s = Y()(j.ButtonKey);
|
|
3472
|
-
return () => !a || !n(a.per, a.perSuffix) || !(_(a.show) ? a.show({}) : a.show) ? null : a.element ? a.element({}, a) : t.default ? t.default(a, u) : s ? i(s,
|
|
3472
|
+
return () => !a || !n(a.per, a.perSuffix) || !(_(a.show) ? a.show({}) : a.show) ? null : a.element ? a.element({}, a) : t.default ? t.default(a, u) : s ? i(s, L({
|
|
3473
3473
|
class: "pro-curd-add-button",
|
|
3474
3474
|
disabled: _(a.disabled) ? a.disabled() : a.disabled
|
|
3475
3475
|
}, e.buttonProps, {
|
|
@@ -3478,7 +3478,7 @@ const fa = () => ({
|
|
|
3478
3478
|
default: () => [a.label]
|
|
3479
3479
|
}) : null;
|
|
3480
3480
|
}
|
|
3481
|
-
}),
|
|
3481
|
+
}), Kt = () => ({
|
|
3482
3482
|
addConfig: {
|
|
3483
3483
|
type: Object,
|
|
3484
3484
|
default: {
|
|
@@ -3492,7 +3492,7 @@ const fa = () => ({
|
|
|
3492
3492
|
}), Nn = k({
|
|
3493
3493
|
props: {
|
|
3494
3494
|
...Wr.props,
|
|
3495
|
-
...
|
|
3495
|
+
...Kt()
|
|
3496
3496
|
},
|
|
3497
3497
|
setup: (e, {
|
|
3498
3498
|
slots: t
|
|
@@ -3560,13 +3560,13 @@ const fa = () => ({
|
|
|
3560
3560
|
}), P = w(() => {
|
|
3561
3561
|
var M;
|
|
3562
3562
|
return e.paginationProps === !1 ? !1 : !!((M = r.listData) != null && M.total);
|
|
3563
|
-
}), C = X(
|
|
3563
|
+
}), C = X(Kt()), v = Y()(j.ProListKey);
|
|
3564
3564
|
return () => {
|
|
3565
3565
|
var N, A;
|
|
3566
3566
|
if (!v)
|
|
3567
3567
|
return null;
|
|
3568
3568
|
const M = ["pro-curd-list"];
|
|
3569
|
-
return P.value && M.push("has-pagination"), i(v,
|
|
3569
|
+
return P.value && M.push("has-pagination"), i(v, L({
|
|
3570
3570
|
class: M
|
|
3571
3571
|
}, D(e, ...C, "searchProps", "tableProps", "paginationProps"), {
|
|
3572
3572
|
searchProps: f.value,
|
|
@@ -3575,19 +3575,19 @@ const fa = () => ({
|
|
|
3575
3575
|
onSearch: y
|
|
3576
3576
|
}), {
|
|
3577
3577
|
"search-end": (N = e.addConfig) != null && N.inSearch ? () => {
|
|
3578
|
-
var
|
|
3578
|
+
var R;
|
|
3579
3579
|
return i("div", {
|
|
3580
3580
|
class: "pro-curd-list-search-end"
|
|
3581
|
-
}, [i(
|
|
3581
|
+
}, [i(Ot, (R = e.addConfig) == null ? void 0 : R.buttonProps, null)]);
|
|
3582
3582
|
} : void 0,
|
|
3583
|
-
"table-toolbarExtra": (A = e.addConfig) != null && A.inTable ? (
|
|
3583
|
+
"table-toolbarExtra": (A = e.addConfig) != null && A.inTable ? (R) => {
|
|
3584
3584
|
var q;
|
|
3585
|
-
return i(se, null, [i(
|
|
3585
|
+
return i(se, null, [i(Ot, (q = e.addConfig) == null ? void 0 : q.buttonProps, null), R]);
|
|
3586
3586
|
} : void 0,
|
|
3587
3587
|
...t,
|
|
3588
|
-
search: t.search ? (
|
|
3589
|
-
table: t.table ? (
|
|
3590
|
-
pagination: t.pagination ? (
|
|
3588
|
+
search: t.search ? (R) => t.search(R, f.value) : void 0,
|
|
3589
|
+
table: t.table ? (R) => t.table(R, h.value) : void 0,
|
|
3590
|
+
pagination: t.pagination ? (R) => t.pagination(R, E.value) : void 0
|
|
3591
3591
|
});
|
|
3592
3592
|
};
|
|
3593
3593
|
}
|
|
@@ -3598,7 +3598,11 @@ const fa = () => ({
|
|
|
3598
3598
|
return () => i(Nn, D(e == null ? void 0 : e.value, "slots"), b(e == null ? void 0 : e.value, "slots"));
|
|
3599
3599
|
}), ha = k({
|
|
3600
3600
|
props: {
|
|
3601
|
-
...
|
|
3601
|
+
...Sn.props,
|
|
3602
|
+
as: {
|
|
3603
|
+
type: String,
|
|
3604
|
+
default: "div"
|
|
3605
|
+
}
|
|
3602
3606
|
},
|
|
3603
3607
|
setup: (e, {
|
|
3604
3608
|
slots: t
|
|
@@ -3606,7 +3610,7 @@ const fa = () => ({
|
|
|
3606
3610
|
const {
|
|
3607
3611
|
listProps: n
|
|
3608
3612
|
} = te(), r = Y()(j.ProPageKey);
|
|
3609
|
-
return () => i(r,
|
|
3613
|
+
return () => i(r, L({
|
|
3610
3614
|
class: "curd-list has-footer"
|
|
3611
3615
|
}, e), {
|
|
3612
3616
|
default: () => [i(Nn, D(n.value, "slots"), {
|
|
@@ -3644,7 +3648,7 @@ const fa = () => ({
|
|
|
3644
3648
|
getSignColumns: s,
|
|
3645
3649
|
sendCurdEvent: d
|
|
3646
3650
|
} = te(), m = H();
|
|
3647
|
-
n(
|
|
3651
|
+
n(Ce(e.formMethods || [], m));
|
|
3648
3652
|
const y = w(() => e.signName ? s(e.signName) : l.value), f = () => {
|
|
3649
3653
|
var v;
|
|
3650
3654
|
u.addAction = Fe.NORMAL, (v = m.value) == null || v.submit();
|
|
@@ -3682,7 +3686,7 @@ const fa = () => ({
|
|
|
3682
3686
|
values: v
|
|
3683
3687
|
}));
|
|
3684
3688
|
}, T = Y()(j.ProFormKey);
|
|
3685
|
-
return () => T ? i(T,
|
|
3689
|
+
return () => T ? i(T, L({
|
|
3686
3690
|
ref: m,
|
|
3687
3691
|
class: "pro-curd-form"
|
|
3688
3692
|
}, D(e, "operate"), {
|
|
@@ -3722,7 +3726,7 @@ const fa = () => ({
|
|
|
3722
3726
|
descColumns: o,
|
|
3723
3727
|
getSignColumns: r
|
|
3724
3728
|
} = te(), a = w(() => e.signName ? r(e.signName) : o.value);
|
|
3725
|
-
return () => i(_r,
|
|
3729
|
+
return () => i(_r, L(D(e, "signName", "model", "columns"), {
|
|
3726
3730
|
model: e.model || n.detailData,
|
|
3727
3731
|
columns: a.value
|
|
3728
3732
|
}), t);
|
|
@@ -3731,10 +3735,10 @@ const fa = () => ({
|
|
|
3731
3735
|
const {
|
|
3732
3736
|
descProps: e
|
|
3733
3737
|
} = te();
|
|
3734
|
-
return () => i(Sa,
|
|
3738
|
+
return () => i(Sa, L({
|
|
3735
3739
|
class: "pro-curd-desc"
|
|
3736
3740
|
}, D(e == null ? void 0 : e.value, "slots")), b(e == null ? void 0 : e.value, "slots"));
|
|
3737
|
-
}),
|
|
3741
|
+
}), Lt = () => ({
|
|
3738
3742
|
validMode: {
|
|
3739
3743
|
type: Array,
|
|
3740
3744
|
default: [$.ADD, $.DETAIL, $.EDIT]
|
|
@@ -3747,7 +3751,7 @@ const fa = () => ({
|
|
|
3747
3751
|
}
|
|
3748
3752
|
}), An = k({
|
|
3749
3753
|
props: {
|
|
3750
|
-
...
|
|
3754
|
+
...Lt()
|
|
3751
3755
|
},
|
|
3752
3756
|
setup: (e, {
|
|
3753
3757
|
slots: t
|
|
@@ -3759,12 +3763,12 @@ const fa = () => ({
|
|
|
3759
3763
|
opeTitle: r
|
|
3760
3764
|
} = Tn(), a = w(() => e.title || r.value), u = w(() => !!Pe(e.validMode, (f) => f === n.mode)), l = (f) => {
|
|
3761
3765
|
f || o();
|
|
3762
|
-
}, s = X(
|
|
3766
|
+
}, s = X(Lt()), d = Y(), m = d(j.ModalKey), y = d(j.LoadingKey);
|
|
3763
3767
|
return () => {
|
|
3764
3768
|
if (!u.value)
|
|
3765
3769
|
return null;
|
|
3766
3770
|
const f = n.mode;
|
|
3767
|
-
return i(m,
|
|
3771
|
+
return i(m, L({
|
|
3768
3772
|
class: "pro-curd-modal"
|
|
3769
3773
|
}, D(e, s), {
|
|
3770
3774
|
visible: !0,
|
|
@@ -3777,7 +3781,7 @@ const fa = () => ({
|
|
|
3777
3781
|
}), {
|
|
3778
3782
|
default: () => {
|
|
3779
3783
|
var h;
|
|
3780
|
-
return [n.detailLoading && y ? i(y,
|
|
3784
|
+
return [n.detailLoading && y ? i(y, L({
|
|
3781
3785
|
loading: !0
|
|
3782
3786
|
}, e.loadingOpts), {
|
|
3783
3787
|
default: () => [i("div", {
|
|
@@ -3798,13 +3802,13 @@ const fa = () => ({
|
|
|
3798
3802
|
slots: t
|
|
3799
3803
|
}) => {
|
|
3800
3804
|
const n = H(), o = ye(t, "modal"), r = ye(t, "form");
|
|
3801
|
-
return () => i(An,
|
|
3805
|
+
return () => i(An, L(e.modalProps, {
|
|
3802
3806
|
onOk: () => {
|
|
3803
3807
|
var a;
|
|
3804
3808
|
(a = n.value) == null || a.submit();
|
|
3805
3809
|
}
|
|
3806
3810
|
}), {
|
|
3807
|
-
default: () => [i(tt,
|
|
3811
|
+
default: () => [i(tt, L({
|
|
3808
3812
|
ref: n
|
|
3809
3813
|
}, e.formProps), r)],
|
|
3810
3814
|
...o
|
|
@@ -3815,18 +3819,18 @@ const fa = () => ({
|
|
|
3815
3819
|
modalProps: e,
|
|
3816
3820
|
formProps: t
|
|
3817
3821
|
} = te(), n = H();
|
|
3818
|
-
return () => i(An,
|
|
3822
|
+
return () => i(An, L(D(e == null ? void 0 : e.value, "slots"), {
|
|
3819
3823
|
onOk: () => {
|
|
3820
3824
|
var o;
|
|
3821
3825
|
(o = n.value) == null || o.submit();
|
|
3822
3826
|
}
|
|
3823
3827
|
}), {
|
|
3824
|
-
default: () => [i(tt,
|
|
3828
|
+
default: () => [i(tt, L({
|
|
3825
3829
|
ref: n
|
|
3826
3830
|
}, D(t == null ? void 0 : t.value, "slots")), b(t == null ? void 0 : t.value, "slots"))],
|
|
3827
3831
|
...b(e == null ? void 0 : e.value, "slots")
|
|
3828
3832
|
});
|
|
3829
|
-
}),
|
|
3833
|
+
}), Rt = () => ({
|
|
3830
3834
|
validMode: {
|
|
3831
3835
|
type: Array,
|
|
3832
3836
|
default: [$.ADD, $.DETAIL, $.EDIT]
|
|
@@ -3842,9 +3846,9 @@ const fa = () => ({
|
|
|
3842
3846
|
type: String,
|
|
3843
3847
|
default: "\u786E\u8BA4"
|
|
3844
3848
|
}
|
|
3845
|
-
}),
|
|
3849
|
+
}), Ft = k({
|
|
3846
3850
|
props: {
|
|
3847
|
-
...
|
|
3851
|
+
...Sn.props,
|
|
3848
3852
|
sub: {
|
|
3849
3853
|
type: Boolean,
|
|
3850
3854
|
default: !0
|
|
@@ -3853,7 +3857,7 @@ const fa = () => ({
|
|
|
3853
3857
|
type: Boolean,
|
|
3854
3858
|
default: !0
|
|
3855
3859
|
},
|
|
3856
|
-
...
|
|
3860
|
+
...Rt()
|
|
3857
3861
|
},
|
|
3858
3862
|
setup: (e, {
|
|
3859
3863
|
emit: t,
|
|
@@ -3884,14 +3888,14 @@ const fa = () => ({
|
|
|
3884
3888
|
loading: o.operateLoading,
|
|
3885
3889
|
onClick: s
|
|
3886
3890
|
}];
|
|
3887
|
-
}), y = Y()(j.ProPageKey), f = X(
|
|
3888
|
-
return () => l.value ? i(y,
|
|
3891
|
+
}), y = Y()(j.ProPageKey), f = X(Rt());
|
|
3892
|
+
return () => l.value ? i(y, L({
|
|
3889
3893
|
class: "curd"
|
|
3890
3894
|
}, D(e, f), {
|
|
3891
3895
|
title: u.value,
|
|
3892
3896
|
onBackClick: e.onBackClick || r
|
|
3893
3897
|
}), {
|
|
3894
|
-
footer: () => o.mode === $.DETAIL ? null : i(vt,
|
|
3898
|
+
footer: () => o.mode === $.DETAIL ? null : i(vt, L(e.operate, {
|
|
3895
3899
|
items: d.value
|
|
3896
3900
|
}), null),
|
|
3897
3901
|
...n
|
|
@@ -3899,7 +3903,7 @@ const fa = () => ({
|
|
|
3899
3903
|
}
|
|
3900
3904
|
}), Ca = k({
|
|
3901
3905
|
props: {
|
|
3902
|
-
...
|
|
3906
|
+
...Ft.props
|
|
3903
3907
|
},
|
|
3904
3908
|
setup: (e, {
|
|
3905
3909
|
slots: t
|
|
@@ -3910,12 +3914,12 @@ const fa = () => ({
|
|
|
3910
3914
|
var a;
|
|
3911
3915
|
(a = o.value) == null || a.submit();
|
|
3912
3916
|
};
|
|
3913
|
-
return () => i(
|
|
3917
|
+
return () => i(Ft, L(e, {
|
|
3914
3918
|
onOk: r
|
|
3915
3919
|
}), {
|
|
3916
3920
|
default: () => {
|
|
3917
3921
|
var a, u;
|
|
3918
|
-
return [(a = t.start) == null ? void 0 : a.call(t), i(tt,
|
|
3922
|
+
return [(a = t.start) == null ? void 0 : a.call(t), i(tt, L({
|
|
3919
3923
|
ref: o
|
|
3920
3924
|
}, D(n == null ? void 0 : n.value, "slots")), b(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
|
|
3921
3925
|
},
|
|
@@ -3927,7 +3931,7 @@ const fa = () => ({
|
|
|
3927
3931
|
subPageProps: e
|
|
3928
3932
|
} = te();
|
|
3929
3933
|
return () => i(Ca, D(e == null ? void 0 : e.value, "slots"), b(e == null ? void 0 : e.value, "slots"));
|
|
3930
|
-
}),
|
|
3934
|
+
}), $t = () => ({
|
|
3931
3935
|
listType: {
|
|
3932
3936
|
type: String,
|
|
3933
3937
|
default: "page"
|
|
@@ -3938,23 +3942,28 @@ const fa = () => ({
|
|
|
3938
3942
|
}), Eo = k({
|
|
3939
3943
|
props: {
|
|
3940
3944
|
...Ye.props,
|
|
3941
|
-
|
|
3945
|
+
...$t()
|
|
3942
3946
|
},
|
|
3943
3947
|
setup: (e, {
|
|
3944
|
-
slots: t
|
|
3948
|
+
slots: t,
|
|
3949
|
+
expose: n
|
|
3945
3950
|
}) => {
|
|
3946
|
-
const o =
|
|
3951
|
+
const o = H();
|
|
3952
|
+
n(Ce(bt, o));
|
|
3953
|
+
const a = Y()(j.ProCurdKey), u = X($t());
|
|
3947
3954
|
return () => {
|
|
3948
|
-
const
|
|
3949
|
-
return i(
|
|
3955
|
+
const l = e.listType, s = e.modalType;
|
|
3956
|
+
return i(a, L({
|
|
3957
|
+
ref: o
|
|
3958
|
+
}, D(e, u)), {
|
|
3950
3959
|
default: () => {
|
|
3951
|
-
var
|
|
3952
|
-
return [
|
|
3960
|
+
var d;
|
|
3961
|
+
return [l === "page" && i(pa, null, null), l === "list" && i(va, null, null), s === "page" && i(Ma, null, null), s === "modal" && i(Pa, null, null), (s === "page" || s === "modal") && i(ze, null, null), (d = t.default) == null ? void 0 : d.call(t)];
|
|
3953
3962
|
}
|
|
3954
3963
|
});
|
|
3955
3964
|
};
|
|
3956
3965
|
}
|
|
3957
|
-
}), xa =
|
|
3966
|
+
}), xa = tn("app-config", void 0, !0), kn = () => {
|
|
3958
3967
|
const {
|
|
3959
3968
|
appConfig: e
|
|
3960
3969
|
} = oe(), [t, n] = xa(), o = fe({
|
|
@@ -4151,7 +4160,7 @@ const fa = () => ({
|
|
|
4151
4160
|
}
|
|
4152
4161
|
});
|
|
4153
4162
|
}
|
|
4154
|
-
}), Ea = (e, t) =>
|
|
4163
|
+
}), Ea = (e, t) => rn(t / 10, "#000000", e), wa = (e, t) => rn(t / 10, "#ffffff", e), Ta = (e, t) => {
|
|
4155
4164
|
var r, a, u, l, s, d, m, y, f, h, E, P;
|
|
4156
4165
|
const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], o = (C) => ({
|
|
4157
4166
|
base: C,
|
|
@@ -4254,7 +4263,7 @@ const fa = () => ({
|
|
|
4254
4263
|
r();
|
|
4255
4264
|
}, l, {
|
|
4256
4265
|
deep: !0
|
|
4257
|
-
}), pe(
|
|
4266
|
+
}), pe(an, {
|
|
4258
4267
|
theme: l
|
|
4259
4268
|
});
|
|
4260
4269
|
const s = w(() => e.createCssVar ? e.createCssVar(l, a.value) : {}), d = w(() => a.value === "dark" ? {
|
|
@@ -4275,20 +4284,20 @@ const fa = () => ({
|
|
|
4275
4284
|
}
|
|
4276
4285
|
});
|
|
4277
4286
|
export {
|
|
4278
|
-
|
|
4287
|
+
Ot as AddButton,
|
|
4279
4288
|
ir as AppConfig,
|
|
4280
4289
|
Dr as ColumnSetting,
|
|
4281
4290
|
$ as CurdAction,
|
|
4282
4291
|
Fe as CurdAddAction,
|
|
4283
4292
|
be as CurdCurrentMode,
|
|
4284
|
-
|
|
4293
|
+
bt as CurdMethods,
|
|
4285
4294
|
z as CurdSubAction,
|
|
4286
4295
|
cr as DarkThemeToken,
|
|
4287
4296
|
j as ElementKeys,
|
|
4288
4297
|
le as FormAction,
|
|
4289
4298
|
to as FormRulePrefixMap,
|
|
4290
4299
|
oo as LogonUser,
|
|
4291
|
-
|
|
4300
|
+
vn as LogonUserKey,
|
|
4292
4301
|
ze as ModalCurdOpe,
|
|
4293
4302
|
uo as MustLogon,
|
|
4294
4303
|
rt as PageHeader,
|
|
@@ -4310,19 +4319,19 @@ export {
|
|
|
4310
4319
|
Io as ProCurdModalForm,
|
|
4311
4320
|
Pa as ProCurdModalFormConnect,
|
|
4312
4321
|
Eo as ProCurdModule,
|
|
4313
|
-
|
|
4322
|
+
Ft as ProCurdPage,
|
|
4314
4323
|
Ma as ProCurdPageConnect,
|
|
4315
4324
|
_r as ProDesc,
|
|
4316
4325
|
eo as ProForm,
|
|
4317
4326
|
Za as ProFormList,
|
|
4318
4327
|
we as ProGrid,
|
|
4319
4328
|
io as ProLayout,
|
|
4320
|
-
|
|
4329
|
+
bn as ProLayoutKey,
|
|
4321
4330
|
Wr as ProList,
|
|
4322
4331
|
Po as ProModalCurd,
|
|
4323
4332
|
Ve as ProModule,
|
|
4324
4333
|
vt as ProOperate,
|
|
4325
|
-
|
|
4334
|
+
Sn as ProPage,
|
|
4326
4335
|
Co as ProPageCurd,
|
|
4327
4336
|
Rr as ProRouterView,
|
|
4328
4337
|
no as ProSearchForm,
|
|
@@ -4342,12 +4351,12 @@ export {
|
|
|
4342
4351
|
Le as RequestAction,
|
|
4343
4352
|
Qr as RouterMethods,
|
|
4344
4353
|
Ge as SearchMode,
|
|
4345
|
-
|
|
4354
|
+
an as ThemeKey,
|
|
4346
4355
|
mt as ThemeToken,
|
|
4347
4356
|
sa as Wrapper,
|
|
4348
|
-
|
|
4357
|
+
ln as convertPathToList,
|
|
4349
4358
|
yr as convertResData,
|
|
4350
|
-
|
|
4359
|
+
Ce as createExpose,
|
|
4351
4360
|
Ja as createExposeObj,
|
|
4352
4361
|
ro as createFormItemCompFn,
|
|
4353
4362
|
So as createModule,
|
|
@@ -4356,7 +4365,7 @@ export {
|
|
|
4356
4365
|
zr as defaultPage,
|
|
4357
4366
|
ye as filterSlotsByPrefix,
|
|
4358
4367
|
ve as getColumnFormItemName,
|
|
4359
|
-
|
|
4368
|
+
Mn as getColumnValueType,
|
|
4360
4369
|
la as getFirstPropName,
|
|
4361
4370
|
oa as getRealRender,
|
|
4362
4371
|
br as getSignValue,
|
|
@@ -4365,15 +4374,15 @@ export {
|
|
|
4365
4374
|
ut as isValidNode,
|
|
4366
4375
|
Ze as mergeState,
|
|
4367
4376
|
Qa as mergeStateToList,
|
|
4368
|
-
|
|
4377
|
+
Ie as proBaseProps,
|
|
4369
4378
|
da as provideProCurd,
|
|
4370
|
-
|
|
4379
|
+
dn as provideProFormList,
|
|
4371
4380
|
ra as provideProModule,
|
|
4372
4381
|
pt as renderColumn,
|
|
4373
4382
|
Re as renderElement,
|
|
4374
4383
|
gt as renderElements,
|
|
4375
|
-
|
|
4376
|
-
|
|
4384
|
+
xn as renderInputColumn,
|
|
4385
|
+
Pn as showValue,
|
|
4377
4386
|
Ir as useAccess,
|
|
4378
4387
|
ao as useAccessMgr,
|
|
4379
4388
|
kn as useAppConfig,
|
|
@@ -4384,22 +4393,22 @@ export {
|
|
|
4384
4393
|
Xa as useFailedRequestActor,
|
|
4385
4394
|
Pr as useFormSubmit,
|
|
4386
4395
|
Y as useGetCompByKey,
|
|
4387
|
-
|
|
4388
|
-
|
|
4396
|
+
hn as useHasPer,
|
|
4397
|
+
pn as useHasPer2,
|
|
4389
4398
|
Er as useLogonUser,
|
|
4390
4399
|
Ya as useMeta,
|
|
4391
4400
|
vr as useMetaRegister,
|
|
4392
4401
|
ht as useModuleEvent,
|
|
4393
4402
|
oe as useProConfig,
|
|
4394
4403
|
te as useProCurd,
|
|
4395
|
-
|
|
4396
|
-
|
|
4404
|
+
mn as useProForm,
|
|
4405
|
+
cn as useProFormList,
|
|
4397
4406
|
je as useProLayout,
|
|
4398
4407
|
za as useProModal,
|
|
4399
|
-
|
|
4408
|
+
xe as useProModule,
|
|
4400
4409
|
Va as useProMsg,
|
|
4401
4410
|
Ha as useProNotify,
|
|
4402
|
-
|
|
4411
|
+
Me as useProRouter,
|
|
4403
4412
|
Or as useProTable,
|
|
4404
4413
|
bo as useReadStore,
|
|
4405
4414
|
Ua as useTheme
|