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