@vue-start/pro 0.5.45 → 0.5.47
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.d.ts +14 -2
- package/dist/index.es.js +382 -369
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as D, provide as ve, inject as he, createVNode as i, mergeProps as $, isVNode as we, Fragment as le, reactive as be, computed as N, ref as W, createTextVNode as
|
|
2
|
-
import { reduce as ae, get as h, map as F, isString as de, forEach as ne, isFunction as _, filter as X, keys as Y, omit as R, isArray as J, split as xn, isEmpty as
|
|
3
|
-
import { filter as Ae, tap as
|
|
1
|
+
import { defineComponent as D, provide as ve, inject as he, createVNode as i, mergeProps as $, isVNode as we, Fragment as le, reactive as be, computed as N, ref as W, createTextVNode as qe, toRef as Tn, KeepAlive as En, Teleport as $t, h as Ne } from "vue";
|
|
2
|
+
import { reduce as ae, get as h, map as F, isString as de, forEach as ne, isFunction as _, filter as X, keys as Y, omit as R, isArray as J, split as xn, isEmpty as Ft, isObject as Oe, mergeWith as In, size as Q, startsWith as wn, pick as Z, mapKeys as Nn, set as fe, debounce as Lt, clone as On, some as Se, isBoolean as Ke, has as ot, sortBy as kt, every as Kn, isNumber as ut, join as lt, find as nt, findIndex as An, findLast as Dn, endsWith as jt, add as Rn, subtract as $n, head as Fn, cloneDeep as Bt } from "lodash";
|
|
3
|
+
import { filter as Ae, tap as Ve, merge as Ln, Subject as kn } from "rxjs";
|
|
4
4
|
import { map as jn, tap as Bn } from "rxjs/operators";
|
|
5
|
-
import { mergeStateToData as Un, mergeStateToData2 as qn, useEffect as re, useUpdateKey as
|
|
6
|
-
import { useRequestProvide as
|
|
5
|
+
import { mergeStateToData as Un, mergeStateToData2 as qn, useEffect as re, useUpdateKey as Ge, useRuleState as Je, convertCollection as Ut, useWatch as De, useState as pt, signTableMerge as Vn, useResizeObserver as Be, decimalFixed as zn, thousandDivision as Hn, listToMap as Wn, treeToMap as qt, jsonToStr as ze, filterCollection as Gn, getMenuTopNameMap as St, findTreeItem as Pt, findFirstValidMenu as Vt, strToJson as ct, setReactiveValue as st, restorePath as zt, isValidPath as Ht, isPathHasParent as Wt, useSafeActivated as _n } from "@vue-start/hooks";
|
|
6
|
+
import { useRequestProvide as Le, isDoneRequestActor as it, isFailedRequestActor as Gt } from "@vue-start/request";
|
|
7
7
|
import { useDispatchStore as _t, useObservableRef as Xt, useStoreConn as Yt, createStateUse as Xn, useStore as Yn, shallowEqual as Qn } from "@vue-start/store";
|
|
8
|
-
import { useRoute as
|
|
9
|
-
import
|
|
10
|
-
import { css as
|
|
8
|
+
import { useRoute as dt, useRouter as ft, RouterView as Jn, parseQuery as Ct, stringifyQuery as Zn } from "vue-router";
|
|
9
|
+
import Mt from "dayjs";
|
|
10
|
+
import { css as Tt } from "@emotion/css";
|
|
11
11
|
import { Global as er } from "@vue-start/css";
|
|
12
12
|
import { mix as Qt } from "polished";
|
|
13
13
|
const tr = () => ({
|
|
@@ -17,7 +17,7 @@ const tr = () => ({
|
|
|
17
17
|
convertColumn: { type: Function },
|
|
18
18
|
columnState: { type: Object },
|
|
19
19
|
columnState2: { type: Object }
|
|
20
|
-
}), Ce = tr(),
|
|
20
|
+
}), Ce = tr(), _e = (e, t, r) => {
|
|
21
21
|
let o = e;
|
|
22
22
|
return t && (o = Un(o, t, (n) => ye(n))), r && (o = qn(o, r, (n) => ye(n))), o;
|
|
23
23
|
}, nr = () => ({
|
|
@@ -32,7 +32,7 @@ const tr = () => ({
|
|
|
32
32
|
showMsg: { type: Function },
|
|
33
33
|
showModal: { type: Function },
|
|
34
34
|
showNotify: { type: Function }
|
|
35
|
-
}),
|
|
35
|
+
}), mt = Symbol("pro-config"), oe = () => he(mt) || {}, Ea = () => {
|
|
36
36
|
const { showMsg: e } = oe();
|
|
37
37
|
return (t) => e(t);
|
|
38
38
|
}, xa = () => {
|
|
@@ -46,12 +46,12 @@ const tr = () => ({
|
|
|
46
46
|
...nr()
|
|
47
47
|
},
|
|
48
48
|
setup: (e, { slots: t }) => {
|
|
49
|
-
const r = ae(e.registerStores, (l, c) => ({ ...l, [c.key]: c }), {}), o = ae(e.registerActors, (l, c) => ({ ...l, [c.actor.name]: c }), {}), n = ae(e.registerMetas, (l, c) => ({ ...l, [c.actorName]: c }), {}), { dispatchRequest: a } =
|
|
49
|
+
const r = ae(e.registerStores, (l, c) => ({ ...l, [c.key]: c }), {}), o = ae(e.registerActors, (l, c) => ({ ...l, [c.actor.name]: c }), {}), n = ae(e.registerMetas, (l, c) => ({ ...l, [c.actorName]: c }), {}), { dispatchRequest: a } = Le(), u = (l, c, d) => {
|
|
50
50
|
const y = h(o, l);
|
|
51
51
|
if (!!y)
|
|
52
52
|
return a(y.actor, c, d);
|
|
53
53
|
};
|
|
54
|
-
return or(n, o), ve(
|
|
54
|
+
return or(n, o), ve(mt, {
|
|
55
55
|
elementMap: e.elementMap,
|
|
56
56
|
formElementMap: e.formElementMap,
|
|
57
57
|
formExtraMap: e.formExtraMap,
|
|
@@ -69,13 +69,13 @@ const tr = () => ({
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
}), Na = (e = {}) => (t) => {
|
|
72
|
-
t.provide(
|
|
72
|
+
t.provide(mt, e);
|
|
73
73
|
}, Jt = (e) => (t, r) => {
|
|
74
|
-
const { requestSubject$: o } =
|
|
74
|
+
const { requestSubject$: o } = Le(), n = new Set(F(t, (a) => de(a) ? a : a.name));
|
|
75
75
|
re(() => {
|
|
76
76
|
const a = o.pipe(
|
|
77
77
|
Ae(e),
|
|
78
|
-
|
|
78
|
+
Ve((u) => {
|
|
79
79
|
n.has(u.name) && r(u);
|
|
80
80
|
})
|
|
81
81
|
).subscribe();
|
|
@@ -83,20 +83,20 @@ const tr = () => ({
|
|
|
83
83
|
a.unsubscribe();
|
|
84
84
|
};
|
|
85
85
|
}, []);
|
|
86
|
-
}, Oa = Jt(
|
|
87
|
-
const { requestSubject$: o, dispatchRequest: n } =
|
|
86
|
+
}, Oa = Jt(it), Ka = Jt(Gt), rr = (e, t, r) => {
|
|
87
|
+
const { requestSubject$: o, dispatchRequest: n } = Le(), a = new Set(F(e, (l) => de(l) ? l : l.name)), u = {};
|
|
88
88
|
re(() => {
|
|
89
89
|
const l = Ln(
|
|
90
90
|
o.pipe(
|
|
91
|
-
Ae(
|
|
92
|
-
|
|
91
|
+
Ae(it),
|
|
92
|
+
Ve((c) => {
|
|
93
93
|
var d, y;
|
|
94
94
|
a.has(c.name) && ((d = t.onSuccess) == null || d.call(t, c), (y = t.onFinish) == null || y.call(t, c), u[c.name] = void 0);
|
|
95
95
|
})
|
|
96
96
|
),
|
|
97
97
|
o.pipe(
|
|
98
98
|
Ae(Gt),
|
|
99
|
-
|
|
99
|
+
Ve((c) => {
|
|
100
100
|
var d, y;
|
|
101
101
|
a.has(c.name) && ((d = t.onFailed) == null || d.call(t, c), (y = t.onFinish) == null || y.call(t, c), u[c.name] = void 0);
|
|
102
102
|
})
|
|
@@ -119,15 +119,15 @@ const tr = () => ({
|
|
|
119
119
|
const a = Zt(n.storeName || e, t || n.initParams), l = Xt(Yt((c) => h(c, a)));
|
|
120
120
|
return l.value || o(e, t || n.initParams || {}), l;
|
|
121
121
|
}, or = (e, t) => {
|
|
122
|
-
const { requestSubject$: r } =
|
|
122
|
+
const { requestSubject$: r } = Le(), o = _t(), n = (a) => {
|
|
123
123
|
const u = h(e, a.name), l = h(t, a.name);
|
|
124
124
|
return !!(u && l && l.actor);
|
|
125
125
|
};
|
|
126
126
|
re(() => {
|
|
127
127
|
const a = r.pipe(
|
|
128
128
|
Ae(n),
|
|
129
|
-
Ae(
|
|
130
|
-
|
|
129
|
+
Ae(it),
|
|
130
|
+
Ve((u) => {
|
|
131
131
|
const l = h(e, u.name);
|
|
132
132
|
if (!l)
|
|
133
133
|
return;
|
|
@@ -220,7 +220,7 @@ const lr = () => ({
|
|
|
220
220
|
return J(e) ? e : e && de(e) && e.indexOf(".") > 0 ? xn(e, ".") : [e];
|
|
221
221
|
}, Da = (e, t, r) => !t || !r ? e : F(e, (o) => {
|
|
222
222
|
const n = _(r) ? r(o) : h(o, r), a = h(t, n);
|
|
223
|
-
return !a ||
|
|
223
|
+
return !a || Ft(a) || _(a) || !Oe(a) ? o : In(o, a, (u, l) => {
|
|
224
224
|
if (J(u) || J(l))
|
|
225
225
|
return l;
|
|
226
226
|
});
|
|
@@ -264,7 +264,7 @@ const lr = () => ({
|
|
|
264
264
|
var r;
|
|
265
265
|
return (r = t.default) == null ? void 0 : r.call(t);
|
|
266
266
|
})
|
|
267
|
-
}),
|
|
267
|
+
}), Et = () => ({
|
|
268
268
|
rowKey: {
|
|
269
269
|
type: String,
|
|
270
270
|
default: "id"
|
|
@@ -303,7 +303,7 @@ const lr = () => ({
|
|
|
303
303
|
}
|
|
304
304
|
}), $a = D({
|
|
305
305
|
props: {
|
|
306
|
-
...
|
|
306
|
+
...Et(),
|
|
307
307
|
...R(xe.props, "items")
|
|
308
308
|
},
|
|
309
309
|
setup: (e, {
|
|
@@ -314,7 +314,7 @@ const lr = () => ({
|
|
|
314
314
|
readonly: a,
|
|
315
315
|
elementMap: u,
|
|
316
316
|
formElementMap: l
|
|
317
|
-
} = on(), c = nn(), d = en(e.name), y = c != null && c.pathList ? [...c.pathList, ...d] : d, [g, m] =
|
|
317
|
+
} = on(), c = nn(), d = en(e.name), y = c != null && c.pathList ? [...c.pathList, ...d] : d, [g, m] = Ge(), S = () => {
|
|
318
318
|
var K;
|
|
319
319
|
if (((K = e.onPreAdd) == null ? void 0 : K.call(e)) === !0)
|
|
320
320
|
return;
|
|
@@ -370,7 +370,7 @@ const lr = () => ({
|
|
|
370
370
|
col: e.col,
|
|
371
371
|
items: K
|
|
372
372
|
}, null);
|
|
373
|
-
}, A = Y(
|
|
373
|
+
}, A = Y(Et());
|
|
374
374
|
return () => o ? i(o, $({
|
|
375
375
|
class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
|
|
376
376
|
name: e.name
|
|
@@ -384,7 +384,7 @@ const lr = () => ({
|
|
|
384
384
|
pathList: x
|
|
385
385
|
}, {
|
|
386
386
|
default: () => {
|
|
387
|
-
var B, q, U, G, ee,
|
|
387
|
+
var B, q, U, G, ee, p;
|
|
388
388
|
return [i("div", {
|
|
389
389
|
class: "pro-form-list-item"
|
|
390
390
|
}, [(B = t.start) == null ? void 0 : B.call(t, {
|
|
@@ -393,28 +393,28 @@ const lr = () => ({
|
|
|
393
393
|
index: w
|
|
394
394
|
}), I(x), (q = t.default) == null ? void 0 : q.call(t), !a.value && i(le, null, [i("div", {
|
|
395
395
|
class: "pro-form-list-item-add",
|
|
396
|
-
onClick:
|
|
396
|
+
onClick: S
|
|
397
397
|
}, [((U = t.itemAdd) == null ? void 0 : U.call(t)) || ((G = e.renderItemAdd) == null ? void 0 : G.call(e))]), i("div", {
|
|
398
398
|
class: "pro-form-list-item-minus",
|
|
399
399
|
onClick: () => P(w, K)
|
|
400
|
-
}, [((ee = t.itemMinus) == null ? void 0 : ee.call(t)) || ((
|
|
400
|
+
}, [((ee = t.itemMinus) == null ? void 0 : ee.call(t)) || ((p = e.renderItemMinus) == null ? void 0 : p.call(e))])])])];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}), !a.value && i("div", {
|
|
404
404
|
class: "pro-form-list-add",
|
|
405
|
-
onClick:
|
|
405
|
+
onClick: S
|
|
406
406
|
}, [((f = t.add) == null ? void 0 : f.call(t)) || ((T = e.renderAdd) == null ? void 0 : T.call(e))])];
|
|
407
407
|
}
|
|
408
408
|
}) : null;
|
|
409
409
|
}
|
|
410
|
-
}), an = Symbol("pro-form"), on = () => he(an), dr = (e, t = 300, r) =>
|
|
410
|
+
}), an = Symbol("pro-form"), on = () => he(an), dr = (e, t = 300, r) => Lt(e, t, r), fr = (e) => {
|
|
411
411
|
ve(an, e);
|
|
412
412
|
};
|
|
413
413
|
let ue;
|
|
414
414
|
(function(e) {
|
|
415
415
|
e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
|
|
416
416
|
})(ue || (ue = {}));
|
|
417
|
-
const
|
|
417
|
+
const xt = () => ({
|
|
418
418
|
clsName: {
|
|
419
419
|
type: String,
|
|
420
420
|
default: "pro-form"
|
|
@@ -468,7 +468,7 @@ const Et = () => ({
|
|
|
468
468
|
inheritAttrs: !1,
|
|
469
469
|
props: {
|
|
470
470
|
...Ce,
|
|
471
|
-
...
|
|
471
|
+
...xt(),
|
|
472
472
|
...R(xe.props, "items")
|
|
473
473
|
},
|
|
474
474
|
setup: (e, {
|
|
@@ -480,9 +480,9 @@ const Et = () => ({
|
|
|
480
480
|
const {
|
|
481
481
|
elementMap: a,
|
|
482
482
|
formElementMap: u
|
|
483
|
-
} = oe(), l = e.elementMap || a, c = e.formElementMap || u, d = e.model || be({}), y =
|
|
484
|
-
const M =
|
|
485
|
-
return e.convertColumn ?
|
|
483
|
+
} = oe(), l = e.elementMap || a, c = e.formElementMap || u, d = e.model || be({}), y = Je(d, e.showStateRules, e.showState), g = Je(d, e.readonlyStateRules, e.readonlyState), m = Je(d, e.disableStateRules, e.disableState), S = N(() => e.readonly), P = N(() => {
|
|
484
|
+
const M = _e(e.columns, e.columnState, e.columnState2);
|
|
485
|
+
return e.convertColumn ? Ut(M, e.convertColumn) : M;
|
|
486
486
|
}), v = W(!1), I = W(0), A = (...M) => {
|
|
487
487
|
var H;
|
|
488
488
|
((H = e.onPreFinish) == null ? void 0 : H.call(e, ...M)) !== !0 && r("finish", ...M, {
|
|
@@ -504,7 +504,7 @@ const Et = () => ({
|
|
|
504
504
|
disableState: m,
|
|
505
505
|
elementMap: l,
|
|
506
506
|
formElementMap: c,
|
|
507
|
-
readonly:
|
|
507
|
+
readonly: S,
|
|
508
508
|
columns: P,
|
|
509
509
|
formRef: x,
|
|
510
510
|
userOpe: v,
|
|
@@ -547,7 +547,7 @@ const Et = () => ({
|
|
|
547
547
|
[ue.RESET]: q,
|
|
548
548
|
[ue.SUBMIT]: U,
|
|
549
549
|
[ue.CONTINUE]: G
|
|
550
|
-
},
|
|
550
|
+
}, p = N(() => {
|
|
551
551
|
const M = e.operate, O = (M == null ? void 0 : M.items) || B;
|
|
552
552
|
return F(O, (H) => !H.onClick && !h(M == null ? void 0 : M.itemState, [H.value, "onClick"]) ? {
|
|
553
553
|
...H,
|
|
@@ -575,12 +575,12 @@ const Et = () => ({
|
|
|
575
575
|
vNode: b(O),
|
|
576
576
|
col: h(O, ["extra", "col"])
|
|
577
577
|
})) : F(M, (O) => b(O));
|
|
578
|
-
}), L = [...Y(
|
|
578
|
+
}), L = [...Y(xt()), ...Y(Ce)], j = Y(R(xe.props, "items")), C = h(a, V.FormKey);
|
|
579
579
|
return () => {
|
|
580
|
-
var ge, Ee,
|
|
580
|
+
var ge, Ee, gt;
|
|
581
581
|
if (!C)
|
|
582
582
|
return null;
|
|
583
|
-
const M = (ge = t.start) == null ? void 0 : ge.call(t), O = (Ee = t.default) == null ? void 0 : Ee.call(t), H = (
|
|
583
|
+
const M = (ge = t.start) == null ? void 0 : ge.call(t), O = (Ee = t.default) == null ? void 0 : Ee.call(t), H = (gt = t.end) == null ? void 0 : gt.call(t), ce = [e.clsName], se = Q(E.value) <= 0 && !rt(M) && !rt(O);
|
|
584
584
|
return se && ce.push("is-empty"), i(C, $({
|
|
585
585
|
ref: x,
|
|
586
586
|
class: ce
|
|
@@ -595,7 +595,7 @@ const Et = () => ({
|
|
|
595
595
|
}, null) : E.value]), O, e.operate && !se && i(dn, $({
|
|
596
596
|
class: `${e.clsName}-operate`
|
|
597
597
|
}, R(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
598
|
-
items:
|
|
598
|
+
items: p.value,
|
|
599
599
|
itemState: s.value
|
|
600
600
|
}), null), H]
|
|
601
601
|
});
|
|
@@ -613,18 +613,18 @@ const Et = () => ({
|
|
|
613
613
|
date: "\u8BF7\u9009\u62E9",
|
|
614
614
|
time: "\u8BF7\u9009\u62E9"
|
|
615
615
|
};
|
|
616
|
-
let
|
|
616
|
+
let He;
|
|
617
617
|
(function(e) {
|
|
618
618
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
619
|
-
})(
|
|
620
|
-
const
|
|
619
|
+
})(He || (He = {}));
|
|
620
|
+
const It = () => ({
|
|
621
621
|
initEmit: {
|
|
622
622
|
type: Boolean,
|
|
623
623
|
default: !0
|
|
624
624
|
},
|
|
625
625
|
searchMode: {
|
|
626
626
|
type: String,
|
|
627
|
-
default:
|
|
627
|
+
default: He.AUTO
|
|
628
628
|
},
|
|
629
629
|
debounceKeys: {
|
|
630
630
|
type: Array
|
|
@@ -639,7 +639,7 @@ const xt = () => ({
|
|
|
639
639
|
}
|
|
640
640
|
}), ka = D({
|
|
641
641
|
props: {
|
|
642
|
-
...
|
|
642
|
+
...It(),
|
|
643
643
|
needRules: {
|
|
644
644
|
type: Boolean,
|
|
645
645
|
default: !1
|
|
@@ -660,24 +660,24 @@ const xt = () => ({
|
|
|
660
660
|
const g = () => {
|
|
661
661
|
var v;
|
|
662
662
|
(v = d.value) == null || v.submit();
|
|
663
|
-
}, m =
|
|
663
|
+
}, m = Lt(() => {
|
|
664
664
|
g();
|
|
665
665
|
}, e.debounceTime);
|
|
666
666
|
re(() => {
|
|
667
667
|
e.initEmit && g();
|
|
668
668
|
}, []);
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
if (e.searchMode !==
|
|
669
|
+
const S = (v, I, A) => Se(A, (f) => h(v, f) !== h(I, f));
|
|
670
|
+
De((v, I) => {
|
|
671
|
+
if (e.searchMode !== He.AUTO)
|
|
672
672
|
return;
|
|
673
673
|
const A = Q(e.debounceKeys) > 0 ? e.debounceKeys : l;
|
|
674
|
-
if (Q(A) > 0 &&
|
|
674
|
+
if (Q(A) > 0 && S(v, I, A)) {
|
|
675
675
|
m();
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
g();
|
|
679
679
|
}, () => On(a));
|
|
680
|
-
const P = Y(
|
|
680
|
+
const P = Y(It());
|
|
681
681
|
return () => n ? i(n, $({
|
|
682
682
|
ref: d,
|
|
683
683
|
class: "pro-search-form"
|
|
@@ -693,7 +693,7 @@ const xt = () => ({
|
|
|
693
693
|
type: Function,
|
|
694
694
|
default: () => i("span", {
|
|
695
695
|
class: "pro-tip-dom"
|
|
696
|
-
}, [
|
|
696
|
+
}, [qe("?")])
|
|
697
697
|
}
|
|
698
698
|
}), yr = D({
|
|
699
699
|
props: {
|
|
@@ -713,7 +713,7 @@ const xt = () => ({
|
|
|
713
713
|
...t
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
}),
|
|
716
|
+
}), wt = () => ({
|
|
717
717
|
readonly: {
|
|
718
718
|
type: Boolean,
|
|
719
719
|
default: void 0
|
|
@@ -741,7 +741,7 @@ const xt = () => ({
|
|
|
741
741
|
name: n,
|
|
742
742
|
props: {
|
|
743
743
|
...e.props,
|
|
744
|
-
...
|
|
744
|
+
...wt()
|
|
745
745
|
},
|
|
746
746
|
setup: (a, {
|
|
747
747
|
slots: u
|
|
@@ -754,13 +754,13 @@ const xt = () => ({
|
|
|
754
754
|
readonlyState: y,
|
|
755
755
|
disableState: g,
|
|
756
756
|
readonly: m,
|
|
757
|
-
userOpe:
|
|
757
|
+
userOpe: S
|
|
758
758
|
} = on(), P = nn(), v = N(() => Ke(a.readonly) ? a.readonly : Ke(y[a.name]) ? y[a.name] : m.value), I = () => `${h(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, A = N(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
|
|
759
759
|
required: !0,
|
|
760
760
|
message: I()
|
|
761
761
|
}] : a.rules ? F(a.rules, (q) => (q.required && !q.message && (q.message = I()), q)) : a.rules : a.rules), f = en(a.name), T = P != null && P.pathList ? [...P.pathList, ...f] : f, K = (q) => {
|
|
762
|
-
|
|
763
|
-
}, w = Y(
|
|
762
|
+
S.value = !0, fe(d, T, q);
|
|
763
|
+
}, w = Y(wt()), x = () => {
|
|
764
764
|
const q = h(d, T);
|
|
765
765
|
if (u.renderShow)
|
|
766
766
|
return u.renderShow({
|
|
@@ -809,7 +809,7 @@ const xt = () => ({
|
|
|
809
809
|
t(void 0);
|
|
810
810
|
}];
|
|
811
811
|
}, ln = Symbol("logon-user"), hr = () => he(ln), Ua = D((e, { slots: t }) => {
|
|
812
|
-
const [r, o] =
|
|
812
|
+
const [r, o] = pt(), [n, a] = pt();
|
|
813
813
|
return ve(ln, { user: r, setUser: o, per: n, setPer: a, opts: {} }), () => {
|
|
814
814
|
var l;
|
|
815
815
|
return (l = t.default) == null ? void 0 : l.call(t);
|
|
@@ -827,7 +827,7 @@ const xt = () => ({
|
|
|
827
827
|
Edit: "edit",
|
|
828
828
|
Delete: "delete"
|
|
829
829
|
}, br = (e, t) => !e || !t ? !1 : J(t) ? Se(t, (r) => e[r]) : e[t], cn = () => {
|
|
830
|
-
const { per: e } = hr() || { per: { menus: [], buttonMap: {} } }, t =
|
|
830
|
+
const { per: e } = hr() || { per: { menus: [], buttonMap: {} } }, t = dt();
|
|
831
831
|
return (r, o) => {
|
|
832
832
|
if (!r)
|
|
833
833
|
return !1;
|
|
@@ -887,11 +887,11 @@ const Sr = () => ({
|
|
|
887
887
|
slots: t
|
|
888
888
|
}) => {
|
|
889
889
|
const r = sn(), o = N(() => {
|
|
890
|
-
const c = X(e.items, (y) => r(y.per, y.perSuffix, e.splitStr) ? _(y.show) ? y.show() : Ke(y.show) ? y.show : !0 : !1), d = F(c, (y) =>
|
|
890
|
+
const c = X(e.items, (y) => r(y.per, y.perSuffix, e.splitStr) ? _(y.show) ? y.show() : Ke(y.show) ? y.show : !0 : !1), d = F(c, (y) => ot(e.itemState, y.value) ? {
|
|
891
891
|
...y,
|
|
892
892
|
...h(e.itemState, y.value)
|
|
893
893
|
} : y);
|
|
894
|
-
return
|
|
894
|
+
return kt(d, (y) => y.sort);
|
|
895
895
|
}), n = (c) => {
|
|
896
896
|
var d;
|
|
897
897
|
(d = c.onClick) == null || d.call(c, c);
|
|
@@ -899,14 +899,14 @@ const Sr = () => ({
|
|
|
899
899
|
return () => i("div", {
|
|
900
900
|
class: e.clsName
|
|
901
901
|
}, [F(o.value, (c) => {
|
|
902
|
-
const d = _(c.disabled) ? c.disabled() : c.disabled, y = _(c.loading) ? c.loading() : c.loading, g = _(c.label) ? c.label() : c.label, m = _(c.extraProps) ? c.extraProps() : c.extraProps,
|
|
902
|
+
const d = _(c.disabled) ? c.disabled() : c.disabled, y = _(c.loading) ? c.loading() : c.loading, g = _(c.label) ? c.label() : c.label, m = _(c.extraProps) ? c.extraProps() : c.extraProps, S = {
|
|
903
903
|
...R(c, "show", "disabled", "element"),
|
|
904
904
|
disabled: d
|
|
905
905
|
};
|
|
906
906
|
if (c.element && _(c.element))
|
|
907
|
-
return c.element(
|
|
907
|
+
return c.element(S);
|
|
908
908
|
if (t[c.value])
|
|
909
|
-
return t[c.value](
|
|
909
|
+
return t[c.value](S);
|
|
910
910
|
if (u) {
|
|
911
911
|
const P = i(u, $({
|
|
912
912
|
disabled: d,
|
|
@@ -959,7 +959,7 @@ const Sr = () => ({
|
|
|
959
959
|
const r = te(), o = r(V.PopoverKey), n = r(V.CheckboxKey), {
|
|
960
960
|
originColumns: a,
|
|
961
961
|
selectIdsRef: u
|
|
962
|
-
} = Mr(), [l, c] =
|
|
962
|
+
} = Mr(), [l, c] = Ge();
|
|
963
963
|
let d = {};
|
|
964
964
|
const y = (f) => {
|
|
965
965
|
d[f] = !1;
|
|
@@ -970,23 +970,23 @@ const Sr = () => ({
|
|
|
970
970
|
}, m = N(() => ae(u.value, (f, T) => ({
|
|
971
971
|
...f,
|
|
972
972
|
[T]: !0
|
|
973
|
-
}), {})),
|
|
973
|
+
}), {})), S = (f) => sr(f, e.signName);
|
|
974
974
|
re(() => {
|
|
975
975
|
u.value = F(X(a.value, (f) => {
|
|
976
976
|
var T;
|
|
977
|
-
return e.useSelectedStatus &&
|
|
977
|
+
return e.useSelectedStatus && ot(d, f.dataIndex) ? d[f.dataIndex] : ((T = S(f)) == null ? void 0 : T.initShow) !== !1;
|
|
978
978
|
}), (f) => f.dataIndex);
|
|
979
|
-
}, a),
|
|
979
|
+
}, a), De(() => {
|
|
980
980
|
var f;
|
|
981
981
|
c(), g(), (f = e.onColumnSelectChange) == null || f.call(e, u.value);
|
|
982
982
|
}, u);
|
|
983
983
|
const P = N(() => {
|
|
984
984
|
const f = Kn(a.value, (K) => {
|
|
985
985
|
var w;
|
|
986
|
-
return (w =
|
|
986
|
+
return (w = S(K)) != null && w.disabled ? !0 : h(m.value, K.dataIndex);
|
|
987
987
|
}), T = Se(a.value, (K) => {
|
|
988
988
|
var w;
|
|
989
|
-
return (w =
|
|
989
|
+
return (w = S(K)) != null && w.disabled ? !0 : h(m.value, K.dataIndex);
|
|
990
990
|
});
|
|
991
991
|
return {
|
|
992
992
|
checked: f,
|
|
@@ -996,12 +996,12 @@ const Sr = () => ({
|
|
|
996
996
|
var K;
|
|
997
997
|
(Oe(f) ? (K = f.target) == null ? void 0 : K.checked : f) ? u.value = F(a.value, (w) => w.dataIndex) : u.value = F(X(a.value, (w) => {
|
|
998
998
|
var x;
|
|
999
|
-
return (x =
|
|
999
|
+
return (x = S(w)) != null && x.disabled ? !0 : (y(w.dataIndex), !1);
|
|
1000
1000
|
}), (w) => w.dataIndex);
|
|
1001
1001
|
}, I = () => {
|
|
1002
1002
|
u.value = F(X(a.value, (f) => {
|
|
1003
1003
|
var T;
|
|
1004
|
-
return ((T =
|
|
1004
|
+
return ((T = S(f)) == null ? void 0 : T.initShow) === !1 ? (y(f.dataIndex), !1) : !0;
|
|
1005
1005
|
}), (f) => f.dataIndex);
|
|
1006
1006
|
}, A = (f, T) => {
|
|
1007
1007
|
var w;
|
|
@@ -1024,14 +1024,14 @@ const Sr = () => ({
|
|
|
1024
1024
|
indeterminate: P.value.indeterminate,
|
|
1025
1025
|
onChange: v
|
|
1026
1026
|
}, {
|
|
1027
|
-
default: () => [
|
|
1027
|
+
default: () => [qe("\u5217\u5C55\u793A")]
|
|
1028
1028
|
}), i("a", {
|
|
1029
1029
|
onClick: I
|
|
1030
|
-
}, [
|
|
1030
|
+
}, [qe("\u91CD\u7F6E")])]), i("div", {
|
|
1031
1031
|
key: l.value,
|
|
1032
1032
|
class: `${e.clsName}-list`
|
|
1033
1033
|
}, [F(a.value, (f) => {
|
|
1034
|
-
const T =
|
|
1034
|
+
const T = S(f), K = h(m.value, f.dataIndex, !1);
|
|
1035
1035
|
return i(n, {
|
|
1036
1036
|
checked: K,
|
|
1037
1037
|
disabled: T == null ? void 0 : T.disabled,
|
|
@@ -1047,7 +1047,7 @@ const Sr = () => ({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}), fn = Symbol("pro-table"), Mr = () => he(fn), Tr = (e) => {
|
|
1049
1049
|
ve(fn, e);
|
|
1050
|
-
},
|
|
1050
|
+
}, Nt = () => ({
|
|
1051
1051
|
clsName: {
|
|
1052
1052
|
type: String,
|
|
1053
1053
|
default: "pro-table"
|
|
@@ -1092,7 +1092,7 @@ const Sr = () => ({
|
|
|
1092
1092
|
inheritAttrs: !1,
|
|
1093
1093
|
props: {
|
|
1094
1094
|
...Ce,
|
|
1095
|
-
...
|
|
1095
|
+
...Nt()
|
|
1096
1096
|
},
|
|
1097
1097
|
setup: (e, {
|
|
1098
1098
|
slots: t,
|
|
@@ -1108,30 +1108,30 @@ const Sr = () => ({
|
|
|
1108
1108
|
...e.column,
|
|
1109
1109
|
...Ke(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1110
1110
|
customRender: ({
|
|
1111
|
-
index:
|
|
1111
|
+
index: p
|
|
1112
1112
|
}) => {
|
|
1113
1113
|
var s, b;
|
|
1114
|
-
return ((s = e.paginationState) == null ? void 0 : s.page) && ((b = e.paginationState) == null ? void 0 : b.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) +
|
|
1114
|
+
return ((s = e.paginationState) == null ? void 0 : s.page) && ((b = e.paginationState) == null ? void 0 : b.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + p + 1 : p + 1;
|
|
1115
1115
|
}
|
|
1116
|
-
}), c = (
|
|
1116
|
+
}), c = (p, s) => {
|
|
1117
1117
|
var b;
|
|
1118
1118
|
if (e.operateItemClickMap && e.operateItemClickMap[s.value]) {
|
|
1119
|
-
e.operateItemClickMap[s.value](
|
|
1119
|
+
e.operateItemClickMap[s.value](p, s);
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
|
-
(b = s.onClick) == null || b.call(s,
|
|
1122
|
+
(b = s.onClick) == null || b.call(s, p);
|
|
1123
1123
|
}, d = me(t, "operate"), y = () => {
|
|
1124
|
-
const
|
|
1124
|
+
const p = e.operate, s = F(p.items, (b) => ({
|
|
1125
1125
|
...h(e.operateItemState, b.value),
|
|
1126
1126
|
...b,
|
|
1127
|
-
...h(
|
|
1127
|
+
...h(p.itemState, b.value)
|
|
1128
1128
|
}));
|
|
1129
1129
|
return {
|
|
1130
1130
|
...e.column,
|
|
1131
1131
|
title: "\u64CD\u4F5C",
|
|
1132
1132
|
dataIndex: "operate",
|
|
1133
1133
|
fixed: "right",
|
|
1134
|
-
...
|
|
1134
|
+
...p.column,
|
|
1135
1135
|
customRender: ({
|
|
1136
1136
|
record: b
|
|
1137
1137
|
}) => {
|
|
@@ -1155,69 +1155,69 @@ const Sr = () => ({
|
|
|
1155
1155
|
return i(dn, {
|
|
1156
1156
|
class: `${e.clsName}-operate`,
|
|
1157
1157
|
items: E,
|
|
1158
|
-
elementKey:
|
|
1158
|
+
elementKey: p.elementKey || V.TableOperateKey
|
|
1159
1159
|
}, L);
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
1162
|
}, g = W([]), m = N(() => {
|
|
1163
|
-
var
|
|
1164
|
-
return !!((
|
|
1165
|
-
}),
|
|
1163
|
+
var p;
|
|
1164
|
+
return !!((p = e.toolbar) != null && p.columnSetting);
|
|
1165
|
+
}), S = Tn(e, "columns"), P = N(() => {
|
|
1166
1166
|
if (!m.value)
|
|
1167
1167
|
return e.columns;
|
|
1168
|
-
const
|
|
1168
|
+
const p = ae(g.value, (s, b) => ({
|
|
1169
1169
|
...s,
|
|
1170
1170
|
[b]: !0
|
|
1171
1171
|
}), {});
|
|
1172
|
-
return X(e.columns, (s) => h(
|
|
1173
|
-
}), v = (
|
|
1172
|
+
return X(e.columns, (s) => h(p, s.dataIndex));
|
|
1173
|
+
}), v = (p) => F(p, (s) => {
|
|
1174
1174
|
const b = {
|
|
1175
1175
|
...e.column,
|
|
1176
1176
|
...s
|
|
1177
1177
|
}, E = e.convertColumn ? e.convertColumn(b) : b;
|
|
1178
1178
|
return s.children && Q(s.children) > 0 ? (E.children = v(s.children), E) : (s.customRender || (E.customRender = ({
|
|
1179
1179
|
value: L
|
|
1180
|
-
}) => typeof L > "u" || L === null || L === "" ? e.columnEmptyText :
|
|
1180
|
+
}) => typeof L > "u" || L === null || L === "" ? e.columnEmptyText : vt(a, s, {
|
|
1181
1181
|
value: L
|
|
1182
1182
|
}, {
|
|
1183
1183
|
render: "tableRender"
|
|
1184
1184
|
}) || L), E);
|
|
1185
1185
|
}), I = N(() => {
|
|
1186
|
-
const
|
|
1186
|
+
const p = _e(P.value, e.columnState, e.columnState2), s = v(p);
|
|
1187
1187
|
return e.serialNumber && s.unshift(l()), e.operate && e.operate.items && Se(e.operate.items, (b) => b.show) && s.push(y()), s;
|
|
1188
1188
|
}), A = N(() => {
|
|
1189
1189
|
var s, b;
|
|
1190
|
-
const
|
|
1191
|
-
return
|
|
1190
|
+
const p = e.dataSource;
|
|
1191
|
+
return p && (((s = e.mergeOpts) == null ? void 0 : s.rowNames) || ((b = e.mergeOpts) == null ? void 0 : b.colNames)) && Vn(p, e.mergeOpts), p;
|
|
1192
1192
|
}), f = W();
|
|
1193
1193
|
Tr({
|
|
1194
1194
|
columns: I,
|
|
1195
|
-
originColumns:
|
|
1195
|
+
originColumns: S,
|
|
1196
1196
|
selectIdsRef: g,
|
|
1197
1197
|
tableRef: f,
|
|
1198
1198
|
toolbar: e.toolbar,
|
|
1199
1199
|
...e.provideExtra
|
|
1200
1200
|
}), r(Me(e.tableMethods || [], f));
|
|
1201
1201
|
const T = W(), K = W(0), w = W(), x = W(!1), B = W(), q = W(!1);
|
|
1202
|
-
|
|
1203
|
-
const s = h(
|
|
1202
|
+
Be(T, (p) => {
|
|
1203
|
+
const s = h(p, [0, "contentRect"]), b = window.getComputedStyle(T.value);
|
|
1204
1204
|
if (s.height && b) {
|
|
1205
1205
|
const E = b.getPropertyValue("margin-bottom"), L = parseInt(E.replace("px", ""));
|
|
1206
1206
|
K.value = s.height + L;
|
|
1207
1207
|
}
|
|
1208
|
-
}),
|
|
1209
|
-
x.value = !!w.value.
|
|
1210
|
-
}),
|
|
1211
|
-
q.value = !!B.value.
|
|
1208
|
+
}), Be(w, () => {
|
|
1209
|
+
x.value = !!w.value.innerHTML;
|
|
1210
|
+
}), Be(B, (p) => {
|
|
1211
|
+
q.value = !!B.value.innerHTML;
|
|
1212
1212
|
});
|
|
1213
|
-
const U = N(() => q.value || x.value ? `${e.clsName}-toolbar-valid` : ""), G = Y(
|
|
1213
|
+
const U = N(() => q.value || x.value ? `${e.clsName}-toolbar-valid` : ""), G = Y(Nt()), ee = me(t, "columnSetting");
|
|
1214
1214
|
return () => {
|
|
1215
|
-
var
|
|
1215
|
+
var b, E;
|
|
1216
1216
|
if (!u)
|
|
1217
1217
|
return null;
|
|
1218
|
-
const
|
|
1219
|
-
return i("div", $({
|
|
1220
|
-
class:
|
|
1218
|
+
const p = m.value ? i(Cr, (b = e.toolbar) == null ? void 0 : b.columnSetting, ee) : null, s = [e.clsName];
|
|
1219
|
+
return (x.value || q.value) && s.push("has-header"), i("div", $({
|
|
1220
|
+
class: s,
|
|
1221
1221
|
style: `--pro-table-toolbar-hei: ${K.value}px`
|
|
1222
1222
|
}, Z(o, "class")), [i("div", {
|
|
1223
1223
|
ref: T,
|
|
@@ -1225,10 +1225,10 @@ const Sr = () => ({
|
|
|
1225
1225
|
}, [i("div", {
|
|
1226
1226
|
ref: w,
|
|
1227
1227
|
class: `${e.clsName}-toolbar-start`
|
|
1228
|
-
}, [(
|
|
1228
|
+
}, [(E = t.toolbar) == null ? void 0 : E.call(t)]), i("div", {
|
|
1229
1229
|
ref: B,
|
|
1230
1230
|
class: `${e.clsName}-toolbar-extra`
|
|
1231
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1231
|
+
}, [t.toolbarExtra ? t.toolbarExtra([p]) : i(le, null, [p])])]), i(u, $({
|
|
1232
1232
|
ref: f
|
|
1233
1233
|
}, R(o, "class"), R(e, G), {
|
|
1234
1234
|
mergeOpts: e.mergeOpts,
|
|
@@ -1237,7 +1237,7 @@ const Sr = () => ({
|
|
|
1237
1237
|
}), t)]);
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
1240
|
-
}), mn = Symbol("pro-layout"),
|
|
1240
|
+
}), mn = Symbol("pro-layout"), Xe = () => he(mn), Er = () => ({
|
|
1241
1241
|
title: {
|
|
1242
1242
|
type: String
|
|
1243
1243
|
},
|
|
@@ -1256,14 +1256,14 @@ const Sr = () => ({
|
|
|
1256
1256
|
type: Function,
|
|
1257
1257
|
default: () => "\u8FD4\u56DE"
|
|
1258
1258
|
}
|
|
1259
|
-
}),
|
|
1259
|
+
}), Ze = D({
|
|
1260
1260
|
props: {
|
|
1261
1261
|
...Er()
|
|
1262
1262
|
},
|
|
1263
1263
|
setup: (e, {
|
|
1264
1264
|
slots: t
|
|
1265
1265
|
}) => {
|
|
1266
|
-
const r =
|
|
1266
|
+
const r = ft(), o = () => {
|
|
1267
1267
|
var n;
|
|
1268
1268
|
if (e.onBackClick) {
|
|
1269
1269
|
(n = e.onBackClick) == null || n.call(e);
|
|
@@ -1311,13 +1311,13 @@ const Sr = () => ({
|
|
|
1311
1311
|
}
|
|
1312
1312
|
}), Wa = D({
|
|
1313
1313
|
props: {
|
|
1314
|
-
...
|
|
1314
|
+
...Ze.props,
|
|
1315
1315
|
...xr()
|
|
1316
1316
|
},
|
|
1317
1317
|
setup: (e, {
|
|
1318
1318
|
slots: t
|
|
1319
1319
|
}) => {
|
|
1320
|
-
const r =
|
|
1320
|
+
const r = Xe(), o = N(() => {
|
|
1321
1321
|
if (!e.layoutTabsBackMode || e.sub || !r)
|
|
1322
1322
|
return e.showBack;
|
|
1323
1323
|
const {
|
|
@@ -1330,16 +1330,16 @@ const Sr = () => ({
|
|
|
1330
1330
|
default: () => [i("div", {
|
|
1331
1331
|
class: "pro-loading-dom"
|
|
1332
1332
|
}, null)]
|
|
1333
|
-
}) : null, c = Y(
|
|
1333
|
+
}) : null, c = Y(Ze.props).filter((d) => d !== "showBack");
|
|
1334
1334
|
return () => {
|
|
1335
|
-
var
|
|
1336
|
-
const d = e.title || t.title || e.subTitle || t.subTitle || t.extra, y = (
|
|
1335
|
+
var S;
|
|
1336
|
+
const d = e.title || t.title || e.subTitle || t.subTitle || t.extra, y = (S = t.footer) == null ? void 0 : S.call(t), g = !e.loading && rt(y), m = ["pro-page"];
|
|
1337
1337
|
return e.sub && m.push("pro-page-sub"), e.fillMode && m.push("pro-page-fill"), d && m.push("has-header"), g && m.push("has-footer"), i(u, {
|
|
1338
1338
|
class: m
|
|
1339
1339
|
}, {
|
|
1340
1340
|
default: () => {
|
|
1341
1341
|
var P, v;
|
|
1342
|
-
return [(P = t.start) == null ? void 0 : P.call(t), d && i(
|
|
1342
|
+
return [(P = t.start) == null ? void 0 : P.call(t), d && i(Ze, $(Z(e, c), {
|
|
1343
1343
|
showBack: o.value
|
|
1344
1344
|
}), R(t, "start", "default", "footer")), i("div", {
|
|
1345
1345
|
class: "pro-page-content"
|
|
@@ -1408,7 +1408,7 @@ const Sr = () => ({
|
|
|
1408
1408
|
c = v, l.page = I || 1, d();
|
|
1409
1409
|
}, g = (v, I) => {
|
|
1410
1410
|
l.page = v, l.pageSize = I, d();
|
|
1411
|
-
}, m = me(t, "search"),
|
|
1411
|
+
}, m = me(t, "search"), S = me(t, "table"), P = me(t, "pagination");
|
|
1412
1412
|
return () => {
|
|
1413
1413
|
var I, A, f, T, K, w, x, B;
|
|
1414
1414
|
const v = t.search ? t.search({
|
|
@@ -1431,8 +1431,8 @@ const Sr = () => ({
|
|
|
1431
1431
|
},
|
|
1432
1432
|
pagination: !1
|
|
1433
1433
|
}, e.tableProps), {
|
|
1434
|
-
...
|
|
1435
|
-
toolbar: e.searchInTable ? () =>
|
|
1434
|
+
...S,
|
|
1435
|
+
toolbar: e.searchInTable ? () => S.toolbar ? S.toolbar(v) : v : S.toolbar
|
|
1436
1436
|
})]), ((K = t.divide2) == null ? void 0 : K.call(t)) || ((w = e.divide2) == null ? void 0 : w.call(e)), t.pagination ? t.pagination({
|
|
1437
1437
|
executePageChange: g,
|
|
1438
1438
|
pageState: l
|
|
@@ -1445,7 +1445,7 @@ const Sr = () => ({
|
|
|
1445
1445
|
}), P)])]), ((x = t.end) == null ? void 0 : x.call(t)) || ((B = e.end) == null ? void 0 : B.call(e))]);
|
|
1446
1446
|
};
|
|
1447
1447
|
}
|
|
1448
|
-
}),
|
|
1448
|
+
}), Ot = () => ({
|
|
1449
1449
|
clsName: {
|
|
1450
1450
|
type: String,
|
|
1451
1451
|
default: "pro-desc"
|
|
@@ -1456,27 +1456,27 @@ const Sr = () => ({
|
|
|
1456
1456
|
}), Or = D({
|
|
1457
1457
|
props: {
|
|
1458
1458
|
...Ce,
|
|
1459
|
-
...
|
|
1459
|
+
...Ot()
|
|
1460
1460
|
},
|
|
1461
1461
|
setup: (e, {
|
|
1462
1462
|
slots: t
|
|
1463
1463
|
}) => {
|
|
1464
1464
|
const {
|
|
1465
1465
|
elementMap: r
|
|
1466
|
-
} = oe(), o = e.elementMap || r, n = te(), a = n(V.DescriptionsKey), u = n(V.DescriptionsItemKey), l = N(() =>
|
|
1466
|
+
} = oe(), o = e.elementMap || r, n = te(), a = n(V.DescriptionsKey), u = n(V.DescriptionsItemKey), l = N(() => _e(e.columns, e.columnState, e.columnState2)), c = Y(Ce), d = Y(Ot());
|
|
1467
1467
|
return () => !a || !u ? null : i(a, $({
|
|
1468
1468
|
class: e.clsName
|
|
1469
1469
|
}, R(e, ...c, ...d, "model")), {
|
|
1470
1470
|
default: () => {
|
|
1471
1471
|
var y, g;
|
|
1472
1472
|
return [(y = t.start) == null ? void 0 : y.call(t), F(l.value, (m) => {
|
|
1473
|
-
const
|
|
1473
|
+
const S = m.dataIndex, P = h(e.model, S);
|
|
1474
1474
|
return i(u, $({
|
|
1475
1475
|
class: `${e.clsName}-item`
|
|
1476
1476
|
}, h(m.extra, "desc")), {
|
|
1477
1477
|
default: () => {
|
|
1478
1478
|
var v, I;
|
|
1479
|
-
return [((v = t[
|
|
1479
|
+
return [((v = t[S]) == null ? void 0 : v.call(t, P, m)) || ((I = t.value) == null ? void 0 : I.call(t, P, m)) || vt(o, m, {
|
|
1480
1480
|
value: P
|
|
1481
1481
|
}, {
|
|
1482
1482
|
render: "descRender"
|
|
@@ -1492,7 +1492,7 @@ const Sr = () => ({
|
|
|
1492
1492
|
...t
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
1495
|
-
}), yn = (e, t) =>
|
|
1495
|
+
}), yn = (e, t) => ut(e) ? e : e || t, Kr = () => ({
|
|
1496
1496
|
value: {
|
|
1497
1497
|
type: [String, Number]
|
|
1498
1498
|
},
|
|
@@ -1538,7 +1538,7 @@ const Sr = () => ({
|
|
|
1538
1538
|
});
|
|
1539
1539
|
};
|
|
1540
1540
|
}
|
|
1541
|
-
}),
|
|
1541
|
+
}), ke = {
|
|
1542
1542
|
value: {
|
|
1543
1543
|
type: [String, Number]
|
|
1544
1544
|
},
|
|
@@ -1552,17 +1552,17 @@ const Sr = () => ({
|
|
|
1552
1552
|
type: Function,
|
|
1553
1553
|
default: void 0
|
|
1554
1554
|
}
|
|
1555
|
-
},
|
|
1555
|
+
}, Ye = D({
|
|
1556
1556
|
inheritAttrs: !1,
|
|
1557
1557
|
props: {
|
|
1558
|
-
...
|
|
1558
|
+
...ke
|
|
1559
1559
|
},
|
|
1560
1560
|
setup: (e, {
|
|
1561
1561
|
attrs: t
|
|
1562
1562
|
}) => {
|
|
1563
1563
|
const r = N(() => {
|
|
1564
1564
|
var a;
|
|
1565
|
-
const o = (a = e.showProps) == null ? void 0 : a.content, n = e.value ||
|
|
1565
|
+
const o = (a = e.showProps) == null ? void 0 : a.content, n = e.value || ut(e.value) ? e.value : o;
|
|
1566
1566
|
return e.convert ? e.convert(n, e) : n;
|
|
1567
1567
|
});
|
|
1568
1568
|
return () => i(Dr, $(Z(t, "style", "class"), R(e.showProps, "content"), {
|
|
@@ -1572,7 +1572,7 @@ const Sr = () => ({
|
|
|
1572
1572
|
}), _a = D({
|
|
1573
1573
|
inheritAttrs: !1,
|
|
1574
1574
|
props: {
|
|
1575
|
-
...
|
|
1575
|
+
...ke,
|
|
1576
1576
|
decimalFixed: {
|
|
1577
1577
|
type: Number,
|
|
1578
1578
|
default: 0
|
|
@@ -1592,7 +1592,7 @@ const Sr = () => ({
|
|
|
1592
1592
|
return () => e.render ? e.render({
|
|
1593
1593
|
value: r.value,
|
|
1594
1594
|
props: e
|
|
1595
|
-
}) : i(
|
|
1595
|
+
}) : i(Ye, $({
|
|
1596
1596
|
class: "pro-show-digit"
|
|
1597
1597
|
}, Z(t, "style", "class"), {
|
|
1598
1598
|
value: r.value,
|
|
@@ -1602,7 +1602,7 @@ const Sr = () => ({
|
|
|
1602
1602
|
}), Xa = D({
|
|
1603
1603
|
inheritAttrs: !1,
|
|
1604
1604
|
props: {
|
|
1605
|
-
...
|
|
1605
|
+
...ke,
|
|
1606
1606
|
value: {
|
|
1607
1607
|
type: [String, Number, Array]
|
|
1608
1608
|
},
|
|
@@ -1621,13 +1621,13 @@ const Sr = () => ({
|
|
|
1621
1621
|
const r = N(() => Wn(e.options, (a) => a.label), void 0), o = N(() => {
|
|
1622
1622
|
const a = e.value;
|
|
1623
1623
|
let u = e.value;
|
|
1624
|
-
return J(a) ? u =
|
|
1624
|
+
return J(a) ? u = lt(F(a, (l) => h(r.value, l, l)), e.splitStr) : u = h(r.value, a, e.value), e.convert ? e.convert(u, e) : u;
|
|
1625
1625
|
}), n = N(() => h(e.colorMap, e.value));
|
|
1626
1626
|
return () => e.render ? e.render({
|
|
1627
1627
|
color: n.value,
|
|
1628
1628
|
value: o.value,
|
|
1629
1629
|
props: e
|
|
1630
|
-
}) : i(
|
|
1630
|
+
}) : i(Ye, $({
|
|
1631
1631
|
class: "pro-show-options"
|
|
1632
1632
|
}, Z(t, "style", "class"), {
|
|
1633
1633
|
style: `color:${n.value || ""}`,
|
|
@@ -1638,7 +1638,7 @@ const Sr = () => ({
|
|
|
1638
1638
|
}), Ya = D({
|
|
1639
1639
|
inheritAttrs: !1,
|
|
1640
1640
|
props: {
|
|
1641
|
-
...
|
|
1641
|
+
...ke,
|
|
1642
1642
|
value: {
|
|
1643
1643
|
type: [String, Number, Array]
|
|
1644
1644
|
},
|
|
@@ -1664,19 +1664,19 @@ const Sr = () => ({
|
|
|
1664
1664
|
}) => {
|
|
1665
1665
|
const r = N(() => {
|
|
1666
1666
|
const n = e.treeData || e.data || e.options, a = e.fieldNames || e.props;
|
|
1667
|
-
return
|
|
1667
|
+
return qt(n, (u) => h(u, (a == null ? void 0 : a.label) || "label"), {
|
|
1668
1668
|
value: "value",
|
|
1669
1669
|
children: "children",
|
|
1670
1670
|
...a
|
|
1671
1671
|
});
|
|
1672
1672
|
}), o = N(() => {
|
|
1673
1673
|
let n = e.value;
|
|
1674
|
-
return J(e.value) ? n =
|
|
1674
|
+
return J(e.value) ? n = lt(F(e.value, (a) => h(r.value, a, a)), e.multiple ? e.splitStr2 : e.splitStr) : n = h(r.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
|
|
1675
1675
|
});
|
|
1676
1676
|
return () => e.render ? e.render({
|
|
1677
1677
|
value: o.value,
|
|
1678
1678
|
props: e
|
|
1679
|
-
}) : i(
|
|
1679
|
+
}) : i(Ye, $({
|
|
1680
1680
|
class: "pro-show-tree"
|
|
1681
1681
|
}, Z(t, "style", "class"), {
|
|
1682
1682
|
value: o.value,
|
|
@@ -1685,7 +1685,7 @@ const Sr = () => ({
|
|
|
1685
1685
|
}
|
|
1686
1686
|
}), Qa = D({
|
|
1687
1687
|
props: {
|
|
1688
|
-
...
|
|
1688
|
+
...ke,
|
|
1689
1689
|
value: {
|
|
1690
1690
|
type: [String, Number, Array]
|
|
1691
1691
|
},
|
|
@@ -1705,14 +1705,14 @@ const Sr = () => ({
|
|
|
1705
1705
|
setup: (e, {
|
|
1706
1706
|
attrs: t
|
|
1707
1707
|
}) => {
|
|
1708
|
-
const r = (n) => n && (e.isUnix ?
|
|
1708
|
+
const r = (n) => n && (e.isUnix ? Mt.unix(n).format(e.format) : Mt(n).format(e.format)), o = N(() => {
|
|
1709
1709
|
let n = e.value;
|
|
1710
|
-
return J(e.value) ? n =
|
|
1710
|
+
return J(e.value) ? n = lt(F(e.value, (a) => r(a) || ""), e.splitStr) : n = r(e.value) || "", e.convert ? e.convert(n, e) : n;
|
|
1711
1711
|
});
|
|
1712
1712
|
return () => e.render ? e.render({
|
|
1713
1713
|
value: o.value,
|
|
1714
1714
|
props: e
|
|
1715
|
-
}) : i(
|
|
1715
|
+
}) : i(Ye, $({
|
|
1716
1716
|
class: "pro-show-date"
|
|
1717
1717
|
}, Z(t, "style", "class"), {
|
|
1718
1718
|
value: o.value,
|
|
@@ -1733,9 +1733,9 @@ const Sr = () => ({
|
|
|
1733
1733
|
refreshRef: r,
|
|
1734
1734
|
showTabs: o,
|
|
1735
1735
|
convertValue: n
|
|
1736
|
-
} =
|
|
1736
|
+
} = Xe(), {
|
|
1737
1737
|
route: a
|
|
1738
|
-
} =
|
|
1738
|
+
} = Qe(), u = N(() => {
|
|
1739
1739
|
if (!o.value)
|
|
1740
1740
|
return e.includes || [];
|
|
1741
1741
|
const l = F(t.value, (c) => n(c));
|
|
@@ -1771,12 +1771,12 @@ const Sr = () => ({
|
|
|
1771
1771
|
const {
|
|
1772
1772
|
router: t,
|
|
1773
1773
|
route: r
|
|
1774
|
-
} =
|
|
1774
|
+
} = Qe(), {
|
|
1775
1775
|
menuMap: o,
|
|
1776
1776
|
tabs: n,
|
|
1777
1777
|
refresh: a,
|
|
1778
1778
|
convertName: u
|
|
1779
|
-
} =
|
|
1779
|
+
} = Xe(), l = be({
|
|
1780
1780
|
ctxMenuPos: null,
|
|
1781
1781
|
ctxMenuItem: null
|
|
1782
1782
|
}), c = (s) => e.isHideClose ? e.isHideClose(s) : !1, d = N(() => {
|
|
@@ -1787,10 +1787,10 @@ const Sr = () => ({
|
|
|
1787
1787
|
const s = d.value;
|
|
1788
1788
|
if (!s)
|
|
1789
1789
|
return;
|
|
1790
|
-
let b =
|
|
1790
|
+
let b = nt(n.value, (E) => E.value === s.value);
|
|
1791
1791
|
if (b) {
|
|
1792
1792
|
if (s.hide) {
|
|
1793
|
-
const E =
|
|
1793
|
+
const E = ze(b.query) || "{}", L = ze(r.query) || "{}";
|
|
1794
1794
|
if (E !== L) {
|
|
1795
1795
|
const j = {
|
|
1796
1796
|
...s,
|
|
@@ -1828,9 +1828,9 @@ const Sr = () => ({
|
|
|
1828
1828
|
}, m = (s) => {
|
|
1829
1829
|
var b;
|
|
1830
1830
|
s.value !== ((b = d.value) == null ? void 0 : b.value) && y(s), n.value = X(n.value, (E) => E.value === s.value ? !0 : c(E));
|
|
1831
|
-
},
|
|
1831
|
+
}, S = () => {
|
|
1832
1832
|
if (!d.value || !c(d.value)) {
|
|
1833
|
-
const s =
|
|
1833
|
+
const s = nt(n.value, (b) => c(b));
|
|
1834
1834
|
s && t.openMenu(s);
|
|
1835
1835
|
}
|
|
1836
1836
|
n.value = X(n.value, (s) => c(s));
|
|
@@ -1850,7 +1850,7 @@ const Sr = () => ({
|
|
|
1850
1850
|
s.preventDefault(), s.stopPropagation();
|
|
1851
1851
|
}, A = () => {
|
|
1852
1852
|
l.ctxMenuItem = null;
|
|
1853
|
-
}, f = W(), [T, K] =
|
|
1853
|
+
}, f = W(), [T, K] = Ge(), w = (s) => {
|
|
1854
1854
|
const b = ae(n.value, (E, L) => ({
|
|
1855
1855
|
...E,
|
|
1856
1856
|
[L.value]: L
|
|
@@ -1873,7 +1873,7 @@ const Sr = () => ({
|
|
|
1873
1873
|
const B = (s) => {
|
|
1874
1874
|
s || (l.ctxMenuItem = null);
|
|
1875
1875
|
}, q = (s) => {
|
|
1876
|
-
s === "refresh" ? P(l.ctxMenuItem) : s === "close" ? g(l.ctxMenuItem) : s === "close-other" ? m(l.ctxMenuItem) : s === "close-all" &&
|
|
1876
|
+
s === "refresh" ? P(l.ctxMenuItem) : s === "close" ? g(l.ctxMenuItem) : s === "close-other" ? m(l.ctxMenuItem) : s === "close-all" && S(), A();
|
|
1877
1877
|
}, U = N(() => {
|
|
1878
1878
|
var b, E;
|
|
1879
1879
|
const s = [];
|
|
@@ -1890,8 +1890,8 @@ const Sr = () => ({
|
|
|
1890
1890
|
label: "\u5168\u90E8\u5173\u95ED",
|
|
1891
1891
|
value: "close-all"
|
|
1892
1892
|
}), F(s, (L) => e.covertMenuItem ? e.covertMenuItem(L) : L);
|
|
1893
|
-
}), G = te(), ee = G(V.DropdownKey),
|
|
1894
|
-
return () => i(le, null, [i(
|
|
1893
|
+
}), G = te(), ee = G(V.DropdownKey), p = G(V.ScrollKey) || "div";
|
|
1894
|
+
return () => i(le, null, [i(p, {
|
|
1895
1895
|
class: "pro-layout-tabs"
|
|
1896
1896
|
}, {
|
|
1897
1897
|
default: () => [i("div", {
|
|
@@ -1912,9 +1912,9 @@ const Sr = () => ({
|
|
|
1912
1912
|
C.preventDefault(), C.stopPropagation(), g(s);
|
|
1913
1913
|
},
|
|
1914
1914
|
oncontextmenu: I
|
|
1915
|
-
}, [
|
|
1915
|
+
}, [qe("\u2715")])]);
|
|
1916
1916
|
})])]
|
|
1917
|
-
}), l.ctxMenuItem && l.ctxMenuPos && i(
|
|
1917
|
+
}), l.ctxMenuItem && l.ctxMenuPos && i($t, {
|
|
1918
1918
|
to: "body"
|
|
1919
1919
|
}, {
|
|
1920
1920
|
default: () => [i("div", {
|
|
@@ -1952,7 +1952,7 @@ const Sr = () => ({
|
|
|
1952
1952
|
o.width = 200, o.height = 130;
|
|
1953
1953
|
let n = o.getContext("2d");
|
|
1954
1954
|
n.rotate(-20 * Math.PI / 180), n.font = "12px Vedana", n.fillStyle = "rgba(200, 200, 200, 0.30)", n.textBaseline = "middle", n.fillText(e.str, o.width / 10, o.height / 2), r.imgStr = o.toDataURL("image/png"), n = null, o = null;
|
|
1955
|
-
}, [() => e.str, t]), () => i(
|
|
1955
|
+
}, [() => e.str, t]), () => i($t, {
|
|
1956
1956
|
to: "body"
|
|
1957
1957
|
}, {
|
|
1958
1958
|
default: () => [i("div", {
|
|
@@ -1962,11 +1962,11 @@ const Sr = () => ({
|
|
|
1962
1962
|
}, null)]
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
|
-
}),
|
|
1965
|
+
}), je = D((e, {
|
|
1966
1966
|
slots: t
|
|
1967
1967
|
}) => {
|
|
1968
1968
|
const r = W(), o = W(0);
|
|
1969
|
-
return
|
|
1969
|
+
return Be(r, (n) => {
|
|
1970
1970
|
var u;
|
|
1971
1971
|
const a = (u = n[0]) == null ? void 0 : u.contentRect;
|
|
1972
1972
|
o.value = a == null ? void 0 : a.width;
|
|
@@ -2036,6 +2036,9 @@ const Sr = () => ({
|
|
|
2036
2036
|
},
|
|
2037
2037
|
menuProps: {
|
|
2038
2038
|
type: Object
|
|
2039
|
+
},
|
|
2040
|
+
topMenuProps: {
|
|
2041
|
+
type: Object
|
|
2039
2042
|
}
|
|
2040
2043
|
}), Ja = D({
|
|
2041
2044
|
inheritAttrs: !1,
|
|
@@ -2049,9 +2052,9 @@ const Sr = () => ({
|
|
|
2049
2052
|
const o = te(), n = o(V.MenusKey), a = o(V.ScrollKey) || "div", {
|
|
2050
2053
|
router: u,
|
|
2051
2054
|
route: l
|
|
2052
|
-
} =
|
|
2055
|
+
} = Qe(), c = N(() => {
|
|
2053
2056
|
var C;
|
|
2054
|
-
return
|
|
2057
|
+
return Ut(e.menus, (M) => {
|
|
2055
2058
|
var se, ge, Ee;
|
|
2056
2059
|
const O = ((se = e.fieldNames) == null ? void 0 : se.value) || "value", H = ((ge = e.fieldNames) == null ? void 0 : ge.label) || "label", ce = ((Ee = e.fieldNames) == null ? void 0 : Ee.hide) || "hide";
|
|
2057
2060
|
return {
|
|
@@ -2064,33 +2067,33 @@ const Sr = () => ({
|
|
|
2064
2067
|
children: ((C = e.fieldNames) == null ? void 0 : C.children) || "children",
|
|
2065
2068
|
childrenName: "children"
|
|
2066
2069
|
});
|
|
2067
|
-
}), d = N(() => Gn(c.value, (C) => !C.hide)), y = N(() =>
|
|
2070
|
+
}), d = N(() => Gn(c.value, (C) => !C.hide)), y = N(() => St(c.value)), g = N(() => St(d.value)), m = N(() => qt(c.value, (C) => R(C, "children"))), S = (C) => e.convertName ? e.convertName(C, {
|
|
2068
2071
|
menuTopMap: y.value
|
|
2069
2072
|
}) : C.name, P = (C) => e.convertValue ? e.convertValue({}) : C.value, v = N(() => {
|
|
2070
2073
|
if (e.findCurrentTopName)
|
|
2071
2074
|
return e.findCurrentTopName(l, y.value);
|
|
2072
|
-
const C =
|
|
2075
|
+
const C = S(l);
|
|
2073
2076
|
return y.value[C];
|
|
2074
|
-
}), I = N(() => v.value ?
|
|
2077
|
+
}), I = N(() => v.value ? nt(d.value, (C) => C.value === v.value) : null), A = N(() => !!(I.value && I.value.children && Q(I.value.children) > 0)), f = N(() => {
|
|
2075
2078
|
if (e.findActiveKey)
|
|
2076
2079
|
return e.findActiveKey(l, y.value);
|
|
2077
|
-
const C =
|
|
2080
|
+
const C = S(l);
|
|
2078
2081
|
if (g.value[C])
|
|
2079
2082
|
return C;
|
|
2080
2083
|
const {
|
|
2081
2084
|
parentList: M
|
|
2082
|
-
} =
|
|
2085
|
+
} = Pt(c.value, (H) => H.value === C, void 0, []), O = Dn(M, (H) => !H.hide);
|
|
2083
2086
|
return (O == null ? void 0 : O.value) || C;
|
|
2084
2087
|
}), T = (C) => {
|
|
2085
2088
|
e.onMenuItemClick ? e.onMenuItemClick(C) : u.openMenu(C);
|
|
2086
2089
|
}, K = (C) => {
|
|
2087
|
-
const M =
|
|
2090
|
+
const M = Pt(d.value, (O) => O.value === C.value).target;
|
|
2088
2091
|
T(M);
|
|
2089
2092
|
}, w = N(() => !!e.tabs), x = () => {
|
|
2090
2093
|
var M;
|
|
2091
2094
|
let C = (M = e.tabs) == null ? void 0 : M.sessionKey;
|
|
2092
2095
|
return C === void 0 && (C = "pro-layout-tabs"), C;
|
|
2093
|
-
}, B =
|
|
2096
|
+
}, B = Vt(d.value, (C) => !C.children || Q(C.children) <= 0), U = W((() => {
|
|
2094
2097
|
if (!w.value)
|
|
2095
2098
|
return [];
|
|
2096
2099
|
const C = x();
|
|
@@ -2106,7 +2109,7 @@ const Sr = () => ({
|
|
|
2106
2109
|
})()), G = (C) => C.value === (B == null ? void 0 : B.value), ee = (C) => {
|
|
2107
2110
|
U.value = X(U.value, (M) => M.value !== C);
|
|
2108
2111
|
};
|
|
2109
|
-
|
|
2112
|
+
De(() => {
|
|
2110
2113
|
const C = x();
|
|
2111
2114
|
if (!C)
|
|
2112
2115
|
return;
|
|
@@ -2114,20 +2117,20 @@ const Sr = () => ({
|
|
|
2114
2117
|
name: O.value,
|
|
2115
2118
|
query: O.query
|
|
2116
2119
|
}));
|
|
2117
|
-
window.sessionStorage.setItem(C,
|
|
2120
|
+
window.sessionStorage.setItem(C, ze(M));
|
|
2118
2121
|
}, U);
|
|
2119
|
-
const
|
|
2122
|
+
const p = () => {
|
|
2120
2123
|
var M;
|
|
2121
2124
|
const C = (M = e.tabs) == null ? void 0 : M.clearWhileUnmount;
|
|
2122
2125
|
return C === void 0 ? !0 : C;
|
|
2123
2126
|
};
|
|
2124
2127
|
re(() => () => {
|
|
2125
2128
|
const C = x();
|
|
2126
|
-
C &&
|
|
2129
|
+
C && p() && window.sessionStorage.removeItem(C);
|
|
2127
2130
|
}, []);
|
|
2128
2131
|
const s = W(!1);
|
|
2129
2132
|
ve(mn, {
|
|
2130
|
-
convertName:
|
|
2133
|
+
convertName: S,
|
|
2131
2134
|
convertValue: P,
|
|
2132
2135
|
menus: c,
|
|
2133
2136
|
menuMap: m,
|
|
@@ -2174,7 +2177,7 @@ const Sr = () => ({
|
|
|
2174
2177
|
}, [(ce = t.default) == null ? void 0 : ce.call(t), t.routerView ? t.routerView() : i($r, e.routeOpts, null), e.watermark && i(jr, e.watermark, null)])]);
|
|
2175
2178
|
return e.layout === "vertical" ? i("main", $(r, {
|
|
2176
2179
|
class: C
|
|
2177
|
-
}), [i(
|
|
2180
|
+
}), [i(je, {
|
|
2178
2181
|
class: `${e.clsName}-header`
|
|
2179
2182
|
}, {
|
|
2180
2183
|
menus: (se) => se ? i(n, $({
|
|
@@ -2186,11 +2189,11 @@ const Sr = () => ({
|
|
|
2186
2189
|
class: C
|
|
2187
2190
|
}), [j(O), i("div", {
|
|
2188
2191
|
class: `${e.clsName}-structure`
|
|
2189
|
-
}, [i(
|
|
2192
|
+
}, [i(je, {
|
|
2190
2193
|
class: `${e.clsName}-header`
|
|
2191
2194
|
}, E), H])])) : e.layout === "horizontal-v" ? (C.push("has-left-menu"), e.collapse && C.push("mini"), i("main", $(r, {
|
|
2192
2195
|
class: C
|
|
2193
|
-
}), [i(
|
|
2196
|
+
}), [i(je, {
|
|
2194
2197
|
class: `${e.clsName}-header`
|
|
2195
2198
|
}, E), i("div", {
|
|
2196
2199
|
class: `${e.clsName}-structure`
|
|
@@ -2198,7 +2201,7 @@ const Sr = () => ({
|
|
|
2198
2201
|
class: `${e.clsName}-right`
|
|
2199
2202
|
}, [H])])])) : (A.value && C.push("has-left-menu"), e.collapse && C.push("mini"), i("main", $(r, {
|
|
2200
2203
|
class: C
|
|
2201
|
-
}), [i(
|
|
2204
|
+
}), [i(je, {
|
|
2202
2205
|
class: `${e.clsName}-header`
|
|
2203
2206
|
}, {
|
|
2204
2207
|
menus: (se) => se ? i(n, $({
|
|
@@ -2207,7 +2210,7 @@ const Sr = () => ({
|
|
|
2207
2210
|
mode: "horizontal",
|
|
2208
2211
|
options: F(d.value, (ge) => R(ge, "children")),
|
|
2209
2212
|
activeKey: v.value
|
|
2210
|
-
}, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2213
|
+
}, e.topMenuProps, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2211
2214
|
onMenuItemClick: K
|
|
2212
2215
|
}), L) : null,
|
|
2213
2216
|
...E
|
|
@@ -2215,7 +2218,8 @@ const Sr = () => ({
|
|
|
2215
2218
|
class: `${e.clsName}-structure`
|
|
2216
2219
|
}, [A.value && j({
|
|
2217
2220
|
...O,
|
|
2218
|
-
options: I.value.children
|
|
2221
|
+
options: I.value.children,
|
|
2222
|
+
key: I.value.value
|
|
2219
2223
|
}), i("div", {
|
|
2220
2224
|
class: `${e.clsName}-right`
|
|
2221
2225
|
}, [H])])]));
|
|
@@ -2253,12 +2257,12 @@ const Sr = () => ({
|
|
|
2253
2257
|
return [];
|
|
2254
2258
|
}, u = N(() => a(e.value)), l = N(() => a(e.modelValue)), c = (d, y) => {
|
|
2255
2259
|
let g = "";
|
|
2256
|
-
d && Q(d) > 0 && (g =
|
|
2260
|
+
d && Q(d) > 0 && (g = ze(F(d, (m) => {
|
|
2257
2261
|
var v;
|
|
2258
|
-
const
|
|
2259
|
-
[
|
|
2260
|
-
[
|
|
2261
|
-
[
|
|
2262
|
+
const S = e.fieldNames, P = {
|
|
2263
|
+
[S.id]: m.id,
|
|
2264
|
+
[S.name]: m.name,
|
|
2265
|
+
[S.size || "size"]: m.size
|
|
2262
2266
|
};
|
|
2263
2267
|
return ((v = e.convertItem) == null ? void 0 : v.call(e, m)) || P;
|
|
2264
2268
|
}))), r(y, g);
|
|
@@ -2293,8 +2297,8 @@ const Sr = () => ({
|
|
|
2293
2297
|
}, n = N(() => {
|
|
2294
2298
|
let u = e.value;
|
|
2295
2299
|
return u && de(u) && (u = ct(u)), u && !J(u) && Oe(u) && o(u) && (u = [u]), J(u) ? F(X(u, (l) => o(l)), (l) => {
|
|
2296
|
-
var g, m,
|
|
2297
|
-
const c = h(l, ((g = e.fieldNames) == null ? void 0 : g.id) || "id"), d = h(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), y = h(l, ((
|
|
2300
|
+
var g, m, S;
|
|
2301
|
+
const c = h(l, ((g = e.fieldNames) == null ? void 0 : g.id) || "id"), d = h(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), y = h(l, ((S = e.fieldNames) == null ? void 0 : S.name) || "size");
|
|
2298
2302
|
return {
|
|
2299
2303
|
...l,
|
|
2300
2304
|
id: c,
|
|
@@ -2332,7 +2336,7 @@ const Sr = () => ({
|
|
|
2332
2336
|
protocol: u.protocol,
|
|
2333
2337
|
path: u.pathname,
|
|
2334
2338
|
origin: u.origin,
|
|
2335
|
-
query:
|
|
2339
|
+
query: Ct(u.search),
|
|
2336
2340
|
url: u.origin + u.pathname
|
|
2337
2341
|
};
|
|
2338
2342
|
} catch {
|
|
@@ -2340,18 +2344,18 @@ const Sr = () => ({
|
|
|
2340
2344
|
const t = e.indexOf("//") > -1 ? (a = e.split("//")) == null ? void 0 : a[0] : "";
|
|
2341
2345
|
let r = "", o = "";
|
|
2342
2346
|
e.indexOf("?") >= -1 && (r = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
|
|
2343
|
-
const n = o ?
|
|
2347
|
+
const n = o ? Ct(o) : {};
|
|
2344
2348
|
return { protocol: t, query: n, url: r };
|
|
2345
2349
|
},
|
|
2346
2350
|
stringifyUrl: ({ url: e, query: t }) => {
|
|
2347
2351
|
const r = Zn(t);
|
|
2348
2352
|
return `${e}${r ? "?" : ""}${r || ""}`;
|
|
2349
2353
|
}
|
|
2350
|
-
},
|
|
2351
|
-
const { convertRouter: e } = oe(), t =
|
|
2354
|
+
}, Qe = () => {
|
|
2355
|
+
const { convertRouter: e } = oe(), t = ft(), r = dt(), o = Xe(), u = { ...t, openMenu: (c) => {
|
|
2352
2356
|
if (!!c) {
|
|
2353
2357
|
if (Q(c.children) > 0) {
|
|
2354
|
-
const d =
|
|
2358
|
+
const d = Vt(c.children, (y) => !y.children || Q(y.children) <= 0);
|
|
2355
2359
|
if (d) {
|
|
2356
2360
|
t.push({ name: d.value });
|
|
2357
2361
|
return;
|
|
@@ -2374,8 +2378,8 @@ const Sr = () => ({
|
|
|
2374
2378
|
if (!J(e) || Q(e) <= 0)
|
|
2375
2379
|
return !1;
|
|
2376
2380
|
const t = e[0];
|
|
2377
|
-
return de(t) ?
|
|
2378
|
-
}, Vr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, zr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Hr = { get: h, pick: Z, add: Rn, subtract: $n },
|
|
2381
|
+
return de(t) ? jt(t, "$") : !1;
|
|
2382
|
+
}, Vr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, zr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Hr = { get: h, pick: Z, add: Rn, subtract: $n }, We = (e, t) => {
|
|
2379
2383
|
if (Vr(e)) {
|
|
2380
2384
|
const r = h(t, e.name$);
|
|
2381
2385
|
return e.namePath$ ? h(r, e.namePath$) : r;
|
|
@@ -2383,8 +2387,8 @@ const Sr = () => ({
|
|
|
2383
2387
|
const r = {};
|
|
2384
2388
|
return ne(e, (o, n) => {
|
|
2385
2389
|
if (n !== "type$")
|
|
2386
|
-
if (
|
|
2387
|
-
const a =
|
|
2390
|
+
if (jt(n, "$")) {
|
|
2391
|
+
const a = We(o, t);
|
|
2388
2392
|
fe(r, n.replace("$", ""), a);
|
|
2389
2393
|
} else
|
|
2390
2394
|
r[n] = o;
|
|
@@ -2395,7 +2399,7 @@ const Sr = () => ({
|
|
|
2395
2399
|
console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
|
|
2396
2400
|
return;
|
|
2397
2401
|
}
|
|
2398
|
-
const u = F(o, (l) =>
|
|
2402
|
+
const u = F(o, (l) => We(l, t));
|
|
2399
2403
|
return a(...u);
|
|
2400
2404
|
}
|
|
2401
2405
|
return e;
|
|
@@ -2413,7 +2417,7 @@ const Sr = () => ({
|
|
|
2413
2417
|
}));
|
|
2414
2418
|
}, vn = Symbol("pro-module"), Te = () => he(vn), Gr = (e) => {
|
|
2415
2419
|
ve(vn, e);
|
|
2416
|
-
},
|
|
2420
|
+
}, yt = (e) => {
|
|
2417
2421
|
const {
|
|
2418
2422
|
subject$: t
|
|
2419
2423
|
} = Te();
|
|
@@ -2425,7 +2429,7 @@ const Sr = () => ({
|
|
|
2425
2429
|
});
|
|
2426
2430
|
return () => r.unsubscribe();
|
|
2427
2431
|
}, []);
|
|
2428
|
-
},
|
|
2432
|
+
}, Re = {
|
|
2429
2433
|
Success: "request-success$",
|
|
2430
2434
|
Fail: "request-fail$"
|
|
2431
2435
|
}, _r = () => ({
|
|
@@ -2453,7 +2457,7 @@ const Sr = () => ({
|
|
|
2453
2457
|
requests: {
|
|
2454
2458
|
type: Array
|
|
2455
2459
|
}
|
|
2456
|
-
}),
|
|
2460
|
+
}), Ue = D({
|
|
2457
2461
|
props: {
|
|
2458
2462
|
..._r()
|
|
2459
2463
|
},
|
|
@@ -2463,34 +2467,34 @@ const Sr = () => ({
|
|
|
2463
2467
|
}) => {
|
|
2464
2468
|
const o = Yn(), {
|
|
2465
2469
|
router: n
|
|
2466
|
-
} =
|
|
2470
|
+
} = Qe(), {
|
|
2467
2471
|
elementMap: a,
|
|
2468
2472
|
registerStoreMap: u,
|
|
2469
2473
|
expressionMethods: l
|
|
2470
|
-
} = oe(), c = e.elementMap || a, d = (
|
|
2471
|
-
y.next(
|
|
2472
|
-
}, m = X(e.storeKeys, (
|
|
2474
|
+
} = oe(), c = e.elementMap || a, d = (p) => J(p) ? ht(c, p) : $e(c, p), y = new kn(), g = (p) => {
|
|
2475
|
+
y.next(p);
|
|
2476
|
+
}, m = X(e.storeKeys, (p) => ot(u, p)), S = () => ae(m, (p, s) => {
|
|
2473
2477
|
const b = h(u, s);
|
|
2474
2478
|
return {
|
|
2475
|
-
...
|
|
2479
|
+
...p,
|
|
2476
2480
|
[s]: h(o.value, `${b.persist ? "$" : ""}${s}`) || h(u, [s, "initialState"])
|
|
2477
2481
|
};
|
|
2478
|
-
}, {}), P =
|
|
2482
|
+
}, {}), P = S(), v = e.state || be({
|
|
2479
2483
|
...P,
|
|
2480
2484
|
...e.initState
|
|
2481
|
-
}), I = {}, A = (
|
|
2482
|
-
const s = v[
|
|
2485
|
+
}), I = {}, A = (p) => {
|
|
2486
|
+
const s = v[p.type], b = _(p.payload) ? p.payload(s) : p.payload;
|
|
2483
2487
|
if (!J(s) && Oe(s)) {
|
|
2484
|
-
|
|
2488
|
+
st(v[p.type], b);
|
|
2485
2489
|
return;
|
|
2486
2490
|
}
|
|
2487
|
-
v[
|
|
2491
|
+
v[p.type] = b;
|
|
2488
2492
|
}, f = Wr(), T = {
|
|
2489
2493
|
dispatch: A,
|
|
2490
2494
|
dispatchStore: f
|
|
2491
2495
|
};
|
|
2492
2496
|
re(() => {
|
|
2493
|
-
const
|
|
2497
|
+
const p = o.pipe(jn(() => S()), Bn((s) => {
|
|
2494
2498
|
ne(s, (b, E) => {
|
|
2495
2499
|
const L = h(v, E);
|
|
2496
2500
|
Qn(L, b) || A({
|
|
@@ -2500,13 +2504,13 @@ const Sr = () => ({
|
|
|
2500
2504
|
});
|
|
2501
2505
|
})).subscribe();
|
|
2502
2506
|
return () => {
|
|
2503
|
-
|
|
2507
|
+
p.unsubscribe();
|
|
2504
2508
|
};
|
|
2505
2509
|
}, []);
|
|
2506
2510
|
const {
|
|
2507
2511
|
dispatchRequest: K
|
|
2508
|
-
} =
|
|
2509
|
-
const
|
|
2512
|
+
} = Le(), x = (() => {
|
|
2513
|
+
const p = {}, s = ae(e.actors || [], (b, E) => ({
|
|
2510
2514
|
...b,
|
|
2511
2515
|
[E.name]: E
|
|
2512
2516
|
}), {});
|
|
@@ -2517,13 +2521,13 @@ const Sr = () => ({
|
|
|
2517
2521
|
return;
|
|
2518
2522
|
b.actor = E;
|
|
2519
2523
|
}
|
|
2520
|
-
!b.actor || (
|
|
2521
|
-
}),
|
|
2522
|
-
})(), B = (
|
|
2524
|
+
!b.actor || (p[b.actor.name] = b, b.action && (p[b.action] = b));
|
|
2525
|
+
}), p;
|
|
2526
|
+
})(), B = (p, ...s) => p.convertParams ? p.convertParams(...s) : p.convertParamsEx ? G(p.convertParamsEx, s) : h(s, 0), q = (p, s) => {
|
|
2523
2527
|
var b;
|
|
2524
|
-
return
|
|
2525
|
-
}, U = (
|
|
2526
|
-
const b = h(x,
|
|
2528
|
+
return p.convertData ? p.convertData(s) : p.convertDataEx ? G(p.convertDataEx, s) : (b = s.res) == null ? void 0 : b.data;
|
|
2529
|
+
}, U = (p, ...s) => {
|
|
2530
|
+
const b = h(x, p);
|
|
2527
2531
|
if (!b)
|
|
2528
2532
|
return;
|
|
2529
2533
|
const E = B(b, ...s);
|
|
@@ -2533,46 +2537,46 @@ const Sr = () => ({
|
|
|
2533
2537
|
}), K(b.actor, E);
|
|
2534
2538
|
};
|
|
2535
2539
|
rr(Y(x), {
|
|
2536
|
-
onSuccess: (
|
|
2540
|
+
onSuccess: (p) => {
|
|
2537
2541
|
var E;
|
|
2538
|
-
const s = h(x,
|
|
2542
|
+
const s = h(x, p.name), b = q(s, p);
|
|
2539
2543
|
s != null && s.stateName && A({
|
|
2540
2544
|
type: s.stateName,
|
|
2541
2545
|
payload: b
|
|
2542
2546
|
}), g({
|
|
2543
|
-
type:
|
|
2547
|
+
type: Re.Success,
|
|
2544
2548
|
payload: {
|
|
2545
|
-
actor:
|
|
2549
|
+
actor: p,
|
|
2546
2550
|
requestOpts: s
|
|
2547
2551
|
}
|
|
2548
|
-
}), (E = s.onSuccess) == null || E.call(s,
|
|
2552
|
+
}), (E = s.onSuccess) == null || E.call(s, p), s.onSuccessEx && ee(s.onSuccessEx, [b]);
|
|
2549
2553
|
},
|
|
2550
|
-
onFailed: (
|
|
2554
|
+
onFailed: (p) => {
|
|
2551
2555
|
var b;
|
|
2552
|
-
const s = h(x,
|
|
2556
|
+
const s = h(x, p.name);
|
|
2553
2557
|
g({
|
|
2554
|
-
type:
|
|
2558
|
+
type: Re.Fail,
|
|
2555
2559
|
payload: {
|
|
2556
|
-
actor:
|
|
2560
|
+
actor: p,
|
|
2557
2561
|
requestOpts: s
|
|
2558
2562
|
}
|
|
2559
|
-
}), (b = s.onFailed) == null || b.call(s,
|
|
2563
|
+
}), (b = s.onFailed) == null || b.call(s, p), s.onFailedEx && ee(s.onFailedEx, [p.err]);
|
|
2560
2564
|
},
|
|
2561
|
-
onFinish: (
|
|
2562
|
-
const s = h(x, [
|
|
2565
|
+
onFinish: (p) => {
|
|
2566
|
+
const s = h(x, [p.name, "loadingName"]);
|
|
2563
2567
|
s && A({
|
|
2564
2568
|
type: s,
|
|
2565
2569
|
payload: !1
|
|
2566
2570
|
});
|
|
2567
2571
|
}
|
|
2568
2572
|
}, !0);
|
|
2569
|
-
const G = (
|
|
2573
|
+
const G = (p, s) => We(p, {
|
|
2570
2574
|
state: v,
|
|
2571
2575
|
data: I,
|
|
2572
2576
|
args: s,
|
|
2573
2577
|
expressionMethods: l
|
|
2574
|
-
}), ee = (
|
|
2575
|
-
if (!
|
|
2578
|
+
}), ee = (p, s) => {
|
|
2579
|
+
if (!p)
|
|
2576
2580
|
return;
|
|
2577
2581
|
const b = {
|
|
2578
2582
|
state: v,
|
|
@@ -2580,7 +2584,7 @@ const Sr = () => ({
|
|
|
2580
2584
|
args: s,
|
|
2581
2585
|
expressionMethods: l
|
|
2582
2586
|
};
|
|
2583
|
-
ne(
|
|
2587
|
+
ne(p, (E) => {
|
|
2584
2588
|
if (!J(E) || Q(E) < 2) {
|
|
2585
2589
|
console.log("execute invalid", E);
|
|
2586
2590
|
return;
|
|
@@ -2597,7 +2601,7 @@ const Sr = () => ({
|
|
|
2597
2601
|
}
|
|
2598
2602
|
if (M)
|
|
2599
2603
|
try {
|
|
2600
|
-
const O = F(C, (H) =>
|
|
2604
|
+
const O = F(C, (H) => We(H, b));
|
|
2601
2605
|
M(...O);
|
|
2602
2606
|
} catch (O) {
|
|
2603
2607
|
console.log("execute err", O);
|
|
@@ -2619,11 +2623,11 @@ const Sr = () => ({
|
|
|
2619
2623
|
sendEvent: g,
|
|
2620
2624
|
sendRequest: U
|
|
2621
2625
|
}), () => {
|
|
2622
|
-
var
|
|
2623
|
-
return i(le, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (
|
|
2626
|
+
var p;
|
|
2627
|
+
return i(le, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (p = t.default) == null ? void 0 : p.call(t)]);
|
|
2624
2628
|
};
|
|
2625
2629
|
}
|
|
2626
|
-
}),
|
|
2630
|
+
}), rt = (e) => {
|
|
2627
2631
|
var t, r;
|
|
2628
2632
|
return !(!e || ((r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : r.toString()) === "Symbol(Comment)");
|
|
2629
2633
|
}, hn = (e) => e.formValueType || e.valueType || "text", ye = (e) => {
|
|
@@ -2633,7 +2637,7 @@ const Sr = () => ({
|
|
|
2633
2637
|
}, Xr = (e, t) => {
|
|
2634
2638
|
let r = t;
|
|
2635
2639
|
return de(t) && (r = h(e, t)), _(r) || (r = h(e, "render")), _(r) ? r : void 0;
|
|
2636
|
-
},
|
|
2640
|
+
}, vt = (e, t, r, o) => {
|
|
2637
2641
|
var y, g, m;
|
|
2638
2642
|
const n = Xr(t, o == null ? void 0 : o.render);
|
|
2639
2643
|
if (n)
|
|
@@ -2665,7 +2669,7 @@ const Sr = () => ({
|
|
|
2665
2669
|
!u.renderInput && _(r.inputRender) && (u.renderInput = (m) => r.inputRender({
|
|
2666
2670
|
...m,
|
|
2667
2671
|
column: r
|
|
2668
|
-
})), u.renderShow || (u.renderShow = (m) =>
|
|
2672
|
+
})), u.renderShow || (u.renderShow = (m) => vt(e, r, {
|
|
2669
2673
|
value: m.value
|
|
2670
2674
|
}, {
|
|
2671
2675
|
render: "formReadRender"
|
|
@@ -2684,12 +2688,12 @@ const Sr = () => ({
|
|
|
2684
2688
|
label: c,
|
|
2685
2689
|
...d
|
|
2686
2690
|
}, u);
|
|
2687
|
-
}, Yr = (e) => e && !_(e) && e.elementType,
|
|
2691
|
+
}, Yr = (e) => e && !_(e) && e.elementType, ht = (e, t) => F(t, (r) => $e(e, r)), gn = (e, t) => {
|
|
2688
2692
|
var a;
|
|
2689
2693
|
const r = t.elementProps, o = {
|
|
2690
2694
|
...t.elementProps
|
|
2691
2695
|
}, n = r == null ? void 0 : r.class;
|
|
2692
|
-
return n && (typeof n == "object" ? o.class =
|
|
2696
|
+
return n && (typeof n == "object" ? o.class = Tt(n) : de(n) && n.indexOf(":") > 0 && (o.class = Tt`
|
|
2693
2697
|
${n}
|
|
2694
2698
|
`)), ne((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (u) => {
|
|
2695
2699
|
const l = h(r, u.name);
|
|
@@ -2697,7 +2701,7 @@ const Sr = () => ({
|
|
|
2697
2701
|
if (J(l)) {
|
|
2698
2702
|
if (Se(l, (c) => we(c)))
|
|
2699
2703
|
return;
|
|
2700
|
-
fe(o, u.name,
|
|
2704
|
+
fe(o, u.name, ht(e, l));
|
|
2701
2705
|
return;
|
|
2702
2706
|
}
|
|
2703
2707
|
!l.elementType || (u.isFun ? fe(o, u.name, (...c) => {
|
|
@@ -2705,15 +2709,15 @@ const Sr = () => ({
|
|
|
2705
2709
|
...l.elementProps,
|
|
2706
2710
|
params$: c
|
|
2707
2711
|
} : l.elementProps;
|
|
2708
|
-
return
|
|
2712
|
+
return $e(e, {
|
|
2709
2713
|
...l,
|
|
2710
2714
|
elementProps: d
|
|
2711
2715
|
});
|
|
2712
|
-
}) : fe(o, u.name,
|
|
2716
|
+
}) : fe(o, u.name, $e(e, l)));
|
|
2713
2717
|
}
|
|
2714
2718
|
}), o;
|
|
2715
2719
|
}, pn = (e, t) => {
|
|
2716
|
-
const r = Q(t.children) > 0 ?
|
|
2720
|
+
const r = Q(t.children) > 0 ? ht(e, t.children) : void 0, o = t.childrenSlotName || "default", n = R(t.slots, r ? o : "");
|
|
2717
2721
|
return ne(Y(n), (a) => {
|
|
2718
2722
|
const u = n[a];
|
|
2719
2723
|
Yr(u) ? n[a] = (...l) => {
|
|
@@ -2721,16 +2725,16 @@ const Sr = () => ({
|
|
|
2721
2725
|
...u.elementProps,
|
|
2722
2726
|
params$: l
|
|
2723
2727
|
} : u.elementProps;
|
|
2724
|
-
return
|
|
2728
|
+
return $e(e, {
|
|
2725
2729
|
...u,
|
|
2726
2730
|
elementProps: c
|
|
2727
2731
|
});
|
|
2728
|
-
} : (de(u) ||
|
|
2732
|
+
} : (de(u) || ut(u)) && (n[a] = () => u);
|
|
2729
2733
|
}), {
|
|
2730
2734
|
[o]: r ? () => r : void 0,
|
|
2731
2735
|
...n
|
|
2732
2736
|
};
|
|
2733
|
-
},
|
|
2737
|
+
}, $e = (e, t) => {
|
|
2734
2738
|
const r = h(e, t.elementType) || t.elementType;
|
|
2735
2739
|
if (t.highConfig$)
|
|
2736
2740
|
return Ne(Jr, {
|
|
@@ -2753,7 +2757,7 @@ const Sr = () => ({
|
|
|
2753
2757
|
}
|
|
2754
2758
|
},
|
|
2755
2759
|
setup: (e) => {
|
|
2756
|
-
var
|
|
2760
|
+
var S;
|
|
2757
2761
|
const {
|
|
2758
2762
|
state: t,
|
|
2759
2763
|
sendEvent: r,
|
|
@@ -2762,7 +2766,7 @@ const Sr = () => ({
|
|
|
2762
2766
|
elementMap: n,
|
|
2763
2767
|
elementConfig: a
|
|
2764
2768
|
} = e, u = a.highConfig$, l = gn(n, a);
|
|
2765
|
-
ne((
|
|
2769
|
+
ne((S = a.highConfig$) == null ? void 0 : S.registerEventList, (P) => {
|
|
2766
2770
|
const v = (...A) => {
|
|
2767
2771
|
const f = `${a.elementId}-${P.name}`;
|
|
2768
2772
|
r({
|
|
@@ -2796,7 +2800,7 @@ const Sr = () => ({
|
|
|
2796
2800
|
}, m);
|
|
2797
2801
|
}
|
|
2798
2802
|
}), Zr = (e, t) => {
|
|
2799
|
-
!e || !t ||
|
|
2803
|
+
!e || !t || Ft(t) || we(e) || ne(t, (r, o) => {
|
|
2800
2804
|
const n = zt(o, e);
|
|
2801
2805
|
if (!Ht(n)) {
|
|
2802
2806
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
|
|
@@ -2840,14 +2844,14 @@ const Sr = () => ({
|
|
|
2840
2844
|
Logic: o
|
|
2841
2845
|
}) => D(() => {
|
|
2842
2846
|
const n = W(), a = (c) => {
|
|
2843
|
-
const d =
|
|
2847
|
+
const d = Bt(c);
|
|
2844
2848
|
return r && (J(d) ? ne(d, (y) => Ie(y, r)) : Ie(d, r)), d;
|
|
2845
2849
|
};
|
|
2846
2850
|
re(() => {
|
|
2847
2851
|
t && t.elementConfigs && (n.value = a(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2848
2852
|
}, []);
|
|
2849
2853
|
const l = te()(V.LoadingKey);
|
|
2850
|
-
return () => n.value ? i(
|
|
2854
|
+
return () => n.value ? i(Ue, {
|
|
2851
2855
|
initState: t == null ? void 0 : t.initState,
|
|
2852
2856
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2853
2857
|
actors: e,
|
|
@@ -2863,7 +2867,7 @@ const Sr = () => ({
|
|
|
2863
2867
|
}, null)]
|
|
2864
2868
|
}) : null;
|
|
2865
2869
|
}), Sn = Symbol("pro-curd"), ie = () => he(Sn), ta = (e) => ve(Sn, e);
|
|
2866
|
-
var k = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(k || {}), z = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(z || {}), pe = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(pe || {}),
|
|
2870
|
+
var k = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(k || {}), z = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(z || {}), pe = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(pe || {}), Fe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Fe || {});
|
|
2867
2871
|
const na = () => ({
|
|
2868
2872
|
rowKey: {
|
|
2869
2873
|
type: String,
|
|
@@ -2887,7 +2891,7 @@ const na = () => ({
|
|
|
2887
2891
|
modalProps: {
|
|
2888
2892
|
type: Object
|
|
2889
2893
|
}
|
|
2890
|
-
}), Pn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"],
|
|
2894
|
+
}), Pn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Kt = D({
|
|
2891
2895
|
props: {
|
|
2892
2896
|
...Ce,
|
|
2893
2897
|
...na()
|
|
@@ -2901,17 +2905,17 @@ const na = () => ({
|
|
|
2901
2905
|
state: n,
|
|
2902
2906
|
sendEvent: a,
|
|
2903
2907
|
sendRequest: u
|
|
2904
|
-
} = Te(), l = N(() =>
|
|
2908
|
+
} = Te(), l = N(() => _e(e.columns, e.columnState, e.columnState2)), c = (x, B) => {
|
|
2905
2909
|
const q = X(l.value, (U) => {
|
|
2906
2910
|
const G = h(U, ["extra", x]) || h(U, x);
|
|
2907
2911
|
return B ? G !== !1 : G;
|
|
2908
2912
|
});
|
|
2909
|
-
return
|
|
2913
|
+
return kt(q, (U) => h(U, ["extra", `${x}Sort`]) || h(U, `${x}Sort`));
|
|
2910
2914
|
}, d = N(() => c("form", !0)), y = N(() => c("detail", !0)), g = N(() => c("table", !0)), m = N(() => c("search"));
|
|
2911
|
-
let
|
|
2915
|
+
let S;
|
|
2912
2916
|
const P = (x) => {
|
|
2913
2917
|
u(k.LIST, {
|
|
2914
|
-
...
|
|
2918
|
+
...S,
|
|
2915
2919
|
...x
|
|
2916
2920
|
});
|
|
2917
2921
|
}, v = (x) => {
|
|
@@ -2921,7 +2925,7 @@ const na = () => ({
|
|
|
2921
2925
|
source: x.source
|
|
2922
2926
|
});
|
|
2923
2927
|
};
|
|
2924
|
-
|
|
2928
|
+
yt(({
|
|
2925
2929
|
type: x,
|
|
2926
2930
|
payload: B,
|
|
2927
2931
|
source: q
|
|
@@ -2929,14 +2933,14 @@ const na = () => ({
|
|
|
2929
2933
|
if (q)
|
|
2930
2934
|
return;
|
|
2931
2935
|
let U = x, G = B == null ? void 0 : B.type;
|
|
2932
|
-
U ===
|
|
2936
|
+
U === Re.Success && (U = h(B, ["requestOpts", "action"]), G = z.SUCCESS);
|
|
2933
2937
|
const {
|
|
2934
2938
|
values: ee,
|
|
2935
|
-
record:
|
|
2939
|
+
record: p
|
|
2936
2940
|
} = B;
|
|
2937
2941
|
switch (U) {
|
|
2938
2942
|
case k.LIST:
|
|
2939
|
-
G === z.EMIT && (
|
|
2943
|
+
G === z.EMIT && (S = ee, P());
|
|
2940
2944
|
return;
|
|
2941
2945
|
case k.ADD:
|
|
2942
2946
|
G === z.EXECUTE && u(k.ADD, ee, n.detailData);
|
|
@@ -2945,7 +2949,7 @@ const na = () => ({
|
|
|
2945
2949
|
G === z.EXECUTE && u(k.EDIT, ee, n.detailData);
|
|
2946
2950
|
return;
|
|
2947
2951
|
case k.DELETE:
|
|
2948
|
-
G === z.EMIT ? u(k.DELETE,
|
|
2952
|
+
G === z.EMIT ? u(k.DELETE, p, e.rowKey) : G === z.SUCCESS && P();
|
|
2949
2953
|
return;
|
|
2950
2954
|
}
|
|
2951
2955
|
U && x === z.EXECUTE && u(U, ee);
|
|
@@ -2981,10 +2985,10 @@ const na = () => ({
|
|
|
2981
2985
|
return (x = t.default) == null ? void 0 : x.call(t);
|
|
2982
2986
|
};
|
|
2983
2987
|
}
|
|
2984
|
-
}),
|
|
2988
|
+
}), at = D({
|
|
2985
2989
|
props: {
|
|
2986
|
-
...R(
|
|
2987
|
-
...
|
|
2990
|
+
...R(Ue.props, "state", "requests"),
|
|
2991
|
+
...Kt.props,
|
|
2988
2992
|
curdState: {
|
|
2989
2993
|
type: Object
|
|
2990
2994
|
}
|
|
@@ -3002,26 +3006,26 @@ const na = () => ({
|
|
|
3002
3006
|
[k.LIST]: {
|
|
3003
3007
|
convertParams: (m) => m,
|
|
3004
3008
|
convertData: (m) => {
|
|
3005
|
-
var
|
|
3006
|
-
return (
|
|
3009
|
+
var S;
|
|
3010
|
+
return (S = m.res) == null ? void 0 : S.data;
|
|
3007
3011
|
},
|
|
3008
3012
|
loadingName: "listLoading",
|
|
3009
3013
|
stateName: "listData"
|
|
3010
3014
|
},
|
|
3011
3015
|
[k.DETAIL]: {
|
|
3012
|
-
convertParams: (m,
|
|
3016
|
+
convertParams: (m, S) => Z(m, S),
|
|
3013
3017
|
convertData: (m) => {
|
|
3014
|
-
var
|
|
3015
|
-
return (
|
|
3018
|
+
var S;
|
|
3019
|
+
return (S = m.res) == null ? void 0 : S.data;
|
|
3016
3020
|
},
|
|
3017
3021
|
loadingName: "detailLoading",
|
|
3018
3022
|
stateName: "detailData",
|
|
3019
3023
|
label: "\u8BE6\u60C5"
|
|
3020
3024
|
},
|
|
3021
3025
|
[k.ADD]: {
|
|
3022
|
-
convertParams: (m,
|
|
3026
|
+
convertParams: (m, S) => ({
|
|
3023
3027
|
body: {
|
|
3024
|
-
...
|
|
3028
|
+
...S,
|
|
3025
3029
|
...m
|
|
3026
3030
|
}
|
|
3027
3031
|
}),
|
|
@@ -3029,9 +3033,9 @@ const na = () => ({
|
|
|
3029
3033
|
label: "\u6DFB\u52A0"
|
|
3030
3034
|
},
|
|
3031
3035
|
[k.EDIT]: {
|
|
3032
|
-
convertParams: (m,
|
|
3036
|
+
convertParams: (m, S) => ({
|
|
3033
3037
|
body: {
|
|
3034
|
-
...
|
|
3038
|
+
...S,
|
|
3035
3039
|
...m
|
|
3036
3040
|
}
|
|
3037
3041
|
}),
|
|
@@ -3039,42 +3043,42 @@ const na = () => ({
|
|
|
3039
3043
|
label: "\u7F16\u8F91"
|
|
3040
3044
|
},
|
|
3041
3045
|
[k.DELETE]: {
|
|
3042
|
-
convertParams: (m,
|
|
3046
|
+
convertParams: (m, S) => Z(m, S),
|
|
3043
3047
|
label: "\u5220\u9664"
|
|
3044
3048
|
}
|
|
3045
3049
|
}, d = F(e.operates, (m) => {
|
|
3046
3050
|
var v;
|
|
3047
|
-
const
|
|
3051
|
+
const S = h(c, m.action), P = ((v = e.convertOperate) == null ? void 0 : v.call(e, m, S)) || m;
|
|
3048
3052
|
return {
|
|
3049
|
-
...
|
|
3053
|
+
...S,
|
|
3050
3054
|
...P
|
|
3051
3055
|
};
|
|
3052
|
-
}), y = X(d, (m) => m.actor), g = Y(R(
|
|
3056
|
+
}), y = X(d, (m) => m.actor), g = Y(R(Ue.props, "state", "requests"));
|
|
3053
3057
|
return r({
|
|
3054
3058
|
sendCurdEvent: (m) => {
|
|
3055
|
-
var
|
|
3056
|
-
(
|
|
3059
|
+
var S;
|
|
3060
|
+
(S = u.value) == null || S.sendCurdEvent(m);
|
|
3057
3061
|
},
|
|
3058
3062
|
refreshList: (m) => {
|
|
3059
|
-
var
|
|
3060
|
-
(
|
|
3063
|
+
var S;
|
|
3064
|
+
(S = u.value) == null || S.refreshList(m);
|
|
3061
3065
|
},
|
|
3062
3066
|
sendEvent: (m) => {
|
|
3063
|
-
var
|
|
3064
|
-
(
|
|
3067
|
+
var S;
|
|
3068
|
+
(S = a.value) == null || S.sendEvent(m);
|
|
3065
3069
|
},
|
|
3066
|
-
sendRequest: (m, ...
|
|
3070
|
+
sendRequest: (m, ...S) => {
|
|
3067
3071
|
var P;
|
|
3068
|
-
(P = a.value) == null || P.sendRequest(m, ...
|
|
3072
|
+
(P = a.value) == null || P.sendRequest(m, ...S);
|
|
3069
3073
|
}
|
|
3070
|
-
}), () => i(
|
|
3074
|
+
}), () => i(Ue, $({
|
|
3071
3075
|
ref: a
|
|
3072
3076
|
}, Z(e, g), {
|
|
3073
3077
|
elementMap: e.elementMap || o,
|
|
3074
3078
|
state: l,
|
|
3075
3079
|
requests: y
|
|
3076
3080
|
}), {
|
|
3077
|
-
default: () => [i(
|
|
3081
|
+
default: () => [i(Kt, $({
|
|
3078
3082
|
ref: u
|
|
3079
3083
|
}, R(e, ...g, "curdState", "operates", "convertOperate"), {
|
|
3080
3084
|
formElementMap: e.formElementMap || n,
|
|
@@ -3086,12 +3090,12 @@ const na = () => ({
|
|
|
3086
3090
|
defaultAddRecord: {
|
|
3087
3091
|
type: Object
|
|
3088
3092
|
}
|
|
3089
|
-
}),
|
|
3093
|
+
}), et = D({
|
|
3090
3094
|
props: {
|
|
3091
3095
|
...ra()
|
|
3092
3096
|
},
|
|
3093
3097
|
setup: (e) => {
|
|
3094
|
-
var
|
|
3098
|
+
var S;
|
|
3095
3099
|
const {
|
|
3096
3100
|
dispatch: t,
|
|
3097
3101
|
sendRequest: r
|
|
@@ -3101,11 +3105,11 @@ const na = () => ({
|
|
|
3101
3105
|
listProps: a,
|
|
3102
3106
|
getOperate: u,
|
|
3103
3107
|
refreshList: l
|
|
3104
|
-
} = ie(), c = (
|
|
3108
|
+
} = ie(), c = (S = a == null ? void 0 : a.value) == null ? void 0 : S.pageState, d = (P) => {
|
|
3105
3109
|
const v = u(k.DETAIL);
|
|
3106
3110
|
v != null && v.actor ? r(k.DETAIL, P, o) : t({
|
|
3107
3111
|
type: "detailData",
|
|
3108
|
-
payload:
|
|
3112
|
+
payload: Bt(P)
|
|
3109
3113
|
});
|
|
3110
3114
|
}, y = (P, {
|
|
3111
3115
|
record: v
|
|
@@ -3121,7 +3125,7 @@ const na = () => ({
|
|
|
3121
3125
|
}), t({
|
|
3122
3126
|
type: "detailData",
|
|
3123
3127
|
payload: e.defaultAddRecord || {}
|
|
3124
|
-
})) : P === z.SUCCESS && (c && (c.page = 1), l(), n.addAction ===
|
|
3128
|
+
})) : P === z.SUCCESS && (c && (c.page = 1), l(), n.addAction === Fe.CONTINUE ? t({
|
|
3125
3129
|
type: "detailData",
|
|
3126
3130
|
payload: e.defaultAddRecord || {}
|
|
3127
3131
|
}) : t({
|
|
@@ -3139,7 +3143,7 @@ const na = () => ({
|
|
|
3139
3143
|
payload: void 0
|
|
3140
3144
|
}), l());
|
|
3141
3145
|
};
|
|
3142
|
-
return
|
|
3146
|
+
return yt(({
|
|
3143
3147
|
type: P,
|
|
3144
3148
|
payload: v,
|
|
3145
3149
|
source: I
|
|
@@ -3148,7 +3152,7 @@ const na = () => ({
|
|
|
3148
3152
|
return;
|
|
3149
3153
|
let A = P, f = v == null ? void 0 : v.type;
|
|
3150
3154
|
const T = v == null ? void 0 : v.record;
|
|
3151
|
-
switch (A ===
|
|
3155
|
+
switch (A === Re.Success && (A = h(v, ["requestOpts", "action"]), f = z.SUCCESS), A) {
|
|
3152
3156
|
case k.DETAIL:
|
|
3153
3157
|
y(f, {
|
|
3154
3158
|
record: T
|
|
@@ -3167,8 +3171,8 @@ const na = () => ({
|
|
|
3167
3171
|
}
|
|
3168
3172
|
}), ro = D({
|
|
3169
3173
|
props: {
|
|
3170
|
-
...
|
|
3171
|
-
...
|
|
3174
|
+
...at.props,
|
|
3175
|
+
...et.props
|
|
3172
3176
|
},
|
|
3173
3177
|
setup: (e, {
|
|
3174
3178
|
slots: t,
|
|
@@ -3176,13 +3180,13 @@ const na = () => ({
|
|
|
3176
3180
|
}) => {
|
|
3177
3181
|
const o = W();
|
|
3178
3182
|
r(Me(Pn, o));
|
|
3179
|
-
const n = Y(
|
|
3183
|
+
const n = Y(et.props), u = te()(V.ProCurdKey);
|
|
3180
3184
|
return () => u ? i(u, $({
|
|
3181
3185
|
ref: o
|
|
3182
3186
|
}, R(e, n)), {
|
|
3183
3187
|
default: () => {
|
|
3184
3188
|
var l;
|
|
3185
|
-
return [i(
|
|
3189
|
+
return [i(et, Z(e, n), null), (l = t.default) == null ? void 0 : l.call(t)];
|
|
3186
3190
|
}
|
|
3187
3191
|
}) : null;
|
|
3188
3192
|
}
|
|
@@ -3193,12 +3197,12 @@ const na = () => ({
|
|
|
3193
3197
|
routeBack: {
|
|
3194
3198
|
type: Function
|
|
3195
3199
|
}
|
|
3196
|
-
}),
|
|
3200
|
+
}), tt = D({
|
|
3197
3201
|
props: {
|
|
3198
3202
|
...aa()
|
|
3199
3203
|
},
|
|
3200
3204
|
setup: (e) => {
|
|
3201
|
-
const t =
|
|
3205
|
+
const t = ft(), r = dt(), {
|
|
3202
3206
|
dispatch: o,
|
|
3203
3207
|
sendRequest: n
|
|
3204
3208
|
} = Te(), {
|
|
@@ -3237,7 +3241,7 @@ const na = () => ({
|
|
|
3237
3241
|
}), o({
|
|
3238
3242
|
type: "detailData",
|
|
3239
3243
|
payload: e.defaultAddRecord || {}
|
|
3240
|
-
})) : g === z.SUCCESS && (u.addAction ===
|
|
3244
|
+
})) : g === z.SUCCESS && (u.addAction === Fe.CONTINUE ? o({
|
|
3241
3245
|
type: "detailData",
|
|
3242
3246
|
payload: e.defaultAddRecord || {}
|
|
3243
3247
|
}) : e.routeBack ? e.routeBack(k.ADD) : t.go(-1));
|
|
@@ -3252,16 +3256,16 @@ const na = () => ({
|
|
|
3252
3256
|
payload: pe.EDIT
|
|
3253
3257
|
}), n(k.DETAIL, r.query, a)) : g === z.SUCCESS && (e.routeBack ? e.routeBack(k.EDIT) : t.go(-1));
|
|
3254
3258
|
};
|
|
3255
|
-
return
|
|
3259
|
+
return yt(({
|
|
3256
3260
|
type: g,
|
|
3257
3261
|
payload: m,
|
|
3258
|
-
source:
|
|
3262
|
+
source: S
|
|
3259
3263
|
}) => {
|
|
3260
|
-
if (
|
|
3264
|
+
if (S)
|
|
3261
3265
|
return;
|
|
3262
3266
|
let P = g, v = m == null ? void 0 : m.type;
|
|
3263
3267
|
const I = m == null ? void 0 : m.record;
|
|
3264
|
-
switch (P ===
|
|
3268
|
+
switch (P === Re.Success && (P = h(m, ["requestOpts", "action"]), v = z.SUCCESS), P) {
|
|
3265
3269
|
case k.LIST:
|
|
3266
3270
|
l(v);
|
|
3267
3271
|
break;
|
|
@@ -3283,8 +3287,8 @@ const na = () => ({
|
|
|
3283
3287
|
}
|
|
3284
3288
|
}), ao = D({
|
|
3285
3289
|
props: {
|
|
3286
|
-
...
|
|
3287
|
-
...
|
|
3290
|
+
...at.props,
|
|
3291
|
+
...tt.props
|
|
3288
3292
|
},
|
|
3289
3293
|
setup: (e, {
|
|
3290
3294
|
slots: t,
|
|
@@ -3292,17 +3296,17 @@ const na = () => ({
|
|
|
3292
3296
|
}) => {
|
|
3293
3297
|
const o = W();
|
|
3294
3298
|
r(Me(Pn, o));
|
|
3295
|
-
const n = Y(
|
|
3296
|
-
return () => i(
|
|
3299
|
+
const n = Y(tt.props);
|
|
3300
|
+
return () => i(at, $({
|
|
3297
3301
|
ref: o
|
|
3298
3302
|
}, R(e, n)), {
|
|
3299
3303
|
default: () => {
|
|
3300
3304
|
var a;
|
|
3301
|
-
return [i(
|
|
3305
|
+
return [i(tt, Z(e, n), null), (a = t.default) == null ? void 0 : a.call(t)];
|
|
3302
3306
|
}
|
|
3303
3307
|
});
|
|
3304
3308
|
}
|
|
3305
|
-
}),
|
|
3309
|
+
}), At = D({
|
|
3306
3310
|
props: {
|
|
3307
3311
|
buttonProps: Object
|
|
3308
3312
|
},
|
|
@@ -3331,7 +3335,7 @@ const na = () => ({
|
|
|
3331
3335
|
default: () => [a.label]
|
|
3332
3336
|
}) : null;
|
|
3333
3337
|
}
|
|
3334
|
-
}),
|
|
3338
|
+
}), Dt = () => ({
|
|
3335
3339
|
addConfig: {
|
|
3336
3340
|
type: Object,
|
|
3337
3341
|
default: {
|
|
@@ -3345,7 +3349,7 @@ const na = () => ({
|
|
|
3345
3349
|
}), oa = D({
|
|
3346
3350
|
props: {
|
|
3347
3351
|
...Nr.props,
|
|
3348
|
-
...
|
|
3352
|
+
...Dt()
|
|
3349
3353
|
},
|
|
3350
3354
|
setup: (e, {
|
|
3351
3355
|
slots: t
|
|
@@ -3391,7 +3395,7 @@ const na = () => ({
|
|
|
3391
3395
|
formElementMap: o,
|
|
3392
3396
|
columns: a.value,
|
|
3393
3397
|
...e.searchProps
|
|
3394
|
-
})),
|
|
3398
|
+
})), S = N(() => {
|
|
3395
3399
|
var f, T;
|
|
3396
3400
|
return {
|
|
3397
3401
|
elementMap: r,
|
|
@@ -3410,14 +3414,14 @@ const na = () => ({
|
|
|
3410
3414
|
total: (f = n.listData) == null ? void 0 : f.total,
|
|
3411
3415
|
...e.paginationProps
|
|
3412
3416
|
};
|
|
3413
|
-
}), v = Y(
|
|
3417
|
+
}), v = Y(Dt()), A = te()(V.ProListKey);
|
|
3414
3418
|
return () => {
|
|
3415
3419
|
var f, T;
|
|
3416
3420
|
return A ? i(A, $({
|
|
3417
3421
|
class: "pro-curd-list"
|
|
3418
3422
|
}, R(e, ...v, "searchProps", "tableProps", "paginationProps"), {
|
|
3419
3423
|
searchProps: m.value,
|
|
3420
|
-
tableProps:
|
|
3424
|
+
tableProps: S.value,
|
|
3421
3425
|
paginationProps: P.value,
|
|
3422
3426
|
onSearch: g
|
|
3423
3427
|
}), {
|
|
@@ -3425,15 +3429,15 @@ const na = () => ({
|
|
|
3425
3429
|
var K;
|
|
3426
3430
|
return i("div", {
|
|
3427
3431
|
class: "pro-curd-list-search-end"
|
|
3428
|
-
}, [i(
|
|
3432
|
+
}, [i(At, (K = e.addConfig) == null ? void 0 : K.buttonProps, null)]);
|
|
3429
3433
|
} : void 0,
|
|
3430
3434
|
"table-toolbarExtra": (T = e.addConfig) != null && T.inTable ? (K) => {
|
|
3431
3435
|
var w;
|
|
3432
|
-
return i(le, null, [i(
|
|
3436
|
+
return i(le, null, [i(At, (w = e.addConfig) == null ? void 0 : w.buttonProps, null), K]);
|
|
3433
3437
|
} : void 0,
|
|
3434
3438
|
...t,
|
|
3435
3439
|
search: t.search ? (K) => t.search(K, m.value) : void 0,
|
|
3436
|
-
table: t.table ? (K) => t.table(K,
|
|
3440
|
+
table: t.table ? (K) => t.table(K, S.value) : void 0,
|
|
3437
3441
|
pagination: t.pagination ? (K) => t.pagination(K, P.value) : void 0
|
|
3438
3442
|
}) : null;
|
|
3439
3443
|
};
|
|
@@ -3447,7 +3451,7 @@ const na = () => ({
|
|
|
3447
3451
|
signName: {
|
|
3448
3452
|
type: String
|
|
3449
3453
|
}
|
|
3450
|
-
}),
|
|
3454
|
+
}), bt = D({
|
|
3451
3455
|
props: {
|
|
3452
3456
|
...ua()
|
|
3453
3457
|
},
|
|
@@ -3467,10 +3471,10 @@ const na = () => ({
|
|
|
3467
3471
|
r(Me(e.formMethods || [], y));
|
|
3468
3472
|
const g = N(() => e.signName ? c(e.signName) : l.value), m = () => {
|
|
3469
3473
|
var f;
|
|
3470
|
-
u.addAction =
|
|
3471
|
-
},
|
|
3474
|
+
u.addAction = Fe.NORMAL, (f = y.value) == null || f.submit();
|
|
3475
|
+
}, S = () => {
|
|
3472
3476
|
var f;
|
|
3473
|
-
u.addAction =
|
|
3477
|
+
u.addAction = Fe.CONTINUE, (f = y.value) == null || f.submit();
|
|
3474
3478
|
}, P = [
|
|
3475
3479
|
{
|
|
3476
3480
|
value: ue.RESET,
|
|
@@ -3515,7 +3519,7 @@ const na = () => ({
|
|
|
3515
3519
|
operate: e.operate ? {
|
|
3516
3520
|
items: P,
|
|
3517
3521
|
onSubmit: m,
|
|
3518
|
-
onContinue:
|
|
3522
|
+
onContinue: S,
|
|
3519
3523
|
...e.operate
|
|
3520
3524
|
} : void 0,
|
|
3521
3525
|
onFinish: v
|
|
@@ -3525,7 +3529,7 @@ const na = () => ({
|
|
|
3525
3529
|
const {
|
|
3526
3530
|
formProps: e
|
|
3527
3531
|
} = ie();
|
|
3528
|
-
return () => i(
|
|
3532
|
+
return () => i(bt, R(e == null ? void 0 : e.value, "slots"), h(e == null ? void 0 : e.value, "slots"));
|
|
3529
3533
|
}), la = () => ({
|
|
3530
3534
|
signName: {
|
|
3531
3535
|
type: String
|
|
@@ -3554,7 +3558,7 @@ const na = () => ({
|
|
|
3554
3558
|
return () => i(ca, $({
|
|
3555
3559
|
class: "pro-curd-desc"
|
|
3556
3560
|
}, R(e == null ? void 0 : e.value, "slots")), h(e == null ? void 0 : e.value, "slots"));
|
|
3557
|
-
}),
|
|
3561
|
+
}), Rt = () => ({
|
|
3558
3562
|
validMode: {
|
|
3559
3563
|
type: Array,
|
|
3560
3564
|
default: [k.ADD, k.DETAIL, k.EDIT]
|
|
@@ -3567,7 +3571,7 @@ const na = () => ({
|
|
|
3567
3571
|
}
|
|
3568
3572
|
}), Cn = D({
|
|
3569
3573
|
props: {
|
|
3570
|
-
...
|
|
3574
|
+
...Rt()
|
|
3571
3575
|
},
|
|
3572
3576
|
setup: (e, {
|
|
3573
3577
|
slots: t
|
|
@@ -3576,8 +3580,8 @@ const na = () => ({
|
|
|
3576
3580
|
curdState: a,
|
|
3577
3581
|
getOperate: u
|
|
3578
3582
|
} = ie(), l = () => {
|
|
3579
|
-
a.mode = void 0,
|
|
3580
|
-
}, c = Y(
|
|
3583
|
+
a.mode = void 0, st(a.detailData, {}), a.detailLoading = !1, a.addAction = void 0;
|
|
3584
|
+
}, c = Y(Rt());
|
|
3581
3585
|
return () => {
|
|
3582
3586
|
var y;
|
|
3583
3587
|
const d = a.mode;
|
|
@@ -3621,7 +3625,7 @@ const na = () => ({
|
|
|
3621
3625
|
(a = r.value) == null || a.submit();
|
|
3622
3626
|
}
|
|
3623
3627
|
}), {
|
|
3624
|
-
default: () => [i(
|
|
3628
|
+
default: () => [i(bt, $({
|
|
3625
3629
|
ref: r
|
|
3626
3630
|
}, e.formProps), n)],
|
|
3627
3631
|
...o
|
|
@@ -3638,7 +3642,7 @@ const na = () => ({
|
|
|
3638
3642
|
(o = r.value) == null || o.submit();
|
|
3639
3643
|
}
|
|
3640
3644
|
}), {
|
|
3641
|
-
default: () => [i(
|
|
3645
|
+
default: () => [i(bt, $({
|
|
3642
3646
|
ref: r
|
|
3643
3647
|
}, R(t == null ? void 0 : t.value, "slots")), h(t == null ? void 0 : t.value, "slots"))],
|
|
3644
3648
|
...h(e == null ? void 0 : e.value, "slots")
|
|
@@ -3656,7 +3660,7 @@ const na = () => ({
|
|
|
3656
3660
|
lineHeight: 1.5714285714285714,
|
|
3657
3661
|
spacing: 4
|
|
3658
3662
|
}, da = (e) => {
|
|
3659
|
-
var o, n, a, u, l, c, d, y, g, m,
|
|
3663
|
+
var o, n, a, u, l, c, d, y, g, m, S, P;
|
|
3660
3664
|
const t = [1, 2, 3, 4, 5, 6, 7, 8, 9], r = (v) => ({
|
|
3661
3665
|
base: v,
|
|
3662
3666
|
light: ae(t, (I, A) => ({
|
|
@@ -3674,7 +3678,7 @@ const na = () => ({
|
|
|
3674
3678
|
warning: r(((l = e == null ? void 0 : e.color) == null ? void 0 : l.warning) || ((c = Pe.color) == null ? void 0 : c.warning)),
|
|
3675
3679
|
danger: r(((d = e == null ? void 0 : e.color) == null ? void 0 : d.danger) || ((y = Pe.color) == null ? void 0 : y.danger)),
|
|
3676
3680
|
error: r(((g = e == null ? void 0 : e.color) == null ? void 0 : g.error) || ((m = Pe.color) == null ? void 0 : m.error)),
|
|
3677
|
-
info: r(((
|
|
3681
|
+
info: r(((S = e == null ? void 0 : e.color) == null ? void 0 : S.info) || ((P = Pe.color) == null ? void 0 : P.info)),
|
|
3678
3682
|
text: {
|
|
3679
3683
|
base: "#303133",
|
|
3680
3684
|
regular: "#606266",
|
|
@@ -3740,24 +3744,33 @@ const na = () => ({
|
|
|
3740
3744
|
setup: (e, {
|
|
3741
3745
|
slots: t
|
|
3742
3746
|
}) => {
|
|
3743
|
-
const o = be({
|
|
3744
|
-
...(
|
|
3747
|
+
const [r, o] = Ge(), n = () => e.theme ? e.theme : da(e.themeToken), a = be({
|
|
3748
|
+
...n()
|
|
3745
3749
|
});
|
|
3746
|
-
return
|
|
3747
|
-
|
|
3750
|
+
return De(() => {
|
|
3751
|
+
st(a, n());
|
|
3752
|
+
}, () => e.themeToken), De(() => {
|
|
3753
|
+
o();
|
|
3754
|
+
}, a, {
|
|
3755
|
+
deep: !0
|
|
3756
|
+
}), ve(Mn, {
|
|
3757
|
+
theme: a
|
|
3758
|
+
}), () => {
|
|
3759
|
+
var u, l;
|
|
3748
3760
|
return e.global ? i(le, null, [e.createCssVar && i(er, {
|
|
3761
|
+
key: r.value,
|
|
3749
3762
|
styles: {
|
|
3750
|
-
":root": e.createCssVar(
|
|
3763
|
+
":root": e.createCssVar(a)
|
|
3751
3764
|
}
|
|
3752
|
-
}, null), (
|
|
3765
|
+
}, null), (u = t.default) == null ? void 0 : u.call(t)]) : (l = t.default) == null ? void 0 : l.call(t);
|
|
3753
3766
|
};
|
|
3754
3767
|
}
|
|
3755
3768
|
});
|
|
3756
3769
|
export {
|
|
3757
|
-
|
|
3770
|
+
At as AddButton,
|
|
3758
3771
|
Cr as ColumnSetting,
|
|
3759
3772
|
k as CurdAction,
|
|
3760
|
-
|
|
3773
|
+
Fe as CurdAddAction,
|
|
3761
3774
|
pe as CurdCurrentMode,
|
|
3762
3775
|
Pn as CurdMethods,
|
|
3763
3776
|
z as CurdSubAction,
|
|
@@ -3766,16 +3779,16 @@ export {
|
|
|
3766
3779
|
La as FormRulePrefixMap,
|
|
3767
3780
|
Ua as LogonUser,
|
|
3768
3781
|
ln as LogonUserKey,
|
|
3769
|
-
|
|
3782
|
+
et as ModalCurdOpe,
|
|
3770
3783
|
qa as MustLogon,
|
|
3771
|
-
|
|
3784
|
+
Ze as PageHeader,
|
|
3772
3785
|
Va as PerSuffix,
|
|
3773
3786
|
za as Permission,
|
|
3774
3787
|
wa as ProConfig,
|
|
3775
|
-
|
|
3788
|
+
at as ProCurd,
|
|
3776
3789
|
ca as ProCurdDesc,
|
|
3777
3790
|
lo as ProCurdDescConnect,
|
|
3778
|
-
|
|
3791
|
+
bt as ProCurdForm,
|
|
3779
3792
|
uo as ProCurdFormConnect,
|
|
3780
3793
|
oa as ProCurdList,
|
|
3781
3794
|
oo as ProCurdListConnect,
|
|
@@ -3790,7 +3803,7 @@ export {
|
|
|
3790
3803
|
mn as ProLayoutKey,
|
|
3791
3804
|
Nr as ProList,
|
|
3792
3805
|
ro as ProModalCurd,
|
|
3793
|
-
|
|
3806
|
+
Ue as ProModule,
|
|
3794
3807
|
dn as ProOperate,
|
|
3795
3808
|
Wa as ProPage,
|
|
3796
3809
|
ao as ProPageCurd,
|
|
@@ -3799,7 +3812,7 @@ export {
|
|
|
3799
3812
|
Qa as ProShowDate,
|
|
3800
3813
|
_a as ProShowDigit,
|
|
3801
3814
|
Xa as ProShowOptions,
|
|
3802
|
-
|
|
3815
|
+
Ye as ProShowText,
|
|
3803
3816
|
Ya as ProShowTree,
|
|
3804
3817
|
Ha as ProTable,
|
|
3805
3818
|
fo as ProTheme,
|
|
@@ -3809,9 +3822,9 @@ export {
|
|
|
3809
3822
|
Za as ProUploaderText,
|
|
3810
3823
|
Ga as ProValue,
|
|
3811
3824
|
jr as ProWatermark,
|
|
3812
|
-
|
|
3825
|
+
Re as RequestAction,
|
|
3813
3826
|
Ur as RouterMethods,
|
|
3814
|
-
|
|
3827
|
+
He as SearchMode,
|
|
3815
3828
|
Mn as ThemeKey,
|
|
3816
3829
|
Pe as ThemeToken,
|
|
3817
3830
|
Jr as Wrapper,
|
|
@@ -3832,16 +3845,16 @@ export {
|
|
|
3832
3845
|
sr as getSignValue,
|
|
3833
3846
|
cr as getValidValues,
|
|
3834
3847
|
Yr as isValidConfig,
|
|
3835
|
-
|
|
3836
|
-
|
|
3848
|
+
rt as isValidNode,
|
|
3849
|
+
_e as mergeState,
|
|
3837
3850
|
Da as mergeStateToList,
|
|
3838
3851
|
Ce as proBaseProps,
|
|
3839
3852
|
ta as provideProCurd,
|
|
3840
3853
|
rn as provideProFormList,
|
|
3841
3854
|
Gr as provideProModule,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3855
|
+
vt as renderColumn,
|
|
3856
|
+
$e as renderElement,
|
|
3857
|
+
ht as renderElements,
|
|
3845
3858
|
bn as renderInputColumn,
|
|
3846
3859
|
yn as showValue,
|
|
3847
3860
|
vr as useAccess,
|
|
@@ -3857,17 +3870,17 @@ export {
|
|
|
3857
3870
|
hr as useLogonUser,
|
|
3858
3871
|
Aa as useMeta,
|
|
3859
3872
|
or as useMetaRegister,
|
|
3860
|
-
|
|
3873
|
+
yt as useModuleEvent,
|
|
3861
3874
|
oe as useProConfig,
|
|
3862
3875
|
ie as useProCurd,
|
|
3863
3876
|
on as useProForm,
|
|
3864
3877
|
nn as useProFormList,
|
|
3865
|
-
|
|
3878
|
+
Xe as useProLayout,
|
|
3866
3879
|
xa as useProModal,
|
|
3867
3880
|
Te as useProModule,
|
|
3868
3881
|
Ea as useProMsg,
|
|
3869
3882
|
Ia as useProNotify,
|
|
3870
|
-
|
|
3883
|
+
Qe as useProRouter,
|
|
3871
3884
|
Mr as useProTable,
|
|
3872
3885
|
to as useReadStore,
|
|
3873
3886
|
io as useTheme
|