@vue-start/pro 0.5.50 → 0.5.51
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 +7 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +189 -0
- package/dist/index.es.js +1331 -1311
- 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
|
|
2
|
-
import { reduce as ue, get as
|
|
3
|
-
import { filter as
|
|
4
|
-
import { map as
|
|
5
|
-
import { mergeStateToData as
|
|
6
|
-
import { useRequestProvide as
|
|
7
|
-
import { useDispatchStore as
|
|
8
|
-
import { useRoute as
|
|
9
|
-
import
|
|
10
|
-
import { css as
|
|
11
|
-
import { mix as
|
|
12
|
-
import { Global as
|
|
13
|
-
const
|
|
1
|
+
import { inject as he, defineComponent as A, 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 Kn, KeepAlive as Ln, Teleport as qt, h as De, resolveComponent as Rn } from "vue";
|
|
2
|
+
import { reduce as ue, get as p, map as F, isString as de, forEach as ae, isFunction as W, filter as _, keys as G, omit as D, isArray as Z, split as Fn, isEmpty as Ut, isObject as Oe, mergeWith as $n, size as Y, startsWith as jn, pick as J, mapKeys as Bn, set as me, debounce as Vt, clone as qn, some as Pe, isBoolean as Ke, has as st, sortBy as zt, every as Ht, pickBy as Un, identity as Vn, find as ut, findIndex as zn, findLast as Hn, isNumber as ct, join as Je, endsWith as Wt, add as Wn, subtract as _n, head as Gn, cloneDeep as _t } from "lodash";
|
|
3
|
+
import { filter as Le, tap as We, merge as Xn, Subject as Yn } from "rxjs";
|
|
4
|
+
import { map as Qn, tap as Jn } from "rxjs/operators";
|
|
5
|
+
import { mergeStateToData as Zn, mergeStateToData2 as er, useEffect as re, useUpdateKey as Ze, useRuleState as rt, convertCollection as Gt, useWatch as Se, useState as Mt, signTableMerge as tr, useResizeObserver as Ve, treeToMap as it, findTreeItem as _e, jsonToStr as Ge, filterCollection as nr, getMenuTopNameMap as It, findFirstValidMenu as Xt, strToJson as dt, decimalFixed as rr, thousandDivision as ar, listToMap as or, setReactiveValue as ft, restorePath as Yt, isValidPath as Qt, isPathHasParent as Jt, useSafeActivated as ur } from "@vue-start/hooks";
|
|
6
|
+
import { useRequestProvide as je, isDoneRequestActor as mt, isFailedRequestActor as Zt } from "@vue-start/request";
|
|
7
|
+
import { useDispatchStore as en, useObservableRef as tn, useStoreConn as nn, createStateUse as rn, useStore as lr, shallowEqual as sr } from "@vue-start/store";
|
|
8
|
+
import { useRoute as yt, RouterView as cr, useRouter as an, parseQuery as xt, stringifyQuery as ir } from "vue-router";
|
|
9
|
+
import Et from "dayjs";
|
|
10
|
+
import { css as wt } from "@emotion/css";
|
|
11
|
+
import { mix as on } from "polished";
|
|
12
|
+
import { Global as dr } from "@vue-start/css";
|
|
13
|
+
const un = Symbol("logon-user"), Ha = () => he(un), vt = {
|
|
14
14
|
color: {
|
|
15
15
|
primary: "#409eff",
|
|
16
16
|
success: "#67c23a",
|
|
@@ -28,17 +28,17 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
28
28
|
radius: "4px",
|
|
29
29
|
lineHeight: 1.5714285714285714,
|
|
30
30
|
spacing: 4
|
|
31
|
-
},
|
|
32
|
-
...
|
|
31
|
+
}, fr = {
|
|
32
|
+
...vt,
|
|
33
33
|
extraColor: {
|
|
34
34
|
text: { base: "#E5EAF3", regular: "#CFD3DC", secondary: "#A3A6AD", placeholder: "#8D9095", disabled: "#6C6E72" },
|
|
35
35
|
border: { base: "#4C4D4F", light: "#414243" },
|
|
36
36
|
bg: { base: "black", light: "#141414" },
|
|
37
37
|
mode: { base: "black", rgb: "0,0,0", reverse: "white", "reverse-rgb": "255,255,255" }
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, mr = {
|
|
40
40
|
layout: "compose",
|
|
41
|
-
primary:
|
|
41
|
+
primary: vt.color.primary,
|
|
42
42
|
isDark: !1,
|
|
43
43
|
menuBar: "",
|
|
44
44
|
menuBarColor: "",
|
|
@@ -52,17 +52,17 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
52
52
|
isGray: !1,
|
|
53
53
|
isInvert: !1,
|
|
54
54
|
isWatermark: !0
|
|
55
|
-
},
|
|
55
|
+
}, yr = () => ({
|
|
56
56
|
elementMap: { type: Object },
|
|
57
57
|
formElementMap: { type: Object },
|
|
58
58
|
columns: { type: Array },
|
|
59
59
|
convertColumn: { type: Function },
|
|
60
60
|
columnState: { type: Object },
|
|
61
61
|
columnState2: { type: Object }
|
|
62
|
-
}),
|
|
62
|
+
}), xe = yr(), et = (e, t, n) => {
|
|
63
63
|
let o = e;
|
|
64
|
-
return t && (o =
|
|
65
|
-
},
|
|
64
|
+
return t && (o = Zn(o, t, (r) => ve(r))), n && (o = er(o, n, (r) => ve(r))), o;
|
|
65
|
+
}, vr = () => ({
|
|
66
66
|
elementMap: { type: Object },
|
|
67
67
|
formElementMap: { type: Object },
|
|
68
68
|
formExtraMap: { type: Object },
|
|
@@ -74,27 +74,27 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
74
74
|
showMsg: { type: Function },
|
|
75
75
|
showModal: { type: Function },
|
|
76
76
|
showNotify: { type: Function },
|
|
77
|
-
appConfig: { type: Object, default:
|
|
78
|
-
}),
|
|
77
|
+
appConfig: { type: Object, default: mr }
|
|
78
|
+
}), ht = Symbol("pro-config"), oe = () => he(ht) || {}, Wa = () => {
|
|
79
79
|
const { showMsg: e } = oe();
|
|
80
80
|
return (t) => e(t);
|
|
81
|
-
},
|
|
81
|
+
}, _a = () => {
|
|
82
82
|
const { showModal: e } = oe();
|
|
83
83
|
return (t) => e(t);
|
|
84
|
-
},
|
|
84
|
+
}, Ga = () => {
|
|
85
85
|
const { showNotify: e } = oe();
|
|
86
86
|
return (t) => e(t);
|
|
87
|
-
},
|
|
87
|
+
}, Xa = A({
|
|
88
88
|
props: {
|
|
89
|
-
...
|
|
89
|
+
...vr()
|
|
90
90
|
},
|
|
91
91
|
setup: (e, { slots: t }) => {
|
|
92
|
-
const n = ue(e.registerStores, (l, s) => ({ ...l, [s.key]: s }), {}), o = ue(e.registerActors, (l, s) => ({ ...l, [s.actor.name]: s }), {}), r = ue(e.registerMetas, (l, s) => ({ ...l, [s.actorName]: s }), {}), { dispatchRequest: a } =
|
|
93
|
-
const
|
|
94
|
-
if (!!
|
|
95
|
-
return a(
|
|
92
|
+
const n = ue(e.registerStores, (l, s) => ({ ...l, [s.key]: s }), {}), o = ue(e.registerActors, (l, s) => ({ ...l, [s.actor.name]: s }), {}), r = ue(e.registerMetas, (l, s) => ({ ...l, [s.actorName]: s }), {}), { dispatchRequest: a } = je(), u = (l, s, f) => {
|
|
93
|
+
const y = p(o, l);
|
|
94
|
+
if (!!y)
|
|
95
|
+
return a(y.actor, s, f);
|
|
96
96
|
};
|
|
97
|
-
return
|
|
97
|
+
return gr(r, o), pe(ht, {
|
|
98
98
|
elementMap: e.elementMap,
|
|
99
99
|
formElementMap: e.formElementMap,
|
|
100
100
|
formExtraMap: e.formExtraMap,
|
|
@@ -112,14 +112,14 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
112
112
|
return (l = t.default) == null ? void 0 : l.call(t);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
116
|
-
t.provide(
|
|
117
|
-
},
|
|
118
|
-
const { requestSubject$: o } =
|
|
115
|
+
}), Ya = (e = {}) => (t) => {
|
|
116
|
+
t.provide(ht, e);
|
|
117
|
+
}, ln = (e) => (t, n) => {
|
|
118
|
+
const { requestSubject$: o } = je(), r = new Set(F(t, (a) => de(a) ? a : a.name));
|
|
119
119
|
re(() => {
|
|
120
120
|
const a = o.pipe(
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
Le(e),
|
|
122
|
+
We((u) => {
|
|
123
123
|
r.has(u.name) && n(u);
|
|
124
124
|
})
|
|
125
125
|
).subscribe();
|
|
@@ -127,22 +127,22 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
127
127
|
a.unsubscribe();
|
|
128
128
|
};
|
|
129
129
|
}, []);
|
|
130
|
-
},
|
|
131
|
-
const { requestSubject$: o, dispatchRequest: r } =
|
|
130
|
+
}, Qa = ln(mt), Ja = ln(Zt), hr = (e, t, n) => {
|
|
131
|
+
const { requestSubject$: o, dispatchRequest: r } = je(), a = new Set(F(e, (l) => de(l) ? l : l.name)), u = {};
|
|
132
132
|
re(() => {
|
|
133
|
-
const l =
|
|
133
|
+
const l = Xn(
|
|
134
134
|
o.pipe(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var
|
|
138
|
-
a.has(s.name) && ((
|
|
135
|
+
Le(mt),
|
|
136
|
+
We((s) => {
|
|
137
|
+
var f, y;
|
|
138
|
+
a.has(s.name) && ((f = t.onSuccess) == null || f.call(t, s), (y = t.onFinish) == null || y.call(t, s), u[s.name] = void 0);
|
|
139
139
|
})
|
|
140
140
|
),
|
|
141
141
|
o.pipe(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var
|
|
145
|
-
a.has(s.name) && ((
|
|
142
|
+
Le(Zt),
|
|
143
|
+
We((s) => {
|
|
144
|
+
var f, y;
|
|
145
|
+
a.has(s.name) && ((f = t.onFailed) == null || f.call(t, s), (y = t.onFinish) == null || y.call(t, s), u[s.name] = void 0);
|
|
146
146
|
})
|
|
147
147
|
)
|
|
148
148
|
).subscribe();
|
|
@@ -152,31 +152,31 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
}, []);
|
|
155
|
-
},
|
|
155
|
+
}, pr = (e, t, n) => {
|
|
156
156
|
var r;
|
|
157
157
|
const o = (r = e.res) == null ? void 0 : r.data;
|
|
158
|
-
return t ? t(o, e) : n ?
|
|
159
|
-
},
|
|
160
|
-
const { registerMetaMap: n, dispatchRequest: o } = oe(), r =
|
|
158
|
+
return t ? t(o, e) : n ? p(o, n) : o;
|
|
159
|
+
}, sn = (e, t) => W(e) ? "meta_" + e(t) : "meta_" + e, Za = (e, t) => {
|
|
160
|
+
const { registerMetaMap: n, dispatchRequest: o } = oe(), r = p(n, e);
|
|
161
161
|
if (!r)
|
|
162
162
|
return {};
|
|
163
|
-
const a =
|
|
163
|
+
const a = sn(r.storeName || e, t || r.initParams), l = tn(nn((s) => p(s, a)));
|
|
164
164
|
return l.value || o(e, t || r.initParams || {}), l;
|
|
165
|
-
},
|
|
166
|
-
const { requestSubject$: n } =
|
|
167
|
-
const u =
|
|
165
|
+
}, gr = (e, t) => {
|
|
166
|
+
const { requestSubject$: n } = je(), o = en(), r = (a) => {
|
|
167
|
+
const u = p(e, a.name), l = p(t, a.name);
|
|
168
168
|
return !!(u && l && l.actor);
|
|
169
169
|
};
|
|
170
170
|
re(() => {
|
|
171
171
|
const a = n.pipe(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const l =
|
|
172
|
+
Le(r),
|
|
173
|
+
Le(mt),
|
|
174
|
+
We((u) => {
|
|
175
|
+
const l = p(e, u.name);
|
|
176
176
|
if (!l)
|
|
177
177
|
return;
|
|
178
|
-
const s = l.storeName || u.name,
|
|
179
|
-
o(
|
|
178
|
+
const s = l.storeName || u.name, f = pr(u, l.convertData, l.convertPath), y = sn(s, u.req);
|
|
179
|
+
o(y, f, !1, void 0);
|
|
180
180
|
})
|
|
181
181
|
).subscribe();
|
|
182
182
|
return () => {
|
|
@@ -214,14 +214,14 @@ const an = Symbol("logon-user"), Ua = () => he(an), mt = {
|
|
|
214
214
|
ProListKey: "ProList$",
|
|
215
215
|
ProPageKey: "ProPage$",
|
|
216
216
|
ProOperateKey: "ProOperate$"
|
|
217
|
-
},
|
|
217
|
+
}, Q = () => {
|
|
218
218
|
const { elementMap: e } = oe();
|
|
219
|
-
return (t) =>
|
|
219
|
+
return (t) => p(e, t);
|
|
220
220
|
};
|
|
221
|
-
function
|
|
221
|
+
function br(e) {
|
|
222
222
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const Sr = () => ({
|
|
225
225
|
row: {
|
|
226
226
|
type: Object,
|
|
227
227
|
default: void 0
|
|
@@ -232,15 +232,15 @@ const pr = () => ({
|
|
|
232
232
|
items: {
|
|
233
233
|
type: Array
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
235
|
+
}), Te = A({
|
|
236
236
|
props: {
|
|
237
|
-
...
|
|
237
|
+
...Sr()
|
|
238
238
|
},
|
|
239
239
|
setup: (e) => {
|
|
240
|
-
const t =
|
|
240
|
+
const t = Q(), n = t(j.RowKey), o = t(j.ColKey);
|
|
241
241
|
return () => {
|
|
242
242
|
let r;
|
|
243
|
-
return !n || !o ? null : i(n, e.row,
|
|
243
|
+
return !n || !o ? null : i(n, e.row, br(r = F(e.items, (a) => i(o, L({
|
|
244
244
|
key: a.rowKey
|
|
245
245
|
}, e.col, a.col), {
|
|
246
246
|
default: () => [a.vNode]
|
|
@@ -249,22 +249,22 @@ const pr = () => ({
|
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
252
|
+
}), Pr = (e, t, n) => {
|
|
253
253
|
if (t) {
|
|
254
|
-
const o = G(
|
|
254
|
+
const o = _(G(t), (r) => !t[r]);
|
|
255
255
|
return D(e, o);
|
|
256
256
|
}
|
|
257
257
|
if (n) {
|
|
258
|
-
const o = G(
|
|
258
|
+
const o = _(G(n), (r) => !n[r](e));
|
|
259
259
|
return D(e, o);
|
|
260
260
|
}
|
|
261
261
|
return e;
|
|
262
|
-
},
|
|
262
|
+
}, cn = (e) => {
|
|
263
263
|
if (!!e)
|
|
264
|
-
return Z(e) ? e : e && de(e) && e.indexOf(".") > 0 ?
|
|
265
|
-
},
|
|
266
|
-
const r =
|
|
267
|
-
return !a ||
|
|
264
|
+
return Z(e) ? e : e && de(e) && e.indexOf(".") > 0 ? Fn(e, ".") : [e];
|
|
265
|
+
}, eo = (e, t, n) => !t || !n ? e : F(e, (o) => {
|
|
266
|
+
const r = W(n) ? n(o) : p(o, n), a = p(t, r);
|
|
267
|
+
return !a || Ut(a) || W(a) || !Oe(a) ? o : $n(o, a, (u, l) => {
|
|
268
268
|
if (Z(u) || Z(l))
|
|
269
269
|
return l;
|
|
270
270
|
});
|
|
@@ -281,20 +281,20 @@ const pr = () => ({
|
|
|
281
281
|
{}
|
|
282
282
|
);
|
|
283
283
|
return n.originRef = t, n;
|
|
284
|
-
},
|
|
284
|
+
}, to = (e, t, n) => {
|
|
285
285
|
const o = { originRef: e, ...n };
|
|
286
|
-
return t &&
|
|
286
|
+
return t && Y(t) > 0 && ae(t, (r) => {
|
|
287
287
|
o[r] = (...a) => {
|
|
288
288
|
var u, l;
|
|
289
289
|
return (l = (u = e.value) == null ? void 0 : u[r]) == null ? void 0 : l.call(u, ...a);
|
|
290
290
|
};
|
|
291
291
|
}), o;
|
|
292
|
-
},
|
|
293
|
-
const n =
|
|
294
|
-
return
|
|
295
|
-
},
|
|
296
|
-
pe(
|
|
297
|
-
},
|
|
292
|
+
}, Cr = (e, t) => p(e, ["extra", t]) || p(e, t), ye = (e, t) => {
|
|
293
|
+
const n = G(e), o = `${t}-`, r = _(n, (u) => jn(u, o)), a = J(e, r);
|
|
294
|
+
return Bn(a, (u, l) => l.replace(o, ""));
|
|
295
|
+
}, dn = Symbol("pro-form-list"), fn = () => he(dn), mn = (e) => {
|
|
296
|
+
pe(dn, e);
|
|
297
|
+
}, Mr = A({
|
|
298
298
|
props: {
|
|
299
299
|
pathList: {
|
|
300
300
|
type: Array
|
|
@@ -302,13 +302,13 @@ const pr = () => ({
|
|
|
302
302
|
},
|
|
303
303
|
setup: (e, {
|
|
304
304
|
slots: t
|
|
305
|
-
}) => (
|
|
305
|
+
}) => (mn({
|
|
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
|
+
}), Tt = () => ({
|
|
312
312
|
rowKey: {
|
|
313
313
|
type: String,
|
|
314
314
|
default: "id"
|
|
@@ -345,103 +345,103 @@ const pr = () => ({
|
|
|
345
345
|
onRemove: {
|
|
346
346
|
type: Function
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
348
|
+
}), no = A({
|
|
349
349
|
props: {
|
|
350
|
-
...
|
|
351
|
-
...D(
|
|
350
|
+
...Tt(),
|
|
351
|
+
...D(Te.props, "items")
|
|
352
352
|
},
|
|
353
353
|
setup: (e, {
|
|
354
354
|
slots: t
|
|
355
355
|
}) => {
|
|
356
|
-
const o =
|
|
356
|
+
const o = Q()(j.FormItemKey), {
|
|
357
357
|
formState: r,
|
|
358
358
|
readonly: a,
|
|
359
359
|
elementMap: u,
|
|
360
360
|
formElementMap: l
|
|
361
|
-
} =
|
|
362
|
-
var
|
|
363
|
-
if (((
|
|
361
|
+
} = vn(), s = fn(), f = cn(e.name), y = s != null && s.pathList ? [...s.pathList, ...f] : f, [m, d] = Ze(), h = () => {
|
|
362
|
+
var k;
|
|
363
|
+
if (((k = e.onPreAdd) == null ? void 0 : k.call(e)) === !0)
|
|
364
364
|
return;
|
|
365
365
|
const M = () => {
|
|
366
|
-
let
|
|
367
|
-
Z(
|
|
366
|
+
let N = p(r, y);
|
|
367
|
+
Z(N) || (N = []), N.push({
|
|
368
368
|
[e.rowKey]: new Date().valueOf()
|
|
369
|
-
}), me(r,
|
|
369
|
+
}), me(r, y, N);
|
|
370
370
|
};
|
|
371
371
|
if (e.onAdd) {
|
|
372
372
|
e.onAdd(M);
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
375
|
M();
|
|
376
|
-
},
|
|
376
|
+
}, x = (v, M) => {
|
|
377
377
|
var R;
|
|
378
378
|
if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
|
|
379
379
|
index: v,
|
|
380
380
|
item: M
|
|
381
381
|
})) === !0)
|
|
382
382
|
return;
|
|
383
|
-
const
|
|
384
|
-
const q =
|
|
385
|
-
|
|
383
|
+
const N = () => {
|
|
384
|
+
const q = p(r, y);
|
|
385
|
+
Y(q) <= 0 || (q.splice(v, 1), d());
|
|
386
386
|
};
|
|
387
387
|
if (e.onRemove) {
|
|
388
|
-
e.onRemove(
|
|
388
|
+
e.onRemove(N, {
|
|
389
389
|
index: v,
|
|
390
390
|
item: M
|
|
391
391
|
});
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
N();
|
|
395
395
|
}, P = (v, M) => {
|
|
396
|
-
const
|
|
397
|
-
return
|
|
396
|
+
const k = ve(v);
|
|
397
|
+
return k && t[k] ? t[k]({
|
|
398
398
|
item: v,
|
|
399
399
|
formState: r,
|
|
400
400
|
pathList: M
|
|
401
|
-
}) :
|
|
401
|
+
}) : En(u, l, v);
|
|
402
402
|
}, C = (v, M) => {
|
|
403
|
-
if (!l ||
|
|
403
|
+
if (!l || Y(e.columns) <= 0)
|
|
404
404
|
return null;
|
|
405
405
|
if (!e.row)
|
|
406
|
-
return F(e.columns, (
|
|
407
|
-
const
|
|
408
|
-
rowKey: ve(
|
|
409
|
-
vNode: P(
|
|
410
|
-
col:
|
|
406
|
+
return F(e.columns, (N) => P(N, v));
|
|
407
|
+
const k = F(e.columns, (N) => ({
|
|
408
|
+
rowKey: ve(N),
|
|
409
|
+
vNode: P(N, v),
|
|
410
|
+
col: p(N, ["extra", "col"])
|
|
411
411
|
}));
|
|
412
|
-
return i(
|
|
412
|
+
return i(Te, {
|
|
413
413
|
row: e.row,
|
|
414
414
|
col: e.col,
|
|
415
|
-
items:
|
|
415
|
+
items: k
|
|
416
416
|
}, null);
|
|
417
|
-
}, T =
|
|
417
|
+
}, T = G(Tt());
|
|
418
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
|
-
return [F(
|
|
425
|
-
const R = [...
|
|
426
|
-
return i(
|
|
427
|
-
key:
|
|
424
|
+
return [F(p(r, y), (k, N) => {
|
|
425
|
+
const R = [...y, N];
|
|
426
|
+
return i(Mr, {
|
|
427
|
+
key: k[e.rowKey] + m.value,
|
|
428
428
|
pathList: R
|
|
429
429
|
}, {
|
|
430
430
|
default: () => {
|
|
431
|
-
var q,
|
|
431
|
+
var q, ee, B, X, ne, I;
|
|
432
432
|
return [i("div", {
|
|
433
433
|
class: "pro-form-list-item"
|
|
434
434
|
}, [(q = t.start) == null ? void 0 : q.call(t, {
|
|
435
435
|
state: r,
|
|
436
|
-
path:
|
|
437
|
-
index:
|
|
438
|
-
}), C(R), (
|
|
436
|
+
path: y,
|
|
437
|
+
index: N
|
|
438
|
+
}), C(R), (ee = t.default) == null ? void 0 : ee.call(t), !a.value && i(se, null, [i("div", {
|
|
439
439
|
class: "pro-form-list-item-add",
|
|
440
440
|
onClick: h
|
|
441
|
-
}, [((
|
|
441
|
+
}, [((B = t.itemAdd) == null ? void 0 : B.call(t)) || ((X = e.renderItemAdd) == null ? void 0 : X.call(e))]), i("div", {
|
|
442
442
|
class: "pro-form-list-item-minus",
|
|
443
|
-
onClick: () =>
|
|
444
|
-
}, [((ne = t.itemMinus) == null ? void 0 : ne.call(t)) || ((
|
|
443
|
+
onClick: () => x(N, k)
|
|
444
|
+
}, [((ne = t.itemMinus) == null ? void 0 : ne.call(t)) || ((I = e.renderItemMinus) == null ? void 0 : I.call(e))])])])];
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), !a.value && i("div", {
|
|
@@ -451,14 +451,14 @@ const pr = () => ({
|
|
|
451
451
|
}
|
|
452
452
|
}) : null;
|
|
453
453
|
}
|
|
454
|
-
}),
|
|
455
|
-
pe(
|
|
454
|
+
}), yn = Symbol("pro-form"), vn = () => he(yn), Ir = (e, t = 300, n) => Vt(e, t, n), xr = (e) => {
|
|
455
|
+
pe(yn, 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 kt = () => ({
|
|
462
462
|
clsName: {
|
|
463
463
|
type: String,
|
|
464
464
|
default: "pro-form"
|
|
@@ -508,12 +508,12 @@ const wt = () => ({
|
|
|
508
508
|
type: Function,
|
|
509
509
|
default: void 0
|
|
510
510
|
}
|
|
511
|
-
}),
|
|
511
|
+
}), ro = A({
|
|
512
512
|
inheritAttrs: !1,
|
|
513
513
|
props: {
|
|
514
|
-
...
|
|
515
|
-
...
|
|
516
|
-
...D(
|
|
514
|
+
...xe,
|
|
515
|
+
...kt(),
|
|
516
|
+
...D(Te.props, "items")
|
|
517
517
|
},
|
|
518
518
|
setup: (e, {
|
|
519
519
|
slots: t,
|
|
@@ -524,37 +524,37 @@ const wt = () => ({
|
|
|
524
524
|
const {
|
|
525
525
|
elementMap: a,
|
|
526
526
|
formElementMap: u
|
|
527
|
-
} = oe(), l = e.elementMap || a, s = e.formElementMap || u,
|
|
528
|
-
const
|
|
529
|
-
return e.convertColumn ?
|
|
530
|
-
}), P = H(!1), C = H(0), T = (...
|
|
527
|
+
} = oe(), l = e.elementMap || a, s = e.formElementMap || u, f = e.model || fe({}), y = rt(f, e.showStateRules, e.showState), m = rt(f, e.readonlyStateRules, e.readonlyState), d = rt(f, e.disableStateRules, e.disableState), h = w(() => e.readonly), x = w(() => {
|
|
528
|
+
const E = et(e.columns, e.columnState, e.columnState2);
|
|
529
|
+
return e.convertColumn ? Gt(E, e.convertColumn) : E;
|
|
530
|
+
}), P = H(!1), C = H(0), T = (...E) => {
|
|
531
531
|
var U;
|
|
532
|
-
((U = e.onPreFinish) == null ? void 0 : U.call(e, ...
|
|
532
|
+
((U = e.onPreFinish) == null ? void 0 : U.call(e, ...E)) !== !0 && n("finish", ...E, {
|
|
533
533
|
userOpe: P,
|
|
534
534
|
asyncNum: C
|
|
535
535
|
});
|
|
536
|
-
}, v = e.debounceSubmit, M = (typeof v == "object" ? v.wait : v) || 300,
|
|
537
|
-
const K =
|
|
538
|
-
v !== void 0 ?
|
|
536
|
+
}, v = e.debounceSubmit, M = (typeof v == "object" ? v.wait : v) || 300, k = Ir((...E) => T(...E), M, v == null ? void 0 : v.options), N = (E) => {
|
|
537
|
+
const K = Pr(E, y, e.showStateRules);
|
|
538
|
+
v !== void 0 ? k(K, E) : T(K, E);
|
|
539
539
|
}, R = H();
|
|
540
540
|
o({
|
|
541
541
|
...Ce(e.formMethods || [], R),
|
|
542
542
|
userOpe: P,
|
|
543
543
|
asyncNum: C
|
|
544
|
-
}),
|
|
545
|
-
formState:
|
|
546
|
-
showState:
|
|
547
|
-
readonlyState:
|
|
548
|
-
disableState:
|
|
544
|
+
}), xr({
|
|
545
|
+
formState: f,
|
|
546
|
+
showState: y,
|
|
547
|
+
readonlyState: m,
|
|
548
|
+
disableState: d,
|
|
549
549
|
elementMap: l,
|
|
550
550
|
formElementMap: s,
|
|
551
551
|
readonly: h,
|
|
552
|
-
columns:
|
|
552
|
+
columns: x,
|
|
553
553
|
formRef: R,
|
|
554
554
|
userOpe: P,
|
|
555
555
|
asyncNum: C,
|
|
556
556
|
...e.provideExtra
|
|
557
|
-
}),
|
|
557
|
+
}), mn({});
|
|
558
558
|
const q = [{
|
|
559
559
|
value: le.RESET,
|
|
560
560
|
label: "\u91CD\u7F6E"
|
|
@@ -564,88 +564,88 @@ const wt = () => ({
|
|
|
564
564
|
extraProps: {
|
|
565
565
|
type: "primary"
|
|
566
566
|
}
|
|
567
|
-
}],
|
|
568
|
-
var
|
|
569
|
-
if ((
|
|
567
|
+
}], ee = () => {
|
|
568
|
+
var E, K;
|
|
569
|
+
if ((E = e.operate) != null && E.onReset) {
|
|
570
570
|
e.operate.onReset({
|
|
571
571
|
form: R.value
|
|
572
572
|
});
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
(K = R.value) == null || K.resetFields();
|
|
576
|
-
},
|
|
577
|
-
var
|
|
578
|
-
if ((
|
|
576
|
+
}, B = () => {
|
|
577
|
+
var E, K;
|
|
578
|
+
if ((E = e.operate) != null && E.onSubmit) {
|
|
579
579
|
e.operate.onSubmit({
|
|
580
580
|
form: R.value
|
|
581
581
|
});
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
584
|
(K = R.value) == null || K.submit();
|
|
585
|
-
},
|
|
586
|
-
var
|
|
587
|
-
(K = (
|
|
585
|
+
}, X = () => {
|
|
586
|
+
var E, K;
|
|
587
|
+
(K = (E = e.operate) == null ? void 0 : E.onContinue) == null || K.call(E, {
|
|
588
588
|
form: R.value
|
|
589
589
|
});
|
|
590
590
|
}, ne = {
|
|
591
|
-
[le.RESET]:
|
|
592
|
-
[le.SUBMIT]:
|
|
593
|
-
[le.CONTINUE]:
|
|
594
|
-
},
|
|
595
|
-
const
|
|
596
|
-
return F(K, (U) => !U.onClick && !
|
|
591
|
+
[le.RESET]: ee,
|
|
592
|
+
[le.SUBMIT]: B,
|
|
593
|
+
[le.CONTINUE]: X
|
|
594
|
+
}, I = w(() => {
|
|
595
|
+
const E = e.operate, K = (E == null ? void 0 : E.items) || q;
|
|
596
|
+
return F(K, (U) => !U.onClick && !p(E == null ? void 0 : E.itemState, [U.value, "onClick"]) ? {
|
|
597
597
|
...U,
|
|
598
|
-
onClick:
|
|
598
|
+
onClick: p(ne, U.value)
|
|
599
599
|
} : U);
|
|
600
600
|
}), c = w(() => {
|
|
601
|
-
var
|
|
601
|
+
var E;
|
|
602
602
|
return {
|
|
603
603
|
[le.SUBMIT]: {
|
|
604
604
|
value: le.SUBMIT,
|
|
605
605
|
loading: e.submitLoading
|
|
606
606
|
},
|
|
607
|
-
...(
|
|
607
|
+
...(E = e.operate) == null ? void 0 : E.itemState
|
|
608
608
|
};
|
|
609
|
-
}),
|
|
610
|
-
const K = ve(
|
|
611
|
-
return K && t[K] ? t[K](
|
|
612
|
-
},
|
|
613
|
-
const
|
|
609
|
+
}), g = (E) => {
|
|
610
|
+
const K = ve(E);
|
|
611
|
+
return K && t[K] ? t[K](E, f) : En(l, s, E);
|
|
612
|
+
}, b = w(() => {
|
|
613
|
+
const E = _(x.value, (K) => {
|
|
614
614
|
const U = ve(K);
|
|
615
|
-
return !!
|
|
615
|
+
return !!p(y, U, !0);
|
|
616
616
|
});
|
|
617
|
-
return e.row ? F(
|
|
617
|
+
return e.row ? F(E, (K) => ({
|
|
618
618
|
rowKey: ve(K),
|
|
619
|
-
vNode:
|
|
620
|
-
col:
|
|
621
|
-
})) : F(
|
|
622
|
-
}), O = [...
|
|
619
|
+
vNode: g(K),
|
|
620
|
+
col: p(K, ["extra", "col"])
|
|
621
|
+
})) : F(E, (K) => g(K));
|
|
622
|
+
}), O = [...G(kt()), ...G(xe)], V = G(D(Te.props, "items")), S = p(a, j.FormKey);
|
|
623
623
|
return () => {
|
|
624
|
-
var ge, Ee,
|
|
624
|
+
var ge, Ee, we;
|
|
625
625
|
if (!S)
|
|
626
626
|
return null;
|
|
627
|
-
const
|
|
627
|
+
const E = (ge = t.start) == null ? void 0 : ge.call(t), K = (Ee = t.default) == null ? void 0 : Ee.call(t), U = (we = t.end) == null ? void 0 : we.call(t), ce = [e.clsName], ie = Y(b.value) <= 0 && !lt(E) && !lt(K);
|
|
628
628
|
return ie && ce.push("is-empty"), i(S, L({
|
|
629
629
|
ref: R,
|
|
630
630
|
class: ce
|
|
631
631
|
}, D(r, "onFinish"), D(e, ...O, ...V, "onFinish", "operate"), {
|
|
632
|
-
model:
|
|
633
|
-
onFinish:
|
|
632
|
+
model: f,
|
|
633
|
+
onFinish: N
|
|
634
634
|
}), {
|
|
635
|
-
default: () => [
|
|
635
|
+
default: () => [E, s && Y(x.value) > 0 && i(se, null, [e.row ? i(Te, {
|
|
636
636
|
row: e.row,
|
|
637
637
|
col: e.col,
|
|
638
|
-
items:
|
|
639
|
-
}, null) :
|
|
638
|
+
items: b.value
|
|
639
|
+
}, null) : b.value]), K, e.operate && !ie && i(pt, L({
|
|
640
640
|
class: `${e.clsName}-operate`
|
|
641
641
|
}, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
642
|
-
items:
|
|
642
|
+
items: I.value,
|
|
643
643
|
itemState: c.value
|
|
644
644
|
}), null), U]
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
}),
|
|
648
|
+
}), ao = {
|
|
649
649
|
text: "\u8BF7\u8F93\u5165",
|
|
650
650
|
digit: "\u8BF7\u8F93\u5165",
|
|
651
651
|
select: "\u8BF7\u9009\u62E9",
|
|
@@ -657,18 +657,18 @@ const wt = () => ({
|
|
|
657
657
|
date: "\u8BF7\u9009\u62E9",
|
|
658
658
|
time: "\u8BF7\u9009\u62E9"
|
|
659
659
|
};
|
|
660
|
-
let
|
|
660
|
+
let Xe;
|
|
661
661
|
(function(e) {
|
|
662
662
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
663
|
-
})(
|
|
664
|
-
const
|
|
663
|
+
})(Xe || (Xe = {}));
|
|
664
|
+
const Nt = () => ({
|
|
665
665
|
initEmit: {
|
|
666
666
|
type: Boolean,
|
|
667
667
|
default: !0
|
|
668
668
|
},
|
|
669
669
|
searchMode: {
|
|
670
670
|
type: String,
|
|
671
|
-
default:
|
|
671
|
+
default: Xe.AUTO
|
|
672
672
|
},
|
|
673
673
|
debounceKeys: {
|
|
674
674
|
type: Array
|
|
@@ -681,9 +681,9 @@ const Tt = () => ({
|
|
|
681
681
|
type: Number,
|
|
682
682
|
default: 800
|
|
683
683
|
}
|
|
684
|
-
}),
|
|
684
|
+
}), oo = A({
|
|
685
685
|
props: {
|
|
686
|
-
...
|
|
686
|
+
...Nt(),
|
|
687
687
|
needRules: {
|
|
688
688
|
type: Boolean,
|
|
689
689
|
default: !1
|
|
@@ -693,44 +693,44 @@ const Tt = () => ({
|
|
|
693
693
|
slots: t,
|
|
694
694
|
expose: n
|
|
695
695
|
}) => {
|
|
696
|
-
const r =
|
|
697
|
-
const C =
|
|
696
|
+
const r = Q()(j.ProFormKey), a = e.model || fe({}), u = new Set(e.debounceTypes), l = F(_(e.columns, (P) => {
|
|
697
|
+
const C = xn(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
|
-
}))),
|
|
703
|
-
n(Ce(
|
|
704
|
-
const
|
|
702
|
+
}))), f = H(), y = e.formMethods || [];
|
|
703
|
+
n(Ce(y, f));
|
|
704
|
+
const m = () => {
|
|
705
705
|
var P;
|
|
706
|
-
(P =
|
|
707
|
-
},
|
|
708
|
-
|
|
706
|
+
(P = f.value) == null || P.submit();
|
|
707
|
+
}, d = Vt(() => {
|
|
708
|
+
m();
|
|
709
709
|
}, e.debounceTime);
|
|
710
710
|
re(() => {
|
|
711
|
-
e.initEmit &&
|
|
711
|
+
e.initEmit && m();
|
|
712
712
|
}, []);
|
|
713
|
-
const h = (P, C, T) => Pe(T, (v) =>
|
|
713
|
+
const h = (P, C, T) => Pe(T, (v) => p(P, v) !== p(C, v));
|
|
714
714
|
Se((P, C) => {
|
|
715
|
-
if (e.searchMode !==
|
|
715
|
+
if (e.searchMode !== Xe.AUTO)
|
|
716
716
|
return;
|
|
717
|
-
const T =
|
|
718
|
-
if (
|
|
719
|
-
|
|
717
|
+
const T = Y(e.debounceKeys) > 0 ? e.debounceKeys : l;
|
|
718
|
+
if (Y(T) > 0 && h(P, C, T)) {
|
|
719
|
+
d();
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
|
|
723
|
-
}, () =>
|
|
724
|
-
const
|
|
722
|
+
m();
|
|
723
|
+
}, () => qn(a));
|
|
724
|
+
const x = G(Nt());
|
|
725
725
|
return () => r ? i(r, L({
|
|
726
|
-
ref:
|
|
726
|
+
ref: f,
|
|
727
727
|
class: "pro-search-form"
|
|
728
|
-
}, D(e,
|
|
728
|
+
}, D(e, x, "columns"), {
|
|
729
729
|
columns: s.value,
|
|
730
730
|
model: a
|
|
731
731
|
}), t) : null;
|
|
732
732
|
}
|
|
733
|
-
}),
|
|
733
|
+
}), Er = () => ({
|
|
734
734
|
title: String,
|
|
735
735
|
content: String,
|
|
736
736
|
renderDom: {
|
|
@@ -739,14 +739,14 @@ const Tt = () => ({
|
|
|
739
739
|
class: "pro-tip-dom"
|
|
740
740
|
}, [Ae("?")])
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
742
|
+
}), wr = A({
|
|
743
743
|
props: {
|
|
744
|
-
...
|
|
744
|
+
...Er()
|
|
745
745
|
},
|
|
746
746
|
setup: (e, {
|
|
747
747
|
slots: t
|
|
748
748
|
}) => {
|
|
749
|
-
const o =
|
|
749
|
+
const o = Q()(j.TooltipKey);
|
|
750
750
|
return () => i(o, D(e, "renderDom"), {
|
|
751
751
|
default: () => {
|
|
752
752
|
var r, a;
|
|
@@ -757,7 +757,7 @@ const Tt = () => ({
|
|
|
757
757
|
...t
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
-
}),
|
|
760
|
+
}), At = () => ({
|
|
761
761
|
readonly: {
|
|
762
762
|
type: Boolean,
|
|
763
763
|
default: void 0
|
|
@@ -777,15 +777,15 @@ const Tt = () => ({
|
|
|
777
777
|
tipProps: {
|
|
778
778
|
type: Object
|
|
779
779
|
}
|
|
780
|
-
}),
|
|
780
|
+
}), uo = (e, t) => ({
|
|
781
781
|
InputComp: n,
|
|
782
782
|
valueType: o,
|
|
783
783
|
name: r
|
|
784
|
-
}) =>
|
|
784
|
+
}) => A({
|
|
785
785
|
name: r,
|
|
786
786
|
props: {
|
|
787
787
|
...e.props,
|
|
788
|
-
...
|
|
788
|
+
...At()
|
|
789
789
|
},
|
|
790
790
|
setup: (a, {
|
|
791
791
|
slots: u
|
|
@@ -794,84 +794,84 @@ const Tt = () => ({
|
|
|
794
794
|
formExtraMap: l,
|
|
795
795
|
elementMap: s
|
|
796
796
|
} = oe(), {
|
|
797
|
-
formState:
|
|
798
|
-
readonlyState:
|
|
799
|
-
disableState:
|
|
800
|
-
readonly:
|
|
797
|
+
formState: f,
|
|
798
|
+
readonlyState: y,
|
|
799
|
+
disableState: m,
|
|
800
|
+
readonly: d,
|
|
801
801
|
userOpe: h
|
|
802
|
-
} =
|
|
802
|
+
} = vn(), x = fn(), P = w(() => Ke(a.readonly) ? a.readonly : Ke(y[a.name]) ? y[a.name] : d.value), C = () => `${p(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 =
|
|
806
|
-
h.value = !0, me(
|
|
807
|
-
},
|
|
808
|
-
const B =
|
|
805
|
+
}] : a.rules ? F(a.rules, (B) => (B.required && !B.message && (B.message = C()), B)) : a.rules : a.rules), v = cn(a.name), M = x != null && x.pathList ? [...x.pathList, ...v] : v, k = (B) => {
|
|
806
|
+
h.value = !0, me(f, M, B);
|
|
807
|
+
}, N = G(At()), R = () => {
|
|
808
|
+
const B = p(f, M);
|
|
809
809
|
if (u.renderShow)
|
|
810
810
|
return u.renderShow({
|
|
811
811
|
value: B,
|
|
812
|
-
record:
|
|
812
|
+
record: f,
|
|
813
813
|
path: M
|
|
814
814
|
});
|
|
815
|
-
const
|
|
816
|
-
return
|
|
815
|
+
const X = p(s, o);
|
|
816
|
+
return X ? i(X, L({
|
|
817
817
|
value: B
|
|
818
818
|
}, a.fieldProps, {
|
|
819
819
|
showProps: a.showProps
|
|
820
820
|
}), u) : i("span", null, [B]);
|
|
821
821
|
}, q = () => {
|
|
822
|
-
const B =
|
|
822
|
+
const B = p(f, M), X = p(m, M);
|
|
823
823
|
return u.renderInput ? u.renderInput({
|
|
824
824
|
value: B,
|
|
825
|
-
setValue:
|
|
826
|
-
disabled:
|
|
827
|
-
record:
|
|
825
|
+
setValue: k,
|
|
826
|
+
disabled: X,
|
|
827
|
+
record: f,
|
|
828
828
|
path: M
|
|
829
|
-
}) : i(n, L(t(B,
|
|
830
|
-
}
|
|
829
|
+
}) : i(n, L(t(B, k, X), a.fieldProps), u);
|
|
830
|
+
}, ee = () => i(se, null, [a.label, a.tip && i(wr, L({
|
|
831
|
+
content: a.tip,
|
|
832
|
+
title: a.tip
|
|
833
|
+
}, a.tipProps), null)]);
|
|
831
834
|
return () => i(e, L({
|
|
832
835
|
class: "pro-form-item"
|
|
833
|
-
}, D(a, ...
|
|
836
|
+
}, D(a, ...N, "name", "rules"), {
|
|
834
837
|
name: M,
|
|
835
838
|
rules: T.value
|
|
836
839
|
}), {
|
|
837
840
|
default: () => [P.value ? R() : q()],
|
|
838
|
-
label:
|
|
839
|
-
content: a.tip,
|
|
840
|
-
title: a.tip
|
|
841
|
-
}, a.tipProps), null)]),
|
|
841
|
+
label: a.label || a.tip ? ee : void 0,
|
|
842
842
|
...a.slots
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
846
|
-
const [e, t] =
|
|
845
|
+
}), hn = rn("access", void 0, !0), Tr = () => {
|
|
846
|
+
const [e, t] = hn();
|
|
847
847
|
return { access: e, setAccess: t, delAccess: () => {
|
|
848
848
|
t(void 0);
|
|
849
849
|
} };
|
|
850
|
-
},
|
|
851
|
-
const [e, t] =
|
|
850
|
+
}, lo = () => {
|
|
851
|
+
const [e, t] = hn();
|
|
852
852
|
return [e, t, () => {
|
|
853
853
|
t(void 0);
|
|
854
854
|
}];
|
|
855
|
-
},
|
|
856
|
-
const [n, o] =
|
|
857
|
-
return pe(
|
|
855
|
+
}, pn = Symbol("logon-user"), kr = () => he(pn), so = A((e, { slots: t }) => {
|
|
856
|
+
const [n, o] = Mt(), [r, a] = Mt();
|
|
857
|
+
return pe(pn, { 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
|
};
|
|
861
|
-
}),
|
|
862
|
-
const { access: o } =
|
|
861
|
+
}), co = A((e, { slots: t, emit: n }) => {
|
|
862
|
+
const { access: o } = Tr(), r = w(() => o && o.token);
|
|
863
863
|
return re(() => {
|
|
864
864
|
r.value || n("toLogin");
|
|
865
865
|
}, r), () => {
|
|
866
866
|
var a;
|
|
867
867
|
return r.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
|
|
868
868
|
};
|
|
869
|
-
}),
|
|
869
|
+
}), io = {
|
|
870
870
|
Add: "add",
|
|
871
871
|
Edit: "edit",
|
|
872
872
|
Delete: "delete"
|
|
873
|
-
},
|
|
874
|
-
const { per: e } =
|
|
873
|
+
}, Nr = (e, t) => !e || !t ? !1 : Z(t) ? Pe(t, (n) => e[n]) : e[t], gn = () => {
|
|
874
|
+
const { per: e } = kr() || { per: { menus: [], buttonMap: {} } }, t = yt();
|
|
875
875
|
return (n, o) => {
|
|
876
876
|
if (!n)
|
|
877
877
|
return !1;
|
|
@@ -880,32 +880,32 @@ const Tt = () => ({
|
|
|
880
880
|
const a = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
|
|
881
881
|
r = Z(r) ? F(r, (l) => `${a}${u}${l}`) : `${a}${u}${r}`;
|
|
882
882
|
}
|
|
883
|
-
return
|
|
883
|
+
return Nr(e.buttonMap, r);
|
|
884
884
|
};
|
|
885
|
-
},
|
|
886
|
-
const e =
|
|
885
|
+
}, bn = () => {
|
|
886
|
+
const e = gn();
|
|
887
887
|
return (t, n, o) => t ? e(t) : n ? e(n, { suffix: !0, splitStr: o }) : !0;
|
|
888
|
-
},
|
|
888
|
+
}, Ar = () => ({
|
|
889
889
|
suffix: { type: [String, Array] },
|
|
890
890
|
value: { type: [String, Array] },
|
|
891
891
|
splitStr: { type: String }
|
|
892
|
-
}),
|
|
892
|
+
}), fo = A({
|
|
893
893
|
inheritAttrs: !1,
|
|
894
894
|
props: {
|
|
895
|
-
...
|
|
895
|
+
...Ar()
|
|
896
896
|
},
|
|
897
897
|
setup: (e, { slots: t }) => {
|
|
898
|
-
const n =
|
|
898
|
+
const n = gn(), 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;
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
});
|
|
905
|
-
function
|
|
905
|
+
function Dr(e) {
|
|
906
906
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
|
|
907
907
|
}
|
|
908
|
-
const
|
|
908
|
+
const Or = () => ({
|
|
909
909
|
clsName: {
|
|
910
910
|
type: String,
|
|
911
911
|
default: "pro-operate"
|
|
@@ -923,56 +923,56 @@ const Ar = () => ({
|
|
|
923
923
|
splitStr: {
|
|
924
924
|
type: String
|
|
925
925
|
}
|
|
926
|
-
}),
|
|
926
|
+
}), pt = A({
|
|
927
927
|
props: {
|
|
928
|
-
...
|
|
928
|
+
...Or()
|
|
929
929
|
},
|
|
930
930
|
setup: (e, {
|
|
931
931
|
slots: t
|
|
932
932
|
}) => {
|
|
933
|
-
const n =
|
|
934
|
-
const s =
|
|
935
|
-
...
|
|
936
|
-
...
|
|
937
|
-
} :
|
|
938
|
-
return
|
|
933
|
+
const n = bn(), o = w(() => {
|
|
934
|
+
const s = _(e.items, (y) => n(y.per, y.perSuffix, e.splitStr) ? W(y.show) ? y.show() : Ke(y.show) ? y.show : !0 : !1), f = F(s, (y) => st(e.itemState, y.value) ? {
|
|
935
|
+
...y,
|
|
936
|
+
...p(e.itemState, y.value)
|
|
937
|
+
} : y);
|
|
938
|
+
return zt(f, (y) => y.sort);
|
|
939
939
|
}), r = (s) => {
|
|
940
|
-
var
|
|
941
|
-
(
|
|
942
|
-
}, a =
|
|
940
|
+
var f;
|
|
941
|
+
(f = s.onClick) == null || f.call(s, s);
|
|
942
|
+
}, a = Q(), u = e.elementKey ? a(e.elementKey) : void 0, l = a(j.TooltipKey);
|
|
943
943
|
return () => i("div", {
|
|
944
944
|
class: e.clsName
|
|
945
945
|
}, [F(o.value, (s) => {
|
|
946
|
-
const
|
|
946
|
+
const f = W(s.disabled) ? s.disabled() : s.disabled, y = W(s.loading) ? s.loading() : s.loading, m = W(s.label) ? s.label() : s.label, d = W(s.extraProps) ? s.extraProps() : s.extraProps, h = {
|
|
947
947
|
...D(s, "show", "disabled", "element"),
|
|
948
|
-
disabled:
|
|
948
|
+
disabled: f
|
|
949
949
|
};
|
|
950
|
-
if (s.element &&
|
|
950
|
+
if (s.element && W(s.element))
|
|
951
951
|
return s.element(h);
|
|
952
952
|
if (t[s.value])
|
|
953
953
|
return t[s.value](h);
|
|
954
954
|
if (u) {
|
|
955
|
-
const
|
|
956
|
-
disabled:
|
|
957
|
-
loading:
|
|
955
|
+
const x = i(u, L({
|
|
956
|
+
disabled: f,
|
|
957
|
+
loading: y,
|
|
958
958
|
onClick: () => r(s)
|
|
959
|
-
},
|
|
960
|
-
default: () => [
|
|
959
|
+
}, d), Dr(m) ? m : {
|
|
960
|
+
default: () => [m]
|
|
961
961
|
});
|
|
962
962
|
return s.tip && l ? i(l, L({
|
|
963
963
|
placement: "top"
|
|
964
964
|
}, s.tipProps), {
|
|
965
|
-
default: () => [
|
|
965
|
+
default: () => [x],
|
|
966
966
|
content: () => s.tip
|
|
967
|
-
}) :
|
|
967
|
+
}) : x;
|
|
968
968
|
}
|
|
969
969
|
return i("div", {
|
|
970
970
|
class: `${e.clsName}-item`,
|
|
971
971
|
onClick: () => r(s)
|
|
972
|
-
}, [
|
|
972
|
+
}, [m]);
|
|
973
973
|
})]);
|
|
974
974
|
}
|
|
975
|
-
}),
|
|
975
|
+
}), Kr = () => ({
|
|
976
976
|
clsName: {
|
|
977
977
|
type: String,
|
|
978
978
|
default: "pro-table-toolbar-column"
|
|
@@ -993,63 +993,63 @@ const Ar = () => ({
|
|
|
993
993
|
type: Function,
|
|
994
994
|
default: () => "\u5217\u8BBE\u7F6E"
|
|
995
995
|
}
|
|
996
|
-
}),
|
|
996
|
+
}), Lr = A({
|
|
997
997
|
props: {
|
|
998
|
-
...
|
|
998
|
+
...Kr()
|
|
999
999
|
},
|
|
1000
1000
|
setup: (e, {
|
|
1001
1001
|
slots: t
|
|
1002
1002
|
}) => {
|
|
1003
|
-
const n =
|
|
1003
|
+
const n = Q(), o = n(j.PopoverKey), r = n(j.CheckboxKey), {
|
|
1004
1004
|
originColumns: a,
|
|
1005
1005
|
selectIdsRef: u
|
|
1006
|
-
} =
|
|
1007
|
-
let
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1010
|
-
},
|
|
1006
|
+
} = Rr(), [l, s] = Ze();
|
|
1007
|
+
let f = {};
|
|
1008
|
+
const y = (v) => {
|
|
1009
|
+
f[v] = !1;
|
|
1010
|
+
}, m = () => {
|
|
1011
1011
|
ae(u.value, (v) => {
|
|
1012
|
-
|
|
1012
|
+
f[v] = !0;
|
|
1013
1013
|
});
|
|
1014
|
-
},
|
|
1014
|
+
}, d = w(() => ue(u.value, (v, M) => ({
|
|
1015
1015
|
...v,
|
|
1016
1016
|
[M]: !0
|
|
1017
|
-
}), {})), h = (v) =>
|
|
1017
|
+
}), {})), h = (v) => Cr(v, e.signName);
|
|
1018
1018
|
re(() => {
|
|
1019
|
-
u.value = F(
|
|
1019
|
+
u.value = F(_(a.value, (v) => {
|
|
1020
1020
|
var M;
|
|
1021
|
-
return e.useSelectedStatus &&
|
|
1021
|
+
return e.useSelectedStatus && st(f, v.dataIndex) ? f[v.dataIndex] : ((M = h(v)) == null ? void 0 : M.initShow) !== !1;
|
|
1022
1022
|
}), (v) => v.dataIndex);
|
|
1023
1023
|
}, a), Se(() => {
|
|
1024
1024
|
var v;
|
|
1025
|
-
s(),
|
|
1025
|
+
s(), m(), (v = e.onColumnSelectChange) == null || v.call(e, u.value);
|
|
1026
1026
|
}, u);
|
|
1027
|
-
const
|
|
1028
|
-
const v =
|
|
1029
|
-
var
|
|
1030
|
-
return (
|
|
1031
|
-
}), M = Pe(a.value, (
|
|
1032
|
-
var
|
|
1033
|
-
return (
|
|
1027
|
+
const x = w(() => {
|
|
1028
|
+
const v = Ht(a.value, (k) => {
|
|
1029
|
+
var N;
|
|
1030
|
+
return (N = h(k)) != null && N.disabled ? !0 : p(d.value, k.dataIndex);
|
|
1031
|
+
}), M = Pe(a.value, (k) => {
|
|
1032
|
+
var N;
|
|
1033
|
+
return (N = h(k)) != null && N.disabled ? !0 : p(d.value, k.dataIndex);
|
|
1034
1034
|
});
|
|
1035
1035
|
return {
|
|
1036
1036
|
checked: v,
|
|
1037
1037
|
indeterminate: v ? !1 : M
|
|
1038
1038
|
};
|
|
1039
1039
|
}), P = (v) => {
|
|
1040
|
-
var
|
|
1041
|
-
(
|
|
1040
|
+
var k;
|
|
1041
|
+
(Oe(v) ? (k = v.target) == null ? void 0 : k.checked : v) ? u.value = F(a.value, (N) => N.dataIndex) : u.value = F(_(a.value, (N) => {
|
|
1042
1042
|
var R;
|
|
1043
|
-
return (R = h(
|
|
1044
|
-
}), (
|
|
1043
|
+
return (R = h(N)) != null && R.disabled ? !0 : (y(N.dataIndex), !1);
|
|
1044
|
+
}), (N) => N.dataIndex);
|
|
1045
1045
|
}, C = () => {
|
|
1046
|
-
u.value = F(
|
|
1046
|
+
u.value = F(_(a.value, (v) => {
|
|
1047
1047
|
var M;
|
|
1048
|
-
return ((M = h(v)) == null ? void 0 : M.initShow) === !1 ? (
|
|
1048
|
+
return ((M = h(v)) == null ? void 0 : M.initShow) === !1 ? (y(v.dataIndex), !1) : !0;
|
|
1049
1049
|
}), (v) => v.dataIndex);
|
|
1050
1050
|
}, T = (v, M) => {
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1051
|
+
var N;
|
|
1052
|
+
(Oe(M) ? (N = M.target) == null ? void 0 : N.checked : M) ? u.value = [...u.value, v.dataIndex] : u.value = _(u.value, (R) => v.dataIndex === R ? (y(v.dataIndex), !1) : !0);
|
|
1053
1053
|
};
|
|
1054
1054
|
return () => o ? i(o, L({
|
|
1055
1055
|
trigger: "click"
|
|
@@ -1064,8 +1064,8 @@ const Ar = () => ({
|
|
|
1064
1064
|
class: `${e.clsName}-header`
|
|
1065
1065
|
}, [i(r, {
|
|
1066
1066
|
key: l.value,
|
|
1067
|
-
checked:
|
|
1068
|
-
indeterminate:
|
|
1067
|
+
checked: x.value.checked,
|
|
1068
|
+
indeterminate: x.value.indeterminate,
|
|
1069
1069
|
onChange: P
|
|
1070
1070
|
}, {
|
|
1071
1071
|
default: () => [Ae("\u5217\u5C55\u793A")]
|
|
@@ -1075,12 +1075,12 @@ const Ar = () => ({
|
|
|
1075
1075
|
key: l.value,
|
|
1076
1076
|
class: `${e.clsName}-list`
|
|
1077
1077
|
}, [F(a.value, (v) => {
|
|
1078
|
-
const M = h(v),
|
|
1078
|
+
const M = h(v), k = p(d.value, v.dataIndex, !1);
|
|
1079
1079
|
return i(r, {
|
|
1080
|
-
checked:
|
|
1080
|
+
checked: k,
|
|
1081
1081
|
disabled: M == null ? void 0 : M.disabled,
|
|
1082
|
-
onChange: (
|
|
1083
|
-
T(v,
|
|
1082
|
+
onChange: (N) => {
|
|
1083
|
+
T(v, N);
|
|
1084
1084
|
}
|
|
1085
1085
|
}, {
|
|
1086
1086
|
default: () => [v.title]
|
|
@@ -1089,9 +1089,9 @@ const Ar = () => ({
|
|
|
1089
1089
|
...D(t, "default")
|
|
1090
1090
|
}) : null;
|
|
1091
1091
|
}
|
|
1092
|
-
}),
|
|
1093
|
-
pe(
|
|
1094
|
-
},
|
|
1092
|
+
}), Sn = Symbol("pro-table"), Rr = () => he(Sn), Fr = (e) => {
|
|
1093
|
+
pe(Sn, e);
|
|
1094
|
+
}, Dt = () => ({
|
|
1095
1095
|
clsName: {
|
|
1096
1096
|
type: String,
|
|
1097
1097
|
default: "pro-table"
|
|
@@ -1132,11 +1132,11 @@ const Ar = () => ({
|
|
|
1132
1132
|
dataSource: {
|
|
1133
1133
|
type: Array
|
|
1134
1134
|
}
|
|
1135
|
-
}),
|
|
1135
|
+
}), mo = A({
|
|
1136
1136
|
inheritAttrs: !1,
|
|
1137
1137
|
props: {
|
|
1138
|
-
...
|
|
1139
|
-
...
|
|
1138
|
+
...xe,
|
|
1139
|
+
...Dt()
|
|
1140
1140
|
},
|
|
1141
1141
|
setup: (e, {
|
|
1142
1142
|
slots: t,
|
|
@@ -1147,38 +1147,38 @@ const Ar = () => ({
|
|
|
1147
1147
|
elementMap: r
|
|
1148
1148
|
} = oe(), a = e.elementMap || r, {
|
|
1149
1149
|
router: u
|
|
1150
|
-
} = Me(), l =
|
|
1150
|
+
} = Me(), l = p(r, j.TableKey), s = () => ({
|
|
1151
1151
|
title: "\u5E8F\u53F7",
|
|
1152
1152
|
dataIndex: "serialNumber",
|
|
1153
1153
|
width: 80,
|
|
1154
1154
|
...e.column,
|
|
1155
|
-
...
|
|
1155
|
+
...Ke(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1156
1156
|
customRender: ({
|
|
1157
1157
|
index: c
|
|
1158
1158
|
}) => {
|
|
1159
|
-
var
|
|
1160
|
-
return ((
|
|
1159
|
+
var g, b;
|
|
1160
|
+
return ((g = e.paginationState) == null ? void 0 : g.page) && ((b = e.paginationState) == null ? void 0 : b.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + c + 1 : c + 1;
|
|
1161
1161
|
}
|
|
1162
|
-
}),
|
|
1162
|
+
}), f = (c, g) => {
|
|
1163
1163
|
var O;
|
|
1164
|
-
if (e.operateItemClickMap && e.operateItemClickMap[
|
|
1165
|
-
e.operateItemClickMap[
|
|
1164
|
+
if (e.operateItemClickMap && e.operateItemClickMap[g.value]) {
|
|
1165
|
+
e.operateItemClickMap[g.value](c, g);
|
|
1166
1166
|
return;
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1169
|
-
if (
|
|
1170
|
-
|
|
1171
|
-
name:
|
|
1172
|
-
query: J(c,
|
|
1168
|
+
const b = g.routeOpts;
|
|
1169
|
+
if (b) {
|
|
1170
|
+
W(b) ? u.push(b(c)) : u.push({
|
|
1171
|
+
name: b.name,
|
|
1172
|
+
query: J(c, b.query)
|
|
1173
1173
|
});
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
1176
|
-
(O =
|
|
1177
|
-
},
|
|
1178
|
-
const c = e.operate,
|
|
1179
|
-
...
|
|
1180
|
-
...
|
|
1181
|
-
...
|
|
1176
|
+
(O = g.onClick) == null || O.call(g, c);
|
|
1177
|
+
}, y = ye(t, "operate"), m = () => {
|
|
1178
|
+
const c = e.operate, g = F(c.items, (b) => ({
|
|
1179
|
+
...p(e.operateItemState, b.value),
|
|
1180
|
+
...b,
|
|
1181
|
+
...p(c.itemState, b.value)
|
|
1182
1182
|
}));
|
|
1183
1183
|
return {
|
|
1184
1184
|
...e.column,
|
|
@@ -1187,100 +1187,100 @@ const Ar = () => ({
|
|
|
1187
1187
|
fixed: "right",
|
|
1188
1188
|
...c.column,
|
|
1189
1189
|
customRender: ({
|
|
1190
|
-
record:
|
|
1190
|
+
record: b
|
|
1191
1191
|
}) => {
|
|
1192
|
-
const O = F(
|
|
1192
|
+
const O = F(g, (S) => ({
|
|
1193
1193
|
...S,
|
|
1194
|
-
show:
|
|
1195
|
-
disabled:
|
|
1196
|
-
loading:
|
|
1197
|
-
extraProps:
|
|
1198
|
-
element:
|
|
1199
|
-
onClick: () =>
|
|
1200
|
-
tip:
|
|
1201
|
-
tipProps:
|
|
1202
|
-
})), V = ue(
|
|
1194
|
+
show: W(S.show) ? S.show(b) : S.show,
|
|
1195
|
+
disabled: W(S.disabled) ? S.disabled(b) : S.disabled,
|
|
1196
|
+
loading: W(S.loading) ? S.loading(b) : S.loading,
|
|
1197
|
+
extraProps: W(S.extraProps) ? S.extraProps(b) : S.extraProps,
|
|
1198
|
+
element: W(S.element) ? (E) => S.element(b, E) : S.element,
|
|
1199
|
+
onClick: () => f(b, S),
|
|
1200
|
+
tip: W(S.tip) ? S.tip(b) : S.tip,
|
|
1201
|
+
tipProps: W(S.tipProps) ? S.tipProps(b) : S.tipProps
|
|
1202
|
+
})), V = ue(G(y), (S, E) => ({
|
|
1203
1203
|
...S,
|
|
1204
|
-
[
|
|
1204
|
+
[E]: (K) => {
|
|
1205
1205
|
var U;
|
|
1206
|
-
return (U =
|
|
1206
|
+
return (U = y[E]) == null ? void 0 : U.call(y, b, K);
|
|
1207
1207
|
}
|
|
1208
1208
|
}), {});
|
|
1209
|
-
return i(
|
|
1209
|
+
return i(pt, {
|
|
1210
1210
|
class: `${e.clsName}-operate`,
|
|
1211
1211
|
items: O,
|
|
1212
1212
|
elementKey: c.elementKey || j.TableOperateKey
|
|
1213
1213
|
}, V);
|
|
1214
1214
|
}
|
|
1215
1215
|
};
|
|
1216
|
-
},
|
|
1216
|
+
}, d = H([]), h = w(() => {
|
|
1217
1217
|
var c;
|
|
1218
1218
|
return !!((c = e.toolbar) != null && c.columnSetting);
|
|
1219
|
-
}),
|
|
1219
|
+
}), x = Kn(e, "columns"), P = w(() => {
|
|
1220
1220
|
if (!h.value)
|
|
1221
1221
|
return e.columns;
|
|
1222
|
-
const c = ue(
|
|
1223
|
-
...
|
|
1224
|
-
[
|
|
1222
|
+
const c = ue(d.value, (g, b) => ({
|
|
1223
|
+
...g,
|
|
1224
|
+
[b]: !0
|
|
1225
1225
|
}), {});
|
|
1226
|
-
return
|
|
1227
|
-
}), C = (c) => F(c, (
|
|
1228
|
-
const
|
|
1226
|
+
return _(e.columns, (g) => p(c, g.dataIndex));
|
|
1227
|
+
}), C = (c) => F(c, (g) => {
|
|
1228
|
+
const b = {
|
|
1229
1229
|
...e.column,
|
|
1230
|
-
...
|
|
1231
|
-
}, O = e.convertColumn ? e.convertColumn(
|
|
1232
|
-
return
|
|
1230
|
+
...g
|
|
1231
|
+
}, O = e.convertColumn ? e.convertColumn(b) : b;
|
|
1232
|
+
return g.children && Y(g.children) > 0 ? (O.children = C(g.children), O) : (g.customRender || (O.customRender = ({
|
|
1233
1233
|
value: V
|
|
1234
|
-
}) => typeof V > "u" || V === null || V === "" ? e.columnEmptyText :
|
|
1234
|
+
}) => typeof V > "u" || V === null || V === "" ? e.columnEmptyText : bt(a, g, {
|
|
1235
1235
|
value: V
|
|
1236
1236
|
}, {
|
|
1237
1237
|
render: "tableRender"
|
|
1238
1238
|
}) || V), O);
|
|
1239
1239
|
}), T = w(() => {
|
|
1240
|
-
const c =
|
|
1241
|
-
return e.serialNumber &&
|
|
1240
|
+
const c = et(P.value, e.columnState, e.columnState2), g = C(c);
|
|
1241
|
+
return e.serialNumber && g.unshift(s()), e.operate && e.operate.items && Pe(e.operate.items, (b) => b.show) && g.push(m()), g;
|
|
1242
1242
|
}), v = w(() => {
|
|
1243
|
-
var
|
|
1243
|
+
var g, b;
|
|
1244
1244
|
const c = e.dataSource;
|
|
1245
|
-
return c && (((
|
|
1245
|
+
return c && (((g = e.mergeOpts) == null ? void 0 : g.rowNames) || ((b = e.mergeOpts) == null ? void 0 : b.colNames)) && tr(c, e.mergeOpts), c;
|
|
1246
1246
|
}), M = H();
|
|
1247
|
-
|
|
1247
|
+
Fr({
|
|
1248
1248
|
columns: T,
|
|
1249
|
-
originColumns:
|
|
1250
|
-
selectIdsRef:
|
|
1249
|
+
originColumns: x,
|
|
1250
|
+
selectIdsRef: d,
|
|
1251
1251
|
tableRef: M,
|
|
1252
1252
|
toolbar: e.toolbar,
|
|
1253
1253
|
...e.provideExtra
|
|
1254
1254
|
}), n(Ce(e.tableMethods || [], M));
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1259
|
-
const O =
|
|
1260
|
-
|
|
1255
|
+
const k = H(), N = H(0), R = H(), q = H(!1), ee = H(), B = H(!1);
|
|
1256
|
+
Ve(k, (c) => {
|
|
1257
|
+
const g = p(c, [0, "contentRect"]), b = window.getComputedStyle(k.value);
|
|
1258
|
+
if (g.height && b) {
|
|
1259
|
+
const O = b.getPropertyValue("margin-bottom"), V = parseInt(O.replace("px", ""));
|
|
1260
|
+
N.value = g.height + V;
|
|
1261
1261
|
}
|
|
1262
|
-
}),
|
|
1262
|
+
}), Ve(R, () => {
|
|
1263
1263
|
q.value = !!R.value.innerHTML;
|
|
1264
|
-
}),
|
|
1265
|
-
|
|
1264
|
+
}), Ve(ee, (c) => {
|
|
1265
|
+
B.value = !!ee.value.innerHTML;
|
|
1266
1266
|
});
|
|
1267
|
-
const
|
|
1267
|
+
const X = w(() => B.value || q.value ? `${e.clsName}-toolbar-valid` : ""), ne = G(Dt()), I = ye(t, "columnSetting");
|
|
1268
1268
|
return () => {
|
|
1269
|
-
var
|
|
1269
|
+
var b, O;
|
|
1270
1270
|
if (!l)
|
|
1271
1271
|
return null;
|
|
1272
|
-
const c = h.value ? i(
|
|
1273
|
-
return (q.value ||
|
|
1274
|
-
class:
|
|
1275
|
-
style: `--pro-table-toolbar-hei: ${
|
|
1272
|
+
const c = h.value ? i(Lr, (b = e.toolbar) == null ? void 0 : b.columnSetting, I) : null, g = [e.clsName];
|
|
1273
|
+
return (q.value || B.value) && g.push("has-header"), i("div", L({
|
|
1274
|
+
class: g,
|
|
1275
|
+
style: `--pro-table-toolbar-hei: ${N.value}px`
|
|
1276
1276
|
}, J(o, "class")), [i("div", {
|
|
1277
|
-
ref:
|
|
1278
|
-
class: `${e.clsName}-toolbar ${
|
|
1277
|
+
ref: k,
|
|
1278
|
+
class: `${e.clsName}-toolbar ${X.value}`
|
|
1279
1279
|
}, [i("div", {
|
|
1280
1280
|
ref: R,
|
|
1281
1281
|
class: `${e.clsName}-toolbar-start`
|
|
1282
1282
|
}, [(O = t.toolbar) == null ? void 0 : O.call(t)]), i("div", {
|
|
1283
|
-
ref:
|
|
1283
|
+
ref: ee,
|
|
1284
1284
|
class: `${e.clsName}-toolbar-extra`
|
|
1285
1285
|
}, [t.toolbarExtra ? t.toolbarExtra([c]) : i(se, null, [c])])]), i(l, L({
|
|
1286
1286
|
ref: M
|
|
@@ -1291,14 +1291,18 @@ const Ar = () => ({
|
|
|
1291
1291
|
}), t)]);
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
|
-
}),
|
|
1294
|
+
}), Pn = Symbol("pro-layout"), Be = () => he(Pn), $r = () => ({
|
|
1295
1295
|
includes: {
|
|
1296
1296
|
type: Array,
|
|
1297
1297
|
default: []
|
|
1298
|
+
},
|
|
1299
|
+
tagsCache: {
|
|
1300
|
+
type: Boolean,
|
|
1301
|
+
default: !0
|
|
1298
1302
|
}
|
|
1299
|
-
}),
|
|
1303
|
+
}), jr = A({
|
|
1300
1304
|
props: {
|
|
1301
|
-
|
|
1305
|
+
...$r()
|
|
1302
1306
|
},
|
|
1303
1307
|
setup: (e) => {
|
|
1304
1308
|
const {
|
|
@@ -1308,32 +1312,38 @@ const Ar = () => ({
|
|
|
1308
1312
|
showTabs: r,
|
|
1309
1313
|
convertName: a,
|
|
1310
1314
|
convertValue: u
|
|
1311
|
-
} =
|
|
1315
|
+
} = Be(), {
|
|
1312
1316
|
router: l,
|
|
1313
1317
|
route: s
|
|
1314
|
-
} = Me(),
|
|
1318
|
+
} = Me(), f = w(() => {
|
|
1319
|
+
const m = it(t.value, (d) => d.keep ? Y(d.children) > 0 ? Ht(d.children, (h) => h.hide) : !0 : !1);
|
|
1320
|
+
return Un(m, Vn);
|
|
1321
|
+
}), y = w(() => {
|
|
1322
|
+
const m = G(f.value);
|
|
1315
1323
|
if (!r.value) {
|
|
1316
1324
|
const {
|
|
1317
|
-
parentList:
|
|
1318
|
-
} =
|
|
1319
|
-
const
|
|
1320
|
-
return l.hasRoute(
|
|
1325
|
+
parentList: x
|
|
1326
|
+
} = _e(t.value, (C) => C.value === a(s), void 0, []), P = _(x, (C) => {
|
|
1327
|
+
const T = u(C);
|
|
1328
|
+
return l.hasRoute(T);
|
|
1321
1329
|
});
|
|
1322
|
-
return [...e.includes, ...F(
|
|
1330
|
+
return [...m, ...e.includes, ...F(P, (C) => C.value)];
|
|
1323
1331
|
}
|
|
1324
|
-
let
|
|
1325
|
-
|
|
1332
|
+
let d = n.value;
|
|
1333
|
+
e.tagsCache || (d = _(n.value, (x) => x.keep));
|
|
1334
|
+
let h = F(d, (x) => u(x));
|
|
1335
|
+
return o.value && (h = _(h, (x) => x !== s.name)), [...e.includes, ...h];
|
|
1326
1336
|
});
|
|
1327
|
-
return () => i(
|
|
1337
|
+
return () => i(cr, null, {
|
|
1328
1338
|
default: ({
|
|
1329
1339
|
Component: m,
|
|
1330
|
-
route:
|
|
1331
|
-
}) => (m && m.type && !m.type.name &&
|
|
1332
|
-
include:
|
|
1340
|
+
route: d
|
|
1341
|
+
}) => (m && m.type && !m.type.name && d.name && (m.type.name = d.name), i(Ln, {
|
|
1342
|
+
include: y.value
|
|
1333
1343
|
}, [o.value ? null : i(m, null, null)]))
|
|
1334
1344
|
});
|
|
1335
1345
|
}
|
|
1336
|
-
}),
|
|
1346
|
+
}), Br = () => ({
|
|
1337
1347
|
isHideClose: {
|
|
1338
1348
|
type: Function
|
|
1339
1349
|
},
|
|
@@ -1346,9 +1356,9 @@ const Ar = () => ({
|
|
|
1346
1356
|
onDragRegister: {
|
|
1347
1357
|
type: Function
|
|
1348
1358
|
}
|
|
1349
|
-
}),
|
|
1359
|
+
}), qr = A({
|
|
1350
1360
|
props: {
|
|
1351
|
-
...
|
|
1361
|
+
...Br()
|
|
1352
1362
|
},
|
|
1353
1363
|
setup: (e) => {
|
|
1354
1364
|
const {
|
|
@@ -1359,38 +1369,38 @@ const Ar = () => ({
|
|
|
1359
1369
|
tabs: r,
|
|
1360
1370
|
refresh: a,
|
|
1361
1371
|
convertName: u
|
|
1362
|
-
} =
|
|
1372
|
+
} = Be(), l = fe({
|
|
1363
1373
|
ctxMenuPos: null,
|
|
1364
1374
|
ctxMenuItem: null
|
|
1365
|
-
}), s = (c) => e.isHideClose ? e.isHideClose(c) : !1,
|
|
1375
|
+
}), s = (c) => e.isHideClose ? e.isHideClose(c) : !1, f = w(() => {
|
|
1366
1376
|
const c = u(n);
|
|
1367
|
-
return
|
|
1377
|
+
return p(o.value, c);
|
|
1368
1378
|
});
|
|
1369
1379
|
re(() => {
|
|
1370
|
-
const c =
|
|
1380
|
+
const c = f.value;
|
|
1371
1381
|
if (!c)
|
|
1372
1382
|
return;
|
|
1373
|
-
let
|
|
1374
|
-
if (
|
|
1383
|
+
let g = ut(r.value, (b) => b.value === c.value);
|
|
1384
|
+
if (g) {
|
|
1375
1385
|
if (c.hide) {
|
|
1376
|
-
const
|
|
1377
|
-
if (
|
|
1386
|
+
const b = Ge(g.query) || "{}", O = Ge(n.query) || "{}";
|
|
1387
|
+
if (b !== O) {
|
|
1378
1388
|
const V = {
|
|
1379
1389
|
...c,
|
|
1380
1390
|
query: n.query
|
|
1381
1391
|
};
|
|
1382
|
-
r.value = F(F(r.value, (S) => S.value === c.value ? V : S)),
|
|
1392
|
+
r.value = F(F(r.value, (S) => S.value === c.value ? V : S)), x(V);
|
|
1383
1393
|
}
|
|
1384
1394
|
}
|
|
1385
1395
|
} else {
|
|
1386
|
-
const
|
|
1396
|
+
const b = c.hide ? {
|
|
1387
1397
|
...c,
|
|
1388
1398
|
query: n.query
|
|
1389
1399
|
} : c;
|
|
1390
|
-
r.value = [...r.value,
|
|
1400
|
+
r.value = [...r.value, b];
|
|
1391
1401
|
}
|
|
1392
1402
|
}, n);
|
|
1393
|
-
const
|
|
1403
|
+
const y = (c) => {
|
|
1394
1404
|
if (c.hide) {
|
|
1395
1405
|
t.push({
|
|
1396
1406
|
name: c.value,
|
|
@@ -1399,68 +1409,68 @@ const Ar = () => ({
|
|
|
1399
1409
|
return;
|
|
1400
1410
|
}
|
|
1401
1411
|
t.openMenu(c);
|
|
1402
|
-
},
|
|
1403
|
-
var
|
|
1412
|
+
}, m = (c) => {
|
|
1413
|
+
var g;
|
|
1404
1414
|
if (!s(c)) {
|
|
1405
|
-
if (c.value === ((
|
|
1406
|
-
const
|
|
1407
|
-
r.value[
|
|
1415
|
+
if (c.value === ((g = f.value) == null ? void 0 : g.value)) {
|
|
1416
|
+
const b = zn(r.value, (O) => O.value === f.value.value);
|
|
1417
|
+
r.value[b + 1] ? y(r.value[b + 1]) : r.value[b - 1] && y(r.value[b - 1]);
|
|
1408
1418
|
}
|
|
1409
|
-
r.value =
|
|
1419
|
+
r.value = _(r.value, (b) => b.value !== c.value);
|
|
1410
1420
|
}
|
|
1411
|
-
},
|
|
1412
|
-
var
|
|
1413
|
-
c.value !== ((
|
|
1421
|
+
}, d = (c) => {
|
|
1422
|
+
var g;
|
|
1423
|
+
c.value !== ((g = f.value) == null ? void 0 : g.value) && y(c), r.value = _(r.value, (b) => b.value === c.value ? !0 : s(b));
|
|
1414
1424
|
}, h = () => {
|
|
1415
|
-
if (!
|
|
1416
|
-
const c =
|
|
1425
|
+
if (!f.value || !s(f.value)) {
|
|
1426
|
+
const c = ut(r.value, (g) => s(g));
|
|
1417
1427
|
c && t.openMenu(c);
|
|
1418
1428
|
}
|
|
1419
|
-
r.value =
|
|
1420
|
-
},
|
|
1429
|
+
r.value = _(r.value, (c) => s(c));
|
|
1430
|
+
}, x = (c) => {
|
|
1421
1431
|
a(c);
|
|
1422
|
-
}, P = (c,
|
|
1432
|
+
}, P = (c, g) => {
|
|
1423
1433
|
c.preventDefault();
|
|
1424
|
-
const
|
|
1425
|
-
if (!
|
|
1434
|
+
const b = c.target;
|
|
1435
|
+
if (!b)
|
|
1426
1436
|
return;
|
|
1427
|
-
const O =
|
|
1437
|
+
const O = b.getBoundingClientRect();
|
|
1428
1438
|
l.ctxMenuPos = {
|
|
1429
1439
|
x: O.x + O.width / 2,
|
|
1430
1440
|
y: O.y + O.height
|
|
1431
|
-
}, l.ctxMenuItem =
|
|
1441
|
+
}, l.ctxMenuItem = g;
|
|
1432
1442
|
}, C = (c) => {
|
|
1433
1443
|
c.preventDefault(), c.stopPropagation();
|
|
1434
1444
|
}, T = () => {
|
|
1435
1445
|
l.ctxMenuItem = null;
|
|
1436
|
-
}, v = H(), [M,
|
|
1437
|
-
const
|
|
1438
|
-
...
|
|
1446
|
+
}, v = H(), [M, k] = Ze(), N = (c) => {
|
|
1447
|
+
const g = ue(r.value, (b, O) => ({
|
|
1448
|
+
...b,
|
|
1439
1449
|
[O.value]: O
|
|
1440
1450
|
}), {});
|
|
1441
|
-
r.value = F(c, (
|
|
1451
|
+
r.value = F(c, (b) => p(g, b)), k();
|
|
1442
1452
|
};
|
|
1443
1453
|
re(() => {
|
|
1444
1454
|
!v.value || !e.onDragRegister || e.onDragRegister({
|
|
1445
1455
|
dom: v.value,
|
|
1446
1456
|
dataIdAttr: "data-url",
|
|
1447
|
-
onDragEnd:
|
|
1457
|
+
onDragEnd: N
|
|
1448
1458
|
});
|
|
1449
1459
|
}, [v]);
|
|
1450
1460
|
const R = H();
|
|
1451
1461
|
re(() => {
|
|
1452
|
-
var
|
|
1453
|
-
const c = (
|
|
1462
|
+
var g;
|
|
1463
|
+
const c = (g = R.value) == null ? void 0 : g.originRef;
|
|
1454
1464
|
!c || c == null || c.handleOpen();
|
|
1455
1465
|
}, R);
|
|
1456
1466
|
const q = (c) => {
|
|
1457
1467
|
c || (l.ctxMenuItem = null);
|
|
1458
|
-
},
|
|
1459
|
-
c === "refresh" ?
|
|
1460
|
-
},
|
|
1461
|
-
var
|
|
1468
|
+
}, ee = (c) => {
|
|
1469
|
+
c === "refresh" ? x(l.ctxMenuItem) : c === "close" ? m(l.ctxMenuItem) : c === "close-other" ? d(l.ctxMenuItem) : c === "close-all" && h(), T();
|
|
1470
|
+
}, B = w(() => {
|
|
1471
|
+
var g, b;
|
|
1462
1472
|
const c = [];
|
|
1463
|
-
return ((
|
|
1473
|
+
return ((g = f.value) == null ? void 0 : g.value) === ((b = l.ctxMenuItem) == null ? void 0 : b.value) && c.push({
|
|
1464
1474
|
label: "\u5237\u65B0",
|
|
1465
1475
|
value: "refresh"
|
|
1466
1476
|
}), s(l.ctxMenuItem) || c.push({
|
|
@@ -1473,8 +1483,8 @@ const Ar = () => ({
|
|
|
1473
1483
|
label: "\u5168\u90E8\u5173\u95ED",
|
|
1474
1484
|
value: "close-all"
|
|
1475
1485
|
}), F(c, (O) => e.covertMenuItem ? e.covertMenuItem(O) : O);
|
|
1476
|
-
}),
|
|
1477
|
-
return () => i(se, null, [i(
|
|
1486
|
+
}), X = Q(), ne = X(j.DropdownKey), I = X(j.ScrollKey) || "div";
|
|
1487
|
+
return () => i(se, null, [i(I, {
|
|
1478
1488
|
class: "pro-layout-tabs"
|
|
1479
1489
|
}, {
|
|
1480
1490
|
default: () => [i("div", {
|
|
@@ -1483,21 +1493,21 @@ const Ar = () => ({
|
|
|
1483
1493
|
key: M.value
|
|
1484
1494
|
}, [F(r.value, (c) => {
|
|
1485
1495
|
var O, V;
|
|
1486
|
-
const
|
|
1496
|
+
const g = s(c), b = c.value === ((O = f.value) == null ? void 0 : O.value);
|
|
1487
1497
|
return i("div", {
|
|
1488
|
-
class: ["pro-layout-tabs-item",
|
|
1498
|
+
class: ["pro-layout-tabs-item", b ? "active" : ""],
|
|
1489
1499
|
"data-url": c.value,
|
|
1490
|
-
onClick: () =>
|
|
1500
|
+
onClick: () => y(c),
|
|
1491
1501
|
oncontextmenu: (S) => P(S, c)
|
|
1492
|
-
}, [((V = c.itemLabel) == null ? void 0 : V.call(c, c)) || c.label, !
|
|
1502
|
+
}, [((V = c.itemLabel) == null ? void 0 : V.call(c, c)) || c.label, !g && i("div", {
|
|
1493
1503
|
class: "pro-layout-tabs-item-close",
|
|
1494
1504
|
onClick: (S) => {
|
|
1495
|
-
S.preventDefault(), S.stopPropagation(),
|
|
1505
|
+
S.preventDefault(), S.stopPropagation(), m(c);
|
|
1496
1506
|
},
|
|
1497
1507
|
oncontextmenu: C
|
|
1498
1508
|
}, [Ae("\u2715")])]);
|
|
1499
1509
|
})])]
|
|
1500
|
-
}), l.ctxMenuItem && l.ctxMenuPos && i(
|
|
1510
|
+
}), l.ctxMenuItem && l.ctxMenuPos && i(qt, {
|
|
1501
1511
|
to: "body"
|
|
1502
1512
|
}, {
|
|
1503
1513
|
default: () => [i("div", {
|
|
@@ -1506,23 +1516,23 @@ const Ar = () => ({
|
|
|
1506
1516
|
}, [i(ne, {
|
|
1507
1517
|
ref: R,
|
|
1508
1518
|
trigger: "click",
|
|
1509
|
-
options:
|
|
1519
|
+
options: B.value,
|
|
1510
1520
|
hideOnClick: !1,
|
|
1511
|
-
onCommand:
|
|
1521
|
+
onCommand: ee,
|
|
1512
1522
|
onVisibleChange: q
|
|
1513
1523
|
}, {
|
|
1514
1524
|
default: () => [i("div", null, null)]
|
|
1515
1525
|
})])]
|
|
1516
1526
|
})]);
|
|
1517
1527
|
}
|
|
1518
|
-
}),
|
|
1528
|
+
}), Ur = () => ({
|
|
1519
1529
|
str: {
|
|
1520
1530
|
type: String,
|
|
1521
1531
|
default: "watermark"
|
|
1522
1532
|
}
|
|
1523
|
-
}),
|
|
1533
|
+
}), Vr = A({
|
|
1524
1534
|
props: {
|
|
1525
|
-
...
|
|
1535
|
+
...Ur()
|
|
1526
1536
|
},
|
|
1527
1537
|
setup: (e) => {
|
|
1528
1538
|
const t = H(), n = fe({
|
|
@@ -1535,7 +1545,7 @@ const Ar = () => ({
|
|
|
1535
1545
|
o.width = 200, o.height = 130;
|
|
1536
1546
|
let r = o.getContext("2d");
|
|
1537
1547
|
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(
|
|
1548
|
+
}, [() => e.str, t]), () => i(qt, {
|
|
1539
1549
|
to: "body"
|
|
1540
1550
|
}, {
|
|
1541
1551
|
default: () => [i("div", {
|
|
@@ -1545,11 +1555,11 @@ const Ar = () => ({
|
|
|
1545
1555
|
}, null)]
|
|
1546
1556
|
});
|
|
1547
1557
|
}
|
|
1548
|
-
}),
|
|
1558
|
+
}), Ue = A((e, {
|
|
1549
1559
|
slots: t
|
|
1550
1560
|
}) => {
|
|
1551
1561
|
const n = H(), o = H(0);
|
|
1552
|
-
return
|
|
1562
|
+
return Ve(n, (r) => {
|
|
1553
1563
|
var u;
|
|
1554
1564
|
const a = (u = r[0]) == null ? void 0 : u.contentRect;
|
|
1555
1565
|
o.value = a == null ? void 0 : a.width;
|
|
@@ -1560,7 +1570,7 @@ const Ar = () => ({
|
|
|
1560
1570
|
class: "pro-header-menus-wrapper"
|
|
1561
1571
|
}, [t.menus(o.value)]), (a = t.default) == null ? void 0 : a.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
|
|
1562
1572
|
};
|
|
1563
|
-
}),
|
|
1573
|
+
}), zr = () => ({
|
|
1564
1574
|
clsName: {
|
|
1565
1575
|
type: String,
|
|
1566
1576
|
default: "pro-layout"
|
|
@@ -1605,7 +1615,8 @@ const Ar = () => ({
|
|
|
1605
1615
|
children: "children",
|
|
1606
1616
|
value: "value",
|
|
1607
1617
|
label: "label",
|
|
1608
|
-
hide: "hide"
|
|
1618
|
+
hide: "hide",
|
|
1619
|
+
keep: "keep"
|
|
1609
1620
|
}
|
|
1610
1621
|
},
|
|
1611
1622
|
convertSubMenuProps: {
|
|
@@ -1623,103 +1634,104 @@ const Ar = () => ({
|
|
|
1623
1634
|
topMenuProps: {
|
|
1624
1635
|
type: Object
|
|
1625
1636
|
}
|
|
1626
|
-
}),
|
|
1637
|
+
}), yo = A({
|
|
1627
1638
|
inheritAttrs: !1,
|
|
1628
1639
|
props: {
|
|
1629
|
-
...
|
|
1640
|
+
...zr()
|
|
1630
1641
|
},
|
|
1631
1642
|
setup: (e, {
|
|
1632
1643
|
slots: t,
|
|
1633
1644
|
attrs: n
|
|
1634
1645
|
}) => {
|
|
1635
|
-
const o =
|
|
1646
|
+
const o = Q(), r = o(j.MenusKey), a = o(j.ScrollKey) || "div", {
|
|
1636
1647
|
router: u,
|
|
1637
1648
|
route: l
|
|
1638
1649
|
} = Me(), s = w(() => {
|
|
1639
1650
|
var S;
|
|
1640
|
-
return
|
|
1641
|
-
var
|
|
1642
|
-
const K = ((
|
|
1651
|
+
return Gt(e.menus, (E) => {
|
|
1652
|
+
var ge, Ee, we, Ct;
|
|
1653
|
+
const K = ((ge = e.fieldNames) == null ? void 0 : ge.value) || "value", U = ((Ee = e.fieldNames) == null ? void 0 : Ee.label) || "label", ce = ((we = e.fieldNames) == null ? void 0 : we.hide) || "hide", ie = ((Ct = e.fieldNames) == null ? void 0 : Ct.keep) || "keep";
|
|
1643
1654
|
return {
|
|
1644
|
-
...D(
|
|
1645
|
-
value:
|
|
1646
|
-
label:
|
|
1647
|
-
hide:
|
|
1655
|
+
...D(E, K, U, ce, ie),
|
|
1656
|
+
value: p(E, K),
|
|
1657
|
+
label: p(E, U),
|
|
1658
|
+
hide: p(E, ce),
|
|
1659
|
+
keep: p(E, ie)
|
|
1648
1660
|
};
|
|
1649
1661
|
}, {
|
|
1650
1662
|
children: ((S = e.fieldNames) == null ? void 0 : S.children) || "children",
|
|
1651
1663
|
childrenName: "children"
|
|
1652
1664
|
});
|
|
1653
|
-
}),
|
|
1654
|
-
menuTopMap:
|
|
1655
|
-
}) : S.name,
|
|
1665
|
+
}), f = w(() => nr(s.value, (S) => !S.hide)), y = w(() => It(s.value)), m = w(() => It(f.value)), d = w(() => it(s.value, (S) => D(S, "children"))), h = (S) => e.convertName ? e.convertName(S, {
|
|
1666
|
+
menuTopMap: y.value
|
|
1667
|
+
}) : S.name, x = (S) => e.convertValue ? e.convertValue(S) : S.value, P = w(() => {
|
|
1656
1668
|
if (e.findCurrentTopName)
|
|
1657
|
-
return e.findCurrentTopName(l,
|
|
1669
|
+
return e.findCurrentTopName(l, y.value);
|
|
1658
1670
|
const S = h(l);
|
|
1659
|
-
return
|
|
1660
|
-
}), C = w(() => P.value ?
|
|
1671
|
+
return y.value[S];
|
|
1672
|
+
}), C = w(() => P.value ? ut(f.value, (S) => S.value === P.value) : null), T = w(() => !!(C.value && C.value.children && Y(C.value.children) > 0)), v = w(() => {
|
|
1661
1673
|
if (e.findActiveKey)
|
|
1662
|
-
return e.findActiveKey(l,
|
|
1674
|
+
return e.findActiveKey(l, y.value);
|
|
1663
1675
|
const S = h(l);
|
|
1664
|
-
if (
|
|
1676
|
+
if (m.value[S])
|
|
1665
1677
|
return S;
|
|
1666
1678
|
const {
|
|
1667
|
-
parentList:
|
|
1668
|
-
} =
|
|
1679
|
+
parentList: E
|
|
1680
|
+
} = _e(s.value, (U) => U.value === S, void 0, []), K = Hn(E, (U) => !U.hide);
|
|
1669
1681
|
return (K == null ? void 0 : K.value) || S;
|
|
1670
1682
|
}), M = (S) => {
|
|
1671
1683
|
e.onMenuItemClick ? e.onMenuItemClick(S) : u.openMenu(S);
|
|
1672
|
-
},
|
|
1673
|
-
const
|
|
1674
|
-
M(
|
|
1675
|
-
},
|
|
1676
|
-
var
|
|
1677
|
-
let S = (
|
|
1684
|
+
}, k = (S) => {
|
|
1685
|
+
const E = _e(f.value, (K) => K.value === S.value).target;
|
|
1686
|
+
M(E);
|
|
1687
|
+
}, N = w(() => !!e.tabs), R = () => {
|
|
1688
|
+
var E;
|
|
1689
|
+
let S = (E = e.tabs) == null ? void 0 : E.sessionKey;
|
|
1678
1690
|
return S === void 0 && (S = "pro-layout-tabs"), S;
|
|
1679
|
-
}, q =
|
|
1680
|
-
if (!
|
|
1691
|
+
}, q = Xt(f.value, (S) => !S.children || Y(S.children) <= 0), B = H((() => {
|
|
1692
|
+
if (!N.value)
|
|
1681
1693
|
return [];
|
|
1682
1694
|
const S = R();
|
|
1683
|
-
let
|
|
1695
|
+
let E = [];
|
|
1684
1696
|
if (S) {
|
|
1685
|
-
const K = window.sessionStorage.getItem(S), U = K ?
|
|
1686
|
-
|
|
1687
|
-
...
|
|
1697
|
+
const K = window.sessionStorage.getItem(S), U = K ? dt(K) : [];
|
|
1698
|
+
E = F(U, (ce) => ({
|
|
1699
|
+
...p(d.value, ce.name),
|
|
1688
1700
|
query: ce.query
|
|
1689
1701
|
}));
|
|
1690
1702
|
}
|
|
1691
|
-
return
|
|
1692
|
-
})()),
|
|
1693
|
-
|
|
1703
|
+
return Y(E) <= 0 && q && (E = [q]), E;
|
|
1704
|
+
})()), X = (S) => S.value === (q == null ? void 0 : q.value), ne = (S) => {
|
|
1705
|
+
B.value = _(B.value, (E) => E.value !== S);
|
|
1694
1706
|
};
|
|
1695
1707
|
Se(() => {
|
|
1696
1708
|
const S = R();
|
|
1697
1709
|
if (!S)
|
|
1698
1710
|
return;
|
|
1699
|
-
const
|
|
1711
|
+
const E = F(B.value, (K) => ({
|
|
1700
1712
|
name: K.value,
|
|
1701
1713
|
query: K.query
|
|
1702
1714
|
}));
|
|
1703
|
-
window.sessionStorage.setItem(S,
|
|
1704
|
-
},
|
|
1705
|
-
const
|
|
1706
|
-
var
|
|
1707
|
-
const S = (
|
|
1715
|
+
window.sessionStorage.setItem(S, Ge(E));
|
|
1716
|
+
}, B);
|
|
1717
|
+
const I = () => {
|
|
1718
|
+
var E;
|
|
1719
|
+
const S = (E = e.tabs) == null ? void 0 : E.clearWhileUnmount;
|
|
1708
1720
|
return S === void 0 ? !0 : S;
|
|
1709
1721
|
};
|
|
1710
1722
|
re(() => () => {
|
|
1711
1723
|
const S = R();
|
|
1712
|
-
S &&
|
|
1724
|
+
S && I() && window.sessionStorage.removeItem(S);
|
|
1713
1725
|
}, []);
|
|
1714
1726
|
const c = H(!1);
|
|
1715
|
-
pe(
|
|
1727
|
+
pe(Pn, {
|
|
1716
1728
|
convertName: h,
|
|
1717
|
-
convertValue:
|
|
1729
|
+
convertValue: x,
|
|
1718
1730
|
menus: s,
|
|
1719
|
-
showMenus:
|
|
1720
|
-
menuMap:
|
|
1721
|
-
tabs:
|
|
1722
|
-
showTabs:
|
|
1731
|
+
showMenus: f,
|
|
1732
|
+
menuMap: d,
|
|
1733
|
+
tabs: B,
|
|
1734
|
+
showTabs: N,
|
|
1723
1735
|
closeTab: ne,
|
|
1724
1736
|
refreshRef: c,
|
|
1725
1737
|
refresh: () => {
|
|
@@ -1728,11 +1740,11 @@ const Ar = () => ({
|
|
|
1728
1740
|
}, 0);
|
|
1729
1741
|
}
|
|
1730
1742
|
});
|
|
1731
|
-
const
|
|
1732
|
-
var
|
|
1743
|
+
const b = ye(t, "header"), O = ye(t, "menu"), V = (S) => {
|
|
1744
|
+
var E, K;
|
|
1733
1745
|
return i("div", {
|
|
1734
1746
|
class: `${e.clsName}-menus-wrapper`
|
|
1735
|
-
}, [(
|
|
1747
|
+
}, [(E = O.start) == null ? void 0 : E.call(O), i(a, {
|
|
1736
1748
|
class: `${e.clsName}-menus-scroll`
|
|
1737
1749
|
}, {
|
|
1738
1750
|
default: () => [i(r, S, O)]
|
|
@@ -1743,61 +1755,61 @@ const Ar = () => ({
|
|
|
1743
1755
|
if (!r)
|
|
1744
1756
|
return null;
|
|
1745
1757
|
const S = [`${e.clsName} ${e.clsName}-${e.layout}`];
|
|
1746
|
-
|
|
1747
|
-
const
|
|
1758
|
+
N.value && S.push("has-tabs");
|
|
1759
|
+
const E = {
|
|
1748
1760
|
class: `${e.clsName}-menus`,
|
|
1749
|
-
options:
|
|
1761
|
+
options: f.value,
|
|
1750
1762
|
activeKey: v.value,
|
|
1751
1763
|
...J(e, "convertSubMenuProps", "convertMenuItemProps"),
|
|
1752
1764
|
onMenuItemClick: M,
|
|
1753
1765
|
...e.menuProps
|
|
1754
1766
|
}, K = {
|
|
1755
1767
|
collapse: e.collapse,
|
|
1756
|
-
...
|
|
1757
|
-
}, U = i(se, null, [
|
|
1758
|
-
isHideClose:
|
|
1768
|
+
...E
|
|
1769
|
+
}, U = i(se, null, [N.value && i(qr, L({
|
|
1770
|
+
isHideClose: X
|
|
1759
1771
|
}, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), i("div", {
|
|
1760
1772
|
class: `${e.clsName}-section`
|
|
1761
|
-
}, [(ce = t.default) == null ? void 0 : ce.call(t), t.routerView ? t.routerView() : i(
|
|
1773
|
+
}, [(ce = t.default) == null ? void 0 : ce.call(t), t.routerView ? t.routerView() : i(jr, e.routeOpts, null), e.watermark && i(Vr, e.watermark, null)])]);
|
|
1762
1774
|
return e.layout === "vertical" ? i("main", L(n, {
|
|
1763
1775
|
class: S
|
|
1764
|
-
}), [i(
|
|
1776
|
+
}), [i(Ue, {
|
|
1765
1777
|
class: `${e.clsName}-header`
|
|
1766
1778
|
}, {
|
|
1767
1779
|
menus: (ie) => ie ? i(r, L({
|
|
1768
1780
|
style: `width:${ie}px`,
|
|
1769
1781
|
mode: "horizontal"
|
|
1770
|
-
},
|
|
1771
|
-
...
|
|
1782
|
+
}, E), O) : null,
|
|
1783
|
+
...b
|
|
1772
1784
|
}), U]) : e.layout === "horizontal" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1773
1785
|
class: S
|
|
1774
1786
|
}), [V(K), i("div", {
|
|
1775
1787
|
class: `${e.clsName}-structure`
|
|
1776
|
-
}, [i(
|
|
1788
|
+
}, [i(Ue, {
|
|
1777
1789
|
class: `${e.clsName}-header`
|
|
1778
|
-
},
|
|
1790
|
+
}, b), U])])) : e.layout === "horizontal-v" ? (S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1779
1791
|
class: S
|
|
1780
|
-
}), [i(
|
|
1792
|
+
}), [i(Ue, {
|
|
1781
1793
|
class: `${e.clsName}-header`
|
|
1782
|
-
},
|
|
1794
|
+
}, b), i("div", {
|
|
1783
1795
|
class: `${e.clsName}-structure`
|
|
1784
1796
|
}, [V(K), i("div", {
|
|
1785
1797
|
class: `${e.clsName}-right`
|
|
1786
1798
|
}, [U])])])) : (T.value && S.push("has-left-menu"), e.collapse && S.push("mini"), i("main", L(n, {
|
|
1787
1799
|
class: S
|
|
1788
|
-
}), [i(
|
|
1800
|
+
}), [i(Ue, {
|
|
1789
1801
|
class: `${e.clsName}-header`
|
|
1790
1802
|
}, {
|
|
1791
1803
|
menus: (ie) => ie ? i(r, L({
|
|
1792
1804
|
style: `width:${ie}px`,
|
|
1793
1805
|
class: `${e.clsName}-menus`,
|
|
1794
1806
|
mode: "horizontal",
|
|
1795
|
-
options: F(
|
|
1807
|
+
options: F(f.value, (ge) => D(ge, "children")),
|
|
1796
1808
|
activeKey: P.value
|
|
1797
1809
|
}, e.topMenuProps, J(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
1798
|
-
onMenuItemClick:
|
|
1810
|
+
onMenuItemClick: k
|
|
1799
1811
|
}), O) : null,
|
|
1800
|
-
...
|
|
1812
|
+
...b
|
|
1801
1813
|
}), i("div", {
|
|
1802
1814
|
class: `${e.clsName}-structure`
|
|
1803
1815
|
}, [T.value && V({
|
|
@@ -1809,7 +1821,7 @@ const Ar = () => ({
|
|
|
1809
1821
|
}, [U])])]));
|
|
1810
1822
|
};
|
|
1811
1823
|
}
|
|
1812
|
-
}),
|
|
1824
|
+
}), Hr = () => ({
|
|
1813
1825
|
title: {
|
|
1814
1826
|
type: String
|
|
1815
1827
|
},
|
|
@@ -1828,9 +1840,9 @@ const Ar = () => ({
|
|
|
1828
1840
|
type: Function,
|
|
1829
1841
|
default: () => "\u8FD4\u56DE"
|
|
1830
1842
|
}
|
|
1831
|
-
}),
|
|
1843
|
+
}), at = A({
|
|
1832
1844
|
props: {
|
|
1833
|
-
...
|
|
1845
|
+
...Hr()
|
|
1834
1846
|
},
|
|
1835
1847
|
setup: (e, {
|
|
1836
1848
|
slots: t
|
|
@@ -1846,7 +1858,7 @@ const Ar = () => ({
|
|
|
1846
1858
|
n.back();
|
|
1847
1859
|
};
|
|
1848
1860
|
return () => {
|
|
1849
|
-
var a, u, l, s,
|
|
1861
|
+
var a, u, l, s, f;
|
|
1850
1862
|
const r = e.hideWhileNoHistory && ((u = (a = window.history) == null ? void 0 : a.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
|
|
1851
1863
|
return i("div", {
|
|
1852
1864
|
class: "pro-page-header"
|
|
@@ -1861,10 +1873,10 @@ const Ar = () => ({
|
|
|
1861
1873
|
class: "pro-page-header-space"
|
|
1862
1874
|
}, [(s = t.space) == null ? void 0 : s.call(t)]), i("div", {
|
|
1863
1875
|
class: "pro-page-header-extra"
|
|
1864
|
-
}, [(
|
|
1876
|
+
}, [(f = t.extra) == null ? void 0 : f.call(t)])]);
|
|
1865
1877
|
};
|
|
1866
1878
|
}
|
|
1867
|
-
}),
|
|
1879
|
+
}), Wr = () => ({
|
|
1868
1880
|
loading: {
|
|
1869
1881
|
type: Boolean,
|
|
1870
1882
|
default: !1
|
|
@@ -1883,51 +1895,51 @@ const Ar = () => ({
|
|
|
1883
1895
|
sub: {
|
|
1884
1896
|
type: Boolean
|
|
1885
1897
|
}
|
|
1886
|
-
}),
|
|
1898
|
+
}), Cn = A({
|
|
1887
1899
|
props: {
|
|
1888
|
-
...
|
|
1889
|
-
...
|
|
1900
|
+
...at.props,
|
|
1901
|
+
...Wr()
|
|
1890
1902
|
},
|
|
1891
1903
|
setup: (e, {
|
|
1892
1904
|
slots: t
|
|
1893
1905
|
}) => {
|
|
1894
|
-
const n =
|
|
1906
|
+
const n = Be(), o = w(() => {
|
|
1895
1907
|
if (!e.layoutTabsBackMode || e.sub || !n)
|
|
1896
1908
|
return e.showBack;
|
|
1897
1909
|
const {
|
|
1898
|
-
showTabs:
|
|
1910
|
+
showTabs: f
|
|
1899
1911
|
} = n;
|
|
1900
|
-
return
|
|
1901
|
-
}), r =
|
|
1912
|
+
return f.value ? !1 : e.showBack;
|
|
1913
|
+
}), r = Q(), a = r(j.LoadingKey), u = e.as || r(j.ScrollKey) || "div", l = () => a ? i(a, L({
|
|
1902
1914
|
loading: !0
|
|
1903
1915
|
}, e.loadingOpts), {
|
|
1904
1916
|
default: () => [i("div", {
|
|
1905
1917
|
class: "pro-loading-dom"
|
|
1906
1918
|
}, null)]
|
|
1907
|
-
}) : null, s =
|
|
1919
|
+
}) : null, s = G(at.props).filter((f) => f !== "showBack");
|
|
1908
1920
|
return () => {
|
|
1909
1921
|
var h;
|
|
1910
|
-
const
|
|
1911
|
-
return e.sub &&
|
|
1912
|
-
class:
|
|
1922
|
+
const f = e.title || t.title || e.subTitle || t.subTitle || t.extra, y = (h = t.footer) == null ? void 0 : h.call(t), m = !e.loading && lt(y), d = ["pro-page"];
|
|
1923
|
+
return e.sub && d.push("pro-page-sub"), e.fillMode && d.push("pro-page-fill"), f && d.push("has-header"), m && d.push("has-footer"), i(u, {
|
|
1924
|
+
class: d
|
|
1913
1925
|
}, {
|
|
1914
1926
|
default: () => {
|
|
1915
|
-
var
|
|
1916
|
-
return [(
|
|
1927
|
+
var x, P;
|
|
1928
|
+
return [(x = t.start) == null ? void 0 : x.call(t), f && i(at, L(J(e, s), {
|
|
1917
1929
|
showBack: o.value
|
|
1918
1930
|
}), D(t, "start", "default", "footer")), i("div", {
|
|
1919
1931
|
class: "pro-page-content"
|
|
1920
|
-
}, [e.loading ? l() : (P = t.default) == null ? void 0 : P.call(t)]),
|
|
1932
|
+
}, [e.loading ? l() : (P = t.default) == null ? void 0 : P.call(t)]), m && i("div", {
|
|
1921
1933
|
class: "pro-page-footer"
|
|
1922
|
-
}, [
|
|
1934
|
+
}, [y])];
|
|
1923
1935
|
}
|
|
1924
1936
|
});
|
|
1925
1937
|
};
|
|
1926
1938
|
}
|
|
1927
|
-
}),
|
|
1939
|
+
}), _r = Object.freeze({
|
|
1928
1940
|
page: 1,
|
|
1929
1941
|
pageSize: 10
|
|
1930
|
-
}),
|
|
1942
|
+
}), Gr = () => ({
|
|
1931
1943
|
clsName: {
|
|
1932
1944
|
type: String,
|
|
1933
1945
|
default: "pro-list"
|
|
@@ -1961,38 +1973,38 @@ const Ar = () => ({
|
|
|
1961
1973
|
end: {
|
|
1962
1974
|
type: Function
|
|
1963
1975
|
}
|
|
1964
|
-
}),
|
|
1976
|
+
}), Xr = A({
|
|
1965
1977
|
props: {
|
|
1966
|
-
...
|
|
1978
|
+
...Gr()
|
|
1967
1979
|
},
|
|
1968
1980
|
setup: (e, {
|
|
1969
1981
|
slots: t,
|
|
1970
1982
|
emit: n
|
|
1971
1983
|
}) => {
|
|
1972
|
-
const o =
|
|
1973
|
-
...
|
|
1984
|
+
const o = Q(), r = o(j.ProSearchFormKey), a = o(j.ProTableKey), u = o(j.PaginationKey), l = e.pageState || fe({
|
|
1985
|
+
..._r
|
|
1974
1986
|
});
|
|
1975
1987
|
let s;
|
|
1976
|
-
const
|
|
1988
|
+
const f = () => {
|
|
1977
1989
|
n("search", {
|
|
1978
1990
|
...s,
|
|
1979
1991
|
...l
|
|
1980
1992
|
});
|
|
1981
|
-
}, m = (P, C) => {
|
|
1982
|
-
s = P, l.page = C || 1, d();
|
|
1983
1993
|
}, y = (P, C) => {
|
|
1984
|
-
|
|
1985
|
-
},
|
|
1994
|
+
s = P, l.page = C || 1, f();
|
|
1995
|
+
}, m = (P, C) => {
|
|
1996
|
+
l.page = P, l.pageSize = C, f();
|
|
1997
|
+
}, d = ye(t, "search"), h = ye(t, "table"), x = ye(t, "pagination");
|
|
1986
1998
|
return () => {
|
|
1987
|
-
var C, T, v, M,
|
|
1999
|
+
var C, T, v, M, k, N, R, q;
|
|
1988
2000
|
const P = t.search ? t.search({
|
|
1989
|
-
executeSearchWithResetPage:
|
|
2001
|
+
executeSearchWithResetPage: y,
|
|
1990
2002
|
pageState: l
|
|
1991
2003
|
}) : i(se, null, [r && i(r, L({
|
|
1992
2004
|
class: `${e.clsName}-search`
|
|
1993
2005
|
}, D(e.searchProps, "onFinish"), {
|
|
1994
|
-
onFinish: (
|
|
1995
|
-
}),
|
|
2006
|
+
onFinish: (ee) => y(ee)
|
|
2007
|
+
}), d)]);
|
|
1996
2008
|
return i("div", {
|
|
1997
2009
|
class: e.clsName
|
|
1998
2010
|
}, [((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({
|
|
@@ -2007,19 +2019,19 @@ const Ar = () => ({
|
|
|
2007
2019
|
}, e.tableProps), {
|
|
2008
2020
|
...h,
|
|
2009
2021
|
toolbar: e.searchInTable ? () => h.toolbar ? h.toolbar(P) : P : h.toolbar
|
|
2010
|
-
})]), ((
|
|
2011
|
-
executePageChange:
|
|
2022
|
+
})]), ((k = t.divide2) == null ? void 0 : k.call(t)) || ((N = e.divide2) == null ? void 0 : N.call(e)), t.pagination ? t.pagination({
|
|
2023
|
+
executePageChange: m,
|
|
2012
2024
|
pageState: l
|
|
2013
2025
|
}) : i(se, null, [e.paginationProps !== !1 && u && i("div", {
|
|
2014
2026
|
class: `${e.clsName}-pagination`
|
|
2015
|
-
}, [i(u, L(D(
|
|
2027
|
+
}, [i(u, L(D(Ke(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
2016
2028
|
page: l.page,
|
|
2017
2029
|
pageSize: l.pageSize,
|
|
2018
|
-
onComposeChange:
|
|
2019
|
-
}),
|
|
2030
|
+
onComposeChange: m
|
|
2031
|
+
}), x)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((q = e.end) == null ? void 0 : q.call(e))]);
|
|
2020
2032
|
};
|
|
2021
2033
|
}
|
|
2022
|
-
}),
|
|
2034
|
+
}), Ot = () => ({
|
|
2023
2035
|
clsName: {
|
|
2024
2036
|
type: String,
|
|
2025
2037
|
default: "pro-desc"
|
|
@@ -2027,58 +2039,58 @@ const Ar = () => ({
|
|
|
2027
2039
|
model: {
|
|
2028
2040
|
type: Object
|
|
2029
2041
|
}
|
|
2030
|
-
}),
|
|
2042
|
+
}), Yr = A({
|
|
2031
2043
|
props: {
|
|
2032
|
-
...
|
|
2033
|
-
...
|
|
2044
|
+
...xe,
|
|
2045
|
+
...Ot()
|
|
2034
2046
|
},
|
|
2035
2047
|
setup: (e, {
|
|
2036
2048
|
slots: t
|
|
2037
2049
|
}) => {
|
|
2038
2050
|
const {
|
|
2039
2051
|
elementMap: n
|
|
2040
|
-
} = oe(), o = e.elementMap || n, r =
|
|
2052
|
+
} = oe(), o = e.elementMap || n, r = Q(), a = r(j.DescriptionsKey), u = r(j.DescriptionsItemKey), l = w(() => et(e.columns, e.columnState, e.columnState2)), s = G(xe), f = G(Ot());
|
|
2041
2053
|
return () => !a || !u ? null : i(a, L({
|
|
2042
2054
|
class: e.clsName
|
|
2043
|
-
}, D(e, ...s, ...
|
|
2055
|
+
}, D(e, ...s, ...f, "model")), {
|
|
2044
2056
|
default: () => {
|
|
2045
|
-
var
|
|
2046
|
-
return [(
|
|
2047
|
-
const h =
|
|
2057
|
+
var y, m;
|
|
2058
|
+
return [(y = t.start) == null ? void 0 : y.call(t), F(l.value, (d) => {
|
|
2059
|
+
const h = d.dataIndex, x = p(e.model, h);
|
|
2048
2060
|
return i(u, L({
|
|
2049
2061
|
class: `${e.clsName}-item`
|
|
2050
|
-
},
|
|
2062
|
+
}, p(d.extra, "desc")), {
|
|
2051
2063
|
default: () => {
|
|
2052
2064
|
var P, C;
|
|
2053
|
-
return [((P = t[h]) == null ? void 0 : P.call(t,
|
|
2054
|
-
value:
|
|
2065
|
+
return [((P = t[h]) == null ? void 0 : P.call(t, x, d)) || ((C = t.value) == null ? void 0 : C.call(t, x, d)) || bt(o, d, {
|
|
2066
|
+
value: x
|
|
2055
2067
|
}, {
|
|
2056
2068
|
render: "descRender"
|
|
2057
2069
|
})];
|
|
2058
2070
|
},
|
|
2059
2071
|
label: () => {
|
|
2060
2072
|
var P;
|
|
2061
|
-
return ((P = t.label) == null ? void 0 : P.call(t,
|
|
2073
|
+
return ((P = t.label) == null ? void 0 : P.call(t, d)) || d.title;
|
|
2062
2074
|
}
|
|
2063
2075
|
});
|
|
2064
|
-
}), (
|
|
2076
|
+
}), (m = t.default) == null ? void 0 : m.call(t)];
|
|
2065
2077
|
},
|
|
2066
2078
|
...t
|
|
2067
2079
|
});
|
|
2068
2080
|
}
|
|
2069
|
-
}),
|
|
2081
|
+
}), Mn = (e, t) => ct(e) ? e : e || t, Qr = () => ({
|
|
2070
2082
|
value: {
|
|
2071
2083
|
type: [String, Number]
|
|
2072
2084
|
},
|
|
2073
2085
|
emptyText: {
|
|
2074
2086
|
type: String
|
|
2075
2087
|
}
|
|
2076
|
-
}),
|
|
2088
|
+
}), vo = A({
|
|
2077
2089
|
props: {
|
|
2078
|
-
...
|
|
2090
|
+
...Qr()
|
|
2079
2091
|
},
|
|
2080
|
-
setup: (e) => () =>
|
|
2081
|
-
}),
|
|
2092
|
+
setup: (e) => () => Mn(e.value, e.emptyText)
|
|
2093
|
+
}), Jr = () => ({
|
|
2082
2094
|
content: {
|
|
2083
2095
|
type: [String, Number]
|
|
2084
2096
|
},
|
|
@@ -2089,15 +2101,15 @@ const Ar = () => ({
|
|
|
2089
2101
|
emptyText: {
|
|
2090
2102
|
type: String
|
|
2091
2103
|
}
|
|
2092
|
-
}),
|
|
2104
|
+
}), Zr = A({
|
|
2093
2105
|
inheritAttrs: !1,
|
|
2094
2106
|
props: {
|
|
2095
|
-
...
|
|
2107
|
+
...Jr()
|
|
2096
2108
|
},
|
|
2097
2109
|
setup: (e, {
|
|
2098
2110
|
attrs: t
|
|
2099
2111
|
}) => {
|
|
2100
|
-
const o =
|
|
2112
|
+
const o = Q()(j.PopoverKey), r = () => {
|
|
2101
2113
|
var a, u;
|
|
2102
2114
|
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
2115
|
};
|
|
@@ -2105,14 +2117,14 @@ const Ar = () => ({
|
|
|
2105
2117
|
const a = i("span", L({
|
|
2106
2118
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
2107
2119
|
style: `-webkit-line-clamp:${r()}`
|
|
2108
|
-
}, t), [
|
|
2120
|
+
}, t), [Mn(e.content, e.emptyText)]);
|
|
2109
2121
|
return !e.popoverProps || !o ? a : i(o, e.popoverProps, {
|
|
2110
2122
|
default: () => [a],
|
|
2111
2123
|
content: () => e.content
|
|
2112
2124
|
});
|
|
2113
2125
|
};
|
|
2114
2126
|
}
|
|
2115
|
-
}),
|
|
2127
|
+
}), qe = {
|
|
2116
2128
|
value: {
|
|
2117
2129
|
type: [String, Number]
|
|
2118
2130
|
},
|
|
@@ -2126,27 +2138,27 @@ const Ar = () => ({
|
|
|
2126
2138
|
type: Function,
|
|
2127
2139
|
default: void 0
|
|
2128
2140
|
}
|
|
2129
|
-
},
|
|
2141
|
+
}, tt = A({
|
|
2130
2142
|
inheritAttrs: !1,
|
|
2131
2143
|
props: {
|
|
2132
|
-
...
|
|
2144
|
+
...qe
|
|
2133
2145
|
},
|
|
2134
2146
|
setup: (e, {
|
|
2135
2147
|
attrs: t
|
|
2136
2148
|
}) => {
|
|
2137
2149
|
const n = w(() => {
|
|
2138
2150
|
var a;
|
|
2139
|
-
const o = (a = e.showProps) == null ? void 0 : a.content, r = e.value ||
|
|
2151
|
+
const o = (a = e.showProps) == null ? void 0 : a.content, r = e.value || ct(e.value) ? e.value : o;
|
|
2140
2152
|
return e.convert ? e.convert(r, e) : r;
|
|
2141
2153
|
});
|
|
2142
|
-
return () => i(
|
|
2154
|
+
return () => i(Zr, L(J(t, "style", "class"), D(e.showProps, "content"), {
|
|
2143
2155
|
content: n.value
|
|
2144
2156
|
}), null);
|
|
2145
2157
|
}
|
|
2146
|
-
}),
|
|
2158
|
+
}), ho = A({
|
|
2147
2159
|
inheritAttrs: !1,
|
|
2148
2160
|
props: {
|
|
2149
|
-
...
|
|
2161
|
+
...qe,
|
|
2150
2162
|
decimalFixed: {
|
|
2151
2163
|
type: Number,
|
|
2152
2164
|
default: 0
|
|
@@ -2161,22 +2173,22 @@ const Ar = () => ({
|
|
|
2161
2173
|
}) => {
|
|
2162
2174
|
const n = w(() => {
|
|
2163
2175
|
let o = e.value;
|
|
2164
|
-
return o && e.decimalFixed && (o =
|
|
2176
|
+
return o && e.decimalFixed && (o = rr(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = ar(o)), e.convert ? e.convert(o, e) : o;
|
|
2165
2177
|
});
|
|
2166
2178
|
return () => e.render ? e.render({
|
|
2167
2179
|
value: n.value,
|
|
2168
2180
|
props: e
|
|
2169
|
-
}) : i(
|
|
2181
|
+
}) : i(tt, L({
|
|
2170
2182
|
class: "pro-show-digit"
|
|
2171
2183
|
}, J(t, "style", "class"), {
|
|
2172
2184
|
value: n.value,
|
|
2173
2185
|
showProps: e.showProps
|
|
2174
2186
|
}), null);
|
|
2175
2187
|
}
|
|
2176
|
-
}),
|
|
2188
|
+
}), po = A({
|
|
2177
2189
|
inheritAttrs: !1,
|
|
2178
2190
|
props: {
|
|
2179
|
-
...
|
|
2191
|
+
...qe,
|
|
2180
2192
|
value: {
|
|
2181
2193
|
type: [String, Number, Array]
|
|
2182
2194
|
},
|
|
@@ -2192,16 +2204,16 @@ const Ar = () => ({
|
|
|
2192
2204
|
setup: (e, {
|
|
2193
2205
|
attrs: t
|
|
2194
2206
|
}) => {
|
|
2195
|
-
const n = w(() =>
|
|
2207
|
+
const n = w(() => or(e.options, (a) => a.label), void 0), o = w(() => {
|
|
2196
2208
|
const a = e.value;
|
|
2197
2209
|
let u = e.value;
|
|
2198
|
-
return Z(a) ? u =
|
|
2199
|
-
}), r = w(() =>
|
|
2210
|
+
return Z(a) ? u = Je(F(a, (l) => p(n.value, l, l)), e.splitStr) : u = p(n.value, a, e.value), e.convert ? e.convert(u, e) : u;
|
|
2211
|
+
}), r = w(() => p(e.colorMap, e.value));
|
|
2200
2212
|
return () => e.render ? e.render({
|
|
2201
2213
|
color: r.value,
|
|
2202
2214
|
value: o.value,
|
|
2203
2215
|
props: e
|
|
2204
|
-
}) : i(
|
|
2216
|
+
}) : i(tt, L({
|
|
2205
2217
|
class: "pro-show-options"
|
|
2206
2218
|
}, J(t, "style", "class"), {
|
|
2207
2219
|
style: `color:${r.value || ""}`,
|
|
@@ -2209,10 +2221,10 @@ const Ar = () => ({
|
|
|
2209
2221
|
showProps: e.showProps
|
|
2210
2222
|
}), null);
|
|
2211
2223
|
}
|
|
2212
|
-
}),
|
|
2224
|
+
}), go = A({
|
|
2213
2225
|
inheritAttrs: !1,
|
|
2214
2226
|
props: {
|
|
2215
|
-
...
|
|
2227
|
+
...qe,
|
|
2216
2228
|
value: {
|
|
2217
2229
|
type: [String, Number, Array]
|
|
2218
2230
|
},
|
|
@@ -2238,28 +2250,28 @@ const Ar = () => ({
|
|
|
2238
2250
|
}) => {
|
|
2239
2251
|
const n = w(() => {
|
|
2240
2252
|
const r = e.treeData || e.data || e.options, a = e.fieldNames || e.props;
|
|
2241
|
-
return
|
|
2253
|
+
return it(r, (u) => p(u, (a == null ? void 0 : a.label) || "label"), {
|
|
2242
2254
|
value: "value",
|
|
2243
2255
|
children: "children",
|
|
2244
2256
|
...a
|
|
2245
2257
|
});
|
|
2246
2258
|
}), o = w(() => {
|
|
2247
2259
|
let r = e.value;
|
|
2248
|
-
return Z(e.value) ? r =
|
|
2260
|
+
return Z(e.value) ? r = Je(F(e.value, (a) => p(n.value, a, a)), e.multiple ? e.splitStr2 : e.splitStr) : r = p(n.value, e.value, e.value), e.convert ? e.convert(r, e) : r;
|
|
2249
2261
|
});
|
|
2250
2262
|
return () => e.render ? e.render({
|
|
2251
2263
|
value: o.value,
|
|
2252
2264
|
props: e
|
|
2253
|
-
}) : i(
|
|
2265
|
+
}) : i(tt, L({
|
|
2254
2266
|
class: "pro-show-tree"
|
|
2255
2267
|
}, J(t, "style", "class"), {
|
|
2256
2268
|
value: o.value,
|
|
2257
2269
|
showProps: e.showProps
|
|
2258
2270
|
}), null);
|
|
2259
2271
|
}
|
|
2260
|
-
}),
|
|
2272
|
+
}), bo = A({
|
|
2261
2273
|
props: {
|
|
2262
|
-
...
|
|
2274
|
+
...qe,
|
|
2263
2275
|
value: {
|
|
2264
2276
|
type: [String, Number, Array]
|
|
2265
2277
|
},
|
|
@@ -2279,21 +2291,21 @@ const Ar = () => ({
|
|
|
2279
2291
|
setup: (e, {
|
|
2280
2292
|
attrs: t
|
|
2281
2293
|
}) => {
|
|
2282
|
-
const n = (r) => r && (e.isUnix ?
|
|
2294
|
+
const n = (r) => r && (e.isUnix ? Et.unix(r).format(e.format) : Et(r).format(e.format)), o = w(() => {
|
|
2283
2295
|
let r = e.value;
|
|
2284
|
-
return Z(e.value) ? r =
|
|
2296
|
+
return Z(e.value) ? r = Je(F(e.value, (a) => n(a) || ""), e.splitStr) : r = n(e.value) || "", e.convert ? e.convert(r, e) : r;
|
|
2285
2297
|
});
|
|
2286
2298
|
return () => e.render ? e.render({
|
|
2287
2299
|
value: o.value,
|
|
2288
2300
|
props: e
|
|
2289
|
-
}) : i(
|
|
2301
|
+
}) : i(tt, L({
|
|
2290
2302
|
class: "pro-show-date"
|
|
2291
2303
|
}, J(t, "style", "class"), {
|
|
2292
2304
|
value: o.value,
|
|
2293
2305
|
showProps: e.showProps
|
|
2294
2306
|
}), null);
|
|
2295
2307
|
}
|
|
2296
|
-
}),
|
|
2308
|
+
}), So = A({
|
|
2297
2309
|
props: {
|
|
2298
2310
|
fieldNames: {
|
|
2299
2311
|
type: Object,
|
|
@@ -2311,39 +2323,39 @@ const Ar = () => ({
|
|
|
2311
2323
|
slots: t,
|
|
2312
2324
|
emit: n
|
|
2313
2325
|
}) => {
|
|
2314
|
-
const r =
|
|
2315
|
-
const
|
|
2316
|
-
if (Z(
|
|
2317
|
-
const
|
|
2318
|
-
return F(
|
|
2319
|
-
...D(
|
|
2320
|
-
id:
|
|
2321
|
-
name:
|
|
2322
|
-
size:
|
|
2326
|
+
const r = Q()(j.UploaderKey), a = (f) => {
|
|
2327
|
+
const y = dt(f);
|
|
2328
|
+
if (Z(y)) {
|
|
2329
|
+
const m = e.fieldNames;
|
|
2330
|
+
return F(y, (d) => ({
|
|
2331
|
+
...D(d, m.id, m.name, m.size),
|
|
2332
|
+
id: p(d, m.id),
|
|
2333
|
+
name: p(d, m.name),
|
|
2334
|
+
size: p(d, m.size)
|
|
2323
2335
|
}));
|
|
2324
2336
|
}
|
|
2325
2337
|
return [];
|
|
2326
|
-
}, u = w(() => a(e.value)), l = w(() => a(e.modelValue)), s = (
|
|
2327
|
-
let
|
|
2328
|
-
|
|
2338
|
+
}, u = w(() => a(e.value)), l = w(() => a(e.modelValue)), s = (f, y) => {
|
|
2339
|
+
let m = "";
|
|
2340
|
+
f && Y(f) > 0 && (m = Ge(F(f, (d) => {
|
|
2329
2341
|
var P;
|
|
2330
|
-
const h = e.fieldNames,
|
|
2331
|
-
[h.id]:
|
|
2332
|
-
[h.name]:
|
|
2333
|
-
[h.size || "size"]:
|
|
2342
|
+
const h = e.fieldNames, x = {
|
|
2343
|
+
[h.id]: d.id,
|
|
2344
|
+
[h.name]: d.name,
|
|
2345
|
+
[h.size || "size"]: d.size
|
|
2334
2346
|
};
|
|
2335
|
-
return ((P = e.convertItem) == null ? void 0 : P.call(e,
|
|
2336
|
-
}))), n(
|
|
2347
|
+
return ((P = e.convertItem) == null ? void 0 : P.call(e, d)) || x;
|
|
2348
|
+
}))), n(y, m);
|
|
2337
2349
|
};
|
|
2338
2350
|
return () => r ? i(r, L({
|
|
2339
2351
|
class: "pro-uploader-text",
|
|
2340
2352
|
value: u.value,
|
|
2341
|
-
"onUpdate:value": (
|
|
2353
|
+
"onUpdate:value": (f) => s(f, "update:value"),
|
|
2342
2354
|
modelValue: l.value,
|
|
2343
|
-
"onUpdate:modelValue": (
|
|
2355
|
+
"onUpdate:modelValue": (f) => s(f, "update:modelValue")
|
|
2344
2356
|
}, D(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
2345
2357
|
}
|
|
2346
|
-
}),
|
|
2358
|
+
}), Po = A({
|
|
2347
2359
|
props: {
|
|
2348
2360
|
value: [String, Array],
|
|
2349
2361
|
fieldNames: {
|
|
@@ -2361,17 +2373,17 @@ const Ar = () => ({
|
|
|
2361
2373
|
}) => {
|
|
2362
2374
|
const o = (u) => {
|
|
2363
2375
|
var l;
|
|
2364
|
-
return !!
|
|
2376
|
+
return !!p(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
|
|
2365
2377
|
}, r = w(() => {
|
|
2366
2378
|
let u = e.value;
|
|
2367
|
-
return u && de(u) && (u =
|
|
2368
|
-
var
|
|
2369
|
-
const s =
|
|
2379
|
+
return u && de(u) && (u = dt(u)), u && !Z(u) && Oe(u) && o(u) && (u = [u]), Z(u) ? F(_(u, (l) => o(l)), (l) => {
|
|
2380
|
+
var m, d, h;
|
|
2381
|
+
const s = p(l, ((m = e.fieldNames) == null ? void 0 : m.id) || "id"), f = p(l, ((d = e.fieldNames) == null ? void 0 : d.name) || "name"), y = p(l, ((h = e.fieldNames) == null ? void 0 : h.name) || "size");
|
|
2370
2382
|
return {
|
|
2371
2383
|
...l,
|
|
2372
2384
|
id: s,
|
|
2373
|
-
size:
|
|
2374
|
-
name:
|
|
2385
|
+
size: y,
|
|
2386
|
+
name: f || s
|
|
2375
2387
|
};
|
|
2376
2388
|
}) : [];
|
|
2377
2389
|
}), a = (u) => {
|
|
@@ -2382,17 +2394,17 @@ const Ar = () => ({
|
|
|
2382
2394
|
return i("div", {
|
|
2383
2395
|
class: "pro-upload-list"
|
|
2384
2396
|
}, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (s) => {
|
|
2385
|
-
var
|
|
2397
|
+
var f;
|
|
2386
2398
|
return i("div", {
|
|
2387
2399
|
class: "pro-upload-list-item"
|
|
2388
2400
|
}, [i("span", {
|
|
2389
2401
|
class: "pro-upload-list-item-title",
|
|
2390
2402
|
onClick: () => a(s)
|
|
2391
|
-
}, [s.name]), (
|
|
2403
|
+
}, [s.name]), (f = t.extra) == null ? void 0 : f.call(t, s)]);
|
|
2392
2404
|
}), (l = t.default) == null ? void 0 : l.call(t)]);
|
|
2393
2405
|
};
|
|
2394
2406
|
}
|
|
2395
|
-
}),
|
|
2407
|
+
}), ea = {
|
|
2396
2408
|
open: (e, t, n) => window.open(e, t, n),
|
|
2397
2409
|
parseStr: (e) => {
|
|
2398
2410
|
var a;
|
|
@@ -2404,7 +2416,7 @@ const Ar = () => ({
|
|
|
2404
2416
|
protocol: u.protocol,
|
|
2405
2417
|
path: u.pathname,
|
|
2406
2418
|
origin: u.origin,
|
|
2407
|
-
query:
|
|
2419
|
+
query: xt(u.search),
|
|
2408
2420
|
url: u.origin + u.pathname
|
|
2409
2421
|
};
|
|
2410
2422
|
} catch {
|
|
@@ -2412,20 +2424,20 @@ const Ar = () => ({
|
|
|
2412
2424
|
const t = e.indexOf("//") > -1 ? (a = e.split("//")) == null ? void 0 : a[0] : "";
|
|
2413
2425
|
let n = "", o = "";
|
|
2414
2426
|
e.indexOf("?") >= -1 && (n = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
|
|
2415
|
-
const r = o ?
|
|
2427
|
+
const r = o ? xt(o) : {};
|
|
2416
2428
|
return { protocol: t, query: r, url: n };
|
|
2417
2429
|
},
|
|
2418
2430
|
stringifyUrl: ({ url: e, query: t }) => {
|
|
2419
|
-
const n =
|
|
2431
|
+
const n = ir(t);
|
|
2420
2432
|
return `${e}${n ? "?" : ""}${n || ""}`;
|
|
2421
2433
|
}
|
|
2422
2434
|
}, Me = () => {
|
|
2423
|
-
const { convertRouter: e } = oe(), t =
|
|
2435
|
+
const { convertRouter: e } = oe(), t = an(), n = yt(), o = Be(), u = { ...t, openMenu: (s) => {
|
|
2424
2436
|
if (!!s) {
|
|
2425
|
-
if (
|
|
2426
|
-
const
|
|
2427
|
-
if (
|
|
2428
|
-
t.push({ name:
|
|
2437
|
+
if (Y(s.children) > 0) {
|
|
2438
|
+
const f = Xt(s.children, (y) => !y.children || Y(y.children) <= 0);
|
|
2439
|
+
if (f) {
|
|
2440
|
+
t.push({ name: f.value });
|
|
2429
2441
|
return;
|
|
2430
2442
|
}
|
|
2431
2443
|
}
|
|
@@ -2433,62 +2445,62 @@ const Ar = () => ({
|
|
|
2433
2445
|
}
|
|
2434
2446
|
}, back: () => {
|
|
2435
2447
|
if (o) {
|
|
2436
|
-
const { showTabs: s, convertName:
|
|
2448
|
+
const { showTabs: s, convertName: f, closeTab: y } = o;
|
|
2437
2449
|
if (s.value) {
|
|
2438
|
-
const
|
|
2439
|
-
m
|
|
2450
|
+
const m = f(n);
|
|
2451
|
+
y(m);
|
|
2440
2452
|
}
|
|
2441
2453
|
}
|
|
2442
2454
|
t.back();
|
|
2443
|
-
}, ...
|
|
2455
|
+
}, ...ea };
|
|
2444
2456
|
return { router: e ? e(u) : u, route: n };
|
|
2445
|
-
},
|
|
2446
|
-
if (!Z(e) ||
|
|
2457
|
+
}, ta = (e) => {
|
|
2458
|
+
if (!Z(e) || Y(e) <= 0)
|
|
2447
2459
|
return !1;
|
|
2448
2460
|
const t = e[0];
|
|
2449
|
-
return de(t) ?
|
|
2450
|
-
},
|
|
2451
|
-
if (
|
|
2452
|
-
const n =
|
|
2453
|
-
return e.namePath$ ?
|
|
2454
|
-
} else if (
|
|
2461
|
+
return de(t) ? Wt(t, "$") : !1;
|
|
2462
|
+
}, na = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, ra = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", aa = { get: p, pick: J, add: Wn, subtract: _n }, Ye = (e, t) => {
|
|
2463
|
+
if (na(e)) {
|
|
2464
|
+
const n = p(t, e.name$);
|
|
2465
|
+
return e.namePath$ ? p(n, e.namePath$) : n;
|
|
2466
|
+
} else if (ra(e)) {
|
|
2455
2467
|
const n = {};
|
|
2456
2468
|
return ae(e, (o, r) => {
|
|
2457
2469
|
if (r !== "type$")
|
|
2458
|
-
if (
|
|
2459
|
-
const a =
|
|
2470
|
+
if (Wt(r, "$")) {
|
|
2471
|
+
const a = Ye(o, t);
|
|
2460
2472
|
me(n, r.replace("$", ""), a);
|
|
2461
2473
|
} else
|
|
2462
2474
|
n[r] = o;
|
|
2463
2475
|
}), n;
|
|
2464
|
-
} else if (
|
|
2465
|
-
const [n, ...o] = e, r = t.expressionMethods ||
|
|
2476
|
+
} else if (ta(e)) {
|
|
2477
|
+
const [n, ...o] = e, r = t.expressionMethods || aa, a = p(r, n.replace("$", ""));
|
|
2466
2478
|
if (!a) {
|
|
2467
2479
|
console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
|
|
2468
2480
|
return;
|
|
2469
2481
|
}
|
|
2470
|
-
const u = F(o, (l) =>
|
|
2482
|
+
const u = F(o, (l) => Ye(l, t));
|
|
2471
2483
|
return a(...u);
|
|
2472
2484
|
}
|
|
2473
2485
|
return e;
|
|
2474
|
-
},
|
|
2475
|
-
const e =
|
|
2486
|
+
}, oa = () => {
|
|
2487
|
+
const e = en(), { registerStoreMap: t } = oe();
|
|
2476
2488
|
return (n, o) => {
|
|
2477
|
-
const r =
|
|
2489
|
+
const r = p(t, n);
|
|
2478
2490
|
!r || e(n, o, !!r.persist, r.initialState);
|
|
2479
2491
|
};
|
|
2480
|
-
},
|
|
2481
|
-
const { registerStoreMap: t } = oe(), n =
|
|
2482
|
-
return
|
|
2483
|
-
const u =
|
|
2484
|
-
return u || (
|
|
2492
|
+
}, Co = (e) => {
|
|
2493
|
+
const { registerStoreMap: t } = oe(), n = p(t, e), o = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
|
|
2494
|
+
return tn(nn((a) => {
|
|
2495
|
+
const u = p(a, o);
|
|
2496
|
+
return u || (W(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
|
|
2485
2497
|
}));
|
|
2486
|
-
},
|
|
2487
|
-
pe(
|
|
2488
|
-
},
|
|
2498
|
+
}, In = Symbol("pro-module"), Ie = () => he(In), ua = (e) => {
|
|
2499
|
+
pe(In, e);
|
|
2500
|
+
}, gt = (e) => {
|
|
2489
2501
|
const {
|
|
2490
2502
|
subject$: t
|
|
2491
|
-
} =
|
|
2503
|
+
} = Ie();
|
|
2492
2504
|
re(() => {
|
|
2493
2505
|
const n = t.subscribe({
|
|
2494
2506
|
next: (o) => {
|
|
@@ -2497,10 +2509,10 @@ const Ar = () => ({
|
|
|
2497
2509
|
});
|
|
2498
2510
|
return () => n.unsubscribe();
|
|
2499
2511
|
}, []);
|
|
2500
|
-
},
|
|
2512
|
+
}, Re = {
|
|
2501
2513
|
Success: "request-success$",
|
|
2502
2514
|
Fail: "request-fail$"
|
|
2503
|
-
},
|
|
2515
|
+
}, la = () => ({
|
|
2504
2516
|
state: {
|
|
2505
2517
|
type: Object
|
|
2506
2518
|
},
|
|
@@ -2525,224 +2537,224 @@ const Ar = () => ({
|
|
|
2525
2537
|
requests: {
|
|
2526
2538
|
type: Array
|
|
2527
2539
|
}
|
|
2528
|
-
}),
|
|
2540
|
+
}), ze = A({
|
|
2529
2541
|
props: {
|
|
2530
|
-
...
|
|
2542
|
+
...la()
|
|
2531
2543
|
},
|
|
2532
2544
|
setup: (e, {
|
|
2533
2545
|
slots: t,
|
|
2534
2546
|
expose: n
|
|
2535
2547
|
}) => {
|
|
2536
|
-
const o =
|
|
2548
|
+
const o = lr(), {
|
|
2537
2549
|
router: r
|
|
2538
2550
|
} = Me(), {
|
|
2539
2551
|
elementMap: a,
|
|
2540
2552
|
registerStoreMap: u,
|
|
2541
2553
|
expressionMethods: l
|
|
2542
|
-
} = oe(), s = e.elementMap || a,
|
|
2543
|
-
|
|
2544
|
-
},
|
|
2545
|
-
const
|
|
2554
|
+
} = oe(), s = e.elementMap || a, f = (I) => Z(I) ? St(s, I) : Fe(s, I), y = new Yn(), m = (I) => {
|
|
2555
|
+
y.next(I);
|
|
2556
|
+
}, d = _(e.storeKeys, (I) => st(u, I)), h = () => ue(d, (I, c) => {
|
|
2557
|
+
const g = p(u, c);
|
|
2546
2558
|
return {
|
|
2547
|
-
...
|
|
2548
|
-
[c]:
|
|
2559
|
+
...I,
|
|
2560
|
+
[c]: p(o.value, `${g.persist ? "$" : ""}${c}`) || p(u, [c, "initialState"])
|
|
2549
2561
|
};
|
|
2550
|
-
}, {}),
|
|
2551
|
-
...
|
|
2562
|
+
}, {}), x = h(), P = e.state || fe({
|
|
2563
|
+
...x,
|
|
2552
2564
|
...e.initState
|
|
2553
|
-
}), C = {}, T = (
|
|
2554
|
-
const c = P[
|
|
2555
|
-
if (!Z(c) &&
|
|
2556
|
-
|
|
2565
|
+
}), C = {}, T = (I) => {
|
|
2566
|
+
const c = P[I.type], g = W(I.payload) ? I.payload(c) : I.payload;
|
|
2567
|
+
if (!Z(c) && Oe(c)) {
|
|
2568
|
+
ft(P[I.type], g);
|
|
2557
2569
|
return;
|
|
2558
2570
|
}
|
|
2559
|
-
P[
|
|
2560
|
-
}, v =
|
|
2571
|
+
P[I.type] = g;
|
|
2572
|
+
}, v = oa(), M = {
|
|
2561
2573
|
dispatch: T,
|
|
2562
2574
|
dispatchStore: v
|
|
2563
2575
|
};
|
|
2564
2576
|
re(() => {
|
|
2565
|
-
const
|
|
2566
|
-
ae(c, (
|
|
2567
|
-
const O =
|
|
2568
|
-
|
|
2569
|
-
type:
|
|
2570
|
-
payload:
|
|
2577
|
+
const I = o.pipe(Qn(() => h()), Jn((c) => {
|
|
2578
|
+
ae(c, (g, b) => {
|
|
2579
|
+
const O = p(P, b);
|
|
2580
|
+
sr(O, g) || T({
|
|
2581
|
+
type: b,
|
|
2582
|
+
payload: g
|
|
2571
2583
|
});
|
|
2572
2584
|
});
|
|
2573
2585
|
})).subscribe();
|
|
2574
2586
|
return () => {
|
|
2575
|
-
|
|
2587
|
+
I.unsubscribe();
|
|
2576
2588
|
};
|
|
2577
2589
|
}, []);
|
|
2578
2590
|
const {
|
|
2579
|
-
dispatchRequest:
|
|
2580
|
-
} =
|
|
2581
|
-
const
|
|
2582
|
-
...
|
|
2583
|
-
[
|
|
2591
|
+
dispatchRequest: k
|
|
2592
|
+
} = je(), R = (() => {
|
|
2593
|
+
const I = {}, c = ue(e.actors || [], (g, b) => ({
|
|
2594
|
+
...g,
|
|
2595
|
+
[b.name]: b
|
|
2584
2596
|
}), {});
|
|
2585
|
-
return ae(e.requests, (
|
|
2586
|
-
if (de(
|
|
2587
|
-
const
|
|
2588
|
-
if (!
|
|
2597
|
+
return ae(e.requests, (g) => {
|
|
2598
|
+
if (de(g.actor)) {
|
|
2599
|
+
const b = p(c, g.actor);
|
|
2600
|
+
if (!b)
|
|
2589
2601
|
return;
|
|
2590
|
-
|
|
2602
|
+
g.actor = b;
|
|
2591
2603
|
}
|
|
2592
|
-
!
|
|
2593
|
-
}),
|
|
2594
|
-
})(), q = (
|
|
2595
|
-
var
|
|
2596
|
-
return
|
|
2597
|
-
},
|
|
2598
|
-
const
|
|
2599
|
-
if (!
|
|
2604
|
+
!g.actor || (I[g.actor.name] = g, g.action && (I[g.action] = g));
|
|
2605
|
+
}), I;
|
|
2606
|
+
})(), q = (I, ...c) => I.convertParams ? I.convertParams(...c) : I.convertParamsEx ? X(I.convertParamsEx, c) : p(c, 0), ee = (I, c) => {
|
|
2607
|
+
var g;
|
|
2608
|
+
return I.convertData ? I.convertData(c) : I.convertDataEx ? X(I.convertDataEx, c) : (g = c.res) == null ? void 0 : g.data;
|
|
2609
|
+
}, B = (I, ...c) => {
|
|
2610
|
+
const g = p(R, I);
|
|
2611
|
+
if (!g)
|
|
2600
2612
|
return;
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2603
|
-
type:
|
|
2613
|
+
const b = q(g, ...c);
|
|
2614
|
+
g.loadingName && T({
|
|
2615
|
+
type: g.loadingName,
|
|
2604
2616
|
payload: !0
|
|
2605
|
-
}),
|
|
2617
|
+
}), k(g.actor, b);
|
|
2606
2618
|
};
|
|
2607
|
-
|
|
2608
|
-
onSuccess: (
|
|
2609
|
-
var
|
|
2610
|
-
const c =
|
|
2619
|
+
hr(G(R), {
|
|
2620
|
+
onSuccess: (I) => {
|
|
2621
|
+
var b;
|
|
2622
|
+
const c = p(R, I.name), g = ee(c, I);
|
|
2611
2623
|
c != null && c.stateName && T({
|
|
2612
2624
|
type: c.stateName,
|
|
2613
|
-
payload:
|
|
2614
|
-
}),
|
|
2615
|
-
type:
|
|
2625
|
+
payload: g
|
|
2626
|
+
}), m({
|
|
2627
|
+
type: Re.Success,
|
|
2616
2628
|
payload: {
|
|
2617
|
-
actor:
|
|
2629
|
+
actor: I,
|
|
2618
2630
|
requestOpts: c
|
|
2619
2631
|
}
|
|
2620
|
-
}), (
|
|
2632
|
+
}), (b = c.onSuccess) == null || b.call(c, I), c.onSuccessEx && ne(c.onSuccessEx, [g]);
|
|
2621
2633
|
},
|
|
2622
|
-
onFailed: (
|
|
2623
|
-
var
|
|
2624
|
-
const c =
|
|
2625
|
-
|
|
2626
|
-
type:
|
|
2634
|
+
onFailed: (I) => {
|
|
2635
|
+
var g;
|
|
2636
|
+
const c = p(R, I.name);
|
|
2637
|
+
m({
|
|
2638
|
+
type: Re.Fail,
|
|
2627
2639
|
payload: {
|
|
2628
|
-
actor:
|
|
2640
|
+
actor: I,
|
|
2629
2641
|
requestOpts: c
|
|
2630
2642
|
}
|
|
2631
|
-
}), (
|
|
2643
|
+
}), (g = c.onFailed) == null || g.call(c, I), c.onFailedEx && ne(c.onFailedEx, [I.err]);
|
|
2632
2644
|
},
|
|
2633
|
-
onFinish: (
|
|
2634
|
-
const c =
|
|
2645
|
+
onFinish: (I) => {
|
|
2646
|
+
const c = p(R, [I.name, "loadingName"]);
|
|
2635
2647
|
c && T({
|
|
2636
2648
|
type: c,
|
|
2637
2649
|
payload: !1
|
|
2638
2650
|
});
|
|
2639
2651
|
}
|
|
2640
2652
|
}, !0);
|
|
2641
|
-
const
|
|
2653
|
+
const X = (I, c) => Ye(I, {
|
|
2642
2654
|
state: P,
|
|
2643
2655
|
data: C,
|
|
2644
2656
|
args: c,
|
|
2645
2657
|
expressionMethods: l
|
|
2646
|
-
}), ne = (
|
|
2647
|
-
if (!
|
|
2658
|
+
}), ne = (I, c) => {
|
|
2659
|
+
if (!I)
|
|
2648
2660
|
return;
|
|
2649
|
-
const
|
|
2661
|
+
const g = {
|
|
2650
2662
|
state: P,
|
|
2651
2663
|
data: C,
|
|
2652
2664
|
args: c,
|
|
2653
2665
|
expressionMethods: l
|
|
2654
2666
|
};
|
|
2655
|
-
ae(
|
|
2656
|
-
if (!Z(
|
|
2657
|
-
console.log("execute invalid",
|
|
2667
|
+
ae(I, (b) => {
|
|
2668
|
+
if (!Z(b) || Y(b) < 2) {
|
|
2669
|
+
console.log("execute invalid", b);
|
|
2658
2670
|
return;
|
|
2659
2671
|
}
|
|
2660
|
-
const [O, V, ...S] =
|
|
2661
|
-
let
|
|
2672
|
+
const [O, V, ...S] = b;
|
|
2673
|
+
let E;
|
|
2662
2674
|
switch (O) {
|
|
2663
2675
|
case "router":
|
|
2664
|
-
|
|
2676
|
+
E = p(r, V);
|
|
2665
2677
|
break;
|
|
2666
2678
|
case "state":
|
|
2667
|
-
|
|
2679
|
+
E = p(M, V);
|
|
2668
2680
|
break;
|
|
2669
2681
|
}
|
|
2670
|
-
if (
|
|
2682
|
+
if (E)
|
|
2671
2683
|
try {
|
|
2672
|
-
const K = F(S, (U) =>
|
|
2673
|
-
|
|
2684
|
+
const K = F(S, (U) => Ye(U, g));
|
|
2685
|
+
E(...K);
|
|
2674
2686
|
} catch (K) {
|
|
2675
2687
|
console.log("execute err", K);
|
|
2676
2688
|
}
|
|
2677
2689
|
});
|
|
2678
2690
|
};
|
|
2679
|
-
return
|
|
2691
|
+
return ua({
|
|
2680
2692
|
elementMap: s,
|
|
2681
|
-
subject$:
|
|
2682
|
-
sendEvent:
|
|
2693
|
+
subject$: y,
|
|
2694
|
+
sendEvent: m,
|
|
2683
2695
|
state: P,
|
|
2684
2696
|
dispatch: T,
|
|
2685
2697
|
data: C,
|
|
2686
2698
|
requests: e.requests,
|
|
2687
|
-
sendRequest:
|
|
2688
|
-
executeExp:
|
|
2699
|
+
sendRequest: B,
|
|
2700
|
+
executeExp: X,
|
|
2689
2701
|
execute: ne
|
|
2690
2702
|
}), n({
|
|
2691
|
-
sendEvent:
|
|
2692
|
-
sendRequest:
|
|
2703
|
+
sendEvent: m,
|
|
2704
|
+
sendRequest: B
|
|
2693
2705
|
}), () => {
|
|
2694
|
-
var
|
|
2695
|
-
return i(se, null, [
|
|
2706
|
+
var I;
|
|
2707
|
+
return i(se, null, [Y(e.elementConfigs) > 0 && f(e.elementConfigs), (I = t.default) == null ? void 0 : I.call(t)]);
|
|
2696
2708
|
};
|
|
2697
2709
|
}
|
|
2698
|
-
}),
|
|
2710
|
+
}), lt = (e) => {
|
|
2699
2711
|
var t, n;
|
|
2700
2712
|
return !(!e || ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : n.toString()) === "Symbol(Comment)");
|
|
2701
|
-
},
|
|
2713
|
+
}, xn = (e) => e.formValueType || e.valueType || "text", ve = (e) => {
|
|
2702
2714
|
var o, r;
|
|
2703
2715
|
const t = (o = e.formItemProps) == null ? void 0 : o.name;
|
|
2704
2716
|
return ((r = e.inputProps) == null ? void 0 : r.name) || t || e.dataIndex;
|
|
2705
|
-
},
|
|
2717
|
+
}, sa = (e, t) => {
|
|
2706
2718
|
let n = t;
|
|
2707
|
-
return de(t) && (n =
|
|
2708
|
-
},
|
|
2709
|
-
var
|
|
2710
|
-
const r =
|
|
2719
|
+
return de(t) && (n = p(e, t)), W(n) || (n = p(e, "render")), W(n) ? n : void 0;
|
|
2720
|
+
}, bt = (e, t, n, o) => {
|
|
2721
|
+
var y, m, d;
|
|
2722
|
+
const r = sa(t, o == null ? void 0 : o.render);
|
|
2711
2723
|
if (r)
|
|
2712
2724
|
return r({
|
|
2713
2725
|
...n,
|
|
2714
2726
|
column: t
|
|
2715
2727
|
});
|
|
2716
|
-
const a = t.valueType || "text", u =
|
|
2728
|
+
const a = t.valueType || "text", u = p(e, a);
|
|
2717
2729
|
if (!u)
|
|
2718
2730
|
return null;
|
|
2719
|
-
const l = ((
|
|
2720
|
-
u.props.showProps && (s.showProps = t.props ? (
|
|
2721
|
-
const
|
|
2731
|
+
const l = ((y = t.props) == null ? void 0 : y.slots) || ((m = t.formFieldProps) == null ? void 0 : m.slots) || {}, s = n || {};
|
|
2732
|
+
u.props.showProps && (s.showProps = t.props ? (d = t.props) == null ? void 0 : d.showProps : t.showProps);
|
|
2733
|
+
const f = t.props ? {
|
|
2722
2734
|
...D(t.props, "slots"),
|
|
2723
2735
|
...s
|
|
2724
2736
|
} : {
|
|
2725
2737
|
...D(t.formFieldProps, "slots"),
|
|
2726
2738
|
...s
|
|
2727
2739
|
};
|
|
2728
|
-
return
|
|
2729
|
-
...
|
|
2740
|
+
return De(u, {
|
|
2741
|
+
...f
|
|
2730
2742
|
}, l);
|
|
2731
|
-
},
|
|
2732
|
-
var
|
|
2733
|
-
const o =
|
|
2743
|
+
}, En = (e, t, n) => {
|
|
2744
|
+
var y, m;
|
|
2745
|
+
const o = xn(n), r = p(t, o);
|
|
2734
2746
|
if (!r)
|
|
2735
2747
|
return null;
|
|
2736
|
-
const a = n.inputProps, u = ((
|
|
2737
|
-
!u.renderInput &&
|
|
2738
|
-
...
|
|
2748
|
+
const a = n.inputProps, u = ((y = a == null ? void 0 : a.fieldProps) == null ? void 0 : y.slots) || ((m = n.formFieldProps) == null ? void 0 : m.slots) || {};
|
|
2749
|
+
!u.renderInput && W(n.inputRender) && (u.renderInput = (d) => n.inputRender({
|
|
2750
|
+
...d,
|
|
2739
2751
|
column: n
|
|
2740
|
-
})), u.renderShow || (u.renderShow = (
|
|
2741
|
-
value:
|
|
2752
|
+
})), u.renderShow || (u.renderShow = (d) => bt(e, n, {
|
|
2753
|
+
value: d.value
|
|
2742
2754
|
}, {
|
|
2743
2755
|
render: "formReadRender"
|
|
2744
|
-
}) ||
|
|
2745
|
-
const l = ve(n), s = n.title,
|
|
2756
|
+
}) || d.value);
|
|
2757
|
+
const l = ve(n), s = n.title, f = a ? {
|
|
2746
2758
|
...a,
|
|
2747
2759
|
fieldProps: D(a.fieldProps, "slots")
|
|
2748
2760
|
} : {
|
|
@@ -2750,72 +2762,72 @@ const Ar = () => ({
|
|
|
2750
2762
|
fieldProps: D(n.formFieldProps, "slots"),
|
|
2751
2763
|
showProps: n.showProps
|
|
2752
2764
|
};
|
|
2753
|
-
return
|
|
2765
|
+
return De(r, {
|
|
2754
2766
|
key: l,
|
|
2755
2767
|
name: l,
|
|
2756
2768
|
label: s,
|
|
2757
|
-
...
|
|
2769
|
+
...f
|
|
2758
2770
|
}, u);
|
|
2759
|
-
},
|
|
2771
|
+
}, ca = (e) => e && !W(e) && e.elementType, St = (e, t) => F(t, (n) => Fe(e, n)), wn = (e, t) => {
|
|
2760
2772
|
var a;
|
|
2761
2773
|
const n = t.elementProps, o = {
|
|
2762
2774
|
...t.elementProps
|
|
2763
2775
|
}, r = n == null ? void 0 : n.class;
|
|
2764
|
-
return r && (typeof r == "object" ? o.class =
|
|
2776
|
+
return r && (typeof r == "object" ? o.class = wt(r) : de(r) && r.indexOf(":") > 0 && (o.class = wt`
|
|
2765
2777
|
${r}
|
|
2766
2778
|
`)), ae((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (u) => {
|
|
2767
|
-
const l =
|
|
2779
|
+
const l = p(n, u.name);
|
|
2768
2780
|
if (!(!l || Ne(l))) {
|
|
2769
2781
|
if (Z(l)) {
|
|
2770
2782
|
if (Pe(l, (s) => Ne(s)))
|
|
2771
2783
|
return;
|
|
2772
|
-
me(o, u.name,
|
|
2784
|
+
me(o, u.name, St(e, l));
|
|
2773
2785
|
return;
|
|
2774
2786
|
}
|
|
2775
2787
|
!l.elementType || (u.isFun ? me(o, u.name, (...s) => {
|
|
2776
|
-
const
|
|
2788
|
+
const f = u.needParams ? {
|
|
2777
2789
|
...l.elementProps,
|
|
2778
2790
|
params$: s
|
|
2779
2791
|
} : l.elementProps;
|
|
2780
|
-
return
|
|
2792
|
+
return Fe(e, {
|
|
2781
2793
|
...l,
|
|
2782
|
-
elementProps:
|
|
2794
|
+
elementProps: f
|
|
2783
2795
|
});
|
|
2784
|
-
}) : me(o, u.name,
|
|
2796
|
+
}) : me(o, u.name, Fe(e, l)));
|
|
2785
2797
|
}
|
|
2786
2798
|
}), o;
|
|
2787
|
-
},
|
|
2788
|
-
const n =
|
|
2789
|
-
return ae(
|
|
2799
|
+
}, Tn = (e, t) => {
|
|
2800
|
+
const n = Y(t.children) > 0 ? St(e, t.children) : void 0, o = t.childrenSlotName || "default", r = D(t.slots, n ? o : "");
|
|
2801
|
+
return ae(G(r), (a) => {
|
|
2790
2802
|
const u = r[a];
|
|
2791
|
-
|
|
2803
|
+
ca(u) ? r[a] = (...l) => {
|
|
2792
2804
|
const s = u.needParams ? {
|
|
2793
2805
|
...u.elementProps,
|
|
2794
2806
|
params$: l
|
|
2795
2807
|
} : u.elementProps;
|
|
2796
|
-
return
|
|
2808
|
+
return Fe(e, {
|
|
2797
2809
|
...u,
|
|
2798
2810
|
elementProps: s
|
|
2799
2811
|
});
|
|
2800
|
-
} : (de(u) ||
|
|
2812
|
+
} : (de(u) || ct(u)) && (r[a] = () => u);
|
|
2801
2813
|
}), {
|
|
2802
2814
|
[o]: n ? () => n : void 0,
|
|
2803
2815
|
...r
|
|
2804
2816
|
};
|
|
2805
|
-
},
|
|
2806
|
-
const n =
|
|
2817
|
+
}, Fe = (e, t) => {
|
|
2818
|
+
const n = p(e, t.elementType) || t.elementType;
|
|
2807
2819
|
if (t.highConfig$)
|
|
2808
|
-
return
|
|
2820
|
+
return De(da, {
|
|
2809
2821
|
key: t.elementId,
|
|
2810
2822
|
elementMap: e,
|
|
2811
2823
|
elementConfig: t
|
|
2812
2824
|
});
|
|
2813
|
-
const o =
|
|
2814
|
-
return
|
|
2825
|
+
const o = Tn(e, t), r = wn(e, t);
|
|
2826
|
+
return De(n, {
|
|
2815
2827
|
key: t.elementId,
|
|
2816
2828
|
...r
|
|
2817
2829
|
}, o);
|
|
2818
|
-
},
|
|
2830
|
+
}, ia = (e) => Z(e) ? Gn(e) : de(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, da = A({
|
|
2819
2831
|
props: {
|
|
2820
2832
|
elementMap: {
|
|
2821
2833
|
type: Object
|
|
@@ -2830,68 +2842,68 @@ const Ar = () => ({
|
|
|
2830
2842
|
state: t,
|
|
2831
2843
|
sendEvent: n,
|
|
2832
2844
|
execute: o
|
|
2833
|
-
} =
|
|
2845
|
+
} = Ie(), {
|
|
2834
2846
|
elementMap: r,
|
|
2835
2847
|
elementConfig: a
|
|
2836
|
-
} = e, u = a.highConfig$, l =
|
|
2837
|
-
ae((h = a.highConfig$) == null ? void 0 : h.registerEventList, (
|
|
2848
|
+
} = e, u = a.highConfig$, l = wn(r, a);
|
|
2849
|
+
ae((h = a.highConfig$) == null ? void 0 : h.registerEventList, (x) => {
|
|
2838
2850
|
const P = (...T) => {
|
|
2839
|
-
const v = `${a.elementId}-${
|
|
2851
|
+
const v = `${a.elementId}-${x.name}`;
|
|
2840
2852
|
n({
|
|
2841
2853
|
type: v,
|
|
2842
2854
|
payload: T
|
|
2843
|
-
}), o(
|
|
2844
|
-
}, C =
|
|
2845
|
-
l &&
|
|
2855
|
+
}), o(x.executeList, T);
|
|
2856
|
+
}, C = Yt(x.name, l);
|
|
2857
|
+
l && Qt(C) && Jt(C, l) && me(l, C, P);
|
|
2846
2858
|
});
|
|
2847
2859
|
const s = w(() => {
|
|
2848
|
-
if (!u.registerStateList ||
|
|
2860
|
+
if (!u.registerStateList || Y(u.registerStateList) <= 0)
|
|
2849
2861
|
return;
|
|
2850
|
-
const
|
|
2862
|
+
const x = {
|
|
2851
2863
|
...l
|
|
2852
|
-
}, P =
|
|
2853
|
-
const v = T.mapName || T.name, M =
|
|
2854
|
-
return me(
|
|
2864
|
+
}, P = _(u.registerStateList, (T) => !T.target || T.target === "prop"), C = F(P, (T) => {
|
|
2865
|
+
const v = T.mapName || T.name, M = p(t, T.name);
|
|
2866
|
+
return me(x, v, M), ia(v);
|
|
2855
2867
|
});
|
|
2856
|
-
return J(
|
|
2857
|
-
}),
|
|
2858
|
-
...
|
|
2859
|
-
[P.mapName]: () =>
|
|
2860
|
-
}), {}),
|
|
2861
|
-
...
|
|
2862
|
-
...
|
|
2868
|
+
return J(x, C);
|
|
2869
|
+
}), f = p(r, a.elementType) || a.elementType, y = Tn(r, a), m = ue(_(u.registerStateList, (x) => x.target === "slot"), (x, P) => ({
|
|
2870
|
+
...x,
|
|
2871
|
+
[P.mapName]: () => p(t, P.name)
|
|
2872
|
+
}), {}), d = {
|
|
2873
|
+
...y,
|
|
2874
|
+
...m
|
|
2863
2875
|
};
|
|
2864
|
-
return () =>
|
|
2876
|
+
return () => p(s.value, "show$") === !1 ? null : De(f, {
|
|
2865
2877
|
key: a.elementId,
|
|
2866
2878
|
...l,
|
|
2867
2879
|
...D(s.value, "show$")
|
|
2868
|
-
},
|
|
2880
|
+
}, d);
|
|
2869
2881
|
}
|
|
2870
|
-
}),
|
|
2871
|
-
!e || !t ||
|
|
2872
|
-
const r =
|
|
2873
|
-
if (!
|
|
2882
|
+
}), fa = (e, t) => {
|
|
2883
|
+
!e || !t || Ut(t) || Ne(e) || ae(t, (n, o) => {
|
|
2884
|
+
const r = Yt(o, e);
|
|
2885
|
+
if (!Qt(r)) {
|
|
2874
2886
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
|
|
2875
2887
|
return;
|
|
2876
2888
|
}
|
|
2877
|
-
if (!
|
|
2889
|
+
if (!Jt(r, e)) {
|
|
2878
2890
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", r);
|
|
2879
2891
|
return;
|
|
2880
2892
|
}
|
|
2881
2893
|
me(e, r, n);
|
|
2882
2894
|
});
|
|
2883
|
-
},
|
|
2884
|
-
|
|
2885
|
-
const n =
|
|
2886
|
-
n &&
|
|
2887
|
-
const r =
|
|
2895
|
+
}, ke = (e, t) => {
|
|
2896
|
+
fa(e, p(t, e.elementId));
|
|
2897
|
+
const n = p(e, ["highConfig$", "registerPropsTrans"]);
|
|
2898
|
+
n && Y(n) > 0 && ae(n, (o) => {
|
|
2899
|
+
const r = p(e.elementProps, o.name);
|
|
2888
2900
|
Z(r) ? ae(r, (a) => {
|
|
2889
|
-
|
|
2890
|
-
}) :
|
|
2891
|
-
}), e.children &&
|
|
2892
|
-
|
|
2901
|
+
ke(a, t);
|
|
2902
|
+
}) : ke(r, t);
|
|
2903
|
+
}), e.children && Y(e.children) > 0 && ae(e.children, (o) => {
|
|
2904
|
+
ke(o, t);
|
|
2893
2905
|
});
|
|
2894
|
-
},
|
|
2906
|
+
}, ma = A({
|
|
2895
2907
|
props: {
|
|
2896
2908
|
initExecuteList: {
|
|
2897
2909
|
type: Array
|
|
@@ -2900,33 +2912,33 @@ const Ar = () => ({
|
|
|
2900
2912
|
setup: (e) => {
|
|
2901
2913
|
const {
|
|
2902
2914
|
execute: t
|
|
2903
|
-
} =
|
|
2915
|
+
} = Ie();
|
|
2904
2916
|
return re(() => {
|
|
2905
2917
|
e.initExecuteList && t(e.initExecuteList, []);
|
|
2906
2918
|
}, []), () => null;
|
|
2907
2919
|
}
|
|
2908
|
-
}),
|
|
2920
|
+
}), Mo = ({
|
|
2909
2921
|
actors: e,
|
|
2910
2922
|
configData: t,
|
|
2911
2923
|
configDataExtra: n,
|
|
2912
2924
|
Logic: o
|
|
2913
|
-
}) =>
|
|
2925
|
+
}) => A(() => {
|
|
2914
2926
|
const r = H(), a = (s) => {
|
|
2915
|
-
const
|
|
2916
|
-
return n && (Z(
|
|
2927
|
+
const f = _t(s);
|
|
2928
|
+
return n && (Z(f) ? ae(f, (y) => ke(y, n)) : ke(f, n)), f;
|
|
2917
2929
|
};
|
|
2918
2930
|
re(() => {
|
|
2919
2931
|
t && t.elementConfigs && (r.value = a(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2920
2932
|
}, []);
|
|
2921
|
-
const l =
|
|
2922
|
-
return () => r.value ? i(
|
|
2933
|
+
const l = Q()(j.LoadingKey);
|
|
2934
|
+
return () => r.value ? i(ze, {
|
|
2923
2935
|
initState: t == null ? void 0 : t.initState,
|
|
2924
2936
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2925
2937
|
actors: e,
|
|
2926
2938
|
requests: t == null ? void 0 : t.requests,
|
|
2927
2939
|
elementConfigs: r.value
|
|
2928
2940
|
}, {
|
|
2929
|
-
default: () => [i(
|
|
2941
|
+
default: () => [i(ma, null, null), o && i(o, null, null)]
|
|
2930
2942
|
}) : l ? i(l, {
|
|
2931
2943
|
loading: !0
|
|
2932
2944
|
}, {
|
|
@@ -2934,9 +2946,9 @@ const Ar = () => ({
|
|
|
2934
2946
|
class: "pro-module-loading-dom"
|
|
2935
2947
|
}, null)]
|
|
2936
2948
|
}) : null;
|
|
2937
|
-
}),
|
|
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 || {}),
|
|
2939
|
-
const
|
|
2949
|
+
}), kn = Symbol("pro-curd"), te = () => he(kn), ya = (e) => pe(kn, e);
|
|
2950
|
+
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 || {}), $e = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))($e || {});
|
|
2951
|
+
const va = () => ({
|
|
2940
2952
|
rowKey: {
|
|
2941
2953
|
type: String,
|
|
2942
2954
|
default: "id"
|
|
@@ -2974,70 +2986,70 @@ const fa = () => ({
|
|
|
2974
2986
|
subPageProps: {
|
|
2975
2987
|
type: Object
|
|
2976
2988
|
}
|
|
2977
|
-
}),
|
|
2989
|
+
}), Pt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Kt = A({
|
|
2978
2990
|
inheritAttrs: !1,
|
|
2979
2991
|
props: {
|
|
2980
|
-
...
|
|
2981
|
-
...
|
|
2992
|
+
...xe,
|
|
2993
|
+
...va()
|
|
2982
2994
|
},
|
|
2983
2995
|
setup: (e, {
|
|
2984
2996
|
slots: t,
|
|
2985
2997
|
expose: n
|
|
2986
2998
|
}) => {
|
|
2987
|
-
const o =
|
|
2999
|
+
const o = Be(), {
|
|
2988
3000
|
route: r
|
|
2989
3001
|
} = Me(), {
|
|
2990
3002
|
elementMap: a,
|
|
2991
3003
|
state: u,
|
|
2992
3004
|
sendEvent: l,
|
|
2993
3005
|
sendRequest: s
|
|
2994
|
-
} =
|
|
3006
|
+
} = Ie(), f = w(() => {
|
|
2995
3007
|
if (e.title)
|
|
2996
3008
|
return e.title;
|
|
2997
3009
|
if (e.useMenuName && o) {
|
|
2998
3010
|
const {
|
|
2999
|
-
menus:
|
|
3011
|
+
menus: I,
|
|
3000
3012
|
convertName: c
|
|
3001
3013
|
} = o, {
|
|
3002
|
-
target:
|
|
3003
|
-
} =
|
|
3004
|
-
return (
|
|
3014
|
+
target: g
|
|
3015
|
+
} = _e(I.value, (b) => b.value === c(r));
|
|
3016
|
+
return (g == null ? void 0 : g.label) || "";
|
|
3005
3017
|
}
|
|
3006
3018
|
return "";
|
|
3007
|
-
}),
|
|
3008
|
-
const
|
|
3009
|
-
const O = b
|
|
3019
|
+
}), y = w(() => et(e.columns, e.columnState, e.columnState2)), m = (I, c) => {
|
|
3020
|
+
const g = _(y.value, (b) => {
|
|
3021
|
+
const O = p(b, ["extra", I]) || p(b, I);
|
|
3010
3022
|
return c ? O !== !1 : O;
|
|
3011
3023
|
});
|
|
3012
|
-
return
|
|
3013
|
-
},
|
|
3024
|
+
return zt(g, (b) => p(b, ["extra", `${I}Sort`]) || p(b, `${I}Sort`));
|
|
3025
|
+
}, d = w(() => m("form", !0)), h = w(() => m("detail", !0)), x = w(() => m("table", !0)), P = w(() => m("search"));
|
|
3014
3026
|
let C;
|
|
3015
|
-
const T = (
|
|
3027
|
+
const T = (I) => {
|
|
3016
3028
|
s($.LIST, {
|
|
3017
3029
|
...C,
|
|
3018
|
-
...
|
|
3030
|
+
...I
|
|
3019
3031
|
});
|
|
3020
|
-
}, v = (
|
|
3032
|
+
}, v = (I) => {
|
|
3021
3033
|
l({
|
|
3022
|
-
type:
|
|
3023
|
-
payload: D(
|
|
3024
|
-
source:
|
|
3034
|
+
type: I.action,
|
|
3035
|
+
payload: D(I, "action", "source"),
|
|
3036
|
+
source: I.source
|
|
3025
3037
|
});
|
|
3026
3038
|
};
|
|
3027
|
-
|
|
3028
|
-
type:
|
|
3039
|
+
gt(({
|
|
3040
|
+
type: I,
|
|
3029
3041
|
payload: c,
|
|
3030
|
-
source:
|
|
3042
|
+
source: g
|
|
3031
3043
|
}) => {
|
|
3032
|
-
if (
|
|
3044
|
+
if (g)
|
|
3033
3045
|
return;
|
|
3034
|
-
let
|
|
3035
|
-
|
|
3046
|
+
let b = I, O = c == null ? void 0 : c.type;
|
|
3047
|
+
b === Re.Success && (b = p(c, ["requestOpts", "action"]), O = z.SUCCESS);
|
|
3036
3048
|
const {
|
|
3037
3049
|
values: V,
|
|
3038
3050
|
record: S
|
|
3039
3051
|
} = c;
|
|
3040
|
-
switch (
|
|
3052
|
+
switch (b) {
|
|
3041
3053
|
case $.LIST:
|
|
3042
3054
|
O === z.EMIT && (C = V, T());
|
|
3043
3055
|
return;
|
|
@@ -3051,47 +3063,47 @@ const fa = () => ({
|
|
|
3051
3063
|
O === z.EMIT ? s($.DELETE, S, e.rowKey) : O === z.SUCCESS && T();
|
|
3052
3064
|
return;
|
|
3053
3065
|
}
|
|
3054
|
-
|
|
3066
|
+
b && I === z.EXECUTE && s(b, V);
|
|
3055
3067
|
});
|
|
3056
|
-
const M = ue(e.operates, (
|
|
3057
|
-
...
|
|
3068
|
+
const M = ue(e.operates, (I, c) => ({
|
|
3069
|
+
...I,
|
|
3058
3070
|
[c.action]: c
|
|
3059
|
-
}), {}),
|
|
3060
|
-
return
|
|
3061
|
-
columns:
|
|
3062
|
-
getSignColumns:
|
|
3071
|
+
}), {}), k = (I) => p(M, I), N = w(() => e.defaultAddRecord), R = w(() => e.listProps), q = w(() => e.formProps), ee = w(() => e.descProps), B = w(() => e.modalProps), X = w(() => e.pageProps), ne = w(() => e.subPageProps);
|
|
3072
|
+
return ya({
|
|
3073
|
+
columns: y,
|
|
3074
|
+
getSignColumns: m,
|
|
3063
3075
|
elementMap: a,
|
|
3064
3076
|
formElementMap: e.formElementMap,
|
|
3065
3077
|
rowKey: e.rowKey,
|
|
3066
3078
|
curdState: u,
|
|
3067
|
-
formColumns:
|
|
3079
|
+
formColumns: d,
|
|
3068
3080
|
descColumns: h,
|
|
3069
|
-
tableColumns:
|
|
3081
|
+
tableColumns: x,
|
|
3070
3082
|
searchColumns: P,
|
|
3071
3083
|
sendCurdEvent: v,
|
|
3072
3084
|
operates: e.operates,
|
|
3073
|
-
getOperate:
|
|
3085
|
+
getOperate: k,
|
|
3074
3086
|
refreshList: T,
|
|
3075
|
-
defaultAddRecord:
|
|
3076
|
-
title:
|
|
3087
|
+
defaultAddRecord: N,
|
|
3088
|
+
title: f.value,
|
|
3077
3089
|
listProps: R,
|
|
3078
3090
|
formProps: q,
|
|
3079
|
-
descProps:
|
|
3080
|
-
modalProps:
|
|
3081
|
-
pageProps:
|
|
3091
|
+
descProps: ee,
|
|
3092
|
+
modalProps: B,
|
|
3093
|
+
pageProps: X,
|
|
3082
3094
|
subPageProps: ne
|
|
3083
3095
|
}), n({
|
|
3084
3096
|
sendCurdEvent: v,
|
|
3085
3097
|
refreshList: T
|
|
3086
3098
|
}), () => {
|
|
3087
|
-
var
|
|
3088
|
-
return (
|
|
3099
|
+
var I;
|
|
3100
|
+
return (I = t.default) == null ? void 0 : I.call(t);
|
|
3089
3101
|
};
|
|
3090
3102
|
}
|
|
3091
|
-
}),
|
|
3103
|
+
}), Qe = A({
|
|
3092
3104
|
props: {
|
|
3093
|
-
...D(
|
|
3094
|
-
...
|
|
3105
|
+
...D(ze.props, "state", "requests"),
|
|
3106
|
+
...Kt.props,
|
|
3095
3107
|
curdState: {
|
|
3096
3108
|
type: Object
|
|
3097
3109
|
}
|
|
@@ -3107,92 +3119,92 @@ const fa = () => ({
|
|
|
3107
3119
|
detailData: {}
|
|
3108
3120
|
}), s = {
|
|
3109
3121
|
[$.LIST]: {
|
|
3110
|
-
convertParams: (
|
|
3111
|
-
convertData: (
|
|
3122
|
+
convertParams: (d) => d,
|
|
3123
|
+
convertData: (d) => {
|
|
3112
3124
|
var h;
|
|
3113
|
-
return (h =
|
|
3125
|
+
return (h = d.res) == null ? void 0 : h.data;
|
|
3114
3126
|
},
|
|
3115
3127
|
loadingName: "listLoading",
|
|
3116
3128
|
stateName: "listData"
|
|
3117
3129
|
},
|
|
3118
3130
|
[$.DETAIL]: {
|
|
3119
|
-
convertParams: (
|
|
3120
|
-
convertData: (
|
|
3131
|
+
convertParams: (d, h) => J(d, h),
|
|
3132
|
+
convertData: (d) => {
|
|
3121
3133
|
var h;
|
|
3122
|
-
return (h =
|
|
3134
|
+
return (h = d.res) == null ? void 0 : h.data;
|
|
3123
3135
|
},
|
|
3124
3136
|
loadingName: "detailLoading",
|
|
3125
3137
|
stateName: "detailData",
|
|
3126
3138
|
label: "\u8BE6\u60C5"
|
|
3127
3139
|
},
|
|
3128
3140
|
[$.ADD]: {
|
|
3129
|
-
convertParams: (
|
|
3141
|
+
convertParams: (d, h) => ({
|
|
3130
3142
|
body: {
|
|
3131
3143
|
...h,
|
|
3132
|
-
...
|
|
3144
|
+
...d
|
|
3133
3145
|
}
|
|
3134
3146
|
}),
|
|
3135
3147
|
loadingName: "operateLoading",
|
|
3136
3148
|
label: "\u6DFB\u52A0"
|
|
3137
3149
|
},
|
|
3138
3150
|
[$.EDIT]: {
|
|
3139
|
-
convertParams: (
|
|
3151
|
+
convertParams: (d, h) => ({
|
|
3140
3152
|
body: {
|
|
3141
3153
|
...h,
|
|
3142
|
-
...
|
|
3154
|
+
...d
|
|
3143
3155
|
}
|
|
3144
3156
|
}),
|
|
3145
3157
|
loadingName: "operateLoading",
|
|
3146
3158
|
label: "\u7F16\u8F91"
|
|
3147
3159
|
},
|
|
3148
3160
|
[$.DELETE]: {
|
|
3149
|
-
convertParams: (
|
|
3161
|
+
convertParams: (d, h) => J(d, h),
|
|
3150
3162
|
label: "\u5220\u9664"
|
|
3151
3163
|
}
|
|
3152
|
-
},
|
|
3164
|
+
}, f = F(e.operates, (d) => {
|
|
3153
3165
|
var P;
|
|
3154
|
-
const h =
|
|
3166
|
+
const h = p(s, d.action), x = ((P = e.convertOperate) == null ? void 0 : P.call(e, d, h)) || d;
|
|
3155
3167
|
return {
|
|
3156
3168
|
...h,
|
|
3157
|
-
...
|
|
3169
|
+
...x
|
|
3158
3170
|
};
|
|
3159
|
-
}),
|
|
3171
|
+
}), y = _(f, (d) => d.actor), m = G(D(ze.props, "state", "requests"));
|
|
3160
3172
|
return n({
|
|
3161
|
-
sendCurdEvent: (
|
|
3173
|
+
sendCurdEvent: (d) => {
|
|
3162
3174
|
var h;
|
|
3163
|
-
(h = u.value) == null || h.sendCurdEvent(
|
|
3175
|
+
(h = u.value) == null || h.sendCurdEvent(d);
|
|
3164
3176
|
},
|
|
3165
|
-
refreshList: (
|
|
3177
|
+
refreshList: (d) => {
|
|
3166
3178
|
var h;
|
|
3167
|
-
(h = u.value) == null || h.refreshList(
|
|
3179
|
+
(h = u.value) == null || h.refreshList(d);
|
|
3168
3180
|
},
|
|
3169
|
-
sendEvent: (
|
|
3181
|
+
sendEvent: (d) => {
|
|
3170
3182
|
var h;
|
|
3171
|
-
(h = a.value) == null || h.sendEvent(
|
|
3183
|
+
(h = a.value) == null || h.sendEvent(d);
|
|
3172
3184
|
},
|
|
3173
|
-
sendRequest: (
|
|
3174
|
-
var
|
|
3175
|
-
(
|
|
3185
|
+
sendRequest: (d, ...h) => {
|
|
3186
|
+
var x;
|
|
3187
|
+
(x = a.value) == null || x.sendRequest(d, ...h);
|
|
3176
3188
|
}
|
|
3177
|
-
}), () => i(
|
|
3189
|
+
}), () => i(ze, L({
|
|
3178
3190
|
ref: a
|
|
3179
|
-
}, J(e,
|
|
3191
|
+
}, J(e, m), {
|
|
3180
3192
|
elementMap: e.elementMap || o,
|
|
3181
3193
|
state: l,
|
|
3182
|
-
requests:
|
|
3194
|
+
requests: y
|
|
3183
3195
|
}), {
|
|
3184
|
-
default: () => [i(
|
|
3196
|
+
default: () => [i(Kt, L({
|
|
3185
3197
|
ref: u
|
|
3186
|
-
}, D(e, ...
|
|
3198
|
+
}, D(e, ...m, "curdState", "operates", "convertOperate"), {
|
|
3187
3199
|
formElementMap: e.formElementMap || r,
|
|
3188
|
-
operates:
|
|
3200
|
+
operates: f
|
|
3189
3201
|
}), t)]
|
|
3190
3202
|
});
|
|
3191
3203
|
}
|
|
3192
|
-
}),
|
|
3204
|
+
}), Nn = () => {
|
|
3193
3205
|
const {
|
|
3194
3206
|
dispatch: e
|
|
3195
|
-
} =
|
|
3207
|
+
} = Ie(), {
|
|
3196
3208
|
curdState: t,
|
|
3197
3209
|
getOperate: n,
|
|
3198
3210
|
title: o
|
|
@@ -3228,47 +3240,47 @@ const fa = () => ({
|
|
|
3228
3240
|
operate: a,
|
|
3229
3241
|
opeTitle: u
|
|
3230
3242
|
};
|
|
3231
|
-
},
|
|
3243
|
+
}, ha = () => ({
|
|
3232
3244
|
defaultAddRecord: {
|
|
3233
3245
|
type: Object
|
|
3234
3246
|
}
|
|
3235
|
-
}),
|
|
3247
|
+
}), He = A({
|
|
3236
3248
|
props: {
|
|
3237
|
-
...
|
|
3249
|
+
...ha()
|
|
3238
3250
|
},
|
|
3239
3251
|
setup: (e) => {
|
|
3240
|
-
var
|
|
3252
|
+
var x;
|
|
3241
3253
|
const {
|
|
3242
3254
|
dispatch: t,
|
|
3243
3255
|
sendRequest: n
|
|
3244
|
-
} =
|
|
3256
|
+
} = Ie(), {
|
|
3245
3257
|
rowKey: o,
|
|
3246
3258
|
curdState: r,
|
|
3247
3259
|
listProps: a,
|
|
3248
3260
|
getOperate: u,
|
|
3249
3261
|
refreshList: l,
|
|
3250
3262
|
defaultAddRecord: s
|
|
3251
|
-
} = te(),
|
|
3263
|
+
} = te(), f = (x = a == null ? void 0 : a.value) == null ? void 0 : x.pageState, y = (P) => {
|
|
3252
3264
|
const C = u($.DETAIL);
|
|
3253
3265
|
C != null && C.actor ? n($.DETAIL, P, o) : t({
|
|
3254
3266
|
type: "detailData",
|
|
3255
|
-
payload:
|
|
3267
|
+
payload: _t(P)
|
|
3256
3268
|
});
|
|
3257
|
-
},
|
|
3269
|
+
}, m = (P, {
|
|
3258
3270
|
record: C
|
|
3259
3271
|
}) => {
|
|
3260
3272
|
P === z.EMIT && (t({
|
|
3261
3273
|
type: "mode",
|
|
3262
3274
|
payload: be.DETAIL
|
|
3263
|
-
}),
|
|
3264
|
-
},
|
|
3275
|
+
}), y(C));
|
|
3276
|
+
}, d = (P) => {
|
|
3265
3277
|
P === z.EMIT ? (t({
|
|
3266
3278
|
type: "mode",
|
|
3267
3279
|
payload: be.ADD
|
|
3268
3280
|
}), t({
|
|
3269
3281
|
type: "detailData",
|
|
3270
3282
|
payload: e.defaultAddRecord || (s == null ? void 0 : s.value) || {}
|
|
3271
|
-
})) : P === z.SUCCESS && (
|
|
3283
|
+
})) : P === z.SUCCESS && (f && (f.page = 1), l(), r.addAction === $e.CONTINUE ? t({
|
|
3272
3284
|
type: "detailData",
|
|
3273
3285
|
payload: e.defaultAddRecord || (s == null ? void 0 : s.value) || {}
|
|
3274
3286
|
}) : t({
|
|
@@ -3281,12 +3293,12 @@ const fa = () => ({
|
|
|
3281
3293
|
P === z.EMIT ? (t({
|
|
3282
3294
|
type: "mode",
|
|
3283
3295
|
payload: be.EDIT
|
|
3284
|
-
}),
|
|
3296
|
+
}), y(C)) : P === z.SUCCESS && (t({
|
|
3285
3297
|
type: "mode",
|
|
3286
3298
|
payload: void 0
|
|
3287
3299
|
}), l());
|
|
3288
3300
|
};
|
|
3289
|
-
return
|
|
3301
|
+
return gt(({
|
|
3290
3302
|
type: P,
|
|
3291
3303
|
payload: C,
|
|
3292
3304
|
source: T
|
|
@@ -3294,65 +3306,65 @@ const fa = () => ({
|
|
|
3294
3306
|
if (T)
|
|
3295
3307
|
return;
|
|
3296
3308
|
let v = P, M = C == null ? void 0 : C.type;
|
|
3297
|
-
const
|
|
3298
|
-
switch (v ===
|
|
3309
|
+
const k = C == null ? void 0 : C.record;
|
|
3310
|
+
switch (v === Re.Success && (v = p(C, ["requestOpts", "action"]), M = z.SUCCESS), v) {
|
|
3299
3311
|
case $.DETAIL:
|
|
3300
|
-
|
|
3301
|
-
record:
|
|
3312
|
+
m(M, {
|
|
3313
|
+
record: k
|
|
3302
3314
|
});
|
|
3303
3315
|
break;
|
|
3304
3316
|
case $.ADD:
|
|
3305
|
-
|
|
3317
|
+
d(M);
|
|
3306
3318
|
break;
|
|
3307
3319
|
case $.EDIT:
|
|
3308
3320
|
h(M, {
|
|
3309
|
-
record:
|
|
3321
|
+
record: k
|
|
3310
3322
|
});
|
|
3311
3323
|
break;
|
|
3312
3324
|
}
|
|
3313
3325
|
}), () => null;
|
|
3314
3326
|
}
|
|
3315
|
-
}),
|
|
3327
|
+
}), Io = A({
|
|
3316
3328
|
props: {
|
|
3317
|
-
...
|
|
3318
|
-
...
|
|
3329
|
+
...Qe.props,
|
|
3330
|
+
...He.props
|
|
3319
3331
|
},
|
|
3320
3332
|
setup: (e, {
|
|
3321
3333
|
slots: t,
|
|
3322
3334
|
expose: n
|
|
3323
3335
|
}) => {
|
|
3324
3336
|
const o = H();
|
|
3325
|
-
n(Ce(
|
|
3326
|
-
const r =
|
|
3337
|
+
n(Ce(Pt, o));
|
|
3338
|
+
const r = G(He.props), u = Q()(j.ProCurdKey);
|
|
3327
3339
|
return () => u ? i(u, L({
|
|
3328
3340
|
ref: o
|
|
3329
3341
|
}, D(e, r)), {
|
|
3330
3342
|
default: () => {
|
|
3331
3343
|
var l;
|
|
3332
|
-
return [i(
|
|
3344
|
+
return [i(He, J(e, r), null), (l = t.default) == null ? void 0 : l.call(t)];
|
|
3333
3345
|
}
|
|
3334
3346
|
}) : null;
|
|
3335
3347
|
}
|
|
3336
|
-
}),
|
|
3348
|
+
}), pa = () => ({
|
|
3337
3349
|
defaultAddRecord: {
|
|
3338
3350
|
type: Object
|
|
3339
3351
|
},
|
|
3340
3352
|
routeBack: {
|
|
3341
3353
|
type: Function
|
|
3342
3354
|
}
|
|
3343
|
-
}),
|
|
3355
|
+
}), ot = A({
|
|
3344
3356
|
props: {
|
|
3345
|
-
...
|
|
3357
|
+
...pa()
|
|
3346
3358
|
},
|
|
3347
3359
|
setup: (e) => {
|
|
3348
|
-
const t =
|
|
3360
|
+
const t = an(), n = yt(), {
|
|
3349
3361
|
dispatch: o,
|
|
3350
3362
|
sendRequest: r
|
|
3351
|
-
} =
|
|
3363
|
+
} = Ie(), {
|
|
3352
3364
|
rowKey: a,
|
|
3353
3365
|
curdState: u
|
|
3354
|
-
} = te(), l = (
|
|
3355
|
-
|
|
3366
|
+
} = te(), l = (m) => {
|
|
3367
|
+
m === z.PAGE && (o({
|
|
3356
3368
|
type: "mode",
|
|
3357
3369
|
payload: void 0
|
|
3358
3370
|
}), o({
|
|
@@ -3365,50 +3377,50 @@ const fa = () => ({
|
|
|
3365
3377
|
type: "addAction",
|
|
3366
3378
|
payload: void 0
|
|
3367
3379
|
}));
|
|
3368
|
-
}, s = (
|
|
3369
|
-
record:
|
|
3380
|
+
}, s = (m, {
|
|
3381
|
+
record: d
|
|
3370
3382
|
}) => {
|
|
3371
|
-
|
|
3383
|
+
m === z.EMIT ? t.push({
|
|
3372
3384
|
path: `${n.path}/detail`,
|
|
3373
|
-
query: J(
|
|
3374
|
-
}) :
|
|
3385
|
+
query: J(d, a)
|
|
3386
|
+
}) : m === z.PAGE && (o({
|
|
3375
3387
|
type: "mode",
|
|
3376
3388
|
payload: be.DETAIL
|
|
3377
3389
|
}), r($.DETAIL, n.query, a));
|
|
3378
|
-
},
|
|
3379
|
-
|
|
3390
|
+
}, f = (m) => {
|
|
3391
|
+
m === z.EMIT ? t.push({
|
|
3380
3392
|
path: `${n.path}/add`
|
|
3381
|
-
}) :
|
|
3393
|
+
}) : m === z.PAGE ? (o({
|
|
3382
3394
|
type: "mode",
|
|
3383
3395
|
payload: be.ADD
|
|
3384
3396
|
}), o({
|
|
3385
3397
|
type: "detailData",
|
|
3386
3398
|
payload: e.defaultAddRecord || {}
|
|
3387
|
-
})) :
|
|
3399
|
+
})) : m === z.SUCCESS && (u.addAction === $e.CONTINUE ? o({
|
|
3388
3400
|
type: "detailData",
|
|
3389
3401
|
payload: e.defaultAddRecord || {}
|
|
3390
3402
|
}) : e.routeBack ? e.routeBack($.ADD) : t.go(-1));
|
|
3391
|
-
},
|
|
3392
|
-
record:
|
|
3403
|
+
}, y = (m, {
|
|
3404
|
+
record: d
|
|
3393
3405
|
}) => {
|
|
3394
|
-
|
|
3406
|
+
m === z.EMIT ? t.push({
|
|
3395
3407
|
path: `${n.path}/edit`,
|
|
3396
|
-
query: J(
|
|
3397
|
-
}) :
|
|
3408
|
+
query: J(d, a)
|
|
3409
|
+
}) : m === z.PAGE ? (o({
|
|
3398
3410
|
type: "mode",
|
|
3399
3411
|
payload: be.EDIT
|
|
3400
|
-
}), r($.DETAIL, n.query, a)) :
|
|
3412
|
+
}), r($.DETAIL, n.query, a)) : m === z.SUCCESS && (e.routeBack ? e.routeBack($.EDIT) : t.go(-1));
|
|
3401
3413
|
};
|
|
3402
|
-
return
|
|
3403
|
-
type:
|
|
3404
|
-
payload:
|
|
3414
|
+
return gt(({
|
|
3415
|
+
type: m,
|
|
3416
|
+
payload: d,
|
|
3405
3417
|
source: h
|
|
3406
3418
|
}) => {
|
|
3407
3419
|
if (h)
|
|
3408
3420
|
return;
|
|
3409
|
-
let
|
|
3410
|
-
const C =
|
|
3411
|
-
switch (
|
|
3421
|
+
let x = m, P = d == null ? void 0 : d.type;
|
|
3422
|
+
const C = d == null ? void 0 : d.record;
|
|
3423
|
+
switch (x === Re.Success && (x = p(d, ["requestOpts", "action"]), P = z.SUCCESS), x) {
|
|
3412
3424
|
case $.LIST:
|
|
3413
3425
|
l(P);
|
|
3414
3426
|
break;
|
|
@@ -3418,45 +3430,45 @@ const fa = () => ({
|
|
|
3418
3430
|
});
|
|
3419
3431
|
break;
|
|
3420
3432
|
case $.ADD:
|
|
3421
|
-
|
|
3433
|
+
f(P);
|
|
3422
3434
|
break;
|
|
3423
3435
|
case $.EDIT:
|
|
3424
|
-
|
|
3436
|
+
y(P, {
|
|
3425
3437
|
record: C
|
|
3426
3438
|
});
|
|
3427
3439
|
break;
|
|
3428
3440
|
}
|
|
3429
3441
|
}), () => null;
|
|
3430
3442
|
}
|
|
3431
|
-
}),
|
|
3443
|
+
}), xo = A({
|
|
3432
3444
|
props: {
|
|
3433
|
-
...
|
|
3434
|
-
...
|
|
3445
|
+
...Qe.props,
|
|
3446
|
+
...ot.props
|
|
3435
3447
|
},
|
|
3436
3448
|
setup: (e, {
|
|
3437
3449
|
slots: t,
|
|
3438
3450
|
expose: n
|
|
3439
3451
|
}) => {
|
|
3440
3452
|
const o = H();
|
|
3441
|
-
n(Ce(
|
|
3442
|
-
const r =
|
|
3443
|
-
return () => i(
|
|
3453
|
+
n(Ce(Pt, o));
|
|
3454
|
+
const r = G(ot.props);
|
|
3455
|
+
return () => i(Qe, L({
|
|
3444
3456
|
ref: o
|
|
3445
3457
|
}, D(e, r)), {
|
|
3446
3458
|
default: () => {
|
|
3447
3459
|
var a;
|
|
3448
|
-
return [i(
|
|
3460
|
+
return [i(ot, J(e, r), null), (a = t.default) == null ? void 0 : a.call(t)];
|
|
3449
3461
|
}
|
|
3450
3462
|
});
|
|
3451
3463
|
}
|
|
3452
|
-
}),
|
|
3464
|
+
}), Lt = A({
|
|
3453
3465
|
props: {
|
|
3454
3466
|
buttonProps: Object
|
|
3455
3467
|
},
|
|
3456
3468
|
setup: (e, {
|
|
3457
3469
|
slots: t
|
|
3458
3470
|
}) => {
|
|
3459
|
-
const n =
|
|
3471
|
+
const n = bn(), {
|
|
3460
3472
|
getOperate: o,
|
|
3461
3473
|
sendCurdEvent: r
|
|
3462
3474
|
} = te(), a = o($.ADD), u = () => {
|
|
@@ -3468,17 +3480,17 @@ const fa = () => ({
|
|
|
3468
3480
|
action: $.ADD,
|
|
3469
3481
|
type: z.EMIT
|
|
3470
3482
|
});
|
|
3471
|
-
}, s =
|
|
3472
|
-
return () => !a || !n(a.per, a.perSuffix) || !(
|
|
3483
|
+
}, s = Q()(j.ButtonKey);
|
|
3484
|
+
return () => !a || !n(a.per, a.perSuffix) || !(W(a.show) ? a.show({}) : a.show) ? null : a.element ? a.element({}, a) : t.default ? t.default(a, u) : s ? i(s, L({
|
|
3473
3485
|
class: "pro-curd-add-button",
|
|
3474
|
-
disabled:
|
|
3486
|
+
disabled: W(a.disabled) ? a.disabled() : a.disabled
|
|
3475
3487
|
}, e.buttonProps, {
|
|
3476
3488
|
onClick: u
|
|
3477
3489
|
}), {
|
|
3478
3490
|
default: () => [a.label]
|
|
3479
3491
|
}) : null;
|
|
3480
3492
|
}
|
|
3481
|
-
}),
|
|
3493
|
+
}), Rt = () => ({
|
|
3482
3494
|
addConfig: {
|
|
3483
3495
|
type: Object,
|
|
3484
3496
|
default: {
|
|
@@ -3489,10 +3501,10 @@ const fa = () => ({
|
|
|
3489
3501
|
type: Boolean,
|
|
3490
3502
|
default: !0
|
|
3491
3503
|
}
|
|
3492
|
-
}),
|
|
3504
|
+
}), An = A({
|
|
3493
3505
|
props: {
|
|
3494
|
-
...
|
|
3495
|
-
...
|
|
3506
|
+
...Xr.props,
|
|
3507
|
+
...Rt()
|
|
3496
3508
|
},
|
|
3497
3509
|
setup: (e, {
|
|
3498
3510
|
slots: t
|
|
@@ -3505,41 +3517,41 @@ const fa = () => ({
|
|
|
3505
3517
|
tableColumns: u,
|
|
3506
3518
|
sendCurdEvent: l,
|
|
3507
3519
|
operates: s,
|
|
3508
|
-
refreshList:
|
|
3509
|
-
} = te(),
|
|
3510
|
-
|
|
3511
|
-
const
|
|
3512
|
-
return
|
|
3520
|
+
refreshList: f
|
|
3521
|
+
} = te(), y = F(
|
|
3522
|
+
_(s, (M) => {
|
|
3523
|
+
const k = M.action;
|
|
3524
|
+
return k === $.DETAIL || k === $.EDIT || k === $.DELETE || M.tableOperate;
|
|
3513
3525
|
}),
|
|
3514
3526
|
(M) => {
|
|
3515
|
-
const
|
|
3527
|
+
const k = {
|
|
3516
3528
|
...D(M, "action", "actor", "convertParams", "element"),
|
|
3517
3529
|
value: M.action
|
|
3518
3530
|
};
|
|
3519
|
-
return
|
|
3531
|
+
return k.onClick || (k.onClick = (N) => {
|
|
3520
3532
|
l({
|
|
3521
3533
|
action: M.action,
|
|
3522
3534
|
type: z.EMIT,
|
|
3523
|
-
record:
|
|
3535
|
+
record: N
|
|
3524
3536
|
});
|
|
3525
|
-
}),
|
|
3537
|
+
}), k;
|
|
3526
3538
|
}
|
|
3527
|
-
),
|
|
3539
|
+
), m = (M) => {
|
|
3528
3540
|
l({
|
|
3529
3541
|
action: $.LIST,
|
|
3530
3542
|
type: z.EMIT,
|
|
3531
3543
|
values: M
|
|
3532
3544
|
});
|
|
3533
3545
|
};
|
|
3534
|
-
|
|
3535
|
-
e.activatedRefresh &&
|
|
3546
|
+
ur(() => {
|
|
3547
|
+
e.activatedRefresh && f();
|
|
3536
3548
|
});
|
|
3537
|
-
const
|
|
3549
|
+
const d = w(() => ({
|
|
3538
3550
|
formElementMap: o,
|
|
3539
3551
|
columns: a.value,
|
|
3540
3552
|
...e.searchProps
|
|
3541
3553
|
})), h = w(() => {
|
|
3542
|
-
var M,
|
|
3554
|
+
var M, k;
|
|
3543
3555
|
return {
|
|
3544
3556
|
elementMap: n,
|
|
3545
3557
|
columns: u.value,
|
|
@@ -3547,11 +3559,11 @@ const fa = () => ({
|
|
|
3547
3559
|
dataSource: (M = r.listData) == null ? void 0 : M.dataSource,
|
|
3548
3560
|
...D(e.tableProps, "operate"),
|
|
3549
3561
|
operate: {
|
|
3550
|
-
items:
|
|
3551
|
-
...(
|
|
3562
|
+
items: y,
|
|
3563
|
+
...(k = e.tableProps) == null ? void 0 : k.operate
|
|
3552
3564
|
}
|
|
3553
3565
|
};
|
|
3554
|
-
}),
|
|
3566
|
+
}), x = w(() => {
|
|
3555
3567
|
var M;
|
|
3556
3568
|
return e.paginationProps === !1 ? !1 : {
|
|
3557
3569
|
total: (M = r.listData) == null ? void 0 : M.total,
|
|
@@ -3560,45 +3572,45 @@ const fa = () => ({
|
|
|
3560
3572
|
}), P = w(() => {
|
|
3561
3573
|
var M;
|
|
3562
3574
|
return e.paginationProps === !1 ? !1 : !!((M = r.listData) != null && M.total);
|
|
3563
|
-
}), C =
|
|
3575
|
+
}), C = G(Rt()), v = Q()(j.ProListKey);
|
|
3564
3576
|
return () => {
|
|
3565
|
-
var
|
|
3577
|
+
var k, N;
|
|
3566
3578
|
if (!v)
|
|
3567
3579
|
return null;
|
|
3568
3580
|
const M = ["pro-curd-list"];
|
|
3569
3581
|
return P.value && M.push("has-pagination"), i(v, L({
|
|
3570
3582
|
class: M
|
|
3571
3583
|
}, D(e, ...C, "searchProps", "tableProps", "paginationProps"), {
|
|
3572
|
-
searchProps:
|
|
3584
|
+
searchProps: d.value,
|
|
3573
3585
|
tableProps: h.value,
|
|
3574
|
-
paginationProps:
|
|
3575
|
-
onSearch:
|
|
3586
|
+
paginationProps: x.value,
|
|
3587
|
+
onSearch: m
|
|
3576
3588
|
}), {
|
|
3577
|
-
"search-end": (
|
|
3589
|
+
"search-end": (k = e.addConfig) != null && k.inSearch ? () => {
|
|
3578
3590
|
var R;
|
|
3579
3591
|
return i("div", {
|
|
3580
3592
|
class: "pro-curd-list-search-end"
|
|
3581
|
-
}, [i(
|
|
3593
|
+
}, [i(Lt, (R = e.addConfig) == null ? void 0 : R.buttonProps, null)]);
|
|
3582
3594
|
} : void 0,
|
|
3583
|
-
"table-toolbarExtra": (
|
|
3595
|
+
"table-toolbarExtra": (N = e.addConfig) != null && N.inTable ? (R) => {
|
|
3584
3596
|
var q;
|
|
3585
|
-
return i(se, null, [i(
|
|
3597
|
+
return i(se, null, [i(Lt, (q = e.addConfig) == null ? void 0 : q.buttonProps, null), R]);
|
|
3586
3598
|
} : void 0,
|
|
3587
3599
|
...t,
|
|
3588
|
-
search: t.search ? (R) => t.search(R,
|
|
3600
|
+
search: t.search ? (R) => t.search(R, d.value) : void 0,
|
|
3589
3601
|
table: t.table ? (R) => t.table(R, h.value) : void 0,
|
|
3590
|
-
pagination: t.pagination ? (R) => t.pagination(R,
|
|
3602
|
+
pagination: t.pagination ? (R) => t.pagination(R, x.value) : void 0
|
|
3591
3603
|
});
|
|
3592
3604
|
};
|
|
3593
3605
|
}
|
|
3594
|
-
}),
|
|
3606
|
+
}), ga = A(() => {
|
|
3595
3607
|
const {
|
|
3596
3608
|
listProps: e
|
|
3597
3609
|
} = te();
|
|
3598
|
-
return () => i(
|
|
3599
|
-
}),
|
|
3610
|
+
return () => i(An, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3611
|
+
}), ba = A({
|
|
3600
3612
|
props: {
|
|
3601
|
-
...
|
|
3613
|
+
...Cn.props,
|
|
3602
3614
|
as: {
|
|
3603
3615
|
type: String,
|
|
3604
3616
|
default: "div"
|
|
@@ -3609,31 +3621,31 @@ const fa = () => ({
|
|
|
3609
3621
|
}) => {
|
|
3610
3622
|
const {
|
|
3611
3623
|
listProps: n
|
|
3612
|
-
} = te(), r =
|
|
3624
|
+
} = te(), r = Q()(j.ProPageKey);
|
|
3613
3625
|
return () => i(r, L({
|
|
3614
3626
|
class: "curd-list has-footer"
|
|
3615
3627
|
}, e), {
|
|
3616
|
-
default: () => [i(
|
|
3628
|
+
default: () => [i(An, D(n.value, "slots"), {
|
|
3617
3629
|
divide2: () => i("div", {
|
|
3618
3630
|
class: "curd-list-grow"
|
|
3619
3631
|
}, null),
|
|
3620
|
-
...
|
|
3632
|
+
...p(n == null ? void 0 : n.value, "slots")
|
|
3621
3633
|
})],
|
|
3622
3634
|
...t
|
|
3623
3635
|
});
|
|
3624
3636
|
}
|
|
3625
|
-
}),
|
|
3637
|
+
}), Sa = A(() => {
|
|
3626
3638
|
const {
|
|
3627
3639
|
pageProps: e
|
|
3628
3640
|
} = te();
|
|
3629
|
-
return () => i(
|
|
3630
|
-
}),
|
|
3641
|
+
return () => i(ba, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3642
|
+
}), Pa = () => ({
|
|
3631
3643
|
signName: {
|
|
3632
3644
|
type: String
|
|
3633
3645
|
}
|
|
3634
|
-
}),
|
|
3646
|
+
}), nt = A({
|
|
3635
3647
|
props: {
|
|
3636
|
-
...
|
|
3648
|
+
...Pa()
|
|
3637
3649
|
},
|
|
3638
3650
|
setup: (e, {
|
|
3639
3651
|
slots: t,
|
|
@@ -3646,16 +3658,16 @@ const fa = () => ({
|
|
|
3646
3658
|
curdState: u,
|
|
3647
3659
|
formColumns: l,
|
|
3648
3660
|
getSignColumns: s,
|
|
3649
|
-
sendCurdEvent:
|
|
3650
|
-
} = te(),
|
|
3651
|
-
n(Ce(e.formMethods || [],
|
|
3652
|
-
const
|
|
3661
|
+
sendCurdEvent: f
|
|
3662
|
+
} = te(), y = H();
|
|
3663
|
+
n(Ce(e.formMethods || [], y));
|
|
3664
|
+
const m = w(() => e.signName ? s(e.signName) : l.value), d = () => {
|
|
3653
3665
|
var v;
|
|
3654
|
-
u.addAction =
|
|
3666
|
+
u.addAction = $e.NORMAL, (v = y.value) == null || v.submit();
|
|
3655
3667
|
}, h = () => {
|
|
3656
3668
|
var v;
|
|
3657
|
-
u.addAction =
|
|
3658
|
-
},
|
|
3669
|
+
u.addAction = $e.CONTINUE, (v = y.value) == null || v.submit();
|
|
3670
|
+
}, x = [
|
|
3659
3671
|
{
|
|
3660
3672
|
value: le.RESET,
|
|
3661
3673
|
label: "\u91CD\u7F6E"
|
|
@@ -3676,47 +3688,47 @@ const fa = () => ({
|
|
|
3676
3688
|
show: !1
|
|
3677
3689
|
}
|
|
3678
3690
|
], P = (v) => {
|
|
3679
|
-
o.onFinish || (u.mode === $.EDIT ?
|
|
3691
|
+
o.onFinish || (u.mode === $.EDIT ? f({
|
|
3680
3692
|
action: $.EDIT,
|
|
3681
3693
|
type: z.EXECUTE,
|
|
3682
3694
|
values: v
|
|
3683
|
-
}) :
|
|
3695
|
+
}) : f({
|
|
3684
3696
|
action: $.ADD,
|
|
3685
3697
|
type: z.EXECUTE,
|
|
3686
3698
|
values: v
|
|
3687
3699
|
}));
|
|
3688
|
-
}, T =
|
|
3700
|
+
}, T = Q()(j.ProFormKey);
|
|
3689
3701
|
return () => T ? i(T, L({
|
|
3690
|
-
ref:
|
|
3702
|
+
ref: y,
|
|
3691
3703
|
class: "pro-curd-form"
|
|
3692
3704
|
}, D(e, "operate"), {
|
|
3693
3705
|
elementMap: e.elementMap || r,
|
|
3694
3706
|
formElementMap: e.formElementMap || a,
|
|
3695
|
-
columns: e.columns ||
|
|
3707
|
+
columns: e.columns || m.value,
|
|
3696
3708
|
readonly: u.mode === $.DETAIL,
|
|
3697
3709
|
model: e.model || u.detailData,
|
|
3698
3710
|
hideRequiredMark: u.mode === $.DETAIL,
|
|
3699
3711
|
operate: e.operate ? {
|
|
3700
|
-
items:
|
|
3701
|
-
onSubmit:
|
|
3712
|
+
items: x,
|
|
3713
|
+
onSubmit: d,
|
|
3702
3714
|
onContinue: h,
|
|
3703
3715
|
...e.operate
|
|
3704
3716
|
} : void 0,
|
|
3705
3717
|
onFinish: P
|
|
3706
3718
|
}), t) : null;
|
|
3707
3719
|
}
|
|
3708
|
-
}),
|
|
3720
|
+
}), Eo = A(() => {
|
|
3709
3721
|
const {
|
|
3710
3722
|
formProps: e
|
|
3711
3723
|
} = te();
|
|
3712
|
-
return () => i(
|
|
3713
|
-
}),
|
|
3724
|
+
return () => i(nt, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3725
|
+
}), Ca = () => ({
|
|
3714
3726
|
signName: {
|
|
3715
3727
|
type: String
|
|
3716
3728
|
}
|
|
3717
|
-
}),
|
|
3729
|
+
}), Ma = A({
|
|
3718
3730
|
props: {
|
|
3719
|
-
...
|
|
3731
|
+
...Ca()
|
|
3720
3732
|
},
|
|
3721
3733
|
setup: (e, {
|
|
3722
3734
|
slots: t
|
|
@@ -3726,19 +3738,19 @@ const fa = () => ({
|
|
|
3726
3738
|
descColumns: o,
|
|
3727
3739
|
getSignColumns: r
|
|
3728
3740
|
} = te(), a = w(() => e.signName ? r(e.signName) : o.value);
|
|
3729
|
-
return () => i(
|
|
3741
|
+
return () => i(Yr, L(D(e, "signName", "model", "columns"), {
|
|
3730
3742
|
model: e.model || n.detailData,
|
|
3731
3743
|
columns: a.value
|
|
3732
3744
|
}), t);
|
|
3733
3745
|
}
|
|
3734
|
-
}),
|
|
3746
|
+
}), wo = A(() => {
|
|
3735
3747
|
const {
|
|
3736
3748
|
descProps: e
|
|
3737
3749
|
} = te();
|
|
3738
|
-
return () => i(
|
|
3750
|
+
return () => i(Ma, L({
|
|
3739
3751
|
class: "pro-curd-desc"
|
|
3740
|
-
}, D(e == null ? void 0 : e.value, "slots")),
|
|
3741
|
-
}),
|
|
3752
|
+
}, D(e == null ? void 0 : e.value, "slots")), p(e == null ? void 0 : e.value, "slots"));
|
|
3753
|
+
}), Ft = () => ({
|
|
3742
3754
|
validMode: {
|
|
3743
3755
|
type: Array,
|
|
3744
3756
|
default: [$.ADD, $.DETAIL, $.EDIT]
|
|
@@ -3749,9 +3761,9 @@ const fa = () => ({
|
|
|
3749
3761
|
overrideProps: {
|
|
3750
3762
|
type: Object
|
|
3751
3763
|
}
|
|
3752
|
-
}),
|
|
3764
|
+
}), Dn = A({
|
|
3753
3765
|
props: {
|
|
3754
|
-
...
|
|
3766
|
+
...Ft()
|
|
3755
3767
|
},
|
|
3756
3768
|
setup: (e, {
|
|
3757
3769
|
slots: t
|
|
@@ -3761,27 +3773,27 @@ const fa = () => ({
|
|
|
3761
3773
|
} = te(), {
|
|
3762
3774
|
clearMode: o,
|
|
3763
3775
|
opeTitle: r
|
|
3764
|
-
} =
|
|
3765
|
-
|
|
3766
|
-
}, s =
|
|
3776
|
+
} = Nn(), a = w(() => e.title || r.value), u = w(() => !!Pe(e.validMode, (d) => d === n.mode)), l = (d) => {
|
|
3777
|
+
d || o();
|
|
3778
|
+
}, s = G(Ft()), f = Q(), y = f(j.ModalKey), m = f(j.LoadingKey);
|
|
3767
3779
|
return () => {
|
|
3768
3780
|
if (!u.value)
|
|
3769
3781
|
return null;
|
|
3770
|
-
const
|
|
3771
|
-
return i(
|
|
3782
|
+
const d = n.mode;
|
|
3783
|
+
return i(y, L({
|
|
3772
3784
|
class: "pro-curd-modal"
|
|
3773
3785
|
}, D(e, s), {
|
|
3774
3786
|
visible: !0,
|
|
3775
3787
|
title: a.value,
|
|
3776
3788
|
confirmLoading: n.operateLoading,
|
|
3777
|
-
maskClosable:
|
|
3778
|
-
footer: n.detailLoading ||
|
|
3789
|
+
maskClosable: d === $.DETAIL,
|
|
3790
|
+
footer: n.detailLoading || d === $.DETAIL ? !1 : void 0
|
|
3779
3791
|
}, e.overrideProps, {
|
|
3780
3792
|
"onUpdate:modelValue": l
|
|
3781
3793
|
}), {
|
|
3782
3794
|
default: () => {
|
|
3783
3795
|
var h;
|
|
3784
|
-
return [n.detailLoading &&
|
|
3796
|
+
return [n.detailLoading && m ? i(m, L({
|
|
3785
3797
|
loading: !0
|
|
3786
3798
|
}, e.loadingOpts), {
|
|
3787
3799
|
default: () => [i("div", {
|
|
@@ -3793,7 +3805,7 @@ const fa = () => ({
|
|
|
3793
3805
|
});
|
|
3794
3806
|
};
|
|
3795
3807
|
}
|
|
3796
|
-
}),
|
|
3808
|
+
}), To = A({
|
|
3797
3809
|
props: {
|
|
3798
3810
|
modalProps: Object,
|
|
3799
3811
|
formProps: Object
|
|
@@ -3802,35 +3814,35 @@ const fa = () => ({
|
|
|
3802
3814
|
slots: t
|
|
3803
3815
|
}) => {
|
|
3804
3816
|
const n = H(), o = ye(t, "modal"), r = ye(t, "form");
|
|
3805
|
-
return () => i(
|
|
3817
|
+
return () => i(Dn, L(e.modalProps, {
|
|
3806
3818
|
onOk: () => {
|
|
3807
3819
|
var a;
|
|
3808
3820
|
(a = n.value) == null || a.submit();
|
|
3809
3821
|
}
|
|
3810
3822
|
}), {
|
|
3811
|
-
default: () => [i(
|
|
3823
|
+
default: () => [i(nt, L({
|
|
3812
3824
|
ref: n
|
|
3813
3825
|
}, e.formProps), r)],
|
|
3814
3826
|
...o
|
|
3815
3827
|
});
|
|
3816
3828
|
}
|
|
3817
|
-
}),
|
|
3829
|
+
}), Ia = A(() => {
|
|
3818
3830
|
const {
|
|
3819
3831
|
modalProps: e,
|
|
3820
3832
|
formProps: t
|
|
3821
3833
|
} = te(), n = H();
|
|
3822
|
-
return () => i(
|
|
3834
|
+
return () => i(Dn, L(D(e == null ? void 0 : e.value, "slots"), {
|
|
3823
3835
|
onOk: () => {
|
|
3824
3836
|
var o;
|
|
3825
3837
|
(o = n.value) == null || o.submit();
|
|
3826
3838
|
}
|
|
3827
3839
|
}), {
|
|
3828
|
-
default: () => [i(
|
|
3840
|
+
default: () => [i(nt, L({
|
|
3829
3841
|
ref: n
|
|
3830
|
-
}, D(t == null ? void 0 : t.value, "slots")),
|
|
3831
|
-
...
|
|
3842
|
+
}, D(t == null ? void 0 : t.value, "slots")), p(t == null ? void 0 : t.value, "slots"))],
|
|
3843
|
+
...p(e == null ? void 0 : e.value, "slots")
|
|
3832
3844
|
});
|
|
3833
|
-
}),
|
|
3845
|
+
}), $t = () => ({
|
|
3834
3846
|
validMode: {
|
|
3835
3847
|
type: Array,
|
|
3836
3848
|
default: [$.ADD, $.DETAIL, $.EDIT]
|
|
@@ -3846,9 +3858,9 @@ const fa = () => ({
|
|
|
3846
3858
|
type: String,
|
|
3847
3859
|
default: "\u786E\u8BA4"
|
|
3848
3860
|
}
|
|
3849
|
-
}),
|
|
3861
|
+
}), jt = A({
|
|
3850
3862
|
props: {
|
|
3851
|
-
...
|
|
3863
|
+
...Cn.props,
|
|
3852
3864
|
sub: {
|
|
3853
3865
|
type: Boolean,
|
|
3854
3866
|
default: !0
|
|
@@ -3857,7 +3869,7 @@ const fa = () => ({
|
|
|
3857
3869
|
type: Boolean,
|
|
3858
3870
|
default: !0
|
|
3859
3871
|
},
|
|
3860
|
-
|
|
3872
|
+
...$t()
|
|
3861
3873
|
},
|
|
3862
3874
|
setup: (e, {
|
|
3863
3875
|
emit: t,
|
|
@@ -3868,14 +3880,14 @@ const fa = () => ({
|
|
|
3868
3880
|
} = te(), {
|
|
3869
3881
|
clearMode: r,
|
|
3870
3882
|
opeTitle: a
|
|
3871
|
-
} =
|
|
3883
|
+
} = Nn(), u = w(() => e.title || a.value), l = w(() => !!Pe(e.validMode, (h) => h === o.mode)), s = () => {
|
|
3872
3884
|
t("ok");
|
|
3873
|
-
},
|
|
3874
|
-
var
|
|
3885
|
+
}, f = w(() => {
|
|
3886
|
+
var x;
|
|
3875
3887
|
if (o.mode === $.DETAIL)
|
|
3876
3888
|
return [];
|
|
3877
|
-
const h = (
|
|
3878
|
-
return
|
|
3889
|
+
const h = (x = e.operate) == null ? void 0 : x.items;
|
|
3890
|
+
return Y(h) > 0 ? h : [{
|
|
3879
3891
|
value: "cancel",
|
|
3880
3892
|
label: e.cancelText,
|
|
3881
3893
|
onClick: r
|
|
@@ -3888,22 +3900,22 @@ const fa = () => ({
|
|
|
3888
3900
|
loading: o.operateLoading,
|
|
3889
3901
|
onClick: s
|
|
3890
3902
|
}];
|
|
3891
|
-
}),
|
|
3892
|
-
return () => l.value ? i(
|
|
3903
|
+
}), m = Q()(j.ProPageKey), d = G($t());
|
|
3904
|
+
return () => l.value ? i(m, L({
|
|
3893
3905
|
class: "curd"
|
|
3894
|
-
}, D(e,
|
|
3906
|
+
}, D(e, d), {
|
|
3895
3907
|
title: u.value,
|
|
3896
3908
|
onBackClick: e.onBackClick || r
|
|
3897
3909
|
}), {
|
|
3898
|
-
footer: () => o.mode === $.DETAIL ? null : i(
|
|
3899
|
-
items:
|
|
3910
|
+
footer: () => o.mode === $.DETAIL ? null : i(pt, L(e.operate, {
|
|
3911
|
+
items: f.value
|
|
3900
3912
|
}), null),
|
|
3901
3913
|
...n
|
|
3902
3914
|
}) : null;
|
|
3903
3915
|
}
|
|
3904
|
-
}),
|
|
3916
|
+
}), xa = A({
|
|
3905
3917
|
props: {
|
|
3906
|
-
...
|
|
3918
|
+
...jt.props
|
|
3907
3919
|
},
|
|
3908
3920
|
setup: (e, {
|
|
3909
3921
|
slots: t
|
|
@@ -3914,24 +3926,24 @@ const fa = () => ({
|
|
|
3914
3926
|
var a;
|
|
3915
3927
|
(a = o.value) == null || a.submit();
|
|
3916
3928
|
};
|
|
3917
|
-
return () => i(
|
|
3929
|
+
return () => i(jt, L(e, {
|
|
3918
3930
|
onOk: r
|
|
3919
3931
|
}), {
|
|
3920
3932
|
default: () => {
|
|
3921
3933
|
var a, u;
|
|
3922
|
-
return [(a = t.start) == null ? void 0 : a.call(t), i(
|
|
3934
|
+
return [(a = t.start) == null ? void 0 : a.call(t), i(nt, L({
|
|
3923
3935
|
ref: o
|
|
3924
|
-
}, D(n == null ? void 0 : n.value, "slots")),
|
|
3936
|
+
}, D(n == null ? void 0 : n.value, "slots")), p(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
|
|
3925
3937
|
},
|
|
3926
3938
|
...D(t, "start")
|
|
3927
3939
|
});
|
|
3928
3940
|
}
|
|
3929
|
-
}),
|
|
3941
|
+
}), Ea = A(() => {
|
|
3930
3942
|
const {
|
|
3931
3943
|
subPageProps: e
|
|
3932
3944
|
} = te();
|
|
3933
|
-
return () => i(
|
|
3934
|
-
}),
|
|
3945
|
+
return () => i(xa, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3946
|
+
}), Bt = () => ({
|
|
3935
3947
|
listType: {
|
|
3936
3948
|
type: String,
|
|
3937
3949
|
default: "page"
|
|
@@ -3939,59 +3951,59 @@ const fa = () => ({
|
|
|
3939
3951
|
modalType: {
|
|
3940
3952
|
type: String
|
|
3941
3953
|
}
|
|
3942
|
-
}),
|
|
3954
|
+
}), ko = A({
|
|
3943
3955
|
props: {
|
|
3944
|
-
...
|
|
3945
|
-
|
|
3956
|
+
...Qe.props,
|
|
3957
|
+
...Bt()
|
|
3946
3958
|
},
|
|
3947
3959
|
setup: (e, {
|
|
3948
3960
|
slots: t,
|
|
3949
3961
|
expose: n
|
|
3950
3962
|
}) => {
|
|
3951
3963
|
const o = H();
|
|
3952
|
-
n(Ce(
|
|
3953
|
-
const a =
|
|
3964
|
+
n(Ce(Pt, o));
|
|
3965
|
+
const a = Q()(j.ProCurdKey), u = G(Bt());
|
|
3954
3966
|
return () => {
|
|
3955
3967
|
const l = e.listType, s = e.modalType;
|
|
3956
3968
|
return i(a, L({
|
|
3957
3969
|
ref: o
|
|
3958
3970
|
}, D(e, u)), {
|
|
3959
3971
|
default: () => {
|
|
3960
|
-
var
|
|
3961
|
-
return [l === "page" && i(
|
|
3972
|
+
var f;
|
|
3973
|
+
return [l === "page" && i(Sa, null, null), l === "list" && i(ga, null, null), s === "page" && i(Ea, null, null), s === "modal" && i(Ia, null, null), (s === "page" || s === "modal") && i(He, null, null), (f = t.default) == null ? void 0 : f.call(t)];
|
|
3962
3974
|
}
|
|
3963
3975
|
});
|
|
3964
3976
|
};
|
|
3965
3977
|
}
|
|
3966
|
-
}),
|
|
3978
|
+
}), wa = rn("app-config", void 0, !0), On = () => {
|
|
3967
3979
|
const {
|
|
3968
3980
|
appConfig: e
|
|
3969
|
-
} = oe(), [t, n] =
|
|
3981
|
+
} = oe(), [t, n] = wa(), o = fe({
|
|
3970
3982
|
...e,
|
|
3971
3983
|
...t
|
|
3972
3984
|
});
|
|
3973
3985
|
return Se(() => {
|
|
3974
|
-
|
|
3986
|
+
ft(o, {
|
|
3975
3987
|
...e,
|
|
3976
3988
|
...t
|
|
3977
3989
|
});
|
|
3978
3990
|
}, t), {
|
|
3979
3991
|
appConfig: o,
|
|
3980
3992
|
setAppConfig: (u) => {
|
|
3981
|
-
const l =
|
|
3993
|
+
const l = W(u) ? u(o) : u;
|
|
3982
3994
|
n(l);
|
|
3983
3995
|
},
|
|
3984
3996
|
delAppConfig: () => {
|
|
3985
3997
|
n(void 0);
|
|
3986
3998
|
}
|
|
3987
3999
|
};
|
|
3988
|
-
},
|
|
4000
|
+
}, Ta = () => ({
|
|
3989
4001
|
columns: {
|
|
3990
4002
|
type: Array
|
|
3991
4003
|
}
|
|
3992
|
-
}),
|
|
4004
|
+
}), No = A({
|
|
3993
4005
|
props: {
|
|
3994
|
-
...
|
|
4006
|
+
...Ta()
|
|
3995
4007
|
},
|
|
3996
4008
|
setup: (e, {
|
|
3997
4009
|
slots: t,
|
|
@@ -4001,7 +4013,7 @@ const fa = () => ({
|
|
|
4001
4013
|
appConfig: o,
|
|
4002
4014
|
setAppConfig: r,
|
|
4003
4015
|
delAppConfig: a
|
|
4004
|
-
} =
|
|
4016
|
+
} = On(), u = fe({
|
|
4005
4017
|
...o
|
|
4006
4018
|
}), l = () => {
|
|
4007
4019
|
n("cancel");
|
|
@@ -4014,7 +4026,7 @@ const fa = () => ({
|
|
|
4014
4026
|
}, u);
|
|
4015
4027
|
const s = (C) => {
|
|
4016
4028
|
u.layout = C, l();
|
|
4017
|
-
},
|
|
4029
|
+
}, f = [
|
|
4018
4030
|
{
|
|
4019
4031
|
title: "\u5E03\u5C40\u5207\u6362",
|
|
4020
4032
|
dataIndex: "\u5E03\u5C40\u5207\u6362",
|
|
@@ -4104,7 +4116,7 @@ const fa = () => ({
|
|
|
4104
4116
|
dataIndex: "isWatermark",
|
|
4105
4117
|
valueType: "switch"
|
|
4106
4118
|
}
|
|
4107
|
-
],
|
|
4119
|
+
], y = [{
|
|
4108
4120
|
key: "compose",
|
|
4109
4121
|
child: ["top", "left"]
|
|
4110
4122
|
}, {
|
|
@@ -4116,7 +4128,7 @@ const fa = () => ({
|
|
|
4116
4128
|
}, {
|
|
4117
4129
|
key: "horizontal-v",
|
|
4118
4130
|
child: ["left"]
|
|
4119
|
-
}],
|
|
4131
|
+
}], m = w(() => F(e.columns || f, (C) => C.valueType === "title" ? {
|
|
4120
4132
|
...J(C, "dataIndex"),
|
|
4121
4133
|
formItemProps: {
|
|
4122
4134
|
class: "pro-app-config_form_title"
|
|
@@ -4126,7 +4138,7 @@ const fa = () => ({
|
|
|
4126
4138
|
...J(C, "dataIndex"),
|
|
4127
4139
|
inputRender: () => i("div", {
|
|
4128
4140
|
class: "pro-app-config_form_layout"
|
|
4129
|
-
}, [F(
|
|
4141
|
+
}, [F(y, (T) => {
|
|
4130
4142
|
const v = o.layout === T.key;
|
|
4131
4143
|
return i("div", {
|
|
4132
4144
|
class: v ? "selected" : void 0,
|
|
@@ -4135,10 +4147,10 @@ const fa = () => ({
|
|
|
4135
4147
|
class: M
|
|
4136
4148
|
}, null))]);
|
|
4137
4149
|
})])
|
|
4138
|
-
} : C)),
|
|
4150
|
+
} : C)), d = () => {
|
|
4139
4151
|
a(), l();
|
|
4140
|
-
}, h =
|
|
4141
|
-
return () => i(
|
|
4152
|
+
}, h = Q(), x = h(j.DrawerKey), P = h(j.ProFormKey);
|
|
4153
|
+
return () => i(x, {
|
|
4142
4154
|
title: "\u8BBE\u7F6E",
|
|
4143
4155
|
size: "260px",
|
|
4144
4156
|
footer: !1
|
|
@@ -4148,38 +4160,38 @@ const fa = () => ({
|
|
|
4148
4160
|
return [i(P, {
|
|
4149
4161
|
class: "pro-app-config_form",
|
|
4150
4162
|
model: u,
|
|
4151
|
-
columns:
|
|
4163
|
+
columns: m.value
|
|
4152
4164
|
}, null), (C = t.default) == null ? void 0 : C.call(t), i("div", {
|
|
4153
4165
|
class: "pro-app-config_btm"
|
|
4154
|
-
}, [i(
|
|
4166
|
+
}, [i(Rn("pro-button"), {
|
|
4155
4167
|
type: "primary",
|
|
4156
|
-
onClick:
|
|
4168
|
+
onClick: d
|
|
4157
4169
|
}, {
|
|
4158
4170
|
default: () => [Ae("\u6062\u590D\u9ED8\u8BA4\u914D\u7F6E")]
|
|
4159
4171
|
})])];
|
|
4160
4172
|
}
|
|
4161
4173
|
});
|
|
4162
4174
|
}
|
|
4163
|
-
}),
|
|
4164
|
-
var r, a, u, l, s,
|
|
4175
|
+
}), ka = (e, t) => on(t / 10, "#000000", e), Na = (e, t) => on(t / 10, "#ffffff", e), Aa = (e, t) => {
|
|
4176
|
+
var r, a, u, l, s, f, y, m, d, h, x, P;
|
|
4165
4177
|
const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], o = (C) => ({
|
|
4166
4178
|
base: C,
|
|
4167
4179
|
light: ue(n, (T, v) => ({
|
|
4168
4180
|
...T,
|
|
4169
|
-
[String(v)]:
|
|
4181
|
+
[String(v)]: Na(C, v)
|
|
4170
4182
|
}), {}),
|
|
4171
4183
|
dark: {
|
|
4172
|
-
2:
|
|
4184
|
+
2: ka(C, 2)
|
|
4173
4185
|
}
|
|
4174
4186
|
});
|
|
4175
4187
|
return {
|
|
4176
4188
|
color: {
|
|
4177
4189
|
primary: o(((r = e == null ? void 0 : e.color) == null ? void 0 : r.primary) || ((a = t == null ? void 0 : t.color) == null ? void 0 : a.primary)),
|
|
4178
4190
|
success: o(((u = e == null ? void 0 : e.color) == null ? void 0 : u.success) || ((l = t == null ? void 0 : t.color) == null ? void 0 : l.success)),
|
|
4179
|
-
warning: o(((s = e == null ? void 0 : e.color) == null ? void 0 : s.warning) || ((
|
|
4180
|
-
danger: o(((
|
|
4181
|
-
error: o(((
|
|
4182
|
-
info: o(((
|
|
4191
|
+
warning: o(((s = e == null ? void 0 : e.color) == null ? void 0 : s.warning) || ((f = t == null ? void 0 : t.color) == null ? void 0 : f.warning)),
|
|
4192
|
+
danger: o(((y = e == null ? void 0 : e.color) == null ? void 0 : y.danger) || ((m = t == null ? void 0 : t.color) == null ? void 0 : m.danger)),
|
|
4193
|
+
error: o(((d = e == null ? void 0 : e.color) == null ? void 0 : d.error) || ((h = t == null ? void 0 : t.color) == null ? void 0 : h.error)),
|
|
4194
|
+
info: o(((x = e == null ? void 0 : e.color) == null ? void 0 : x.info) || ((P = t == null ? void 0 : t.color) == null ? void 0 : P.info)),
|
|
4183
4195
|
...t == null ? void 0 : t.extraColor
|
|
4184
4196
|
},
|
|
4185
4197
|
radius: {
|
|
@@ -4213,7 +4225,7 @@ const fa = () => ({
|
|
|
4213
4225
|
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
4214
4226
|
}
|
|
4215
4227
|
};
|
|
4216
|
-
},
|
|
4228
|
+
}, Da = () => ({
|
|
4217
4229
|
theme: {
|
|
4218
4230
|
type: Object
|
|
4219
4231
|
},
|
|
@@ -4229,187 +4241,195 @@ const fa = () => ({
|
|
|
4229
4241
|
},
|
|
4230
4242
|
createCssVar: {
|
|
4231
4243
|
type: Function
|
|
4244
|
+
},
|
|
4245
|
+
lightThemeToken: {
|
|
4246
|
+
type: Object,
|
|
4247
|
+
default: vt
|
|
4248
|
+
},
|
|
4249
|
+
darkThemeToken: {
|
|
4250
|
+
type: Object,
|
|
4251
|
+
default: fr
|
|
4232
4252
|
}
|
|
4233
|
-
}),
|
|
4253
|
+
}), Ao = A({
|
|
4234
4254
|
props: {
|
|
4235
|
-
...
|
|
4255
|
+
...Da()
|
|
4236
4256
|
},
|
|
4237
4257
|
setup: (e, {
|
|
4238
4258
|
slots: t
|
|
4239
4259
|
}) => {
|
|
4240
4260
|
const {
|
|
4241
4261
|
appConfig: n
|
|
4242
|
-
} =
|
|
4243
|
-
var
|
|
4262
|
+
} = On(), [o, r] = Ze(), a = w(() => e.mode ? e.mode : n.isDark ? "dark" : "light"), u = () => {
|
|
4263
|
+
var d;
|
|
4244
4264
|
if (e.theme)
|
|
4245
4265
|
return e.theme;
|
|
4246
|
-
const
|
|
4247
|
-
return
|
|
4248
|
-
...
|
|
4266
|
+
const m = e.themeToken;
|
|
4267
|
+
return Aa({
|
|
4268
|
+
...m,
|
|
4249
4269
|
color: {
|
|
4250
|
-
...
|
|
4251
|
-
primary: ((
|
|
4270
|
+
...m == null ? void 0 : m.color,
|
|
4271
|
+
primary: ((d = m == null ? void 0 : m.color) == null ? void 0 : d.primary) || n.primary
|
|
4252
4272
|
}
|
|
4253
|
-
}, a.value === "dark" ?
|
|
4273
|
+
}, a.value === "dark" ? e.darkThemeToken : e.lightThemeToken);
|
|
4254
4274
|
}, l = fe({
|
|
4255
4275
|
...u()
|
|
4256
4276
|
});
|
|
4257
4277
|
Se(() => {
|
|
4258
|
-
|
|
4278
|
+
ft(l, u());
|
|
4259
4279
|
}, [() => e.theme, () => e.themeToken, () => n.primary, () => n.isDark]), re(() => {
|
|
4260
|
-
var
|
|
4261
|
-
a.value === "dark" ? (
|
|
4280
|
+
var m, d;
|
|
4281
|
+
a.value === "dark" ? (m = document.querySelector("html")) == null || m.classList.add("dark") : (d = document.querySelector("html")) == null || d.classList.remove("dark");
|
|
4262
4282
|
}, a), Se(() => {
|
|
4263
4283
|
r();
|
|
4264
4284
|
}, l, {
|
|
4265
4285
|
deep: !0
|
|
4266
|
-
}), pe(
|
|
4286
|
+
}), pe(un, {
|
|
4267
4287
|
theme: l
|
|
4268
4288
|
});
|
|
4269
|
-
const s = w(() => e.createCssVar ? e.createCssVar(l, a.value) : {}),
|
|
4289
|
+
const s = w(() => e.createCssVar ? e.createCssVar(l, a.value) : {}), f = w(() => a.value === "dark" ? {
|
|
4270
4290
|
"html.dark": s.value
|
|
4271
4291
|
} : {
|
|
4272
4292
|
":root": s.value
|
|
4273
|
-
}),
|
|
4293
|
+
}), y = w(() => Je(F(s.value, (m, d) => `${d}:${m}`), ";"));
|
|
4274
4294
|
return () => {
|
|
4275
|
-
var
|
|
4276
|
-
return e.global ? i(se, null, [e.createCssVar && i(
|
|
4295
|
+
var m, d;
|
|
4296
|
+
return e.global ? i(se, null, [e.createCssVar && i(dr, {
|
|
4277
4297
|
key: o.value,
|
|
4278
|
-
styles:
|
|
4279
|
-
}, null), (
|
|
4298
|
+
styles: f.value
|
|
4299
|
+
}, null), (m = t.default) == null ? void 0 : m.call(t)]) : i("div", {
|
|
4280
4300
|
class: "pro-theme",
|
|
4281
|
-
style:
|
|
4282
|
-
}, [(
|
|
4301
|
+
style: y.value
|
|
4302
|
+
}, [(d = t.default) == null ? void 0 : d.call(t)]);
|
|
4283
4303
|
};
|
|
4284
4304
|
}
|
|
4285
4305
|
});
|
|
4286
4306
|
export {
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4307
|
+
Lt as AddButton,
|
|
4308
|
+
mr as AppConfig,
|
|
4309
|
+
Lr as ColumnSetting,
|
|
4290
4310
|
$ as CurdAction,
|
|
4291
|
-
|
|
4311
|
+
$e as CurdAddAction,
|
|
4292
4312
|
be as CurdCurrentMode,
|
|
4293
|
-
|
|
4313
|
+
Pt as CurdMethods,
|
|
4294
4314
|
z as CurdSubAction,
|
|
4295
|
-
|
|
4315
|
+
fr as DarkThemeToken,
|
|
4296
4316
|
j as ElementKeys,
|
|
4297
4317
|
le as FormAction,
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4318
|
+
ao as FormRulePrefixMap,
|
|
4319
|
+
so as LogonUser,
|
|
4320
|
+
pn as LogonUserKey,
|
|
4321
|
+
He as ModalCurdOpe,
|
|
4322
|
+
co as MustLogon,
|
|
4323
|
+
at as PageHeader,
|
|
4324
|
+
io as PerSuffix,
|
|
4325
|
+
fo as Permission,
|
|
4326
|
+
No as ProAppConfigDrawer,
|
|
4327
|
+
Xa as ProConfig,
|
|
4328
|
+
Qe as ProCurd,
|
|
4329
|
+
Ma as ProCurdDesc,
|
|
4330
|
+
wo as ProCurdDescConnect,
|
|
4331
|
+
nt as ProCurdForm,
|
|
4332
|
+
Eo as ProCurdFormConnect,
|
|
4333
|
+
xa as ProCurdFormPage,
|
|
4334
|
+
An as ProCurdList,
|
|
4335
|
+
ga as ProCurdListConnect,
|
|
4336
|
+
ba as ProCurdListPage,
|
|
4337
|
+
Sa as ProCurdListPageConnect,
|
|
4338
|
+
Dn as ProCurdModal,
|
|
4339
|
+
To as ProCurdModalForm,
|
|
4340
|
+
Ia as ProCurdModalFormConnect,
|
|
4341
|
+
ko as ProCurdModule,
|
|
4342
|
+
jt as ProCurdPage,
|
|
4343
|
+
Ea as ProCurdPageConnect,
|
|
4344
|
+
Yr as ProDesc,
|
|
4345
|
+
ro as ProForm,
|
|
4346
|
+
no as ProFormList,
|
|
4347
|
+
Te as ProGrid,
|
|
4348
|
+
yo as ProLayout,
|
|
4349
|
+
Pn as ProLayoutKey,
|
|
4350
|
+
Xr as ProList,
|
|
4351
|
+
Io as ProModalCurd,
|
|
4352
|
+
ze as ProModule,
|
|
4353
|
+
pt as ProOperate,
|
|
4354
|
+
Cn as ProPage,
|
|
4355
|
+
xo as ProPageCurd,
|
|
4356
|
+
jr as ProRouterView,
|
|
4357
|
+
oo as ProSearchForm,
|
|
4358
|
+
bo as ProShowDate,
|
|
4359
|
+
ho as ProShowDigit,
|
|
4360
|
+
po as ProShowOptions,
|
|
4361
|
+
tt as ProShowText,
|
|
4362
|
+
go as ProShowTree,
|
|
4363
|
+
mo as ProTable,
|
|
4364
|
+
Ao as ProTheme,
|
|
4365
|
+
wr as ProTip,
|
|
4366
|
+
Zr as ProTypography,
|
|
4367
|
+
Po as ProUploadList,
|
|
4368
|
+
So as ProUploaderText,
|
|
4369
|
+
vo as ProValue,
|
|
4370
|
+
Vr as ProWatermark,
|
|
4371
|
+
Re as RequestAction,
|
|
4372
|
+
ea as RouterMethods,
|
|
4373
|
+
Xe as SearchMode,
|
|
4374
|
+
un as ThemeKey,
|
|
4375
|
+
vt as ThemeToken,
|
|
4376
|
+
da as Wrapper,
|
|
4377
|
+
cn as convertPathToList,
|
|
4378
|
+
pr as convertResData,
|
|
4359
4379
|
Ce as createExpose,
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4380
|
+
to as createExposeObj,
|
|
4381
|
+
uo as createFormItemCompFn,
|
|
4382
|
+
Mo as createModule,
|
|
4383
|
+
Ya as createProConfig,
|
|
4384
|
+
Aa as createTheme,
|
|
4385
|
+
_r as defaultPage,
|
|
4366
4386
|
ye as filterSlotsByPrefix,
|
|
4367
4387
|
ve as getColumnFormItemName,
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4388
|
+
xn as getColumnValueType,
|
|
4389
|
+
ia as getFirstPropName,
|
|
4390
|
+
sa as getRealRender,
|
|
4391
|
+
Cr as getSignValue,
|
|
4392
|
+
Pr as getValidValues,
|
|
4393
|
+
ca as isValidConfig,
|
|
4394
|
+
lt as isValidNode,
|
|
4395
|
+
et as mergeState,
|
|
4396
|
+
eo as mergeStateToList,
|
|
4397
|
+
xe as proBaseProps,
|
|
4398
|
+
ya as provideProCurd,
|
|
4399
|
+
mn as provideProFormList,
|
|
4400
|
+
ua as provideProModule,
|
|
4401
|
+
bt as renderColumn,
|
|
4402
|
+
Fe as renderElement,
|
|
4403
|
+
St as renderElements,
|
|
4404
|
+
En as renderInputColumn,
|
|
4405
|
+
Mn as showValue,
|
|
4406
|
+
Tr as useAccess,
|
|
4407
|
+
lo as useAccessMgr,
|
|
4408
|
+
On as useAppConfig,
|
|
4409
|
+
hr as useComposeRequestActor,
|
|
4410
|
+
Nn as useCurdCommon,
|
|
4411
|
+
oa as useDispatchStore,
|
|
4412
|
+
Qa as useDoneRequestActor,
|
|
4413
|
+
Ja as useFailedRequestActor,
|
|
4414
|
+
Ir as useFormSubmit,
|
|
4415
|
+
Q as useGetCompByKey,
|
|
4416
|
+
gn as useHasPer,
|
|
4417
|
+
bn as useHasPer2,
|
|
4418
|
+
kr as useLogonUser,
|
|
4419
|
+
Za as useMeta,
|
|
4420
|
+
gr as useMetaRegister,
|
|
4421
|
+
gt as useModuleEvent,
|
|
4402
4422
|
oe as useProConfig,
|
|
4403
4423
|
te as useProCurd,
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4424
|
+
vn as useProForm,
|
|
4425
|
+
fn as useProFormList,
|
|
4426
|
+
Be as useProLayout,
|
|
4427
|
+
_a as useProModal,
|
|
4428
|
+
Ie as useProModule,
|
|
4429
|
+
Wa as useProMsg,
|
|
4430
|
+
Ga as useProNotify,
|
|
4411
4431
|
Me as useProRouter,
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4432
|
+
Rr as useProTable,
|
|
4433
|
+
Co as useReadStore,
|
|
4434
|
+
Ha as useTheme
|
|
4415
4435
|
};
|