@vue-start/pro 0.5.35 → 0.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.css +44 -23
- package/dist/index.d.ts +21 -1
- package/dist/index.es.js +1346 -1329
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { reduce as
|
|
3
|
-
import { filter as
|
|
1
|
+
import { defineComponent as D, provide as me, inject as ye, reactive as Ae, createVNode as d, Fragment as ie, computed as O, h as pe, isVNode as Ce, mergeProps as K, ref as G, createTextVNode as et, toRef as rn } from "vue";
|
|
2
|
+
import { reduce as re, get as m, map as F, isString as oe, forEach as ee, size as X, endsWith as ht, set as ce, isArray as _, pick as V, add as an, subtract as on, isFunction as q, filter as Y, has as He, keys as z, isObject as Ee, omit as $, some as fe, isNumber as bt, head as un, split as cn, isEmpty as gt, mergeWith as sn, startsWith as ln, mapKeys as dn, debounce as St, clone as fn, isBoolean as Me, sortBy as Pt, every as mn, join as We, findLast as yn, cloneDeep as pt } from "lodash";
|
|
3
|
+
import { filter as xe, tap as Fe, merge as vn, Subject as hn } from "rxjs";
|
|
4
4
|
import { map as bn, tap as gn } from "rxjs/operators";
|
|
5
|
-
import { mergeStateToData as Sn, mergeStateToData2 as Pn, useEffect as
|
|
6
|
-
import { useRequestProvide as
|
|
7
|
-
import { useDispatchStore as Dt, useStore as
|
|
5
|
+
import { mergeStateToData as Sn, mergeStateToData2 as Pn, useEffect as ue, findFirstValidMenu as pn, setReactiveValue as Ct, restorePath as Et, isValidPath as Mt, isPathHasParent as Tt, useUpdateKey as It, useRuleState as Ue, convertCollection as Nt, useWatch as At, useState as tt, signTableMerge as Cn, useResizeObserver as De, decimalFixed as En, thousandDivision as Mn, listToMap as Tn, treeToMap as In, getMenuTopNameMap as Nn, findTreeItem as nt, strToJson as Ot, jsonToStr as An, useSafeActivated as On } from "@vue-start/hooks";
|
|
6
|
+
import { useRequestProvide as Oe, isDoneRequestActor as $t, isFailedRequestActor as wt } from "@vue-start/request";
|
|
7
|
+
import { useDispatchStore as Dt, useStore as Kt, useObservableRef as $n, useStoreConn as wn, shallowEqual as Dn, createStateUse as Kn } from "@vue-start/store";
|
|
8
8
|
import { parseQuery as rt, stringifyQuery as xn, useRouter as Ge, useRoute as Xe } from "vue-router";
|
|
9
9
|
import { css as at } from "@emotion/css";
|
|
10
10
|
import ot from "dayjs";
|
|
11
|
-
const
|
|
11
|
+
const Fn = () => ({
|
|
12
12
|
elementMap: { type: Object },
|
|
13
13
|
formElementMap: { type: Object },
|
|
14
14
|
columns: { type: Array },
|
|
15
15
|
convertColumn: { type: Function },
|
|
16
16
|
columnState: { type: Object },
|
|
17
17
|
columnState2: { type: Object }
|
|
18
|
-
}),
|
|
18
|
+
}), he = Fn(), je = (e, t, r) => {
|
|
19
19
|
let o = e;
|
|
20
20
|
return t && (o = Sn(o, t, (a) => se(a))), r && (o = Pn(o, r, (a) => se(a))), o;
|
|
21
|
-
},
|
|
21
|
+
}, Rn = () => ({
|
|
22
22
|
elementMap: { type: Object },
|
|
23
23
|
formElementMap: { type: Object },
|
|
24
24
|
formExtraMap: { type: Object },
|
|
@@ -30,26 +30,26 @@ const Kn = () => ({
|
|
|
30
30
|
showMsg: { type: Object },
|
|
31
31
|
showModal: { type: Object },
|
|
32
32
|
showNotify: { type: Object }
|
|
33
|
-
}), _e = Symbol("pro-config"),
|
|
34
|
-
const { showMsg: e } =
|
|
35
|
-
return (t) => e(t);
|
|
36
|
-
}, Hr = () => {
|
|
37
|
-
const { showModal: e } = ee();
|
|
33
|
+
}), _e = Symbol("pro-config"), te = () => ye(_e) || {}, Hr = () => {
|
|
34
|
+
const { showMsg: e } = te();
|
|
38
35
|
return (t) => e(t);
|
|
39
36
|
}, Wr = () => {
|
|
40
|
-
const {
|
|
37
|
+
const { showModal: e } = te();
|
|
38
|
+
return (t) => e(t);
|
|
39
|
+
}, Gr = () => {
|
|
40
|
+
const { showNotify: e } = te();
|
|
41
41
|
return (t) => e(t);
|
|
42
|
-
},
|
|
42
|
+
}, Xr = D({
|
|
43
43
|
props: {
|
|
44
|
-
...
|
|
44
|
+
...Rn()
|
|
45
45
|
},
|
|
46
46
|
setup: (e, { slots: t }) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = re(e.registerStores, (c, l) => ({ ...c, [l.key]: l }), {}), o = re(e.registerActors, (c, l) => ({ ...c, [l.actor.name]: l }), {}), a = re(e.registerMetas, (c, l) => ({ ...c, [l.actorName]: l }), {});
|
|
48
48
|
kn(a, o);
|
|
49
|
-
const { dispatchRequest: n } =
|
|
50
|
-
const b =
|
|
49
|
+
const { dispatchRequest: n } = Oe(), u = (c, l, i) => {
|
|
50
|
+
const b = m(o, c);
|
|
51
51
|
if (!!b)
|
|
52
|
-
return n(b.actor,
|
|
52
|
+
return n(b.actor, l, i);
|
|
53
53
|
};
|
|
54
54
|
return me(_e, {
|
|
55
55
|
elementMap: e.elementMap,
|
|
@@ -68,13 +68,13 @@ const Kn = () => ({
|
|
|
68
68
|
return (c = t.default) == null ? void 0 : c.call(t);
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
71
|
+
}), _r = (e = {}) => (t) => {
|
|
72
72
|
t.provide(_e, e);
|
|
73
73
|
}, xt = (e) => (t, r) => {
|
|
74
|
-
const { requestSubject$: o } =
|
|
75
|
-
|
|
74
|
+
const { requestSubject$: o } = Oe(), a = new Set(F(t, (n) => oe(n) ? n : n.name));
|
|
75
|
+
ue(() => {
|
|
76
76
|
const n = o.pipe(
|
|
77
|
-
|
|
77
|
+
xe(e),
|
|
78
78
|
Fe((u) => {
|
|
79
79
|
a.has(u.name) && r(u);
|
|
80
80
|
})
|
|
@@ -83,58 +83,58 @@ const Kn = () => ({
|
|
|
83
83
|
n.unsubscribe();
|
|
84
84
|
};
|
|
85
85
|
}, []);
|
|
86
|
-
},
|
|
87
|
-
const { requestSubject$: o, dispatchRequest: a } =
|
|
88
|
-
|
|
86
|
+
}, Yr = xt($t), Qr = xt(wt), Ln = (e, t, r) => {
|
|
87
|
+
const { requestSubject$: o, dispatchRequest: a } = Oe(), n = new Set(F(e, (c) => oe(c) ? c : c.name)), u = {};
|
|
88
|
+
ue(() => {
|
|
89
89
|
const c = vn(
|
|
90
90
|
o.pipe(
|
|
91
|
-
|
|
92
|
-
Fe((
|
|
93
|
-
var
|
|
94
|
-
n.has(
|
|
91
|
+
xe($t),
|
|
92
|
+
Fe((l) => {
|
|
93
|
+
var i, b;
|
|
94
|
+
n.has(l.name) && ((i = t.onSuccess) == null || i.call(t, l), (b = t.onFinish) == null || b.call(t, l), u[l.name] = void 0);
|
|
95
95
|
})
|
|
96
96
|
),
|
|
97
97
|
o.pipe(
|
|
98
|
-
|
|
99
|
-
Fe((
|
|
100
|
-
var
|
|
101
|
-
n.has(
|
|
98
|
+
xe(wt),
|
|
99
|
+
Fe((l) => {
|
|
100
|
+
var i, b;
|
|
101
|
+
n.has(l.name) && ((i = t.onFailed) == null || i.call(t, l), (b = t.onFinish) == null || b.call(t, l), u[l.name] = void 0);
|
|
102
102
|
})
|
|
103
103
|
)
|
|
104
104
|
).subscribe();
|
|
105
105
|
return () => {
|
|
106
|
-
c.unsubscribe(), r &&
|
|
107
|
-
|
|
106
|
+
c.unsubscribe(), r && ee(u, (l) => {
|
|
107
|
+
l && a({ ...l, stage: "CANCEL" });
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
}, []);
|
|
111
111
|
}, jn = (e, t, r) => {
|
|
112
112
|
var a;
|
|
113
113
|
const o = (a = e.res) == null ? void 0 : a.data;
|
|
114
|
-
return t ? t(o, e) : r ?
|
|
115
|
-
},
|
|
116
|
-
const e =
|
|
114
|
+
return t ? t(o, e) : r ? m(o, r) : o;
|
|
115
|
+
}, Jr = () => {
|
|
116
|
+
const e = Kt(), { registerMetaMap: t, dispatchRequest: r } = te();
|
|
117
117
|
return (o) => {
|
|
118
|
-
const a =
|
|
118
|
+
const a = m(t, o);
|
|
119
119
|
if (!a)
|
|
120
120
|
return;
|
|
121
121
|
const n = a.storeName || o;
|
|
122
|
-
|
|
122
|
+
m(e.value, n) || r(o, a.initParams || {});
|
|
123
123
|
};
|
|
124
124
|
}, kn = (e, t) => {
|
|
125
|
-
const { requestSubject$: r } =
|
|
126
|
-
const u =
|
|
125
|
+
const { requestSubject$: r } = Oe(), o = Dt(), a = (n) => {
|
|
126
|
+
const u = m(e, n.name), c = m(t, n.name);
|
|
127
127
|
return !!(u && c && c.actor);
|
|
128
128
|
};
|
|
129
|
-
|
|
129
|
+
ue(() => {
|
|
130
130
|
const n = r.pipe(
|
|
131
|
-
|
|
131
|
+
xe(a),
|
|
132
132
|
Fe((u) => {
|
|
133
|
-
const c =
|
|
133
|
+
const c = m(e, u.name);
|
|
134
134
|
if (!c)
|
|
135
135
|
return;
|
|
136
|
-
const
|
|
137
|
-
o(
|
|
136
|
+
const l = c.storeName || u.name, i = jn(u, c.convertData, c.convertPath);
|
|
137
|
+
o(l, i, !1, void 0);
|
|
138
138
|
})
|
|
139
139
|
).subscribe();
|
|
140
140
|
return () => {
|
|
@@ -168,11 +168,11 @@ const Kn = () => ({
|
|
|
168
168
|
const r = xn(t);
|
|
169
169
|
return `${e}${r ? "?" : ""}${r || ""}`;
|
|
170
170
|
}
|
|
171
|
-
},
|
|
172
|
-
const { convertRouter: e } =
|
|
171
|
+
}, Ft = () => {
|
|
172
|
+
const { convertRouter: e } = te(), t = Ge(), r = Xe(), a = { ...t, openMenu: (u) => {
|
|
173
173
|
if (!!u) {
|
|
174
|
-
if (
|
|
175
|
-
const c = pn(u.children, (
|
|
174
|
+
if (X(u.children) > 0) {
|
|
175
|
+
const c = pn(u.children, (l) => !l.children || X(l.children) <= 0);
|
|
176
176
|
if (c) {
|
|
177
177
|
t.push({ name: c.value });
|
|
178
178
|
return;
|
|
@@ -183,53 +183,53 @@ const Kn = () => ({
|
|
|
183
183
|
}, ...Un };
|
|
184
184
|
return { router: e ? e(a) : a, route: r };
|
|
185
185
|
}, Bn = (e) => {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_(e) || X(e) <= 0)
|
|
187
187
|
return !1;
|
|
188
188
|
const t = e[0];
|
|
189
|
-
return
|
|
190
|
-
}, qn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, Vn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", zn = { get:
|
|
189
|
+
return oe(t) ? ht(t, "$") : !1;
|
|
190
|
+
}, qn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, Vn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", zn = { get: m, pick: V, add: an, subtract: on }, Re = (e, t) => {
|
|
191
191
|
if (qn(e)) {
|
|
192
|
-
const r =
|
|
193
|
-
return e.namePath$ ?
|
|
192
|
+
const r = m(t, e.name$);
|
|
193
|
+
return e.namePath$ ? m(r, e.namePath$) : r;
|
|
194
194
|
} else if (Vn(e)) {
|
|
195
195
|
const r = {};
|
|
196
|
-
return
|
|
196
|
+
return ee(e, (o, a) => {
|
|
197
197
|
if (a !== "type$")
|
|
198
198
|
if (ht(a, "$")) {
|
|
199
|
-
const n =
|
|
199
|
+
const n = Re(o, t);
|
|
200
200
|
ce(r, a.replace("$", ""), n);
|
|
201
201
|
} else
|
|
202
202
|
r[a] = o;
|
|
203
203
|
}), r;
|
|
204
204
|
} else if (Bn(e)) {
|
|
205
|
-
const [r, ...o] = e, a = t.expressionMethods || zn, n =
|
|
205
|
+
const [r, ...o] = e, a = t.expressionMethods || zn, n = m(a, r.replace("$", ""));
|
|
206
206
|
if (!n) {
|
|
207
207
|
console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
const u =
|
|
210
|
+
const u = F(o, (c) => Re(c, t));
|
|
211
211
|
return n(...u);
|
|
212
212
|
}
|
|
213
213
|
return e;
|
|
214
214
|
}, Hn = () => {
|
|
215
|
-
const e = Dt(), { registerStoreMap: t } =
|
|
215
|
+
const e = Dt(), { registerStoreMap: t } = te();
|
|
216
216
|
return (r, o) => {
|
|
217
|
-
const a =
|
|
217
|
+
const a = m(t, r);
|
|
218
218
|
!a || e(r, o, !!a.persist, a.initialState);
|
|
219
219
|
};
|
|
220
|
-
},
|
|
221
|
-
const { registerStoreMap: t } =
|
|
220
|
+
}, Zr = (e) => {
|
|
221
|
+
const { registerStoreMap: t } = te(), r = m(t, e), o = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
|
|
222
222
|
return $n(wn((n) => {
|
|
223
|
-
const u =
|
|
224
|
-
return u || (
|
|
223
|
+
const u = m(n, o);
|
|
224
|
+
return u || (q(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
|
|
225
225
|
}));
|
|
226
|
-
},
|
|
227
|
-
me(
|
|
226
|
+
}, Rt = Symbol("pro-module"), be = () => ye(Rt), Wn = (e) => {
|
|
227
|
+
me(Rt, e);
|
|
228
228
|
}, Ye = (e) => {
|
|
229
229
|
const {
|
|
230
230
|
subject$: t
|
|
231
|
-
} =
|
|
232
|
-
|
|
231
|
+
} = be();
|
|
232
|
+
ue(() => {
|
|
233
233
|
const r = t.subscribe({
|
|
234
234
|
next: (o) => {
|
|
235
235
|
e(o);
|
|
@@ -237,7 +237,7 @@ const Kn = () => ({
|
|
|
237
237
|
});
|
|
238
238
|
return () => r.unsubscribe();
|
|
239
239
|
}, []);
|
|
240
|
-
},
|
|
240
|
+
}, Te = {
|
|
241
241
|
Success: "request-success$",
|
|
242
242
|
Fail: "request-fail$"
|
|
243
243
|
}, Gn = () => ({
|
|
@@ -265,7 +265,7 @@ const Kn = () => ({
|
|
|
265
265
|
requests: {
|
|
266
266
|
type: Array
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), Ke = D({
|
|
269
269
|
props: {
|
|
270
270
|
...Gn()
|
|
271
271
|
},
|
|
@@ -273,41 +273,41 @@ const Kn = () => ({
|
|
|
273
273
|
slots: t,
|
|
274
274
|
expose: r
|
|
275
275
|
}) => {
|
|
276
|
-
const o =
|
|
276
|
+
const o = Kt(), {
|
|
277
277
|
router: a
|
|
278
|
-
} =
|
|
278
|
+
} = Ft(), {
|
|
279
279
|
elementMap: n,
|
|
280
280
|
registerStoreMap: u,
|
|
281
281
|
expressionMethods: c
|
|
282
|
-
} =
|
|
282
|
+
} = te(), l = e.elementMap || n, i = (v) => _(v) ? Je(l, v) : Ie(l, v), b = new hn(), h = (v) => {
|
|
283
283
|
b.next(v);
|
|
284
|
-
},
|
|
285
|
-
const
|
|
284
|
+
}, f = Y(e.storeKeys, (v) => He(u, v)), S = () => re(f, (v, g) => {
|
|
285
|
+
const p = m(u, g);
|
|
286
286
|
return {
|
|
287
287
|
...v,
|
|
288
|
-
[
|
|
288
|
+
[g]: m(o.value, `${p.persist ? "$" : ""}${g}`) || m(u, [g, "initialState"])
|
|
289
289
|
};
|
|
290
|
-
}, {}),
|
|
291
|
-
...
|
|
290
|
+
}, {}), E = S(), y = e.state || Ae({
|
|
291
|
+
...E,
|
|
292
292
|
...e.initState
|
|
293
|
-
}),
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
Ct(
|
|
293
|
+
}), T = {}, A = (v) => {
|
|
294
|
+
const g = y[v.type], p = q(v.payload) ? v.payload(g) : v.payload;
|
|
295
|
+
if (Ee(g)) {
|
|
296
|
+
Ct(y[v.type], p);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
},
|
|
301
|
-
dispatch:
|
|
302
|
-
dispatchStore:
|
|
299
|
+
y[v.type] = p;
|
|
300
|
+
}, s = Hn(), P = {
|
|
301
|
+
dispatch: A,
|
|
302
|
+
dispatchStore: s
|
|
303
303
|
};
|
|
304
|
-
|
|
305
|
-
const v = o.pipe(bn(() =>
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
Dn(
|
|
309
|
-
type:
|
|
310
|
-
payload:
|
|
304
|
+
ue(() => {
|
|
305
|
+
const v = o.pipe(bn(() => S()), gn((g) => {
|
|
306
|
+
ee(g, (p, L) => {
|
|
307
|
+
const J = m(y, L);
|
|
308
|
+
Dn(J, p) || A({
|
|
309
|
+
type: L,
|
|
310
|
+
payload: p
|
|
311
311
|
});
|
|
312
312
|
});
|
|
313
313
|
})).subscribe();
|
|
@@ -317,242 +317,242 @@ const Kn = () => ({
|
|
|
317
317
|
}, []);
|
|
318
318
|
const {
|
|
319
319
|
dispatchRequest: C
|
|
320
|
-
} =
|
|
321
|
-
const v = {},
|
|
322
|
-
...
|
|
323
|
-
[
|
|
320
|
+
} = Oe(), N = (() => {
|
|
321
|
+
const v = {}, g = re(e.actors || [], (p, L) => ({
|
|
322
|
+
...p,
|
|
323
|
+
[L.name]: L
|
|
324
324
|
}), {});
|
|
325
|
-
return
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
328
|
-
if (!
|
|
325
|
+
return ee(e.requests, (p) => {
|
|
326
|
+
if (oe(p.actor)) {
|
|
327
|
+
const L = m(g, p.actor);
|
|
328
|
+
if (!L)
|
|
329
329
|
return;
|
|
330
|
-
|
|
330
|
+
p.actor = L;
|
|
331
331
|
}
|
|
332
|
-
!
|
|
332
|
+
!p.actor || (v[p.actor.name] = p, p.action && (v[p.action] = p));
|
|
333
333
|
}), v;
|
|
334
|
-
})(),
|
|
335
|
-
var
|
|
336
|
-
return v.convertData ? v.convertData(
|
|
337
|
-
},
|
|
338
|
-
const
|
|
339
|
-
if (!
|
|
334
|
+
})(), w = (v, ...g) => v.convertParams ? v.convertParams(...g) : v.convertParamsEx ? H(v.convertParamsEx, g) : m(g, 0), U = (v, g) => {
|
|
335
|
+
var p;
|
|
336
|
+
return v.convertData ? v.convertData(g) : v.convertDataEx ? H(v.convertDataEx, g) : (p = g.res) == null ? void 0 : p.data;
|
|
337
|
+
}, B = (v, ...g) => {
|
|
338
|
+
const p = m(N, v);
|
|
339
|
+
if (!p)
|
|
340
340
|
return;
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
type:
|
|
341
|
+
const L = w(p, ...g);
|
|
342
|
+
p.loadingName && A({
|
|
343
|
+
type: p.loadingName,
|
|
344
344
|
payload: !0
|
|
345
|
-
}), C(
|
|
345
|
+
}), C(p.actor, L);
|
|
346
346
|
};
|
|
347
|
-
|
|
347
|
+
Ln(z(N), {
|
|
348
348
|
onSuccess: (v) => {
|
|
349
|
-
var
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
type:
|
|
353
|
-
payload:
|
|
354
|
-
}),
|
|
355
|
-
type:
|
|
349
|
+
var L;
|
|
350
|
+
const g = m(N, v.name), p = U(g, v);
|
|
351
|
+
g != null && g.stateName && A({
|
|
352
|
+
type: g.stateName,
|
|
353
|
+
payload: p
|
|
354
|
+
}), h({
|
|
355
|
+
type: Te.Success,
|
|
356
356
|
payload: {
|
|
357
357
|
actor: v,
|
|
358
|
-
requestOpts:
|
|
358
|
+
requestOpts: g
|
|
359
359
|
}
|
|
360
|
-
}), (
|
|
360
|
+
}), (L = g.onSuccess) == null || L.call(g, v), g.onSuccessEx && Z(g.onSuccessEx, [p]);
|
|
361
361
|
},
|
|
362
362
|
onFailed: (v) => {
|
|
363
|
-
var
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
type:
|
|
363
|
+
var p;
|
|
364
|
+
const g = m(N, v.name);
|
|
365
|
+
h({
|
|
366
|
+
type: Te.Fail,
|
|
367
367
|
payload: {
|
|
368
368
|
actor: v,
|
|
369
|
-
requestOpts:
|
|
369
|
+
requestOpts: g
|
|
370
370
|
}
|
|
371
|
-
}), (
|
|
371
|
+
}), (p = g.onFailed) == null || p.call(g, v), g.onFailedEx && Z(g.onFailedEx, [v.err]);
|
|
372
372
|
},
|
|
373
373
|
onFinish: (v) => {
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
type:
|
|
374
|
+
const g = m(N, [v.name, "loadingName"]);
|
|
375
|
+
g && A({
|
|
376
|
+
type: g,
|
|
377
377
|
payload: !1
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
}, !0);
|
|
381
|
-
const
|
|
382
|
-
state:
|
|
383
|
-
data:
|
|
384
|
-
args:
|
|
381
|
+
const H = (v, g) => Re(v, {
|
|
382
|
+
state: y,
|
|
383
|
+
data: T,
|
|
384
|
+
args: g,
|
|
385
385
|
expressionMethods: c
|
|
386
|
-
}),
|
|
386
|
+
}), Z = (v, g) => {
|
|
387
387
|
if (!v)
|
|
388
388
|
return;
|
|
389
|
-
const
|
|
390
|
-
state:
|
|
391
|
-
data:
|
|
392
|
-
args:
|
|
389
|
+
const p = {
|
|
390
|
+
state: y,
|
|
391
|
+
data: T,
|
|
392
|
+
args: g,
|
|
393
393
|
expressionMethods: c
|
|
394
394
|
};
|
|
395
|
-
|
|
396
|
-
if (!
|
|
397
|
-
console.log("execute invalid",
|
|
395
|
+
ee(v, (L) => {
|
|
396
|
+
if (!_(L) || X(L) < 2) {
|
|
397
|
+
console.log("execute invalid", L);
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
|
-
const [
|
|
401
|
-
let
|
|
402
|
-
switch (
|
|
400
|
+
const [J, M, ...R] = L;
|
|
401
|
+
let W;
|
|
402
|
+
switch (J) {
|
|
403
403
|
case "router":
|
|
404
|
-
|
|
404
|
+
W = m(a, M);
|
|
405
405
|
break;
|
|
406
406
|
case "state":
|
|
407
|
-
|
|
407
|
+
W = m(P, M);
|
|
408
408
|
break;
|
|
409
409
|
}
|
|
410
|
-
if (
|
|
410
|
+
if (W)
|
|
411
411
|
try {
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
} catch (
|
|
415
|
-
console.log("execute err",
|
|
412
|
+
const ve = F(R, (nn) => Re(nn, p));
|
|
413
|
+
W(...ve);
|
|
414
|
+
} catch (ve) {
|
|
415
|
+
console.log("execute err", ve);
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
};
|
|
419
419
|
return Wn({
|
|
420
|
-
elementMap:
|
|
420
|
+
elementMap: l,
|
|
421
421
|
subject$: b,
|
|
422
|
-
sendEvent:
|
|
423
|
-
state:
|
|
424
|
-
dispatch:
|
|
425
|
-
data:
|
|
422
|
+
sendEvent: h,
|
|
423
|
+
state: y,
|
|
424
|
+
dispatch: A,
|
|
425
|
+
data: T,
|
|
426
426
|
requests: e.requests,
|
|
427
|
-
sendRequest:
|
|
428
|
-
executeExp:
|
|
429
|
-
execute:
|
|
427
|
+
sendRequest: B,
|
|
428
|
+
executeExp: H,
|
|
429
|
+
execute: Z
|
|
430
430
|
}), r({
|
|
431
|
-
sendEvent:
|
|
432
|
-
sendRequest:
|
|
431
|
+
sendEvent: h,
|
|
432
|
+
sendRequest: B
|
|
433
433
|
}), () => {
|
|
434
434
|
var v;
|
|
435
|
-
return
|
|
435
|
+
return d(ie, null, [X(e.elementConfigs) > 0 && i(e.elementConfigs), (v = t.default) == null ? void 0 : v.call(t)]);
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), Xn = (e) => !(!e || X(e) === 1 && e[0].children === null), Lt = (e) => e.formValueType || e.valueType || "text", se = (e) => {
|
|
439
439
|
var o, a;
|
|
440
440
|
const t = (o = e.formItemProps) == null ? void 0 : o.name;
|
|
441
441
|
return ((a = e.inputProps) == null ? void 0 : a.name) || t || e.dataIndex;
|
|
442
|
-
},
|
|
442
|
+
}, _n = (e, t) => {
|
|
443
443
|
let r = t;
|
|
444
|
-
return
|
|
444
|
+
return oe(t) && (r = m(e, t)), q(r) || (r = m(e, "render")), q(r) ? r : void 0;
|
|
445
445
|
}, Qe = (e, t, r, o) => {
|
|
446
|
-
var b,
|
|
447
|
-
const a =
|
|
446
|
+
var b, h, f;
|
|
447
|
+
const a = _n(t, o == null ? void 0 : o.render);
|
|
448
448
|
if (a)
|
|
449
449
|
return a({
|
|
450
450
|
...r,
|
|
451
451
|
column: t
|
|
452
452
|
});
|
|
453
|
-
const n = t.valueType || "text", u =
|
|
453
|
+
const n = t.valueType || "text", u = m(e, n);
|
|
454
454
|
if (!u)
|
|
455
455
|
return null;
|
|
456
|
-
const c = ((b = t.props) == null ? void 0 : b.slots) || ((
|
|
457
|
-
u.props.showProps && (
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
...
|
|
456
|
+
const c = ((b = t.props) == null ? void 0 : b.slots) || ((h = t.formFieldProps) == null ? void 0 : h.slots) || {}, l = r || {};
|
|
457
|
+
u.props.showProps && (l.showProps = t.props ? (f = t.props) == null ? void 0 : f.showProps : t.showProps);
|
|
458
|
+
const i = t.props ? {
|
|
459
|
+
...$(t.props, "slots"),
|
|
460
|
+
...l
|
|
461
461
|
} : {
|
|
462
|
-
|
|
463
|
-
...
|
|
462
|
+
...$(t.formFieldProps, "slots"),
|
|
463
|
+
...l
|
|
464
464
|
};
|
|
465
|
-
return
|
|
466
|
-
...
|
|
465
|
+
return pe(u, {
|
|
466
|
+
...i
|
|
467
467
|
}, c);
|
|
468
468
|
}, jt = (e, t, r) => {
|
|
469
|
-
var b,
|
|
470
|
-
const o =
|
|
469
|
+
var b, h;
|
|
470
|
+
const o = Lt(r), a = m(t, o);
|
|
471
471
|
if (!a)
|
|
472
472
|
return null;
|
|
473
|
-
const n = r.inputProps, u = ((b = n == null ? void 0 : n.fieldProps) == null ? void 0 : b.slots) || ((
|
|
474
|
-
!u.renderInput &&
|
|
475
|
-
...
|
|
473
|
+
const n = r.inputProps, u = ((b = n == null ? void 0 : n.fieldProps) == null ? void 0 : b.slots) || ((h = r.formFieldProps) == null ? void 0 : h.slots) || {};
|
|
474
|
+
!u.renderInput && q(r.inputRender) && (u.renderInput = (f) => r.inputRender({
|
|
475
|
+
...f,
|
|
476
476
|
column: r
|
|
477
|
-
})), u.renderShow || (u.renderShow = (
|
|
478
|
-
value:
|
|
477
|
+
})), u.renderShow || (u.renderShow = (f) => Qe(e, r, {
|
|
478
|
+
value: f.value
|
|
479
479
|
}, {
|
|
480
480
|
render: "formReadRender"
|
|
481
|
-
}) ||
|
|
482
|
-
const c = se(r),
|
|
481
|
+
}) || f.value);
|
|
482
|
+
const c = se(r), l = r.title, i = n ? {
|
|
483
483
|
...n,
|
|
484
|
-
fieldProps:
|
|
484
|
+
fieldProps: $(n.fieldProps, "slots")
|
|
485
485
|
} : {
|
|
486
486
|
...r.formItemProps,
|
|
487
|
-
fieldProps:
|
|
487
|
+
fieldProps: $(r.formFieldProps, "slots"),
|
|
488
488
|
showProps: r.showProps
|
|
489
489
|
};
|
|
490
|
-
return
|
|
490
|
+
return pe(a, {
|
|
491
491
|
key: c,
|
|
492
492
|
name: c,
|
|
493
|
-
label:
|
|
494
|
-
...
|
|
493
|
+
label: l,
|
|
494
|
+
...i
|
|
495
495
|
}, u);
|
|
496
|
-
},
|
|
496
|
+
}, Yn = (e) => e && !q(e) && e.elementType, Je = (e, t) => F(t, (r) => Ie(e, r)), kt = (e, t) => {
|
|
497
497
|
var n;
|
|
498
498
|
const r = t.elementProps, o = {
|
|
499
499
|
...t.elementProps
|
|
500
500
|
}, a = r == null ? void 0 : r.class;
|
|
501
|
-
return a && (typeof a == "object" ? o.class = at(a) :
|
|
501
|
+
return a && (typeof a == "object" ? o.class = at(a) : oe(a) && a.indexOf(":") > 0 && (o.class = at`
|
|
502
502
|
${a}
|
|
503
|
-
`)),
|
|
504
|
-
const c =
|
|
505
|
-
if (!(!c ||
|
|
506
|
-
if (
|
|
507
|
-
if (fe(c, (
|
|
503
|
+
`)), ee((n = t.highConfig$) == null ? void 0 : n.registerPropsTrans, (u) => {
|
|
504
|
+
const c = m(r, u.name);
|
|
505
|
+
if (!(!c || Ce(c))) {
|
|
506
|
+
if (_(c)) {
|
|
507
|
+
if (fe(c, (l) => Ce(l)))
|
|
508
508
|
return;
|
|
509
509
|
ce(o, u.name, Je(e, c));
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
|
-
!c.elementType || (u.isFun ? ce(o, u.name, (...
|
|
513
|
-
const
|
|
512
|
+
!c.elementType || (u.isFun ? ce(o, u.name, (...l) => {
|
|
513
|
+
const i = u.needParams ? {
|
|
514
514
|
...c.elementProps,
|
|
515
|
-
params$:
|
|
515
|
+
params$: l
|
|
516
516
|
} : c.elementProps;
|
|
517
|
-
return
|
|
517
|
+
return Ie(e, {
|
|
518
518
|
...c,
|
|
519
|
-
elementProps:
|
|
519
|
+
elementProps: i
|
|
520
520
|
});
|
|
521
|
-
}) : ce(o, u.name,
|
|
521
|
+
}) : ce(o, u.name, Ie(e, c)));
|
|
522
522
|
}
|
|
523
523
|
}), o;
|
|
524
524
|
}, Ut = (e, t) => {
|
|
525
|
-
const r =
|
|
526
|
-
return
|
|
525
|
+
const r = X(t.children) > 0 ? Je(e, t.children) : void 0, o = t.childrenSlotName || "default", a = $(t.slots, r ? o : "");
|
|
526
|
+
return ee(z(a), (n) => {
|
|
527
527
|
const u = a[n];
|
|
528
|
-
|
|
529
|
-
const
|
|
528
|
+
Yn(u) ? a[n] = (...c) => {
|
|
529
|
+
const l = u.needParams ? {
|
|
530
530
|
...u.elementProps,
|
|
531
531
|
params$: c
|
|
532
532
|
} : u.elementProps;
|
|
533
|
-
return
|
|
533
|
+
return Ie(e, {
|
|
534
534
|
...u,
|
|
535
|
-
elementProps:
|
|
535
|
+
elementProps: l
|
|
536
536
|
});
|
|
537
|
-
} : (
|
|
537
|
+
} : (oe(u) || bt(u)) && (a[n] = () => u);
|
|
538
538
|
}), {
|
|
539
539
|
[o]: r ? () => r : void 0,
|
|
540
540
|
...a
|
|
541
541
|
};
|
|
542
|
-
},
|
|
543
|
-
const r =
|
|
542
|
+
}, Ie = (e, t) => {
|
|
543
|
+
const r = m(e, t.elementType) || t.elementType;
|
|
544
544
|
if (t.highConfig$)
|
|
545
|
-
return
|
|
545
|
+
return pe(Jn, {
|
|
546
546
|
key: t.elementId,
|
|
547
547
|
elementMap: e,
|
|
548
548
|
elementConfig: t
|
|
549
549
|
});
|
|
550
550
|
const o = Ut(e, t), a = kt(e, t);
|
|
551
|
-
return
|
|
551
|
+
return pe(r, {
|
|
552
552
|
key: t.elementId,
|
|
553
553
|
...a
|
|
554
554
|
}, o);
|
|
555
|
-
},
|
|
555
|
+
}, Qn = (e) => _(e) ? un(e) : oe(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Jn = D({
|
|
556
556
|
props: {
|
|
557
557
|
elementMap: {
|
|
558
558
|
type: Object
|
|
@@ -562,49 +562,49 @@ const Kn = () => ({
|
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
564
|
setup: (e) => {
|
|
565
|
-
var
|
|
565
|
+
var S;
|
|
566
566
|
const {
|
|
567
567
|
state: t,
|
|
568
568
|
sendEvent: r,
|
|
569
569
|
execute: o
|
|
570
|
-
} =
|
|
570
|
+
} = be(), {
|
|
571
571
|
elementMap: a,
|
|
572
572
|
elementConfig: n
|
|
573
573
|
} = e, u = n.highConfig$, c = kt(a, n);
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
const
|
|
574
|
+
ee((S = n.highConfig$) == null ? void 0 : S.registerEventList, (E) => {
|
|
575
|
+
const y = (...A) => {
|
|
576
|
+
const s = `${n.elementId}-${E.name}`;
|
|
577
577
|
r({
|
|
578
|
-
type:
|
|
579
|
-
payload:
|
|
580
|
-
}), o(
|
|
581
|
-
},
|
|
582
|
-
c && Mt(
|
|
578
|
+
type: s,
|
|
579
|
+
payload: A
|
|
580
|
+
}), o(E.executeList, A);
|
|
581
|
+
}, T = Et(E.name, c);
|
|
582
|
+
c && Mt(T) && Tt(T, c) && ce(c, T, y);
|
|
583
583
|
});
|
|
584
|
-
const
|
|
585
|
-
if (!u.registerStateList ||
|
|
584
|
+
const l = O(() => {
|
|
585
|
+
if (!u.registerStateList || X(u.registerStateList) <= 0)
|
|
586
586
|
return;
|
|
587
|
-
const
|
|
587
|
+
const E = {
|
|
588
588
|
...c
|
|
589
|
-
},
|
|
590
|
-
const
|
|
591
|
-
return ce(
|
|
589
|
+
}, y = Y(u.registerStateList, (A) => !A.target || A.target === "prop"), T = F(y, (A) => {
|
|
590
|
+
const s = A.mapName || A.name, P = m(t, A.name);
|
|
591
|
+
return ce(E, s, P), Qn(s);
|
|
592
592
|
});
|
|
593
|
-
return
|
|
594
|
-
}),
|
|
595
|
-
...
|
|
596
|
-
[
|
|
597
|
-
}), {}),
|
|
593
|
+
return V(E, T);
|
|
594
|
+
}), i = m(a, n.elementType) || n.elementType, b = Ut(a, n), h = re(Y(u.registerStateList, (E) => E.target === "slot"), (E, y) => ({
|
|
595
|
+
...E,
|
|
596
|
+
[y.mapName]: () => m(t, y.name)
|
|
597
|
+
}), {}), f = {
|
|
598
598
|
...b,
|
|
599
|
-
...
|
|
599
|
+
...h
|
|
600
600
|
};
|
|
601
|
-
return () =>
|
|
601
|
+
return () => m(l.value, "show$") === !1 ? null : pe(i, {
|
|
602
602
|
key: n.elementId,
|
|
603
603
|
...c,
|
|
604
|
-
|
|
605
|
-
},
|
|
604
|
+
...$(l.value, "show$")
|
|
605
|
+
}, f);
|
|
606
606
|
}
|
|
607
|
-
}),
|
|
607
|
+
}), k = {
|
|
608
608
|
TypographyKey: "Typography$",
|
|
609
609
|
LoadingKey: "Loading$",
|
|
610
610
|
RowKey: "Row$",
|
|
@@ -617,6 +617,7 @@ const Kn = () => ({
|
|
|
617
617
|
CheckboxKey: "Checkbox$",
|
|
618
618
|
MenusKey: "Menus$",
|
|
619
619
|
ModalKey: "Modal$",
|
|
620
|
+
ScrollKey: "Scroll$",
|
|
620
621
|
FormKey: "Form$",
|
|
621
622
|
FormItemKey: "FormItem$",
|
|
622
623
|
TableKey: "Table$",
|
|
@@ -627,14 +628,14 @@ const Kn = () => ({
|
|
|
627
628
|
ProTableKey: "ProTable$",
|
|
628
629
|
ProCurdKey: "ProCurd$",
|
|
629
630
|
ProListKey: "ProList$"
|
|
630
|
-
},
|
|
631
|
-
const { elementMap: e } =
|
|
632
|
-
return (t) =>
|
|
631
|
+
}, Q = () => {
|
|
632
|
+
const { elementMap: e } = te();
|
|
633
|
+
return (t) => m(e, t);
|
|
633
634
|
};
|
|
634
|
-
function
|
|
635
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
635
|
+
function Zn(e) {
|
|
636
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
636
637
|
}
|
|
637
|
-
const
|
|
638
|
+
const er = () => ({
|
|
638
639
|
row: {
|
|
639
640
|
type: Object,
|
|
640
641
|
default: void 0
|
|
@@ -645,15 +646,15 @@ const Zn = () => ({
|
|
|
645
646
|
items: {
|
|
646
647
|
type: Array
|
|
647
648
|
}
|
|
648
|
-
}),
|
|
649
|
+
}), Se = D({
|
|
649
650
|
props: {
|
|
650
|
-
...
|
|
651
|
+
...er()
|
|
651
652
|
},
|
|
652
653
|
setup: (e) => {
|
|
653
|
-
const t =
|
|
654
|
+
const t = Q(), r = t(k.RowKey), o = t(k.ColKey);
|
|
654
655
|
return () => {
|
|
655
656
|
let a;
|
|
656
|
-
return !r || !o ? null :
|
|
657
|
+
return !r || !o ? null : d(r, e.row, Zn(a = F(e.items, (n) => d(o, K({
|
|
657
658
|
key: n.rowKey
|
|
658
659
|
}, e.col, n.col), {
|
|
659
660
|
default: () => [n.vNode]
|
|
@@ -662,27 +663,27 @@ const Zn = () => ({
|
|
|
662
663
|
});
|
|
663
664
|
};
|
|
664
665
|
}
|
|
665
|
-
}),
|
|
666
|
+
}), tr = (e, t, r) => {
|
|
666
667
|
if (t) {
|
|
667
|
-
const o = Y(
|
|
668
|
-
return
|
|
668
|
+
const o = Y(z(t), (a) => !t[a]);
|
|
669
|
+
return $(e, o);
|
|
669
670
|
}
|
|
670
671
|
if (r) {
|
|
671
|
-
const o = Y(
|
|
672
|
-
return
|
|
672
|
+
const o = Y(z(r), (a) => !r[a](e));
|
|
673
|
+
return $(e, o);
|
|
673
674
|
}
|
|
674
675
|
return e;
|
|
675
676
|
}, Bt = (e) => {
|
|
676
677
|
if (!!e)
|
|
677
|
-
return
|
|
678
|
-
},
|
|
679
|
-
const a =
|
|
680
|
-
return !n || gt(n) ||
|
|
681
|
-
if (
|
|
678
|
+
return _(e) ? e : e && oe(e) && e.indexOf(".") > 0 ? cn(e, ".") : [e];
|
|
679
|
+
}, ea = (e, t, r) => !t || !r ? e : F(e, (o) => {
|
|
680
|
+
const a = q(r) ? r(o) : m(o, r), n = m(t, a);
|
|
681
|
+
return !n || gt(n) || q(n) || !Ee(n) ? o : sn(o, n, (u, c) => {
|
|
682
|
+
if (_(u) || _(c))
|
|
682
683
|
return c;
|
|
683
684
|
});
|
|
684
|
-
}),
|
|
685
|
-
const r =
|
|
685
|
+
}), ge = (e, t) => {
|
|
686
|
+
const r = re(
|
|
686
687
|
e,
|
|
687
688
|
(o, a) => ({
|
|
688
689
|
...o,
|
|
@@ -694,20 +695,20 @@ const Zn = () => ({
|
|
|
694
695
|
{}
|
|
695
696
|
);
|
|
696
697
|
return r.originRef = t, r;
|
|
697
|
-
},
|
|
698
|
+
}, ta = (e, t, r) => {
|
|
698
699
|
const o = { originRef: e, ...r };
|
|
699
|
-
return t &&
|
|
700
|
+
return t && X(t) > 0 && ee(t, (a) => {
|
|
700
701
|
o[a] = (...n) => {
|
|
701
702
|
var u, c;
|
|
702
703
|
return (c = (u = e.value) == null ? void 0 : u[a]) == null ? void 0 : c.call(u, ...n);
|
|
703
704
|
};
|
|
704
705
|
}), o;
|
|
705
|
-
},
|
|
706
|
-
const r =
|
|
706
|
+
}, nr = (e, t) => m(e, ["extra", t]) || m(e, t), le = (e, t) => {
|
|
707
|
+
const r = z(e), o = `${t}-`, a = Y(r, (u) => ln(u, o)), n = V(e, a);
|
|
707
708
|
return dn(n, (u, c) => c.replace(o, ""));
|
|
708
709
|
}, qt = Symbol("pro-form-list"), Vt = () => ye(qt), zt = (e) => {
|
|
709
710
|
me(qt, e);
|
|
710
|
-
},
|
|
711
|
+
}, rr = D({
|
|
711
712
|
props: {
|
|
712
713
|
pathList: {
|
|
713
714
|
type: Array
|
|
@@ -758,119 +759,119 @@ const Zn = () => ({
|
|
|
758
759
|
onRemove: {
|
|
759
760
|
type: Function
|
|
760
761
|
}
|
|
761
|
-
}),
|
|
762
|
+
}), na = D({
|
|
762
763
|
props: {
|
|
763
764
|
...ut(),
|
|
764
|
-
|
|
765
|
+
...$(Se.props, "items")
|
|
765
766
|
},
|
|
766
767
|
setup: (e, {
|
|
767
768
|
slots: t
|
|
768
769
|
}) => {
|
|
769
|
-
const o =
|
|
770
|
+
const o = Q()(k.FormItemKey), {
|
|
770
771
|
formState: a,
|
|
771
772
|
readonly: n,
|
|
772
773
|
elementMap: u,
|
|
773
774
|
formElementMap: c
|
|
774
|
-
} = Wt(),
|
|
775
|
+
} = Wt(), l = Vt(), i = Bt(e.name), b = l != null && l.pathList ? [...l.pathList, ...i] : i, [h, f] = It(), S = () => {
|
|
775
776
|
var C;
|
|
776
777
|
if (((C = e.onPreAdd) == null ? void 0 : C.call(e)) === !0)
|
|
777
778
|
return;
|
|
778
|
-
const
|
|
779
|
-
let
|
|
780
|
-
|
|
779
|
+
const P = () => {
|
|
780
|
+
let I = m(a, b);
|
|
781
|
+
_(I) || (I = []), I.push({
|
|
781
782
|
[e.rowKey]: new Date().valueOf()
|
|
782
|
-
}), ce(a, b,
|
|
783
|
+
}), ce(a, b, I);
|
|
783
784
|
};
|
|
784
785
|
if (e.onAdd) {
|
|
785
|
-
e.onAdd(
|
|
786
|
+
e.onAdd(P);
|
|
786
787
|
return;
|
|
787
788
|
}
|
|
788
|
-
|
|
789
|
-
},
|
|
790
|
-
var
|
|
791
|
-
if (((
|
|
792
|
-
index:
|
|
793
|
-
item:
|
|
789
|
+
P();
|
|
790
|
+
}, E = (s, P) => {
|
|
791
|
+
var N;
|
|
792
|
+
if (((N = e.onPreRemove) == null ? void 0 : N.call(e, {
|
|
793
|
+
index: s,
|
|
794
|
+
item: P
|
|
794
795
|
})) === !0)
|
|
795
796
|
return;
|
|
796
|
-
const
|
|
797
|
-
const
|
|
798
|
-
|
|
797
|
+
const I = () => {
|
|
798
|
+
const w = m(a, b);
|
|
799
|
+
X(w) <= 0 || (w.splice(s, 1), f());
|
|
799
800
|
};
|
|
800
801
|
if (e.onRemove) {
|
|
801
|
-
e.onRemove(
|
|
802
|
-
index:
|
|
803
|
-
item:
|
|
802
|
+
e.onRemove(I, {
|
|
803
|
+
index: s,
|
|
804
|
+
item: P
|
|
804
805
|
});
|
|
805
806
|
return;
|
|
806
807
|
}
|
|
807
|
-
|
|
808
|
-
},
|
|
809
|
-
const C = se(
|
|
808
|
+
I();
|
|
809
|
+
}, y = (s, P) => {
|
|
810
|
+
const C = se(s);
|
|
810
811
|
return C && t[C] ? t[C]({
|
|
811
|
-
item:
|
|
812
|
+
item: s,
|
|
812
813
|
formState: a,
|
|
813
|
-
pathList:
|
|
814
|
-
}) : jt(u, c,
|
|
815
|
-
},
|
|
816
|
-
if (!c ||
|
|
814
|
+
pathList: P
|
|
815
|
+
}) : jt(u, c, s);
|
|
816
|
+
}, T = (s, P) => {
|
|
817
|
+
if (!c || X(e.columns) <= 0)
|
|
817
818
|
return null;
|
|
818
819
|
if (!e.row)
|
|
819
|
-
return
|
|
820
|
-
const C =
|
|
821
|
-
rowKey: se(
|
|
822
|
-
vNode:
|
|
823
|
-
col:
|
|
820
|
+
return F(e.columns, (I) => y(I, s));
|
|
821
|
+
const C = F(e.columns, (I) => ({
|
|
822
|
+
rowKey: se(I),
|
|
823
|
+
vNode: y(I, s),
|
|
824
|
+
col: m(I, ["extra", "col"])
|
|
824
825
|
}));
|
|
825
|
-
return
|
|
826
|
+
return d(Se, {
|
|
826
827
|
row: e.row,
|
|
827
828
|
col: e.col,
|
|
828
829
|
items: C
|
|
829
830
|
}, null);
|
|
830
|
-
},
|
|
831
|
-
return () => o ?
|
|
831
|
+
}, A = z(ut());
|
|
832
|
+
return () => o ? d(o, K({
|
|
832
833
|
class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
|
|
833
834
|
name: e.name
|
|
834
|
-
},
|
|
835
|
+
}, $(e, A)), {
|
|
835
836
|
default: () => {
|
|
836
|
-
var
|
|
837
|
-
return [
|
|
838
|
-
const
|
|
839
|
-
return
|
|
840
|
-
key: C[e.rowKey] +
|
|
841
|
-
pathList:
|
|
837
|
+
var s, P;
|
|
838
|
+
return [F(m(a, b), (C, I) => {
|
|
839
|
+
const N = [...b, I];
|
|
840
|
+
return d(rr, {
|
|
841
|
+
key: C[e.rowKey] + h.value,
|
|
842
|
+
pathList: N
|
|
842
843
|
}, {
|
|
843
844
|
default: () => {
|
|
844
|
-
var
|
|
845
|
-
return [
|
|
845
|
+
var w, U, B, H, Z, v;
|
|
846
|
+
return [d("div", {
|
|
846
847
|
class: "pro-form-list-item"
|
|
847
|
-
}, [(
|
|
848
|
+
}, [(w = t.start) == null ? void 0 : w.call(t, {
|
|
848
849
|
state: a,
|
|
849
850
|
path: b,
|
|
850
|
-
index:
|
|
851
|
-
}),
|
|
851
|
+
index: I
|
|
852
|
+
}), T(N), (U = t.default) == null ? void 0 : U.call(t), !n.value && d(ie, null, [d("div", {
|
|
852
853
|
class: "pro-form-list-item-add",
|
|
853
|
-
onClick:
|
|
854
|
-
}, [((
|
|
854
|
+
onClick: S
|
|
855
|
+
}, [((B = t.itemAdd) == null ? void 0 : B.call(t)) || ((H = e.renderItemAdd) == null ? void 0 : H.call(e))]), d("div", {
|
|
855
856
|
class: "pro-form-list-item-minus",
|
|
856
|
-
onClick: () =>
|
|
857
|
-
}, [((
|
|
857
|
+
onClick: () => E(I, C)
|
|
858
|
+
}, [((Z = t.itemMinus) == null ? void 0 : Z.call(t)) || ((v = e.renderItemMinus) == null ? void 0 : v.call(e))])])])];
|
|
858
859
|
}
|
|
859
860
|
});
|
|
860
|
-
}), !n.value &&
|
|
861
|
+
}), !n.value && d("div", {
|
|
861
862
|
class: "pro-form-list-add",
|
|
862
|
-
onClick:
|
|
863
|
-
}, [((
|
|
863
|
+
onClick: S
|
|
864
|
+
}, [((s = t.add) == null ? void 0 : s.call(t)) || ((P = e.renderAdd) == null ? void 0 : P.call(e))])];
|
|
864
865
|
}
|
|
865
866
|
}) : null;
|
|
866
867
|
}
|
|
867
|
-
}), Ht = Symbol("pro-form"), Wt = () => ye(Ht),
|
|
868
|
+
}), Ht = Symbol("pro-form"), Wt = () => ye(Ht), ar = (e, t = 300, r) => St(e, t, r), or = (e) => {
|
|
868
869
|
me(Ht, e);
|
|
869
870
|
};
|
|
870
|
-
let
|
|
871
|
+
let ne;
|
|
871
872
|
(function(e) {
|
|
872
873
|
e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
|
|
873
|
-
})(
|
|
874
|
+
})(ne || (ne = {}));
|
|
874
875
|
const ct = () => ({
|
|
875
876
|
clsName: {
|
|
876
877
|
type: String,
|
|
@@ -921,12 +922,12 @@ const ct = () => ({
|
|
|
921
922
|
type: Function,
|
|
922
923
|
default: void 0
|
|
923
924
|
}
|
|
924
|
-
}),
|
|
925
|
+
}), ra = D({
|
|
925
926
|
inheritAttrs: !1,
|
|
926
927
|
props: {
|
|
927
|
-
...
|
|
928
|
+
...he,
|
|
928
929
|
...ct(),
|
|
929
|
-
|
|
930
|
+
...$(Se.props, "items")
|
|
930
931
|
},
|
|
931
932
|
setup: (e, {
|
|
932
933
|
slots: t,
|
|
@@ -937,116 +938,116 @@ const ct = () => ({
|
|
|
937
938
|
const {
|
|
938
939
|
elementMap: n,
|
|
939
940
|
formElementMap: u
|
|
940
|
-
} =
|
|
941
|
-
const
|
|
942
|
-
return e.convertColumn ? Nt(
|
|
943
|
-
}),
|
|
944
|
-
var
|
|
945
|
-
((
|
|
946
|
-
},
|
|
947
|
-
const
|
|
948
|
-
|
|
949
|
-
}, C =
|
|
950
|
-
o(
|
|
951
|
-
formState:
|
|
941
|
+
} = te(), c = e.elementMap || n, l = e.formElementMap || u, i = e.model || Ae({}), b = Ue(i, e.showStateRules, e.showState), h = Ue(i, e.readonlyStateRules, e.readonlyState), f = Ue(i, e.disableStateRules, e.disableState), S = O(() => e.readonly), E = O(() => {
|
|
942
|
+
const M = je(e.columns, e.columnState, e.columnState2);
|
|
943
|
+
return e.convertColumn ? Nt(M, e.convertColumn) : M;
|
|
944
|
+
}), y = (...M) => {
|
|
945
|
+
var W;
|
|
946
|
+
((W = e.onPreFinish) == null ? void 0 : W.call(e, ...M)) !== !0 && r("finish", ...M);
|
|
947
|
+
}, T = e.debounceSubmit, A = (typeof T == "object" ? T.wait : T) || 300, s = ar((...M) => y(...M), A, T == null ? void 0 : T.options), P = (M) => {
|
|
948
|
+
const R = tr(M, b, e.showStateRules);
|
|
949
|
+
T !== void 0 ? s(R, M) : y(R, M);
|
|
950
|
+
}, C = G();
|
|
951
|
+
o(ge(e.formMethods || [], C)), or({
|
|
952
|
+
formState: i,
|
|
952
953
|
showState: b,
|
|
953
|
-
readonlyState:
|
|
954
|
-
disableState:
|
|
954
|
+
readonlyState: h,
|
|
955
|
+
disableState: f,
|
|
955
956
|
elementMap: c,
|
|
956
|
-
formElementMap:
|
|
957
|
-
readonly:
|
|
958
|
-
columns:
|
|
957
|
+
formElementMap: l,
|
|
958
|
+
readonly: S,
|
|
959
|
+
columns: E,
|
|
959
960
|
formRef: C,
|
|
960
961
|
...e.provideExtra
|
|
961
962
|
}), zt({});
|
|
962
|
-
const
|
|
963
|
-
value:
|
|
963
|
+
const I = [{
|
|
964
|
+
value: ne.RESET,
|
|
964
965
|
label: "\u91CD\u7F6E"
|
|
965
966
|
}, {
|
|
966
|
-
value:
|
|
967
|
+
value: ne.SUBMIT,
|
|
967
968
|
label: "\u63D0\u4EA4",
|
|
968
969
|
extraProps: {
|
|
969
970
|
type: "primary"
|
|
970
971
|
}
|
|
971
|
-
}],
|
|
972
|
-
var
|
|
973
|
-
if ((
|
|
972
|
+
}], N = () => {
|
|
973
|
+
var M, R;
|
|
974
|
+
if ((M = e.operate) != null && M.onReset) {
|
|
974
975
|
e.operate.onReset({
|
|
975
976
|
form: C.value
|
|
976
977
|
});
|
|
977
978
|
return;
|
|
978
979
|
}
|
|
979
|
-
(
|
|
980
|
-
},
|
|
981
|
-
var
|
|
982
|
-
if ((
|
|
980
|
+
(R = C.value) == null || R.resetFields();
|
|
981
|
+
}, w = () => {
|
|
982
|
+
var M, R;
|
|
983
|
+
if ((M = e.operate) != null && M.onSubmit) {
|
|
983
984
|
e.operate.onSubmit({
|
|
984
985
|
form: C.value
|
|
985
986
|
});
|
|
986
987
|
return;
|
|
987
988
|
}
|
|
988
|
-
(
|
|
989
|
-
},
|
|
990
|
-
var
|
|
991
|
-
(
|
|
989
|
+
(R = C.value) == null || R.submit();
|
|
990
|
+
}, U = () => {
|
|
991
|
+
var M, R;
|
|
992
|
+
(R = (M = e.operate) == null ? void 0 : M.onContinue) == null || R.call(M, {
|
|
992
993
|
form: C.value
|
|
993
994
|
});
|
|
994
|
-
},
|
|
995
|
-
[
|
|
996
|
-
[
|
|
997
|
-
[
|
|
998
|
-
},
|
|
999
|
-
const
|
|
1000
|
-
return
|
|
1001
|
-
...
|
|
1002
|
-
onClick:
|
|
1003
|
-
} :
|
|
1004
|
-
}),
|
|
1005
|
-
var
|
|
995
|
+
}, B = {
|
|
996
|
+
[ne.RESET]: N,
|
|
997
|
+
[ne.SUBMIT]: w,
|
|
998
|
+
[ne.CONTINUE]: U
|
|
999
|
+
}, H = O(() => {
|
|
1000
|
+
const M = e.operate, R = (M == null ? void 0 : M.items) || I;
|
|
1001
|
+
return F(R, (W) => !W.onClick && !m(M == null ? void 0 : M.itemState, [W.value, "onClick"]) ? {
|
|
1002
|
+
...W,
|
|
1003
|
+
onClick: m(B, W.value)
|
|
1004
|
+
} : W);
|
|
1005
|
+
}), Z = O(() => {
|
|
1006
|
+
var M;
|
|
1006
1007
|
return {
|
|
1007
|
-
[
|
|
1008
|
-
value:
|
|
1008
|
+
[ne.SUBMIT]: {
|
|
1009
|
+
value: ne.SUBMIT,
|
|
1009
1010
|
loading: e.submitLoading
|
|
1010
1011
|
},
|
|
1011
|
-
...(
|
|
1012
|
+
...(M = e.operate) == null ? void 0 : M.itemState
|
|
1012
1013
|
};
|
|
1013
|
-
}), v = (
|
|
1014
|
-
const
|
|
1015
|
-
return
|
|
1016
|
-
},
|
|
1017
|
-
const
|
|
1018
|
-
const
|
|
1019
|
-
return !!
|
|
1014
|
+
}), v = (M) => {
|
|
1015
|
+
const R = se(M);
|
|
1016
|
+
return R && t[R] ? t[R](M, i) : jt(c, l, M);
|
|
1017
|
+
}, g = O(() => {
|
|
1018
|
+
const M = Y(E.value, (R) => {
|
|
1019
|
+
const W = se(R);
|
|
1020
|
+
return !!m(b, W, !0);
|
|
1020
1021
|
});
|
|
1021
|
-
return e.row ?
|
|
1022
|
-
rowKey: se(
|
|
1023
|
-
vNode: v(
|
|
1024
|
-
col:
|
|
1025
|
-
})) :
|
|
1026
|
-
}),
|
|
1027
|
-
return () =>
|
|
1022
|
+
return e.row ? F(M, (R) => ({
|
|
1023
|
+
rowKey: se(R),
|
|
1024
|
+
vNode: v(R),
|
|
1025
|
+
col: m(R, ["extra", "col"])
|
|
1026
|
+
})) : F(M, (R) => v(R));
|
|
1027
|
+
}), p = [...z(ct()), ...z(he)], L = z($(Se.props, "items")), J = m(n, k.FormKey);
|
|
1028
|
+
return () => J ? d(J, K({
|
|
1028
1029
|
ref: C,
|
|
1029
1030
|
class: e.clsName
|
|
1030
|
-
},
|
|
1031
|
-
model:
|
|
1032
|
-
onFinish:
|
|
1031
|
+
}, $(a, "onFinish"), $(e, ...p, ...L, "onFinish", "operate"), {
|
|
1032
|
+
model: i,
|
|
1033
|
+
onFinish: P
|
|
1033
1034
|
}), {
|
|
1034
1035
|
default: () => {
|
|
1035
|
-
var
|
|
1036
|
-
return [(
|
|
1036
|
+
var M, R, W;
|
|
1037
|
+
return [(M = t.start) == null ? void 0 : M.call(t), l && X(E.value) > 0 && d(ie, null, [e.row ? d(Se, {
|
|
1037
1038
|
row: e.row,
|
|
1038
1039
|
col: e.col,
|
|
1039
|
-
items:
|
|
1040
|
-
}, null) :
|
|
1040
|
+
items: g.value
|
|
1041
|
+
}, null) : g.value]), (R = t.default) == null ? void 0 : R.call(t), e.operate && d(Qt, K({
|
|
1041
1042
|
class: `${e.clsName}-operate`
|
|
1042
|
-
},
|
|
1043
|
-
items:
|
|
1044
|
-
itemState:
|
|
1045
|
-
}), null), (
|
|
1043
|
+
}, $(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
1044
|
+
items: H.value,
|
|
1045
|
+
itemState: Z.value
|
|
1046
|
+
}), null), (W = t.end) == null ? void 0 : W.call(t)];
|
|
1046
1047
|
}
|
|
1047
1048
|
}) : null;
|
|
1048
1049
|
}
|
|
1049
|
-
}),
|
|
1050
|
+
}), aa = {
|
|
1050
1051
|
text: "\u8BF7\u8F93\u5165",
|
|
1051
1052
|
digit: "\u8BF7\u8F93\u5165",
|
|
1052
1053
|
select: "\u8BF7\u9009\u62E9",
|
|
@@ -1058,10 +1059,10 @@ const ct = () => ({
|
|
|
1058
1059
|
date: "\u8BF7\u9009\u62E9",
|
|
1059
1060
|
time: "\u8BF7\u9009\u62E9"
|
|
1060
1061
|
};
|
|
1061
|
-
let
|
|
1062
|
+
let Le;
|
|
1062
1063
|
(function(e) {
|
|
1063
1064
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
1064
|
-
})(
|
|
1065
|
+
})(Le || (Le = {}));
|
|
1065
1066
|
const st = () => ({
|
|
1066
1067
|
initEmit: {
|
|
1067
1068
|
type: Boolean,
|
|
@@ -1069,7 +1070,7 @@ const st = () => ({
|
|
|
1069
1070
|
},
|
|
1070
1071
|
searchMode: {
|
|
1071
1072
|
type: String,
|
|
1072
|
-
default:
|
|
1073
|
+
default: Le.AUTO
|
|
1073
1074
|
},
|
|
1074
1075
|
debounceKeys: {
|
|
1075
1076
|
type: Array
|
|
@@ -1082,7 +1083,7 @@ const st = () => ({
|
|
|
1082
1083
|
type: Number,
|
|
1083
1084
|
default: 800
|
|
1084
1085
|
}
|
|
1085
|
-
}),
|
|
1086
|
+
}), oa = D({
|
|
1086
1087
|
props: {
|
|
1087
1088
|
...st(),
|
|
1088
1089
|
needRules: {
|
|
@@ -1094,40 +1095,40 @@ const st = () => ({
|
|
|
1094
1095
|
slots: t,
|
|
1095
1096
|
expose: r
|
|
1096
1097
|
}) => {
|
|
1097
|
-
const a =
|
|
1098
|
-
const
|
|
1099
|
-
return u.has(
|
|
1100
|
-
}), (
|
|
1101
|
-
...
|
|
1102
|
-
formItemProps:
|
|
1103
|
-
}))),
|
|
1104
|
-
r(
|
|
1105
|
-
const
|
|
1106
|
-
var
|
|
1107
|
-
(
|
|
1108
|
-
},
|
|
1109
|
-
|
|
1098
|
+
const a = Q()(k.ProFormKey), n = e.model || Ae({}), u = new Set(e.debounceTypes), c = F(Y(e.columns, (y) => {
|
|
1099
|
+
const T = Lt(y);
|
|
1100
|
+
return u.has(T);
|
|
1101
|
+
}), (y) => se(y)), l = O(() => F(e.columns, (y) => ({
|
|
1102
|
+
...y,
|
|
1103
|
+
formItemProps: $(y.formItemProps, "required")
|
|
1104
|
+
}))), i = G(), b = e.formMethods || [];
|
|
1105
|
+
r(ge(b, i));
|
|
1106
|
+
const h = () => {
|
|
1107
|
+
var y;
|
|
1108
|
+
(y = i.value) == null || y.submit();
|
|
1109
|
+
}, f = St(() => {
|
|
1110
|
+
h();
|
|
1110
1111
|
}, e.debounceTime);
|
|
1111
|
-
|
|
1112
|
-
e.initEmit &&
|
|
1112
|
+
ue(() => {
|
|
1113
|
+
e.initEmit && h();
|
|
1113
1114
|
}, []);
|
|
1114
|
-
const
|
|
1115
|
-
At((
|
|
1116
|
-
if (e.searchMode !==
|
|
1115
|
+
const S = (y, T, A) => fe(A, (s) => m(y, s) !== m(T, s));
|
|
1116
|
+
At((y, T) => {
|
|
1117
|
+
if (e.searchMode !== Le.AUTO)
|
|
1117
1118
|
return;
|
|
1118
|
-
const
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1119
|
+
const A = X(e.debounceKeys) > 0 ? e.debounceKeys : c;
|
|
1120
|
+
if (X(A) > 0 && S(y, T, A)) {
|
|
1121
|
+
f();
|
|
1121
1122
|
return;
|
|
1122
1123
|
}
|
|
1123
|
-
|
|
1124
|
+
h();
|
|
1124
1125
|
}, () => fn(n));
|
|
1125
|
-
const
|
|
1126
|
-
return () => a ?
|
|
1127
|
-
ref:
|
|
1126
|
+
const E = z(st());
|
|
1127
|
+
return () => a ? d(a, K({
|
|
1128
|
+
ref: i,
|
|
1128
1129
|
class: "pro-search-form"
|
|
1129
|
-
},
|
|
1130
|
-
columns:
|
|
1130
|
+
}, $(e, E, "columns"), {
|
|
1131
|
+
columns: l.value,
|
|
1131
1132
|
model: n
|
|
1132
1133
|
}), t) : null;
|
|
1133
1134
|
}
|
|
@@ -1145,11 +1146,11 @@ const st = () => ({
|
|
|
1145
1146
|
slots: {
|
|
1146
1147
|
type: Object
|
|
1147
1148
|
}
|
|
1148
|
-
}),
|
|
1149
|
+
}), ua = (e, t) => ({
|
|
1149
1150
|
InputComp: r,
|
|
1150
1151
|
valueType: o,
|
|
1151
1152
|
name: a
|
|
1152
|
-
}) =>
|
|
1153
|
+
}) => D({
|
|
1153
1154
|
name: a,
|
|
1154
1155
|
props: {
|
|
1155
1156
|
...e.props,
|
|
@@ -1160,115 +1161,115 @@ const st = () => ({
|
|
|
1160
1161
|
}) => {
|
|
1161
1162
|
const {
|
|
1162
1163
|
formExtraMap: c,
|
|
1163
|
-
elementMap:
|
|
1164
|
-
} =
|
|
1165
|
-
formState:
|
|
1164
|
+
elementMap: l
|
|
1165
|
+
} = te(), {
|
|
1166
|
+
formState: i,
|
|
1166
1167
|
readonlyState: b,
|
|
1167
|
-
disableState:
|
|
1168
|
-
readonly:
|
|
1169
|
-
} = Wt(),
|
|
1168
|
+
disableState: h,
|
|
1169
|
+
readonly: f
|
|
1170
|
+
} = Wt(), S = Vt(), E = O(() => Me(n.readonly) ? n.readonly : Me(b[n.name]) ? b[n.name] : f.value), y = () => `${m(c == null ? void 0 : c.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, T = O(() => c != null && c.rulePrefixMap ? n.required === !0 && !n.rules ? [{
|
|
1170
1171
|
required: !0,
|
|
1171
|
-
message:
|
|
1172
|
-
}] : n.rules ?
|
|
1173
|
-
ce(
|
|
1174
|
-
}, C =
|
|
1175
|
-
const
|
|
1172
|
+
message: y()
|
|
1173
|
+
}] : n.rules ? F(n.rules, (w) => (w.required && !w.message && (w.message = y()), w)) : n.rules : n.rules), A = Bt(n.name), s = S != null && S.pathList ? [...S.pathList, ...A] : A, P = (w) => {
|
|
1174
|
+
ce(i, s, w);
|
|
1175
|
+
}, C = z(lt()), I = () => {
|
|
1176
|
+
const w = m(i, s);
|
|
1176
1177
|
if (u.renderShow)
|
|
1177
1178
|
return u.renderShow({
|
|
1178
|
-
value:
|
|
1179
|
-
record:
|
|
1180
|
-
path:
|
|
1179
|
+
value: w,
|
|
1180
|
+
record: i,
|
|
1181
|
+
path: s
|
|
1181
1182
|
});
|
|
1182
|
-
const
|
|
1183
|
-
return
|
|
1184
|
-
value:
|
|
1183
|
+
const U = m(l, o);
|
|
1184
|
+
return U ? d(U, K({
|
|
1185
|
+
value: w
|
|
1185
1186
|
}, n.fieldProps, {
|
|
1186
1187
|
showProps: n.showProps
|
|
1187
|
-
}), u) :
|
|
1188
|
-
},
|
|
1189
|
-
const
|
|
1188
|
+
}), u) : d("span", null, [w]);
|
|
1189
|
+
}, N = () => {
|
|
1190
|
+
const w = m(i, s), U = m(h, s);
|
|
1190
1191
|
return u.renderInput ? u.renderInput({
|
|
1191
|
-
value:
|
|
1192
|
-
setValue:
|
|
1193
|
-
disabled:
|
|
1194
|
-
record:
|
|
1195
|
-
path:
|
|
1196
|
-
}) :
|
|
1192
|
+
value: w,
|
|
1193
|
+
setValue: P,
|
|
1194
|
+
disabled: U,
|
|
1195
|
+
record: i,
|
|
1196
|
+
path: s
|
|
1197
|
+
}) : d(r, K(t(w, P, U), n.fieldProps), u);
|
|
1197
1198
|
};
|
|
1198
|
-
return () =>
|
|
1199
|
+
return () => d(e, K({
|
|
1199
1200
|
class: "pro-form-item"
|
|
1200
|
-
},
|
|
1201
|
-
name:
|
|
1202
|
-
rules:
|
|
1201
|
+
}, $(n, ...C, "name", "rules"), {
|
|
1202
|
+
name: s,
|
|
1203
|
+
rules: T.value
|
|
1203
1204
|
}), {
|
|
1204
|
-
default: () => [
|
|
1205
|
+
default: () => [E.value ? I() : N()],
|
|
1205
1206
|
...n.slots
|
|
1206
1207
|
});
|
|
1207
1208
|
}
|
|
1208
|
-
}), Gt =
|
|
1209
|
+
}), Gt = Kn("access", void 0, !0), ur = () => {
|
|
1209
1210
|
const [e, t] = Gt();
|
|
1210
1211
|
return { access: e, setAccess: t, delAccess: () => {
|
|
1211
1212
|
t(void 0);
|
|
1212
1213
|
} };
|
|
1213
|
-
},
|
|
1214
|
+
}, ca = () => {
|
|
1214
1215
|
const [e, t] = Gt();
|
|
1215
1216
|
return [e, t, () => {
|
|
1216
1217
|
t(void 0);
|
|
1217
1218
|
}];
|
|
1218
|
-
}, Xt = Symbol("logon-user"),
|
|
1219
|
+
}, Xt = Symbol("logon-user"), cr = () => ye(Xt), sa = D((e, { slots: t }) => {
|
|
1219
1220
|
const [r, o] = tt(), [a, n] = tt();
|
|
1220
1221
|
return me(Xt, { user: r, setUser: o, per: a, setPer: n, opts: {} }), () => {
|
|
1221
1222
|
var c;
|
|
1222
1223
|
return (c = t.default) == null ? void 0 : c.call(t);
|
|
1223
1224
|
};
|
|
1224
|
-
}),
|
|
1225
|
-
const { access: o } =
|
|
1226
|
-
return
|
|
1225
|
+
}), la = D((e, { slots: t, emit: r }) => {
|
|
1226
|
+
const { access: o } = ur(), a = O(() => o && o.token);
|
|
1227
|
+
return ue(() => {
|
|
1227
1228
|
a.value || r("toLogin");
|
|
1228
1229
|
}, a), () => {
|
|
1229
1230
|
var n;
|
|
1230
1231
|
return a.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
|
|
1231
1232
|
};
|
|
1232
|
-
}),
|
|
1233
|
+
}), ia = {
|
|
1233
1234
|
Add: "add",
|
|
1234
1235
|
Edit: "edit",
|
|
1235
1236
|
Delete: "delete"
|
|
1236
|
-
},
|
|
1237
|
-
const { per: e } =
|
|
1237
|
+
}, sr = (e, t) => !e || !t ? !1 : _(t) ? fe(t, (r) => e[r]) : e[t], _t = () => {
|
|
1238
|
+
const { per: e } = cr() || { per: { menus: [], buttonMap: {} } }, t = Xe();
|
|
1238
1239
|
return (r, o) => {
|
|
1239
1240
|
if (!r)
|
|
1240
1241
|
return !1;
|
|
1241
1242
|
let a = r;
|
|
1242
1243
|
if (o != null && o.suffix) {
|
|
1243
1244
|
const n = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
|
|
1244
|
-
a =
|
|
1245
|
+
a = _(a) ? F(a, (c) => `${n}${u}${c}`) : `${n}${u}${a}`;
|
|
1245
1246
|
}
|
|
1246
|
-
return
|
|
1247
|
+
return sr(e.buttonMap, a);
|
|
1247
1248
|
};
|
|
1248
1249
|
}, Yt = () => {
|
|
1249
1250
|
const e = _t();
|
|
1250
1251
|
return (t, r, o) => t ? e(t) : r ? e(r, { suffix: !0, splitStr: o }) : !0;
|
|
1251
|
-
},
|
|
1252
|
+
}, lr = () => ({
|
|
1252
1253
|
suffix: { type: [String, Array] },
|
|
1253
1254
|
value: { type: [String, Array] },
|
|
1254
1255
|
splitStr: { type: String }
|
|
1255
|
-
}),
|
|
1256
|
+
}), da = D({
|
|
1256
1257
|
inheritAttrs: !1,
|
|
1257
1258
|
props: {
|
|
1258
|
-
...
|
|
1259
|
+
...lr()
|
|
1259
1260
|
},
|
|
1260
1261
|
setup: (e, { slots: t }) => {
|
|
1261
|
-
const r = _t(), o =
|
|
1262
|
+
const r = _t(), o = O(() => e.value ? r(e.value) : e.suffix ? r(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
|
|
1262
1263
|
return () => {
|
|
1263
1264
|
var a;
|
|
1264
1265
|
return o.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
|
|
1265
1266
|
};
|
|
1266
1267
|
}
|
|
1267
1268
|
});
|
|
1268
|
-
function
|
|
1269
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1269
|
+
function ir(e) {
|
|
1270
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
1270
1271
|
}
|
|
1271
|
-
const
|
|
1272
|
+
const dr = () => ({
|
|
1272
1273
|
clsName: {
|
|
1273
1274
|
type: String,
|
|
1274
1275
|
default: "pro-operate"
|
|
@@ -1281,48 +1282,48 @@ const ir = () => ({
|
|
|
1281
1282
|
},
|
|
1282
1283
|
elementKey: {
|
|
1283
1284
|
type: String,
|
|
1284
|
-
default:
|
|
1285
|
+
default: k.ButtonKey
|
|
1285
1286
|
},
|
|
1286
1287
|
splitStr: {
|
|
1287
1288
|
type: String
|
|
1288
1289
|
}
|
|
1289
|
-
}), Qt =
|
|
1290
|
+
}), Qt = D({
|
|
1290
1291
|
props: {
|
|
1291
|
-
...
|
|
1292
|
+
...dr()
|
|
1292
1293
|
},
|
|
1293
1294
|
setup: (e, {
|
|
1294
1295
|
slots: t
|
|
1295
1296
|
}) => {
|
|
1296
|
-
const r = Yt(), o =
|
|
1297
|
-
const c = Y(e.items, (
|
|
1298
|
-
...
|
|
1299
|
-
...
|
|
1300
|
-
} :
|
|
1301
|
-
return Pt(
|
|
1297
|
+
const r = Yt(), o = O(() => {
|
|
1298
|
+
const c = Y(e.items, (i) => r(i.per, i.perSuffix, e.splitStr) ? q(i.show) ? i.show() : Me(i.show) ? i.show : !0 : !1), l = F(c, (i) => He(e.itemState, i.value) ? {
|
|
1299
|
+
...i,
|
|
1300
|
+
...m(e.itemState, i.value)
|
|
1301
|
+
} : i);
|
|
1302
|
+
return Pt(l, (i) => i.sort);
|
|
1302
1303
|
}), a = (c) => {
|
|
1303
|
-
var
|
|
1304
|
-
(
|
|
1305
|
-
}, n =
|
|
1306
|
-
return () =>
|
|
1304
|
+
var l;
|
|
1305
|
+
(l = c.onClick) == null || l.call(c, c.value);
|
|
1306
|
+
}, n = Q(), u = e.elementKey ? n(e.elementKey) : void 0;
|
|
1307
|
+
return () => d("div", {
|
|
1307
1308
|
class: e.clsName
|
|
1308
|
-
}, [
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1311
|
-
disabled:
|
|
1309
|
+
}, [F(o.value, (c) => {
|
|
1310
|
+
const l = q(c.disabled) ? c.disabled() : c.disabled, i = q(c.loading) ? c.loading() : c.loading, b = q(c.label) ? c.label() : c.label, h = q(c.extraProps) ? c.extraProps() : c.extraProps, f = {
|
|
1311
|
+
...$(c, "show", "disabled", "element"),
|
|
1312
|
+
disabled: l
|
|
1312
1313
|
};
|
|
1313
|
-
return c.element &&
|
|
1314
|
-
disabled:
|
|
1315
|
-
loading:
|
|
1314
|
+
return c.element && q(c.element) ? c.element(f) : t[c.value] ? t[c.value](f) : u ? d(u, K({
|
|
1315
|
+
disabled: l,
|
|
1316
|
+
loading: i,
|
|
1316
1317
|
onClick: () => a(c)
|
|
1317
|
-
},
|
|
1318
|
+
}, h), ir(b) ? b : {
|
|
1318
1319
|
default: () => [b]
|
|
1319
|
-
}) :
|
|
1320
|
+
}) : d("div", {
|
|
1320
1321
|
class: `${e.clsName}-item`,
|
|
1321
1322
|
onClick: () => a(c)
|
|
1322
1323
|
}, [b]);
|
|
1323
1324
|
})]);
|
|
1324
1325
|
}
|
|
1325
|
-
}),
|
|
1326
|
+
}), fr = () => ({
|
|
1326
1327
|
clsName: {
|
|
1327
1328
|
type: String,
|
|
1328
1329
|
default: "pro-table-toolbar-column"
|
|
@@ -1343,103 +1344,103 @@ const ir = () => ({
|
|
|
1343
1344
|
type: Function,
|
|
1344
1345
|
default: () => "\u5217\u8BBE\u7F6E"
|
|
1345
1346
|
}
|
|
1346
|
-
}),
|
|
1347
|
+
}), mr = D({
|
|
1347
1348
|
props: {
|
|
1348
|
-
...
|
|
1349
|
+
...fr()
|
|
1349
1350
|
},
|
|
1350
1351
|
setup: (e, {
|
|
1351
1352
|
slots: t
|
|
1352
1353
|
}) => {
|
|
1353
|
-
const r =
|
|
1354
|
+
const r = Q(), o = r(k.PopoverKey), a = r(k.CheckboxKey), {
|
|
1354
1355
|
originColumns: n,
|
|
1355
1356
|
selectIdsRef: u
|
|
1356
|
-
} =
|
|
1357
|
-
let
|
|
1358
|
-
const b = (
|
|
1359
|
-
|
|
1360
|
-
},
|
|
1361
|
-
|
|
1362
|
-
|
|
1357
|
+
} = yr(), [c, l] = It();
|
|
1358
|
+
let i = {};
|
|
1359
|
+
const b = (s) => {
|
|
1360
|
+
i[s] = !1;
|
|
1361
|
+
}, h = () => {
|
|
1362
|
+
ee(u.value, (s) => {
|
|
1363
|
+
i[s] = !0;
|
|
1363
1364
|
});
|
|
1364
|
-
},
|
|
1365
|
-
...
|
|
1366
|
-
[
|
|
1367
|
-
}), {})),
|
|
1368
|
-
|
|
1369
|
-
u.value =
|
|
1370
|
-
var
|
|
1371
|
-
return e.useSelectedStatus && He(
|
|
1372
|
-
}), (
|
|
1365
|
+
}, f = O(() => re(u.value, (s, P) => ({
|
|
1366
|
+
...s,
|
|
1367
|
+
[P]: !0
|
|
1368
|
+
}), {})), S = (s) => nr(s, e.signName);
|
|
1369
|
+
ue(() => {
|
|
1370
|
+
u.value = F(Y(n.value, (s) => {
|
|
1371
|
+
var P;
|
|
1372
|
+
return e.useSelectedStatus && He(i, s.dataIndex) ? i[s.dataIndex] : ((P = S(s)) == null ? void 0 : P.initShow) !== !1;
|
|
1373
|
+
}), (s) => s.dataIndex);
|
|
1373
1374
|
}, n), At(() => {
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1375
|
+
var s;
|
|
1376
|
+
l(), h(), (s = e.onColumnSelectChange) == null || s.call(e, u.value);
|
|
1376
1377
|
}, u);
|
|
1377
|
-
const
|
|
1378
|
-
const
|
|
1379
|
-
var
|
|
1380
|
-
return (
|
|
1381
|
-
}),
|
|
1382
|
-
var
|
|
1383
|
-
return (
|
|
1378
|
+
const E = O(() => {
|
|
1379
|
+
const s = mn(n.value, (C) => {
|
|
1380
|
+
var I;
|
|
1381
|
+
return (I = S(C)) != null && I.disabled ? !0 : m(f.value, C.dataIndex);
|
|
1382
|
+
}), P = fe(n.value, (C) => {
|
|
1383
|
+
var I;
|
|
1384
|
+
return (I = S(C)) != null && I.disabled ? !0 : m(f.value, C.dataIndex);
|
|
1384
1385
|
});
|
|
1385
1386
|
return {
|
|
1386
|
-
checked:
|
|
1387
|
-
indeterminate:
|
|
1387
|
+
checked: s,
|
|
1388
|
+
indeterminate: s ? !1 : P
|
|
1388
1389
|
};
|
|
1389
|
-
}),
|
|
1390
|
+
}), y = (s) => {
|
|
1390
1391
|
var C;
|
|
1391
|
-
(
|
|
1392
|
-
var
|
|
1393
|
-
return (
|
|
1394
|
-
}), (
|
|
1395
|
-
},
|
|
1396
|
-
u.value =
|
|
1397
|
-
var
|
|
1398
|
-
return ((
|
|
1399
|
-
}), (
|
|
1400
|
-
},
|
|
1401
|
-
var
|
|
1402
|
-
(
|
|
1392
|
+
(Ee(s) ? (C = s.target) == null ? void 0 : C.checked : s) ? u.value = F(n.value, (I) => I.dataIndex) : u.value = F(Y(n.value, (I) => {
|
|
1393
|
+
var N;
|
|
1394
|
+
return (N = S(I)) != null && N.disabled ? !0 : (b(I.dataIndex), !1);
|
|
1395
|
+
}), (I) => I.dataIndex);
|
|
1396
|
+
}, T = () => {
|
|
1397
|
+
u.value = F(Y(n.value, (s) => {
|
|
1398
|
+
var P;
|
|
1399
|
+
return ((P = S(s)) == null ? void 0 : P.initShow) === !1 ? (b(s.dataIndex), !1) : !0;
|
|
1400
|
+
}), (s) => s.dataIndex);
|
|
1401
|
+
}, A = (s, P) => {
|
|
1402
|
+
var I;
|
|
1403
|
+
(Ee(P) ? (I = P.target) == null ? void 0 : I.checked : P) ? u.value = [...u.value, s.dataIndex] : u.value = Y(u.value, (N) => s.dataIndex === N ? (b(s.dataIndex), !1) : !0);
|
|
1403
1404
|
};
|
|
1404
|
-
return () => o ?
|
|
1405
|
+
return () => o ? d(o, K({
|
|
1405
1406
|
trigger: "click"
|
|
1406
1407
|
}, e.popoverProps), {
|
|
1407
1408
|
default: () => {
|
|
1408
|
-
var
|
|
1409
|
-
return [((
|
|
1409
|
+
var s, P;
|
|
1410
|
+
return [((s = t.default) == null ? void 0 : s.call(t)) || ((P = e.renderDom) == null ? void 0 : P.call(e))];
|
|
1410
1411
|
},
|
|
1411
|
-
content: () =>
|
|
1412
|
+
content: () => d("div", {
|
|
1412
1413
|
class: `${e.clsName}`
|
|
1413
|
-
}, [
|
|
1414
|
+
}, [d("div", {
|
|
1414
1415
|
class: `${e.clsName}-header`
|
|
1415
|
-
}, [
|
|
1416
|
+
}, [d(a, {
|
|
1416
1417
|
key: c.value,
|
|
1417
|
-
checked:
|
|
1418
|
-
indeterminate:
|
|
1419
|
-
onChange:
|
|
1418
|
+
checked: E.value.checked,
|
|
1419
|
+
indeterminate: E.value.indeterminate,
|
|
1420
|
+
onChange: y
|
|
1420
1421
|
}, {
|
|
1421
1422
|
default: () => [et("\u5217\u5C55\u793A")]
|
|
1422
|
-
}),
|
|
1423
|
-
onClick:
|
|
1424
|
-
}, [et("\u91CD\u7F6E")])]),
|
|
1423
|
+
}), d("a", {
|
|
1424
|
+
onClick: T
|
|
1425
|
+
}, [et("\u91CD\u7F6E")])]), d("div", {
|
|
1425
1426
|
key: c.value,
|
|
1426
1427
|
class: `${e.clsName}-list`
|
|
1427
|
-
}, [
|
|
1428
|
-
const
|
|
1429
|
-
return
|
|
1428
|
+
}, [F(n.value, (s) => {
|
|
1429
|
+
const P = S(s), C = m(f.value, s.dataIndex, !1);
|
|
1430
|
+
return d(a, {
|
|
1430
1431
|
checked: C,
|
|
1431
|
-
disabled:
|
|
1432
|
-
onChange: (
|
|
1433
|
-
|
|
1432
|
+
disabled: P == null ? void 0 : P.disabled,
|
|
1433
|
+
onChange: (I) => {
|
|
1434
|
+
A(s, I);
|
|
1434
1435
|
}
|
|
1435
1436
|
}, {
|
|
1436
|
-
default: () => [
|
|
1437
|
+
default: () => [s.title]
|
|
1437
1438
|
});
|
|
1438
1439
|
})])]),
|
|
1439
|
-
|
|
1440
|
+
...$(t, "default")
|
|
1440
1441
|
}) : null;
|
|
1441
1442
|
}
|
|
1442
|
-
}), Jt = Symbol("pro-table"),
|
|
1443
|
+
}), Jt = Symbol("pro-table"), yr = () => ye(Jt), vr = (e) => {
|
|
1443
1444
|
me(Jt, e);
|
|
1444
1445
|
}, it = () => ({
|
|
1445
1446
|
clsName: {
|
|
@@ -1482,10 +1483,10 @@ const ir = () => ({
|
|
|
1482
1483
|
dataSource: {
|
|
1483
1484
|
type: Array
|
|
1484
1485
|
}
|
|
1485
|
-
}),
|
|
1486
|
+
}), fa = D({
|
|
1486
1487
|
inheritAttrs: !1,
|
|
1487
1488
|
props: {
|
|
1488
|
-
...
|
|
1489
|
+
...he,
|
|
1489
1490
|
...it()
|
|
1490
1491
|
},
|
|
1491
1492
|
setup: (e, {
|
|
@@ -1495,133 +1496,141 @@ const ir = () => ({
|
|
|
1495
1496
|
}) => {
|
|
1496
1497
|
const {
|
|
1497
1498
|
elementMap: a
|
|
1498
|
-
} =
|
|
1499
|
+
} = te(), n = e.elementMap || a, u = m(a, k.TableKey), c = () => ({
|
|
1499
1500
|
title: "\u5E8F\u53F7",
|
|
1500
1501
|
dataIndex: "serialNumber",
|
|
1501
1502
|
width: 80,
|
|
1502
1503
|
...e.column,
|
|
1503
|
-
...
|
|
1504
|
+
...Me(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1504
1505
|
customRender: ({
|
|
1505
|
-
index:
|
|
1506
|
+
index: v
|
|
1506
1507
|
}) => {
|
|
1507
|
-
var
|
|
1508
|
-
return ((
|
|
1508
|
+
var g, p;
|
|
1509
|
+
return ((g = e.paginationState) == null ? void 0 : g.page) && ((p = e.paginationState) == null ? void 0 : p.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + v + 1 : v + 1;
|
|
1509
1510
|
}
|
|
1510
|
-
}),
|
|
1511
|
-
var
|
|
1512
|
-
if (e.operateItemClickMap && e.operateItemClickMap[
|
|
1513
|
-
e.operateItemClickMap[
|
|
1511
|
+
}), l = (v, g) => {
|
|
1512
|
+
var p;
|
|
1513
|
+
if (e.operateItemClickMap && e.operateItemClickMap[g.value]) {
|
|
1514
|
+
e.operateItemClickMap[g.value](v, g);
|
|
1514
1515
|
return;
|
|
1515
1516
|
}
|
|
1516
|
-
(
|
|
1517
|
-
},
|
|
1518
|
-
const
|
|
1519
|
-
...
|
|
1520
|
-
...
|
|
1521
|
-
...
|
|
1517
|
+
(p = g.onClick) == null || p.call(g, v);
|
|
1518
|
+
}, i = le(t, "operate"), b = () => {
|
|
1519
|
+
const v = e.operate, g = F(v.items, (p) => ({
|
|
1520
|
+
...m(e.operateItemState, p.value),
|
|
1521
|
+
...p,
|
|
1522
|
+
...m(v.itemState, p.value)
|
|
1522
1523
|
}));
|
|
1523
1524
|
return {
|
|
1524
1525
|
...e.column,
|
|
1525
1526
|
title: "\u64CD\u4F5C",
|
|
1526
1527
|
dataIndex: "operate",
|
|
1527
1528
|
fixed: "right",
|
|
1528
|
-
|
|
1529
|
+
...v.column,
|
|
1529
1530
|
customRender: ({
|
|
1530
|
-
record:
|
|
1531
|
+
record: p
|
|
1531
1532
|
}) => {
|
|
1532
|
-
const
|
|
1533
|
-
...
|
|
1534
|
-
show:
|
|
1535
|
-
disabled:
|
|
1536
|
-
loading:
|
|
1537
|
-
extraProps:
|
|
1538
|
-
element:
|
|
1539
|
-
onClick: () =>
|
|
1540
|
-
})),
|
|
1541
|
-
...
|
|
1542
|
-
[
|
|
1543
|
-
var
|
|
1544
|
-
return (
|
|
1533
|
+
const L = F(g, (M) => ({
|
|
1534
|
+
...M,
|
|
1535
|
+
show: q(M.show) ? M.show(p) : M.show,
|
|
1536
|
+
disabled: q(M.disabled) ? M.disabled(p) : M.disabled,
|
|
1537
|
+
loading: q(M.loading) ? M.loading(p) : M.loading,
|
|
1538
|
+
extraProps: q(M.extraProps) ? M.extraProps(p) : M.extraProps,
|
|
1539
|
+
element: q(M.element) ? () => M.element(p, M) : M.element,
|
|
1540
|
+
onClick: () => l(p, M)
|
|
1541
|
+
})), J = re(z(i), (M, R) => ({
|
|
1542
|
+
...M,
|
|
1543
|
+
[R]: (W) => {
|
|
1544
|
+
var ve;
|
|
1545
|
+
return (ve = i[R]) == null ? void 0 : ve.call(i, p, W);
|
|
1545
1546
|
}
|
|
1546
1547
|
}), {});
|
|
1547
|
-
return
|
|
1548
|
+
return d(Qt, {
|
|
1548
1549
|
class: `${e.clsName}-operate`,
|
|
1549
|
-
items:
|
|
1550
|
-
elementKey:
|
|
1551
|
-
},
|
|
1550
|
+
items: L,
|
|
1551
|
+
elementKey: v.elementKey || k.TableOperateKey
|
|
1552
|
+
}, J);
|
|
1552
1553
|
}
|
|
1553
1554
|
};
|
|
1554
|
-
},
|
|
1555
|
-
var
|
|
1556
|
-
return !!((
|
|
1557
|
-
}),
|
|
1558
|
-
if (!
|
|
1555
|
+
}, h = G([]), f = O(() => {
|
|
1556
|
+
var v;
|
|
1557
|
+
return !!((v = e.toolbar) != null && v.columnSetting);
|
|
1558
|
+
}), S = rn(e, "columns"), E = O(() => {
|
|
1559
|
+
if (!f.value)
|
|
1559
1560
|
return e.columns;
|
|
1560
|
-
const
|
|
1561
|
-
...
|
|
1562
|
-
[
|
|
1561
|
+
const v = re(h.value, (g, p) => ({
|
|
1562
|
+
...g,
|
|
1563
|
+
[p]: !0
|
|
1563
1564
|
}), {});
|
|
1564
|
-
return Y(e.columns, (
|
|
1565
|
-
}),
|
|
1566
|
-
const
|
|
1565
|
+
return Y(e.columns, (g) => m(v, g.dataIndex));
|
|
1566
|
+
}), y = (v) => F(v, (g) => {
|
|
1567
|
+
const p = {
|
|
1567
1568
|
...e.column,
|
|
1568
|
-
...
|
|
1569
|
-
},
|
|
1570
|
-
return
|
|
1571
|
-
value:
|
|
1572
|
-
}) => typeof
|
|
1573
|
-
value:
|
|
1569
|
+
...g
|
|
1570
|
+
}, L = e.convertColumn ? e.convertColumn(p) : p;
|
|
1571
|
+
return g.children && X(g.children) > 0 ? (L.children = y(g.children), L) : (g.customRender || (L.customRender = ({
|
|
1572
|
+
value: J
|
|
1573
|
+
}) => typeof J > "u" || J === null || J === "" ? e.columnEmptyText : Qe(n, g, {
|
|
1574
|
+
value: J
|
|
1574
1575
|
}, {
|
|
1575
1576
|
render: "tableRender"
|
|
1576
|
-
}) ||
|
|
1577
|
-
}),
|
|
1578
|
-
const
|
|
1579
|
-
return e.serialNumber &&
|
|
1580
|
-
}),
|
|
1581
|
-
var
|
|
1582
|
-
const
|
|
1583
|
-
return
|
|
1584
|
-
}),
|
|
1585
|
-
|
|
1586
|
-
columns:
|
|
1587
|
-
originColumns:
|
|
1588
|
-
selectIdsRef:
|
|
1589
|
-
tableRef:
|
|
1577
|
+
}) || J), L);
|
|
1578
|
+
}), T = O(() => {
|
|
1579
|
+
const v = je(E.value, e.columnState, e.columnState2), g = y(v);
|
|
1580
|
+
return e.serialNumber && g.unshift(c()), e.operate && e.operate.items && fe(e.operate.items, (p) => p.show) && g.push(b()), g;
|
|
1581
|
+
}), A = O(() => {
|
|
1582
|
+
var g, p;
|
|
1583
|
+
const v = e.dataSource;
|
|
1584
|
+
return v && (((g = e.mergeOpts) == null ? void 0 : g.rowNames) || ((p = e.mergeOpts) == null ? void 0 : p.colNames)) && Cn(v, e.mergeOpts), v;
|
|
1585
|
+
}), s = G();
|
|
1586
|
+
vr({
|
|
1587
|
+
columns: T,
|
|
1588
|
+
originColumns: S,
|
|
1589
|
+
selectIdsRef: h,
|
|
1590
|
+
tableRef: s,
|
|
1590
1591
|
toolbar: e.toolbar,
|
|
1591
1592
|
...e.provideExtra
|
|
1592
|
-
}), r(
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1593
|
+
}), r(ge(e.tableMethods || [], s));
|
|
1594
|
+
const P = G(), C = G(0), I = G(), N = G(!1), w = G(), U = G(!1);
|
|
1595
|
+
De(P, (v) => {
|
|
1596
|
+
const g = m(v, [0, "contentRect"]), p = window.getComputedStyle(P.value);
|
|
1597
|
+
if (g.height && p) {
|
|
1598
|
+
const L = p.getPropertyValue("margin-bottom"), J = parseInt(L.replace("px", ""));
|
|
1599
|
+
C.value = g.height + J;
|
|
1600
|
+
}
|
|
1601
|
+
}), De(I, () => {
|
|
1602
|
+
N.value = !!I.value.innerText;
|
|
1603
|
+
}), De(w, () => {
|
|
1604
|
+
U.value = !!w.value.innerText;
|
|
1598
1605
|
});
|
|
1599
|
-
const
|
|
1606
|
+
const B = O(() => U.value || N.value ? `${e.clsName}-toolbar-valid` : ""), H = z(it()), Z = le(t, "columnSetting");
|
|
1600
1607
|
return () => {
|
|
1601
|
-
var
|
|
1608
|
+
var g, p;
|
|
1602
1609
|
if (!u)
|
|
1603
1610
|
return null;
|
|
1604
|
-
const
|
|
1605
|
-
return
|
|
1606
|
-
class: e.clsName
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
+
const v = f.value ? d(mr, (g = e.toolbar) == null ? void 0 : g.columnSetting, Z) : null;
|
|
1612
|
+
return d("div", K({
|
|
1613
|
+
class: e.clsName,
|
|
1614
|
+
style: `--pro-table-toolbar-hei: ${C.value}px`
|
|
1615
|
+
}, V(o, "class")), [d("div", {
|
|
1616
|
+
ref: P,
|
|
1617
|
+
class: `${e.clsName}-toolbar ${B.value}`
|
|
1618
|
+
}, [d("div", {
|
|
1619
|
+
ref: I,
|
|
1611
1620
|
class: `${e.clsName}-toolbar-start`
|
|
1612
|
-
}, [(
|
|
1613
|
-
ref:
|
|
1621
|
+
}, [(p = t.toolbar) == null ? void 0 : p.call(t)]), d("div", {
|
|
1622
|
+
ref: w,
|
|
1614
1623
|
class: `${e.clsName}-toolbar-extra`
|
|
1615
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1616
|
-
ref:
|
|
1617
|
-
},
|
|
1624
|
+
}, [t.toolbarExtra ? t.toolbarExtra([v]) : d(ie, null, [v])])]), d(u, K({
|
|
1625
|
+
ref: s
|
|
1626
|
+
}, $(o, "class"), $(e, H), {
|
|
1618
1627
|
mergeOpts: e.mergeOpts,
|
|
1619
|
-
dataSource:
|
|
1620
|
-
columns:
|
|
1628
|
+
dataSource: A.value,
|
|
1629
|
+
columns: T.value
|
|
1621
1630
|
}), t)]);
|
|
1622
1631
|
};
|
|
1623
1632
|
}
|
|
1624
|
-
}),
|
|
1633
|
+
}), hr = () => ({
|
|
1625
1634
|
title: {
|
|
1626
1635
|
type: String
|
|
1627
1636
|
},
|
|
@@ -1640,9 +1649,9 @@ const ir = () => ({
|
|
|
1640
1649
|
type: Function,
|
|
1641
1650
|
default: () => "\u8FD4\u56DE"
|
|
1642
1651
|
}
|
|
1643
|
-
}),
|
|
1652
|
+
}), Be = D({
|
|
1644
1653
|
props: {
|
|
1645
|
-
...
|
|
1654
|
+
...hr()
|
|
1646
1655
|
},
|
|
1647
1656
|
setup: (e, {
|
|
1648
1657
|
slots: t
|
|
@@ -1656,25 +1665,25 @@ const ir = () => ({
|
|
|
1656
1665
|
r.back();
|
|
1657
1666
|
};
|
|
1658
1667
|
return () => {
|
|
1659
|
-
var n, u, c,
|
|
1668
|
+
var n, u, c, l, i;
|
|
1660
1669
|
const a = e.hideWhileNoHistory && ((u = (n = window.history) == null ? void 0 : n.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
|
|
1661
|
-
return
|
|
1670
|
+
return d("div", {
|
|
1662
1671
|
class: "pro-page-header"
|
|
1663
|
-
}, [e.showBack && a &&
|
|
1672
|
+
}, [e.showBack && a && d("div", {
|
|
1664
1673
|
class: "pro-page-header-back",
|
|
1665
1674
|
onClick: o
|
|
1666
|
-
}, [t.backIcon ? t.backIcon() : (c = e.renderBackIcon) == null ? void 0 : c.call(e)]),
|
|
1675
|
+
}, [t.backIcon ? t.backIcon() : (c = e.renderBackIcon) == null ? void 0 : c.call(e)]), d("div", {
|
|
1667
1676
|
class: "pro-page-header-title"
|
|
1668
|
-
}, [t.title ? t.title() : e.title]),
|
|
1677
|
+
}, [t.title ? t.title() : e.title]), d("div", {
|
|
1669
1678
|
class: "pro-page-header-sub-title"
|
|
1670
|
-
}, [t.subTitle ? t.subTitle() : e.subTitle]),
|
|
1679
|
+
}, [t.subTitle ? t.subTitle() : e.subTitle]), d("div", {
|
|
1671
1680
|
class: "pro-page-header-space"
|
|
1672
|
-
}, [(
|
|
1681
|
+
}, [(l = t.space) == null ? void 0 : l.call(t)]), d("div", {
|
|
1673
1682
|
class: "pro-page-header-extra"
|
|
1674
|
-
}, [(
|
|
1683
|
+
}, [(i = t.extra) == null ? void 0 : i.call(t)])]);
|
|
1675
1684
|
};
|
|
1676
1685
|
}
|
|
1677
|
-
}),
|
|
1686
|
+
}), br = () => ({
|
|
1678
1687
|
loading: {
|
|
1679
1688
|
type: Boolean,
|
|
1680
1689
|
default: !1
|
|
@@ -1683,38 +1692,46 @@ const ir = () => ({
|
|
|
1683
1692
|
fillMode: {
|
|
1684
1693
|
type: Boolean,
|
|
1685
1694
|
default: !0
|
|
1695
|
+
},
|
|
1696
|
+
as: {
|
|
1697
|
+
type: String
|
|
1686
1698
|
}
|
|
1687
|
-
}),
|
|
1699
|
+
}), ma = D({
|
|
1688
1700
|
props: {
|
|
1689
|
-
...
|
|
1690
|
-
...
|
|
1701
|
+
...Be.props,
|
|
1702
|
+
...br()
|
|
1691
1703
|
},
|
|
1692
1704
|
setup: (e, {
|
|
1693
1705
|
slots: t
|
|
1694
1706
|
}) => {
|
|
1695
|
-
const
|
|
1707
|
+
const r = Q(), o = r(k.LoadingKey), a = e.as || r(k.ScrollKey) || "div", n = () => o ? d(o, K({
|
|
1708
|
+
loading: !0
|
|
1709
|
+
}, e.loadingOpts), {
|
|
1710
|
+
default: () => [d("div", {
|
|
1711
|
+
class: "pro-loading-dom"
|
|
1712
|
+
}, null)]
|
|
1713
|
+
}) : null, u = z(Be.props);
|
|
1696
1714
|
return () => {
|
|
1697
|
-
var
|
|
1698
|
-
const
|
|
1699
|
-
return
|
|
1715
|
+
var i;
|
|
1716
|
+
const c = e.title || t.title || e.subTitle || t.subTitle || t.extra, l = (i = t.footer) == null ? void 0 : i.call(t);
|
|
1717
|
+
return d(a, {
|
|
1700
1718
|
class: `pro-page ${e.fillMode ? "pro-page-fill" : ""}`
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
}, [(d = t.footer) == null ? void 0 : d.call(t)])]);
|
|
1719
|
+
}, {
|
|
1720
|
+
default: () => {
|
|
1721
|
+
var b, h;
|
|
1722
|
+
return [(b = t.start) == null ? void 0 : b.call(t), c && d(Be, V(e, u), $(t, "start", "default", "footer")), d("div", {
|
|
1723
|
+
class: "pro-page-content"
|
|
1724
|
+
}, [e.loading ? n() : (h = t.default) == null ? void 0 : h.call(t)]), !e.loading && Xn(l) && d("div", {
|
|
1725
|
+
class: "pro-page-footer"
|
|
1726
|
+
}, [l])];
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1712
1729
|
};
|
|
1713
1730
|
}
|
|
1714
|
-
}),
|
|
1731
|
+
}), gr = Object.freeze({
|
|
1715
1732
|
page: 1,
|
|
1716
1733
|
pageSize: 10
|
|
1717
|
-
}),
|
|
1734
|
+
}), Sr = () => ({
|
|
1718
1735
|
clsName: {
|
|
1719
1736
|
type: String,
|
|
1720
1737
|
default: "pro-list"
|
|
@@ -1748,43 +1765,43 @@ const ir = () => ({
|
|
|
1748
1765
|
end: {
|
|
1749
1766
|
type: Function
|
|
1750
1767
|
}
|
|
1751
|
-
}),
|
|
1768
|
+
}), Pr = D({
|
|
1752
1769
|
props: {
|
|
1753
|
-
...
|
|
1770
|
+
...Sr()
|
|
1754
1771
|
},
|
|
1755
1772
|
setup: (e, {
|
|
1756
1773
|
slots: t,
|
|
1757
1774
|
emit: r
|
|
1758
1775
|
}) => {
|
|
1759
|
-
const o =
|
|
1760
|
-
...
|
|
1776
|
+
const o = Q(), a = o(k.ProSearchFormKey), n = o(k.ProTableKey), u = o(k.PaginationKey), c = e.pageState || Ae({
|
|
1777
|
+
...gr
|
|
1761
1778
|
});
|
|
1762
|
-
let
|
|
1763
|
-
const
|
|
1779
|
+
let l;
|
|
1780
|
+
const i = () => {
|
|
1764
1781
|
r("search", {
|
|
1765
|
-
...
|
|
1782
|
+
...l,
|
|
1766
1783
|
...c
|
|
1767
1784
|
});
|
|
1768
|
-
}, b = (
|
|
1769
|
-
|
|
1770
|
-
},
|
|
1771
|
-
c.page =
|
|
1772
|
-
},
|
|
1785
|
+
}, b = (y, T) => {
|
|
1786
|
+
l = y, c.page = T || 1, i();
|
|
1787
|
+
}, h = (y, T) => {
|
|
1788
|
+
c.page = y, c.pageSize = T, i();
|
|
1789
|
+
}, f = le(t, "search"), S = le(t, "table"), E = le(t, "pagination");
|
|
1773
1790
|
return () => {
|
|
1774
|
-
var
|
|
1775
|
-
const
|
|
1791
|
+
var T, A, s, P, C, I, N, w;
|
|
1792
|
+
const y = t.search ? t.search({
|
|
1776
1793
|
executeSearchWithResetPage: b,
|
|
1777
1794
|
pageState: c
|
|
1778
|
-
}) :
|
|
1795
|
+
}) : d(ie, null, [a && d(a, K({
|
|
1779
1796
|
class: `${e.clsName}-search`
|
|
1780
|
-
},
|
|
1781
|
-
onFinish: (
|
|
1782
|
-
}),
|
|
1783
|
-
return
|
|
1797
|
+
}, $(e.searchProps, "onFinish"), {
|
|
1798
|
+
onFinish: (U) => b(U)
|
|
1799
|
+
}), f)]);
|
|
1800
|
+
return d("div", {
|
|
1784
1801
|
class: e.clsName
|
|
1785
|
-
}, [((
|
|
1802
|
+
}, [((T = t.start) == null ? void 0 : T.call(t)) || ((A = e.start) == null ? void 0 : A.call(e)), !e.searchInTable && y, ((s = t.divide) == null ? void 0 : s.call(t)) || ((P = e.divide) == null ? void 0 : P.call(e)), t.table ? t.table({
|
|
1786
1803
|
pageState: c
|
|
1787
|
-
}) :
|
|
1804
|
+
}) : d(ie, null, [n && d(n, K({
|
|
1788
1805
|
class: `${e.clsName}-table`,
|
|
1789
1806
|
paginationState: {
|
|
1790
1807
|
page: c.page,
|
|
@@ -1792,18 +1809,18 @@ const ir = () => ({
|
|
|
1792
1809
|
},
|
|
1793
1810
|
pagination: !1
|
|
1794
1811
|
}, e.tableProps), {
|
|
1795
|
-
...
|
|
1796
|
-
toolbar: e.searchInTable ? () =>
|
|
1797
|
-
})]), ((C = t.divide2) == null ? void 0 : C.call(t)) || ((
|
|
1798
|
-
executePageChange:
|
|
1812
|
+
...S,
|
|
1813
|
+
toolbar: e.searchInTable ? () => S.toolbar ? S.toolbar(y) : y : S.toolbar
|
|
1814
|
+
})]), ((C = t.divide2) == null ? void 0 : C.call(t)) || ((I = e.divide2) == null ? void 0 : I.call(e)), t.pagination ? t.pagination({
|
|
1815
|
+
executePageChange: h,
|
|
1799
1816
|
pageState: c
|
|
1800
|
-
}) :
|
|
1817
|
+
}) : d(ie, null, [e.paginationProps !== !1 && u && d("div", {
|
|
1801
1818
|
class: `${e.clsName}-pagination`
|
|
1802
|
-
}, [
|
|
1819
|
+
}, [d(u, K($(Me(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
1803
1820
|
page: c.page,
|
|
1804
1821
|
pageSize: c.pageSize,
|
|
1805
|
-
onComposeChange:
|
|
1806
|
-
}),
|
|
1822
|
+
onComposeChange: h
|
|
1823
|
+
}), E)])]), ((N = t.end) == null ? void 0 : N.call(t)) || ((w = e.end) == null ? void 0 : w.call(e))]);
|
|
1807
1824
|
};
|
|
1808
1825
|
}
|
|
1809
1826
|
}), dt = () => ({
|
|
@@ -1814,9 +1831,9 @@ const ir = () => ({
|
|
|
1814
1831
|
model: {
|
|
1815
1832
|
type: Object
|
|
1816
1833
|
}
|
|
1817
|
-
}),
|
|
1834
|
+
}), pr = D({
|
|
1818
1835
|
props: {
|
|
1819
|
-
...
|
|
1836
|
+
...he,
|
|
1820
1837
|
...dt()
|
|
1821
1838
|
},
|
|
1822
1839
|
setup: (e, {
|
|
@@ -1824,36 +1841,36 @@ const ir = () => ({
|
|
|
1824
1841
|
}) => {
|
|
1825
1842
|
const {
|
|
1826
1843
|
elementMap: r
|
|
1827
|
-
} =
|
|
1828
|
-
return () => !n || !u ? null :
|
|
1844
|
+
} = te(), o = e.elementMap || r, a = Q(), n = a(k.DescriptionsKey), u = a(k.DescriptionsItemKey), c = O(() => je(e.columns, e.columnState, e.columnState2)), l = z(he), i = z(dt());
|
|
1845
|
+
return () => !n || !u ? null : d(n, K({
|
|
1829
1846
|
class: e.clsName
|
|
1830
|
-
},
|
|
1847
|
+
}, $(e, ...l, ...i, "model")), {
|
|
1831
1848
|
default: () => {
|
|
1832
|
-
var b,
|
|
1833
|
-
return [(b = t.start) == null ? void 0 : b.call(t),
|
|
1834
|
-
const
|
|
1835
|
-
return
|
|
1849
|
+
var b, h;
|
|
1850
|
+
return [(b = t.start) == null ? void 0 : b.call(t), F(c.value, (f) => {
|
|
1851
|
+
const S = f.dataIndex, E = m(e.model, S);
|
|
1852
|
+
return d(u, K({
|
|
1836
1853
|
class: `${e.clsName}-item`
|
|
1837
|
-
},
|
|
1854
|
+
}, m(f.extra, "desc")), {
|
|
1838
1855
|
default: () => {
|
|
1839
|
-
var
|
|
1840
|
-
return [((
|
|
1841
|
-
value:
|
|
1856
|
+
var y, T;
|
|
1857
|
+
return [((y = t[S]) == null ? void 0 : y.call(t, E, f)) || ((T = t.value) == null ? void 0 : T.call(t, E, f)) || Qe(o, f, {
|
|
1858
|
+
value: E
|
|
1842
1859
|
}, {
|
|
1843
1860
|
render: "descRender"
|
|
1844
1861
|
})];
|
|
1845
1862
|
},
|
|
1846
1863
|
label: () => {
|
|
1847
|
-
var
|
|
1848
|
-
return ((
|
|
1864
|
+
var y;
|
|
1865
|
+
return ((y = t.label) == null ? void 0 : y.call(t, f)) || f.title;
|
|
1849
1866
|
}
|
|
1850
1867
|
});
|
|
1851
|
-
}), (
|
|
1868
|
+
}), (h = t.default) == null ? void 0 : h.call(t)];
|
|
1852
1869
|
},
|
|
1853
1870
|
...t
|
|
1854
1871
|
});
|
|
1855
1872
|
}
|
|
1856
|
-
}),
|
|
1873
|
+
}), Cr = () => ({
|
|
1857
1874
|
content: {
|
|
1858
1875
|
type: [String, Number]
|
|
1859
1876
|
},
|
|
@@ -1861,30 +1878,30 @@ const ir = () => ({
|
|
|
1861
1878
|
type: [Object, Boolean]
|
|
1862
1879
|
},
|
|
1863
1880
|
popoverProps: Object
|
|
1864
|
-
}),
|
|
1881
|
+
}), Er = D({
|
|
1865
1882
|
inheritAttrs: !1,
|
|
1866
1883
|
props: {
|
|
1867
|
-
...
|
|
1884
|
+
...Cr()
|
|
1868
1885
|
},
|
|
1869
1886
|
setup: (e, {
|
|
1870
1887
|
attrs: t
|
|
1871
1888
|
}) => {
|
|
1872
|
-
const o =
|
|
1889
|
+
const o = Q()(k.PopoverKey), a = () => {
|
|
1873
1890
|
var n, u;
|
|
1874
1891
|
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((n = e.ellipsis) == null ? void 0 : n.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
|
|
1875
1892
|
};
|
|
1876
1893
|
return () => {
|
|
1877
|
-
const n =
|
|
1894
|
+
const n = d("span", K({
|
|
1878
1895
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
1879
1896
|
style: `-webkit-line-clamp:${a()}`
|
|
1880
1897
|
}, t), [e.content]);
|
|
1881
|
-
return !e.popoverProps || !o ? n :
|
|
1898
|
+
return !e.popoverProps || !o ? n : d(o, e.popoverProps, {
|
|
1882
1899
|
default: () => [n],
|
|
1883
1900
|
content: () => e.content
|
|
1884
1901
|
});
|
|
1885
1902
|
};
|
|
1886
1903
|
}
|
|
1887
|
-
}),
|
|
1904
|
+
}), $e = {
|
|
1888
1905
|
value: {
|
|
1889
1906
|
type: [String, Number]
|
|
1890
1907
|
},
|
|
@@ -1894,27 +1911,27 @@ const ir = () => ({
|
|
|
1894
1911
|
convert: {
|
|
1895
1912
|
type: Function
|
|
1896
1913
|
}
|
|
1897
|
-
},
|
|
1914
|
+
}, ke = D({
|
|
1898
1915
|
inheritAttrs: !1,
|
|
1899
1916
|
props: {
|
|
1900
|
-
|
|
1917
|
+
...$e
|
|
1901
1918
|
},
|
|
1902
1919
|
setup: (e, {
|
|
1903
1920
|
attrs: t
|
|
1904
1921
|
}) => {
|
|
1905
|
-
const r =
|
|
1922
|
+
const r = O(() => {
|
|
1906
1923
|
var n;
|
|
1907
1924
|
const o = (n = e.showProps) == null ? void 0 : n.content, a = e.value || bt(e.value) ? e.value : o;
|
|
1908
1925
|
return e.convert ? e.convert(a, e) : a;
|
|
1909
1926
|
});
|
|
1910
|
-
return () =>
|
|
1927
|
+
return () => d(Er, K(V(t, "style", "class"), $(e.showProps, "content"), {
|
|
1911
1928
|
content: r.value
|
|
1912
1929
|
}), null);
|
|
1913
1930
|
}
|
|
1914
|
-
}),
|
|
1931
|
+
}), ya = D({
|
|
1915
1932
|
inheritAttrs: !1,
|
|
1916
1933
|
props: {
|
|
1917
|
-
|
|
1934
|
+
...$e,
|
|
1918
1935
|
decimalFixed: {
|
|
1919
1936
|
type: Number,
|
|
1920
1937
|
default: 0
|
|
@@ -1927,19 +1944,19 @@ const ir = () => ({
|
|
|
1927
1944
|
setup: (e, {
|
|
1928
1945
|
attrs: t
|
|
1929
1946
|
}) => {
|
|
1930
|
-
const r =
|
|
1947
|
+
const r = O(() => {
|
|
1931
1948
|
let o = e.value;
|
|
1932
1949
|
return o && e.decimalFixed && (o = En(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = Mn(o)), e.convert ? e.convert(o, e) : o;
|
|
1933
1950
|
});
|
|
1934
|
-
return () =>
|
|
1951
|
+
return () => d(ke, K(V(t, "style", "class"), {
|
|
1935
1952
|
value: r.value,
|
|
1936
1953
|
showProps: e.showProps
|
|
1937
1954
|
}), null);
|
|
1938
1955
|
}
|
|
1939
|
-
}),
|
|
1956
|
+
}), va = D({
|
|
1940
1957
|
inheritAttrs: !1,
|
|
1941
1958
|
props: {
|
|
1942
|
-
|
|
1959
|
+
...$e,
|
|
1943
1960
|
value: {
|
|
1944
1961
|
type: [String, Number, Array]
|
|
1945
1962
|
},
|
|
@@ -1955,21 +1972,21 @@ const ir = () => ({
|
|
|
1955
1972
|
setup: (e, {
|
|
1956
1973
|
attrs: t
|
|
1957
1974
|
}) => {
|
|
1958
|
-
const r =
|
|
1975
|
+
const r = O(() => Tn(e.options, (n) => n.label), void 0), o = O(() => {
|
|
1959
1976
|
const n = e.value;
|
|
1960
1977
|
let u = e.value;
|
|
1961
|
-
return
|
|
1962
|
-
}), a =
|
|
1963
|
-
return () =>
|
|
1978
|
+
return _(n) ? u = We(F(n, (c) => m(r.value, c, c)), e.splitStr) : u = m(r.value, n, e.value), e.convert ? e.convert(u, e) : u;
|
|
1979
|
+
}), a = O(() => m(e.colorMap, e.value));
|
|
1980
|
+
return () => d(ke, K(V(t, "style", "class"), {
|
|
1964
1981
|
style: `color:${a.value || ""}`,
|
|
1965
1982
|
value: o.value,
|
|
1966
1983
|
showProps: e.showProps
|
|
1967
1984
|
}), null);
|
|
1968
1985
|
}
|
|
1969
|
-
}),
|
|
1986
|
+
}), ha = D({
|
|
1970
1987
|
inheritAttrs: !1,
|
|
1971
1988
|
props: {
|
|
1972
|
-
|
|
1989
|
+
...$e,
|
|
1973
1990
|
value: {
|
|
1974
1991
|
type: [String, Number, Array]
|
|
1975
1992
|
},
|
|
@@ -1986,25 +2003,25 @@ const ir = () => ({
|
|
|
1986
2003
|
setup: (e, {
|
|
1987
2004
|
attrs: t
|
|
1988
2005
|
}) => {
|
|
1989
|
-
const r =
|
|
2006
|
+
const r = O(() => {
|
|
1990
2007
|
const a = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
|
|
1991
|
-
return In(a, (u) =>
|
|
2008
|
+
return In(a, (u) => m(u, (n == null ? void 0 : n.label) || "label"), {
|
|
1992
2009
|
value: "value",
|
|
1993
2010
|
children: "children",
|
|
1994
2011
|
...n
|
|
1995
2012
|
});
|
|
1996
|
-
}), o =
|
|
2013
|
+
}), o = O(() => {
|
|
1997
2014
|
let a = e.value;
|
|
1998
|
-
return
|
|
2015
|
+
return _(e.value) ? a = We(F(e.value, (n) => m(r.value, n, n)), e.splitStr) : a = m(r.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
|
|
1999
2016
|
});
|
|
2000
|
-
return () =>
|
|
2017
|
+
return () => d(ke, K(V(t, "style", "class"), {
|
|
2001
2018
|
value: o.value,
|
|
2002
2019
|
showProps: e.showProps
|
|
2003
2020
|
}), null);
|
|
2004
2021
|
}
|
|
2005
|
-
}),
|
|
2022
|
+
}), ba = D({
|
|
2006
2023
|
props: {
|
|
2007
|
-
|
|
2024
|
+
...$e,
|
|
2008
2025
|
value: {
|
|
2009
2026
|
type: [String, Number, Array]
|
|
2010
2027
|
},
|
|
@@ -2024,31 +2041,31 @@ const ir = () => ({
|
|
|
2024
2041
|
setup: (e, {
|
|
2025
2042
|
attrs: t
|
|
2026
2043
|
}) => {
|
|
2027
|
-
const r = (a) => a && (e.isUnix ? ot.unix(a).format(e.format) : ot(a).format(e.format)), o =
|
|
2044
|
+
const r = (a) => a && (e.isUnix ? ot.unix(a).format(e.format) : ot(a).format(e.format)), o = O(() => {
|
|
2028
2045
|
let a = e.value;
|
|
2029
|
-
return
|
|
2046
|
+
return _(e.value) ? a = We(F(e.value, (n) => r(n) || ""), e.splitStr) : a = r(e.value) || "", e.convert ? e.convert(a, e) : a;
|
|
2030
2047
|
});
|
|
2031
|
-
return () =>
|
|
2048
|
+
return () => d(ke, K(V(t, "style", "class"), {
|
|
2032
2049
|
value: o.value,
|
|
2033
2050
|
showProps: e.showProps
|
|
2034
2051
|
}), null);
|
|
2035
2052
|
}
|
|
2036
|
-
}),
|
|
2053
|
+
}), we = D((e, {
|
|
2037
2054
|
slots: t
|
|
2038
2055
|
}) => {
|
|
2039
|
-
const r =
|
|
2040
|
-
return
|
|
2056
|
+
const r = G(), o = G(0);
|
|
2057
|
+
return De(r, (a) => {
|
|
2041
2058
|
var u;
|
|
2042
2059
|
const n = (u = a[0]) == null ? void 0 : u.contentRect;
|
|
2043
2060
|
o.value = n == null ? void 0 : n.width;
|
|
2044
2061
|
}), () => {
|
|
2045
2062
|
var a, n, u;
|
|
2046
|
-
return
|
|
2063
|
+
return d("header", null, [(a = t.start) == null ? void 0 : a.call(t), t.menus && d("div", {
|
|
2047
2064
|
ref: r,
|
|
2048
2065
|
class: "pro-header-menus-wrapper"
|
|
2049
2066
|
}, [t.menus(o.value)]), (n = t.default) == null ? void 0 : n.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
|
|
2050
2067
|
};
|
|
2051
|
-
}),
|
|
2068
|
+
}), Mr = () => ({
|
|
2052
2069
|
clsName: {
|
|
2053
2070
|
type: String,
|
|
2054
2071
|
default: "pro-layout"
|
|
@@ -2086,120 +2103,118 @@ const ir = () => ({
|
|
|
2086
2103
|
menuProps: {
|
|
2087
2104
|
type: Object
|
|
2088
2105
|
}
|
|
2089
|
-
}),
|
|
2106
|
+
}), ga = D({
|
|
2090
2107
|
inheritAttrs: !1,
|
|
2091
2108
|
props: {
|
|
2092
|
-
...
|
|
2109
|
+
...Mr()
|
|
2093
2110
|
},
|
|
2094
2111
|
setup: (e, {
|
|
2095
2112
|
slots: t,
|
|
2096
2113
|
attrs: r
|
|
2097
2114
|
}) => {
|
|
2098
|
-
const
|
|
2099
|
-
router:
|
|
2100
|
-
route:
|
|
2101
|
-
} =
|
|
2102
|
-
var
|
|
2103
|
-
return Nt(e.menus, (
|
|
2104
|
-
var
|
|
2105
|
-
const
|
|
2115
|
+
const o = Q(), a = o(k.MenusKey), n = o(k.ScrollKey) || "div", {
|
|
2116
|
+
router: u,
|
|
2117
|
+
route: c
|
|
2118
|
+
} = Ft(), l = O(() => {
|
|
2119
|
+
var s;
|
|
2120
|
+
return Nt(e.menus, (P) => {
|
|
2121
|
+
var N, w;
|
|
2122
|
+
const C = ((N = e.fieldNames) == null ? void 0 : N.value) || "value", I = ((w = e.fieldNames) == null ? void 0 : w.label) || "label";
|
|
2106
2123
|
return {
|
|
2107
|
-
|
|
2108
|
-
value:
|
|
2109
|
-
label:
|
|
2124
|
+
...$(P, C, I),
|
|
2125
|
+
value: m(P, C),
|
|
2126
|
+
label: m(P, I)
|
|
2110
2127
|
};
|
|
2111
2128
|
}, {
|
|
2112
|
-
children: ((
|
|
2129
|
+
children: ((s = e.fieldNames) == null ? void 0 : s.children) || "children",
|
|
2113
2130
|
childrenName: "children"
|
|
2114
2131
|
});
|
|
2115
|
-
}), i =
|
|
2132
|
+
}), i = O(() => Nn(l.value)), b = O(() => {
|
|
2116
2133
|
if (e.findCurrentTopName)
|
|
2117
|
-
return e.findCurrentTopName(
|
|
2118
|
-
const
|
|
2119
|
-
if (
|
|
2120
|
-
return
|
|
2121
|
-
}),
|
|
2134
|
+
return e.findCurrentTopName(c, i.value);
|
|
2135
|
+
const s = yn(c.matched, (P) => !!m(i.value, P.name));
|
|
2136
|
+
if (s)
|
|
2137
|
+
return m(i.value, s.name);
|
|
2138
|
+
}), h = O(() => b.value ? nt(l.value, (s) => s.value === b.value).target : null), f = O(() => {
|
|
2122
2139
|
if (e.findActiveKey)
|
|
2123
|
-
return e.findActiveKey(
|
|
2124
|
-
if (
|
|
2125
|
-
return
|
|
2126
|
-
}),
|
|
2127
|
-
e.onMenuItemClick ? e.onMenuItemClick(
|
|
2128
|
-
},
|
|
2129
|
-
const
|
|
2130
|
-
|
|
2131
|
-
},
|
|
2140
|
+
return e.findActiveKey(c, i.value);
|
|
2141
|
+
if (c.name && m(i.value, c.name))
|
|
2142
|
+
return c.name;
|
|
2143
|
+
}), S = (s) => {
|
|
2144
|
+
e.onMenuItemClick ? e.onMenuItemClick(s) : u.openMenu(s);
|
|
2145
|
+
}, E = (s) => {
|
|
2146
|
+
const P = nt(l.value, (C) => C.value === s.value).target;
|
|
2147
|
+
S(P);
|
|
2148
|
+
}, y = le(t, "header"), T = le(t, "menu"), A = (s) => {
|
|
2149
|
+
var P, C;
|
|
2150
|
+
return d("div", {
|
|
2151
|
+
class: `${e.clsName}-menus-wrapper`
|
|
2152
|
+
}, [(P = T.start) == null ? void 0 : P.call(T), d(n, {
|
|
2153
|
+
class: `${e.clsName}-menus-scroll`
|
|
2154
|
+
}, {
|
|
2155
|
+
default: () => [d(a, s, T)]
|
|
2156
|
+
}), (C = T.end) == null ? void 0 : C.call(T)]);
|
|
2157
|
+
};
|
|
2132
2158
|
return () => {
|
|
2133
|
-
var
|
|
2159
|
+
var I;
|
|
2134
2160
|
if (!a)
|
|
2135
2161
|
return null;
|
|
2136
|
-
const
|
|
2162
|
+
const s = V(r, "class"), P = {
|
|
2137
2163
|
class: `${e.clsName}-menus`,
|
|
2138
|
-
options:
|
|
2139
|
-
activeKey:
|
|
2140
|
-
...
|
|
2141
|
-
onMenuItemClick:
|
|
2164
|
+
options: l.value,
|
|
2165
|
+
activeKey: f.value,
|
|
2166
|
+
...V(e, "convertSubMenuProps", "convertMenuItemProps"),
|
|
2167
|
+
onMenuItemClick: S,
|
|
2142
2168
|
...e.menuProps
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2169
|
+
}, C = d("div", {
|
|
2170
|
+
class: `${e.clsName}-section`
|
|
2171
|
+
}, [(I = t.default) == null ? void 0 : I.call(t)]);
|
|
2172
|
+
return e.layout === "vertical" ? d("main", K(s, {
|
|
2145
2173
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2146
|
-
}), [
|
|
2174
|
+
}), [d(we, {
|
|
2147
2175
|
class: `${e.clsName}-header`
|
|
2148
2176
|
}, {
|
|
2149
|
-
menus: (
|
|
2150
|
-
style: `width:${
|
|
2177
|
+
menus: (N) => N ? d(a, K({
|
|
2178
|
+
style: `width:${N}px`,
|
|
2151
2179
|
mode: "horizontal"
|
|
2152
|
-
},
|
|
2153
|
-
...
|
|
2154
|
-
}),
|
|
2155
|
-
class: `${e.clsName}-section`
|
|
2156
|
-
}, [(l = t.default) == null ? void 0 : l.call(t)])]) : e.layout === "horizontal" ? s("main", D(p, {
|
|
2180
|
+
}, P), T) : null,
|
|
2181
|
+
...y
|
|
2182
|
+
}), C]) : e.layout === "horizontal" ? d("main", K(s, {
|
|
2157
2183
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2158
|
-
}), [
|
|
2159
|
-
class: `${e.clsName}-menus-wrapper`
|
|
2160
|
-
}, [(S = f.start) == null ? void 0 : S.call(f), s(a, E, f), (C = f.end) == null ? void 0 : C.call(f)]), s("div", {
|
|
2184
|
+
}), [A(P), d("div", {
|
|
2161
2185
|
class: `${e.clsName}-structure`
|
|
2162
|
-
}, [
|
|
2186
|
+
}, [d(we, {
|
|
2163
2187
|
class: `${e.clsName}-header`
|
|
2164
|
-
},
|
|
2165
|
-
class: `${e.clsName}-section`
|
|
2166
|
-
}, [(T = t.default) == null ? void 0 : T.call(t)])])]) : e.layout === "horizontal-v" ? s("main", D(p, {
|
|
2188
|
+
}, y), C])]) : e.layout === "horizontal-v" ? d("main", K(s, {
|
|
2167
2189
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2168
|
-
}), [
|
|
2190
|
+
}), [d(we, {
|
|
2169
2191
|
class: `${e.clsName}-header`
|
|
2170
|
-
},
|
|
2192
|
+
}, y), d("div", {
|
|
2171
2193
|
class: `${e.clsName}-structure`
|
|
2172
|
-
}, [
|
|
2173
|
-
class: `${e.clsName}-menus-wrapper`
|
|
2174
|
-
}, [(I = f.start) == null ? void 0 : I.call(f), s(a, E, f), (K = f.end) == null ? void 0 : K.call(f)]), s("div", {
|
|
2175
|
-
class: `${e.clsName}-section`
|
|
2176
|
-
}, [(V = t.default) == null ? void 0 : V.call(t)])])]) : s("main", D(p, {
|
|
2194
|
+
}, [A(P), C])]) : d("main", K(s, {
|
|
2177
2195
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2178
|
-
}), [
|
|
2196
|
+
}), [d(we, {
|
|
2179
2197
|
class: `${e.clsName}-header`
|
|
2180
2198
|
}, {
|
|
2181
|
-
menus: (
|
|
2182
|
-
style: `width:${
|
|
2199
|
+
menus: (N) => N ? d(a, K({
|
|
2200
|
+
style: `width:${N}px`,
|
|
2183
2201
|
class: `${e.clsName}-menus`,
|
|
2184
2202
|
mode: "horizontal",
|
|
2185
|
-
options:
|
|
2186
|
-
activeKey:
|
|
2187
|
-
},
|
|
2188
|
-
onMenuItemClick:
|
|
2189
|
-
}),
|
|
2190
|
-
...
|
|
2191
|
-
}),
|
|
2203
|
+
options: F(l.value, (w) => $(w, "children")),
|
|
2204
|
+
activeKey: b.value
|
|
2205
|
+
}, V(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2206
|
+
onMenuItemClick: E
|
|
2207
|
+
}), T) : null,
|
|
2208
|
+
...y
|
|
2209
|
+
}), d("div", {
|
|
2192
2210
|
class: `${e.clsName}-structure`
|
|
2193
|
-
}, [
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
}, O(E, "options")), f), ($ = f.end) == null ? void 0 : $.call(f)]), s("div", {
|
|
2198
|
-
class: `${e.clsName}-section`
|
|
2199
|
-
}, [(A = t.default) == null ? void 0 : A.call(t)])])]);
|
|
2211
|
+
}, [h.value && X(h.value.children) > 0 && A({
|
|
2212
|
+
...P,
|
|
2213
|
+
options: h.value.children
|
|
2214
|
+
}), C])]);
|
|
2200
2215
|
};
|
|
2201
2216
|
}
|
|
2202
|
-
}),
|
|
2217
|
+
}), Sa = D({
|
|
2203
2218
|
props: {
|
|
2204
2219
|
fieldNames: {
|
|
2205
2220
|
type: Object,
|
|
@@ -2217,39 +2232,39 @@ const ir = () => ({
|
|
|
2217
2232
|
slots: t,
|
|
2218
2233
|
emit: r
|
|
2219
2234
|
}) => {
|
|
2220
|
-
const a =
|
|
2221
|
-
const b = Ot(
|
|
2222
|
-
if (
|
|
2223
|
-
const
|
|
2224
|
-
return
|
|
2225
|
-
|
|
2226
|
-
id:
|
|
2227
|
-
name:
|
|
2228
|
-
size:
|
|
2235
|
+
const a = Q()(k.UploaderKey), n = (i) => {
|
|
2236
|
+
const b = Ot(i);
|
|
2237
|
+
if (_(b)) {
|
|
2238
|
+
const h = e.fieldNames;
|
|
2239
|
+
return F(b, (f) => ({
|
|
2240
|
+
...$(f, h.id, h.name, h.size),
|
|
2241
|
+
id: m(f, h.id),
|
|
2242
|
+
name: m(f, h.name),
|
|
2243
|
+
size: m(f, h.size)
|
|
2229
2244
|
}));
|
|
2230
2245
|
}
|
|
2231
2246
|
return [];
|
|
2232
|
-
}, u =
|
|
2233
|
-
let
|
|
2234
|
-
|
|
2235
|
-
var
|
|
2236
|
-
const
|
|
2237
|
-
[
|
|
2238
|
-
[
|
|
2239
|
-
[
|
|
2247
|
+
}, u = O(() => n(e.value)), c = O(() => n(e.modelValue)), l = (i, b) => {
|
|
2248
|
+
let h = "";
|
|
2249
|
+
i && X(i) > 0 && (h = An(F(i, (f) => {
|
|
2250
|
+
var y;
|
|
2251
|
+
const S = e.fieldNames, E = {
|
|
2252
|
+
[S.id]: f.id,
|
|
2253
|
+
[S.name]: f.name,
|
|
2254
|
+
[S.size || "size"]: f.size
|
|
2240
2255
|
};
|
|
2241
|
-
return ((
|
|
2242
|
-
}))), r(b,
|
|
2256
|
+
return ((y = e.convertItem) == null ? void 0 : y.call(e, f)) || E;
|
|
2257
|
+
}))), r(b, h);
|
|
2243
2258
|
};
|
|
2244
|
-
return () => a ?
|
|
2259
|
+
return () => a ? d(a, K({
|
|
2245
2260
|
class: "pro-uploader-text",
|
|
2246
2261
|
value: u.value,
|
|
2247
|
-
"onUpdate:value": (
|
|
2262
|
+
"onUpdate:value": (i) => l(i, "update:value"),
|
|
2248
2263
|
modelValue: c.value,
|
|
2249
|
-
"onUpdate:modelValue": (
|
|
2250
|
-
},
|
|
2264
|
+
"onUpdate:modelValue": (i) => l(i, "update:modelValue")
|
|
2265
|
+
}, $(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
2251
2266
|
}
|
|
2252
|
-
}),
|
|
2267
|
+
}), Pa = D({
|
|
2253
2268
|
props: {
|
|
2254
2269
|
value: [String, Array],
|
|
2255
2270
|
fieldNames: {
|
|
@@ -2267,17 +2282,17 @@ const ir = () => ({
|
|
|
2267
2282
|
}) => {
|
|
2268
2283
|
const o = (u) => {
|
|
2269
2284
|
var c;
|
|
2270
|
-
return !!
|
|
2271
|
-
}, a =
|
|
2285
|
+
return !!m(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
|
|
2286
|
+
}, a = O(() => {
|
|
2272
2287
|
let u = e.value;
|
|
2273
|
-
return u &&
|
|
2274
|
-
var
|
|
2275
|
-
const
|
|
2288
|
+
return u && oe(u) && (u = Ot(u)), u && !_(u) && Ee(u) && o(u) && (u = [u]), _(u) ? F(Y(u, (c) => o(c)), (c) => {
|
|
2289
|
+
var h, f, S;
|
|
2290
|
+
const l = m(c, ((h = e.fieldNames) == null ? void 0 : h.id) || "id"), i = m(c, ((f = e.fieldNames) == null ? void 0 : f.name) || "name"), b = m(c, ((S = e.fieldNames) == null ? void 0 : S.name) || "size");
|
|
2276
2291
|
return {
|
|
2277
2292
|
...c,
|
|
2278
|
-
id:
|
|
2293
|
+
id: l,
|
|
2279
2294
|
size: b,
|
|
2280
|
-
name:
|
|
2295
|
+
name: i || l
|
|
2281
2296
|
};
|
|
2282
2297
|
}) : [];
|
|
2283
2298
|
}), n = (u) => {
|
|
@@ -2285,21 +2300,21 @@ const ir = () => ({
|
|
|
2285
2300
|
};
|
|
2286
2301
|
return () => {
|
|
2287
2302
|
var u, c;
|
|
2288
|
-
return
|
|
2303
|
+
return d("div", {
|
|
2289
2304
|
class: "pro-upload-list"
|
|
2290
|
-
}, [(u = t.start) == null ? void 0 : u.call(t),
|
|
2291
|
-
var
|
|
2292
|
-
return
|
|
2305
|
+
}, [(u = t.start) == null ? void 0 : u.call(t), F(a.value, (l) => {
|
|
2306
|
+
var i;
|
|
2307
|
+
return d("div", {
|
|
2293
2308
|
class: "pro-upload-list-item"
|
|
2294
|
-
}, [
|
|
2309
|
+
}, [d("span", {
|
|
2295
2310
|
class: "pro-upload-list-item-title",
|
|
2296
|
-
onClick: () => n(
|
|
2297
|
-
}, [
|
|
2311
|
+
onClick: () => n(l)
|
|
2312
|
+
}, [l.name]), (i = t.extra) == null ? void 0 : i.call(t, l)]);
|
|
2298
2313
|
}), (c = t.default) == null ? void 0 : c.call(t)]);
|
|
2299
2314
|
};
|
|
2300
2315
|
}
|
|
2301
|
-
}),
|
|
2302
|
-
!e || !t || gt(t) ||
|
|
2316
|
+
}), Tr = (e, t) => {
|
|
2317
|
+
!e || !t || gt(t) || Ce(e) || ee(t, (r, o) => {
|
|
2303
2318
|
const a = Et(o, e);
|
|
2304
2319
|
if (!Mt(a)) {
|
|
2305
2320
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
|
|
@@ -2311,18 +2326,18 @@ const ir = () => ({
|
|
|
2311
2326
|
}
|
|
2312
2327
|
ce(e, a, r);
|
|
2313
2328
|
});
|
|
2314
|
-
},
|
|
2315
|
-
|
|
2316
|
-
const r =
|
|
2317
|
-
r &&
|
|
2318
|
-
const a =
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
}) :
|
|
2322
|
-
}), e.children &&
|
|
2323
|
-
|
|
2329
|
+
}, Pe = (e, t) => {
|
|
2330
|
+
Tr(e, m(t, e.elementId));
|
|
2331
|
+
const r = m(e, ["highConfig$", "registerPropsTrans"]);
|
|
2332
|
+
r && X(r) > 0 && ee(r, (o) => {
|
|
2333
|
+
const a = m(e.elementProps, o.name);
|
|
2334
|
+
_(a) ? ee(a, (n) => {
|
|
2335
|
+
Pe(n, t);
|
|
2336
|
+
}) : Pe(a, t);
|
|
2337
|
+
}), e.children && X(e.children) > 0 && ee(e.children, (o) => {
|
|
2338
|
+
Pe(o, t);
|
|
2324
2339
|
});
|
|
2325
|
-
},
|
|
2340
|
+
}, Ir = D({
|
|
2326
2341
|
props: {
|
|
2327
2342
|
initExecuteList: {
|
|
2328
2343
|
type: Array
|
|
@@ -2331,43 +2346,43 @@ const ir = () => ({
|
|
|
2331
2346
|
setup: (e) => {
|
|
2332
2347
|
const {
|
|
2333
2348
|
execute: t
|
|
2334
|
-
} =
|
|
2335
|
-
return
|
|
2349
|
+
} = be();
|
|
2350
|
+
return ue(() => {
|
|
2336
2351
|
e.initExecuteList && t(e.initExecuteList, []);
|
|
2337
2352
|
}, []), () => null;
|
|
2338
2353
|
}
|
|
2339
|
-
}),
|
|
2354
|
+
}), pa = ({
|
|
2340
2355
|
actors: e,
|
|
2341
2356
|
configData: t,
|
|
2342
2357
|
configDataExtra: r,
|
|
2343
2358
|
Logic: o
|
|
2344
|
-
}) =>
|
|
2345
|
-
const a =
|
|
2346
|
-
const
|
|
2347
|
-
return r && (
|
|
2359
|
+
}) => D(() => {
|
|
2360
|
+
const a = G(), n = (l) => {
|
|
2361
|
+
const i = pt(l);
|
|
2362
|
+
return r && (_(i) ? ee(i, (b) => Pe(b, r)) : Pe(i, r)), i;
|
|
2348
2363
|
};
|
|
2349
|
-
|
|
2364
|
+
ue(() => {
|
|
2350
2365
|
t && t.elementConfigs && (a.value = n(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2351
2366
|
}, []);
|
|
2352
|
-
const c =
|
|
2353
|
-
return () => a.value ?
|
|
2367
|
+
const c = Q()(k.LoadingKey);
|
|
2368
|
+
return () => a.value ? d(Ke, {
|
|
2354
2369
|
initState: t == null ? void 0 : t.initState,
|
|
2355
2370
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2356
2371
|
actors: e,
|
|
2357
2372
|
requests: t == null ? void 0 : t.requests,
|
|
2358
2373
|
elementConfigs: a.value
|
|
2359
2374
|
}, {
|
|
2360
|
-
default: () => [
|
|
2361
|
-
}) : c ?
|
|
2375
|
+
default: () => [d(Ir, null, null), o && d(o, null, null)]
|
|
2376
|
+
}) : c ? d(c, {
|
|
2362
2377
|
loading: !0
|
|
2363
2378
|
}, {
|
|
2364
|
-
default: () => [
|
|
2379
|
+
default: () => [d("div", {
|
|
2365
2380
|
class: "pro-module-loading-dom"
|
|
2366
2381
|
}, null)]
|
|
2367
2382
|
}) : null;
|
|
2368
|
-
}), Zt = Symbol("pro-curd"),
|
|
2369
|
-
var
|
|
2370
|
-
const
|
|
2383
|
+
}), Zt = Symbol("pro-curd"), ae = () => ye(Zt), Nr = (e) => me(Zt, e);
|
|
2384
|
+
var x = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(x || {}), j = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(j || {}), de = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(de || {}), Ne = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ne || {});
|
|
2385
|
+
const Ar = () => ({
|
|
2371
2386
|
rowKey: {
|
|
2372
2387
|
type: String,
|
|
2373
2388
|
default: "id"
|
|
@@ -2390,10 +2405,10 @@ const Nr = () => ({
|
|
|
2390
2405
|
modalProps: {
|
|
2391
2406
|
type: Object
|
|
2392
2407
|
}
|
|
2393
|
-
}), en = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], ft =
|
|
2408
|
+
}), en = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], ft = D({
|
|
2394
2409
|
props: {
|
|
2395
|
-
...
|
|
2396
|
-
...
|
|
2410
|
+
...he,
|
|
2411
|
+
...Ar()
|
|
2397
2412
|
},
|
|
2398
2413
|
setup: (e, {
|
|
2399
2414
|
slots: t,
|
|
@@ -2404,89 +2419,89 @@ const Nr = () => ({
|
|
|
2404
2419
|
state: a,
|
|
2405
2420
|
sendEvent: n,
|
|
2406
2421
|
sendRequest: u
|
|
2407
|
-
} =
|
|
2408
|
-
const
|
|
2409
|
-
const
|
|
2410
|
-
return
|
|
2422
|
+
} = be(), c = O(() => je(e.columns, e.columnState, e.columnState2)), l = (N, w) => {
|
|
2423
|
+
const U = Y(c.value, (B) => {
|
|
2424
|
+
const H = m(B, ["extra", N]) || m(B, N);
|
|
2425
|
+
return w ? H !== !1 : H;
|
|
2411
2426
|
});
|
|
2412
|
-
return Pt(
|
|
2413
|
-
},
|
|
2414
|
-
let
|
|
2415
|
-
const
|
|
2416
|
-
u(
|
|
2417
|
-
...
|
|
2418
|
-
...
|
|
2427
|
+
return Pt(U, (B) => m(B, ["extra", `${N}Sort`]) || m(B, `${N}Sort`));
|
|
2428
|
+
}, i = O(() => l("form", !0)), b = O(() => l("detail", !0)), h = O(() => l("table", !0)), f = O(() => l("search"));
|
|
2429
|
+
let S;
|
|
2430
|
+
const E = (N) => {
|
|
2431
|
+
u(x.LIST, {
|
|
2432
|
+
...S,
|
|
2433
|
+
...N
|
|
2419
2434
|
});
|
|
2420
|
-
},
|
|
2435
|
+
}, y = (N) => {
|
|
2421
2436
|
n({
|
|
2422
|
-
type:
|
|
2423
|
-
payload:
|
|
2424
|
-
source:
|
|
2437
|
+
type: N.action,
|
|
2438
|
+
payload: $(N, "action", "source"),
|
|
2439
|
+
source: N.source
|
|
2425
2440
|
});
|
|
2426
2441
|
};
|
|
2427
2442
|
Ye(({
|
|
2428
|
-
type:
|
|
2429
|
-
payload:
|
|
2430
|
-
source:
|
|
2443
|
+
type: N,
|
|
2444
|
+
payload: w,
|
|
2445
|
+
source: U
|
|
2431
2446
|
}) => {
|
|
2432
|
-
if (
|
|
2447
|
+
if (U)
|
|
2433
2448
|
return;
|
|
2434
|
-
let
|
|
2435
|
-
|
|
2449
|
+
let B = N, H = w == null ? void 0 : w.type;
|
|
2450
|
+
B === Te.Success && (B = m(w, ["requestOpts", "action"]), H = j.SUCCESS);
|
|
2436
2451
|
const {
|
|
2437
|
-
values:
|
|
2452
|
+
values: Z,
|
|
2438
2453
|
record: v
|
|
2439
|
-
} =
|
|
2440
|
-
switch (
|
|
2441
|
-
case
|
|
2442
|
-
|
|
2454
|
+
} = w;
|
|
2455
|
+
switch (B) {
|
|
2456
|
+
case x.LIST:
|
|
2457
|
+
H === j.EMIT && (S = Z, E());
|
|
2443
2458
|
return;
|
|
2444
|
-
case
|
|
2445
|
-
|
|
2459
|
+
case x.ADD:
|
|
2460
|
+
H === j.EXECUTE && u(x.ADD, Z, a.detailData);
|
|
2446
2461
|
return;
|
|
2447
|
-
case
|
|
2448
|
-
|
|
2462
|
+
case x.EDIT:
|
|
2463
|
+
H === j.EXECUTE && u(x.EDIT, Z, a.detailData);
|
|
2449
2464
|
return;
|
|
2450
|
-
case
|
|
2451
|
-
|
|
2465
|
+
case x.DELETE:
|
|
2466
|
+
H === j.EMIT ? u(x.DELETE, v, e.rowKey) : H === j.SUCCESS && E();
|
|
2452
2467
|
return;
|
|
2453
2468
|
}
|
|
2454
|
-
|
|
2469
|
+
B && N === j.EXECUTE && u(B, Z);
|
|
2455
2470
|
});
|
|
2456
|
-
const
|
|
2457
|
-
...
|
|
2458
|
-
[
|
|
2459
|
-
}), {}),
|
|
2460
|
-
return
|
|
2471
|
+
const T = re(e.operates, (N, w) => ({
|
|
2472
|
+
...N,
|
|
2473
|
+
[w.action]: w
|
|
2474
|
+
}), {}), A = (N) => m(T, N), s = O(() => e.listProps), P = O(() => e.formProps), C = O(() => e.descProps), I = O(() => e.modalProps);
|
|
2475
|
+
return Nr({
|
|
2461
2476
|
columns: c,
|
|
2462
|
-
getSignColumns:
|
|
2477
|
+
getSignColumns: l,
|
|
2463
2478
|
elementMap: o,
|
|
2464
2479
|
formElementMap: e.formElementMap,
|
|
2465
2480
|
rowKey: e.rowKey,
|
|
2466
2481
|
curdState: a,
|
|
2467
|
-
formColumns:
|
|
2482
|
+
formColumns: i,
|
|
2468
2483
|
descColumns: b,
|
|
2469
|
-
tableColumns:
|
|
2470
|
-
searchColumns:
|
|
2471
|
-
sendCurdEvent:
|
|
2484
|
+
tableColumns: h,
|
|
2485
|
+
searchColumns: f,
|
|
2486
|
+
sendCurdEvent: y,
|
|
2472
2487
|
operates: e.operates,
|
|
2473
|
-
getOperate:
|
|
2474
|
-
refreshList:
|
|
2475
|
-
listProps:
|
|
2476
|
-
formProps:
|
|
2488
|
+
getOperate: A,
|
|
2489
|
+
refreshList: E,
|
|
2490
|
+
listProps: s,
|
|
2491
|
+
formProps: P,
|
|
2477
2492
|
descProps: C,
|
|
2478
|
-
modalProps:
|
|
2493
|
+
modalProps: I
|
|
2479
2494
|
}), r({
|
|
2480
|
-
sendCurdEvent:
|
|
2481
|
-
refreshList:
|
|
2495
|
+
sendCurdEvent: y,
|
|
2496
|
+
refreshList: E
|
|
2482
2497
|
}), () => {
|
|
2483
|
-
var
|
|
2484
|
-
return (
|
|
2498
|
+
var N;
|
|
2499
|
+
return (N = t.default) == null ? void 0 : N.call(t);
|
|
2485
2500
|
};
|
|
2486
2501
|
}
|
|
2487
|
-
}), ze =
|
|
2502
|
+
}), ze = D({
|
|
2488
2503
|
props: {
|
|
2489
|
-
|
|
2504
|
+
...$(Ke.props, "state", "requests"),
|
|
2490
2505
|
...ft.props,
|
|
2491
2506
|
curdState: {
|
|
2492
2507
|
type: Object
|
|
@@ -2499,216 +2514,216 @@ const Nr = () => ({
|
|
|
2499
2514
|
const {
|
|
2500
2515
|
elementMap: o,
|
|
2501
2516
|
formElementMap: a
|
|
2502
|
-
} =
|
|
2517
|
+
} = te(), n = G(), u = G(), c = e.curdState || Ae({
|
|
2503
2518
|
detailData: {}
|
|
2504
|
-
}),
|
|
2505
|
-
[
|
|
2506
|
-
convertParams: (
|
|
2507
|
-
convertData: (
|
|
2508
|
-
var
|
|
2509
|
-
return (
|
|
2519
|
+
}), l = {
|
|
2520
|
+
[x.LIST]: {
|
|
2521
|
+
convertParams: (f) => f,
|
|
2522
|
+
convertData: (f) => {
|
|
2523
|
+
var S;
|
|
2524
|
+
return (S = f.res) == null ? void 0 : S.data;
|
|
2510
2525
|
},
|
|
2511
2526
|
loadingName: "listLoading",
|
|
2512
2527
|
stateName: "listData"
|
|
2513
2528
|
},
|
|
2514
|
-
[
|
|
2515
|
-
convertParams: (
|
|
2516
|
-
convertData: (
|
|
2517
|
-
var
|
|
2518
|
-
return (
|
|
2529
|
+
[x.DETAIL]: {
|
|
2530
|
+
convertParams: (f, S) => V(f, S),
|
|
2531
|
+
convertData: (f) => {
|
|
2532
|
+
var S;
|
|
2533
|
+
return (S = f.res) == null ? void 0 : S.data;
|
|
2519
2534
|
},
|
|
2520
2535
|
loadingName: "detailLoading",
|
|
2521
2536
|
stateName: "detailData",
|
|
2522
2537
|
label: "\u8BE6\u60C5"
|
|
2523
2538
|
},
|
|
2524
|
-
[
|
|
2525
|
-
convertParams: (
|
|
2539
|
+
[x.ADD]: {
|
|
2540
|
+
convertParams: (f, S) => ({
|
|
2526
2541
|
body: {
|
|
2527
|
-
...
|
|
2528
|
-
...
|
|
2542
|
+
...S,
|
|
2543
|
+
...f
|
|
2529
2544
|
}
|
|
2530
2545
|
}),
|
|
2531
2546
|
loadingName: "operateLoading",
|
|
2532
2547
|
label: "\u6DFB\u52A0"
|
|
2533
2548
|
},
|
|
2534
|
-
[
|
|
2535
|
-
convertParams: (
|
|
2549
|
+
[x.EDIT]: {
|
|
2550
|
+
convertParams: (f, S) => ({
|
|
2536
2551
|
body: {
|
|
2537
|
-
...
|
|
2538
|
-
...
|
|
2552
|
+
...S,
|
|
2553
|
+
...f
|
|
2539
2554
|
}
|
|
2540
2555
|
}),
|
|
2541
2556
|
loadingName: "operateLoading",
|
|
2542
2557
|
label: "\u7F16\u8F91"
|
|
2543
2558
|
},
|
|
2544
|
-
[
|
|
2545
|
-
convertParams: (
|
|
2559
|
+
[x.DELETE]: {
|
|
2560
|
+
convertParams: (f, S) => V(f, S),
|
|
2546
2561
|
label: "\u5220\u9664"
|
|
2547
2562
|
}
|
|
2548
|
-
},
|
|
2549
|
-
var
|
|
2550
|
-
const
|
|
2563
|
+
}, i = F(e.operates, (f) => {
|
|
2564
|
+
var y;
|
|
2565
|
+
const S = m(l, f.action), E = ((y = e.convertOperate) == null ? void 0 : y.call(e, f, S)) || f;
|
|
2551
2566
|
return {
|
|
2552
|
-
...
|
|
2553
|
-
...
|
|
2567
|
+
...S,
|
|
2568
|
+
...E
|
|
2554
2569
|
};
|
|
2555
|
-
}), b = Y(
|
|
2570
|
+
}), b = Y(i, (f) => f.actor), h = z($(Ke.props, "state", "requests"));
|
|
2556
2571
|
return r({
|
|
2557
|
-
sendCurdEvent: (
|
|
2558
|
-
var
|
|
2559
|
-
(
|
|
2572
|
+
sendCurdEvent: (f) => {
|
|
2573
|
+
var S;
|
|
2574
|
+
(S = u.value) == null || S.sendCurdEvent(f);
|
|
2560
2575
|
},
|
|
2561
|
-
refreshList: (
|
|
2562
|
-
var
|
|
2563
|
-
(
|
|
2576
|
+
refreshList: (f) => {
|
|
2577
|
+
var S;
|
|
2578
|
+
(S = u.value) == null || S.refreshList(f);
|
|
2564
2579
|
},
|
|
2565
|
-
sendEvent: (
|
|
2566
|
-
var
|
|
2567
|
-
(
|
|
2580
|
+
sendEvent: (f) => {
|
|
2581
|
+
var S;
|
|
2582
|
+
(S = n.value) == null || S.sendEvent(f);
|
|
2568
2583
|
},
|
|
2569
|
-
sendRequest: (
|
|
2570
|
-
var
|
|
2571
|
-
(
|
|
2584
|
+
sendRequest: (f, ...S) => {
|
|
2585
|
+
var E;
|
|
2586
|
+
(E = n.value) == null || E.sendRequest(f, ...S);
|
|
2572
2587
|
}
|
|
2573
|
-
}), () =>
|
|
2588
|
+
}), () => d(Ke, K({
|
|
2574
2589
|
ref: n
|
|
2575
|
-
},
|
|
2590
|
+
}, V(e, h), {
|
|
2576
2591
|
elementMap: e.elementMap || o,
|
|
2577
2592
|
state: c,
|
|
2578
2593
|
requests: b
|
|
2579
2594
|
}), {
|
|
2580
|
-
default: () => [
|
|
2595
|
+
default: () => [d(ft, K({
|
|
2581
2596
|
ref: u
|
|
2582
|
-
},
|
|
2597
|
+
}, $(e, ...h, "curdState", "operates", "convertOperate"), {
|
|
2583
2598
|
formElementMap: e.formElementMap || a,
|
|
2584
|
-
operates:
|
|
2599
|
+
operates: i
|
|
2585
2600
|
}), t)]
|
|
2586
2601
|
});
|
|
2587
2602
|
}
|
|
2588
|
-
}),
|
|
2603
|
+
}), Or = () => ({
|
|
2589
2604
|
defaultAddRecord: {
|
|
2590
2605
|
type: Object
|
|
2591
2606
|
}
|
|
2592
|
-
}),
|
|
2607
|
+
}), qe = D({
|
|
2593
2608
|
props: {
|
|
2594
|
-
...
|
|
2609
|
+
...Or()
|
|
2595
2610
|
},
|
|
2596
2611
|
setup: (e) => {
|
|
2597
|
-
var
|
|
2612
|
+
var S;
|
|
2598
2613
|
const {
|
|
2599
2614
|
dispatch: t,
|
|
2600
2615
|
sendRequest: r
|
|
2601
|
-
} =
|
|
2616
|
+
} = be(), {
|
|
2602
2617
|
rowKey: o,
|
|
2603
2618
|
curdState: a,
|
|
2604
2619
|
listProps: n,
|
|
2605
2620
|
getOperate: u,
|
|
2606
2621
|
refreshList: c
|
|
2607
|
-
} =
|
|
2608
|
-
const
|
|
2609
|
-
|
|
2622
|
+
} = ae(), l = (S = n == null ? void 0 : n.value) == null ? void 0 : S.pageState, i = (E) => {
|
|
2623
|
+
const y = u(x.DETAIL);
|
|
2624
|
+
y != null && y.actor ? r(x.DETAIL, E, o) : t({
|
|
2610
2625
|
type: "detailData",
|
|
2611
|
-
payload: pt(
|
|
2626
|
+
payload: pt(E)
|
|
2612
2627
|
});
|
|
2613
|
-
}, b = (
|
|
2614
|
-
record:
|
|
2628
|
+
}, b = (E, {
|
|
2629
|
+
record: y
|
|
2615
2630
|
}) => {
|
|
2616
|
-
|
|
2631
|
+
E === j.EMIT && (t({
|
|
2617
2632
|
type: "mode",
|
|
2618
2633
|
payload: de.DETAIL
|
|
2619
|
-
}),
|
|
2620
|
-
},
|
|
2621
|
-
|
|
2634
|
+
}), i(y));
|
|
2635
|
+
}, h = (E) => {
|
|
2636
|
+
E === j.EMIT ? (t({
|
|
2622
2637
|
type: "mode",
|
|
2623
2638
|
payload: de.ADD
|
|
2624
2639
|
}), t({
|
|
2625
2640
|
type: "detailData",
|
|
2626
2641
|
payload: e.defaultAddRecord || {}
|
|
2627
|
-
})) :
|
|
2642
|
+
})) : E === j.SUCCESS && (l && (l.page = 1), c(), a.addAction === Ne.CONTINUE ? t({
|
|
2628
2643
|
type: "detailData",
|
|
2629
2644
|
payload: e.defaultAddRecord || {}
|
|
2630
2645
|
}) : t({
|
|
2631
2646
|
type: "mode",
|
|
2632
2647
|
payload: void 0
|
|
2633
2648
|
}));
|
|
2634
|
-
},
|
|
2635
|
-
record:
|
|
2649
|
+
}, f = (E, {
|
|
2650
|
+
record: y
|
|
2636
2651
|
}) => {
|
|
2637
|
-
|
|
2652
|
+
E === j.EMIT ? (t({
|
|
2638
2653
|
type: "mode",
|
|
2639
2654
|
payload: de.EDIT
|
|
2640
|
-
}),
|
|
2655
|
+
}), i(y)) : E === j.SUCCESS && (t({
|
|
2641
2656
|
type: "mode",
|
|
2642
2657
|
payload: void 0
|
|
2643
2658
|
}), c());
|
|
2644
2659
|
};
|
|
2645
2660
|
return Ye(({
|
|
2646
|
-
type:
|
|
2647
|
-
payload:
|
|
2648
|
-
source:
|
|
2661
|
+
type: E,
|
|
2662
|
+
payload: y,
|
|
2663
|
+
source: T
|
|
2649
2664
|
}) => {
|
|
2650
|
-
if (
|
|
2665
|
+
if (T)
|
|
2651
2666
|
return;
|
|
2652
|
-
let
|
|
2653
|
-
const
|
|
2654
|
-
switch (
|
|
2655
|
-
case
|
|
2656
|
-
b(
|
|
2657
|
-
record:
|
|
2667
|
+
let A = E, s = y == null ? void 0 : y.type;
|
|
2668
|
+
const P = y == null ? void 0 : y.record;
|
|
2669
|
+
switch (A === Te.Success && (A = m(y, ["requestOpts", "action"]), s = j.SUCCESS), A) {
|
|
2670
|
+
case x.DETAIL:
|
|
2671
|
+
b(s, {
|
|
2672
|
+
record: P
|
|
2658
2673
|
});
|
|
2659
2674
|
break;
|
|
2660
|
-
case
|
|
2661
|
-
|
|
2675
|
+
case x.ADD:
|
|
2676
|
+
h(s);
|
|
2662
2677
|
break;
|
|
2663
|
-
case
|
|
2664
|
-
|
|
2665
|
-
record:
|
|
2678
|
+
case x.EDIT:
|
|
2679
|
+
f(s, {
|
|
2680
|
+
record: P
|
|
2666
2681
|
});
|
|
2667
2682
|
break;
|
|
2668
2683
|
}
|
|
2669
2684
|
}), () => null;
|
|
2670
2685
|
}
|
|
2671
|
-
}),
|
|
2686
|
+
}), Ca = D({
|
|
2672
2687
|
props: {
|
|
2673
2688
|
...ze.props,
|
|
2674
|
-
...
|
|
2689
|
+
...qe.props
|
|
2675
2690
|
},
|
|
2676
2691
|
setup: (e, {
|
|
2677
2692
|
slots: t,
|
|
2678
2693
|
expose: r
|
|
2679
2694
|
}) => {
|
|
2680
|
-
const o =
|
|
2681
|
-
r(
|
|
2682
|
-
const a =
|
|
2683
|
-
return () => u ?
|
|
2695
|
+
const o = G();
|
|
2696
|
+
r(ge(en, o));
|
|
2697
|
+
const a = z(qe.props), u = Q()(k.ProCurdKey);
|
|
2698
|
+
return () => u ? d(u, K({
|
|
2684
2699
|
ref: o
|
|
2685
|
-
},
|
|
2700
|
+
}, $(e, a)), {
|
|
2686
2701
|
default: () => {
|
|
2687
2702
|
var c;
|
|
2688
|
-
return [
|
|
2703
|
+
return [d(qe, V(e, a), null), (c = t.default) == null ? void 0 : c.call(t)];
|
|
2689
2704
|
}
|
|
2690
2705
|
}) : null;
|
|
2691
2706
|
}
|
|
2692
|
-
}),
|
|
2707
|
+
}), $r = () => ({
|
|
2693
2708
|
defaultAddRecord: {
|
|
2694
2709
|
type: Object
|
|
2695
2710
|
},
|
|
2696
2711
|
routeBack: {
|
|
2697
2712
|
type: Function
|
|
2698
2713
|
}
|
|
2699
|
-
}),
|
|
2714
|
+
}), Ve = D({
|
|
2700
2715
|
props: {
|
|
2701
|
-
|
|
2716
|
+
...$r()
|
|
2702
2717
|
},
|
|
2703
2718
|
setup: (e) => {
|
|
2704
2719
|
const t = Ge(), r = Xe(), {
|
|
2705
2720
|
dispatch: o,
|
|
2706
2721
|
sendRequest: a
|
|
2707
|
-
} =
|
|
2722
|
+
} = be(), {
|
|
2708
2723
|
rowKey: n,
|
|
2709
2724
|
curdState: u
|
|
2710
|
-
} =
|
|
2711
|
-
|
|
2725
|
+
} = ae(), c = (h) => {
|
|
2726
|
+
h === j.PAGE && (o({
|
|
2712
2727
|
type: "mode",
|
|
2713
2728
|
payload: void 0
|
|
2714
2729
|
}), o({
|
|
@@ -2721,91 +2736,91 @@ const Nr = () => ({
|
|
|
2721
2736
|
type: "addAction",
|
|
2722
2737
|
payload: void 0
|
|
2723
2738
|
}));
|
|
2724
|
-
},
|
|
2725
|
-
record:
|
|
2739
|
+
}, l = (h, {
|
|
2740
|
+
record: f
|
|
2726
2741
|
}) => {
|
|
2727
|
-
|
|
2742
|
+
h === j.EMIT ? t.push({
|
|
2728
2743
|
path: `${r.path}/detail`,
|
|
2729
|
-
query:
|
|
2730
|
-
}) :
|
|
2744
|
+
query: V(f, n)
|
|
2745
|
+
}) : h === j.PAGE && (o({
|
|
2731
2746
|
type: "mode",
|
|
2732
2747
|
payload: de.DETAIL
|
|
2733
|
-
}), a(
|
|
2734
|
-
},
|
|
2735
|
-
|
|
2748
|
+
}), a(x.DETAIL, r.query, n));
|
|
2749
|
+
}, i = (h) => {
|
|
2750
|
+
h === j.EMIT ? t.push({
|
|
2736
2751
|
path: `${r.path}/add`
|
|
2737
|
-
}) :
|
|
2752
|
+
}) : h === j.PAGE ? (o({
|
|
2738
2753
|
type: "mode",
|
|
2739
2754
|
payload: de.ADD
|
|
2740
2755
|
}), o({
|
|
2741
2756
|
type: "detailData",
|
|
2742
2757
|
payload: e.defaultAddRecord || {}
|
|
2743
|
-
})) :
|
|
2758
|
+
})) : h === j.SUCCESS && (u.addAction === Ne.CONTINUE ? o({
|
|
2744
2759
|
type: "detailData",
|
|
2745
2760
|
payload: e.defaultAddRecord || {}
|
|
2746
|
-
}) : e.routeBack ? e.routeBack(
|
|
2747
|
-
}, b = (
|
|
2748
|
-
record:
|
|
2761
|
+
}) : e.routeBack ? e.routeBack(x.ADD) : t.go(-1));
|
|
2762
|
+
}, b = (h, {
|
|
2763
|
+
record: f
|
|
2749
2764
|
}) => {
|
|
2750
|
-
|
|
2765
|
+
h === j.EMIT ? t.push({
|
|
2751
2766
|
path: `${r.path}/edit`,
|
|
2752
|
-
query:
|
|
2753
|
-
}) :
|
|
2767
|
+
query: V(f, n)
|
|
2768
|
+
}) : h === j.PAGE ? (o({
|
|
2754
2769
|
type: "mode",
|
|
2755
2770
|
payload: de.EDIT
|
|
2756
|
-
}), a(
|
|
2771
|
+
}), a(x.DETAIL, r.query, n)) : h === j.SUCCESS && (e.routeBack ? e.routeBack(x.EDIT) : t.go(-1));
|
|
2757
2772
|
};
|
|
2758
2773
|
return Ye(({
|
|
2759
|
-
type:
|
|
2760
|
-
payload:
|
|
2761
|
-
source:
|
|
2774
|
+
type: h,
|
|
2775
|
+
payload: f,
|
|
2776
|
+
source: S
|
|
2762
2777
|
}) => {
|
|
2763
|
-
if (
|
|
2778
|
+
if (S)
|
|
2764
2779
|
return;
|
|
2765
|
-
let
|
|
2766
|
-
const
|
|
2767
|
-
switch (
|
|
2768
|
-
case
|
|
2769
|
-
c(
|
|
2780
|
+
let E = h, y = f == null ? void 0 : f.type;
|
|
2781
|
+
const T = f == null ? void 0 : f.record;
|
|
2782
|
+
switch (E === Te.Success && (E = m(f, ["requestOpts", "action"]), y = j.SUCCESS), E) {
|
|
2783
|
+
case x.LIST:
|
|
2784
|
+
c(y);
|
|
2770
2785
|
break;
|
|
2771
|
-
case
|
|
2772
|
-
|
|
2773
|
-
record:
|
|
2786
|
+
case x.DETAIL:
|
|
2787
|
+
l(y, {
|
|
2788
|
+
record: T
|
|
2774
2789
|
});
|
|
2775
2790
|
break;
|
|
2776
|
-
case
|
|
2777
|
-
|
|
2791
|
+
case x.ADD:
|
|
2792
|
+
i(y);
|
|
2778
2793
|
break;
|
|
2779
|
-
case
|
|
2780
|
-
b(
|
|
2781
|
-
record:
|
|
2794
|
+
case x.EDIT:
|
|
2795
|
+
b(y, {
|
|
2796
|
+
record: T
|
|
2782
2797
|
});
|
|
2783
2798
|
break;
|
|
2784
2799
|
}
|
|
2785
2800
|
}), () => null;
|
|
2786
2801
|
}
|
|
2787
|
-
}),
|
|
2802
|
+
}), Ea = D({
|
|
2788
2803
|
props: {
|
|
2789
2804
|
...ze.props,
|
|
2790
|
-
...
|
|
2805
|
+
...Ve.props
|
|
2791
2806
|
},
|
|
2792
2807
|
setup: (e, {
|
|
2793
2808
|
slots: t,
|
|
2794
2809
|
expose: r
|
|
2795
2810
|
}) => {
|
|
2796
|
-
const o =
|
|
2797
|
-
r(
|
|
2798
|
-
const a =
|
|
2799
|
-
return () =>
|
|
2811
|
+
const o = G();
|
|
2812
|
+
r(ge(en, o));
|
|
2813
|
+
const a = z(Ve.props);
|
|
2814
|
+
return () => d(ze, K({
|
|
2800
2815
|
ref: o
|
|
2801
|
-
},
|
|
2816
|
+
}, $(e, a)), {
|
|
2802
2817
|
default: () => {
|
|
2803
2818
|
var n;
|
|
2804
|
-
return [
|
|
2819
|
+
return [d(Ve, V(e, a), null), (n = t.default) == null ? void 0 : n.call(t)];
|
|
2805
2820
|
}
|
|
2806
2821
|
});
|
|
2807
2822
|
}
|
|
2808
|
-
}), mt =
|
|
2823
|
+
}), mt = D({
|
|
2809
2824
|
props: {
|
|
2810
2825
|
buttonProps: Object
|
|
2811
2826
|
},
|
|
@@ -2815,19 +2830,19 @@ const Nr = () => ({
|
|
|
2815
2830
|
const r = Yt(), {
|
|
2816
2831
|
getOperate: o,
|
|
2817
2832
|
sendCurdEvent: a
|
|
2818
|
-
} =
|
|
2833
|
+
} = ae(), n = o(x.ADD), u = () => {
|
|
2819
2834
|
if (n != null && n.onClick) {
|
|
2820
2835
|
n.onClick();
|
|
2821
2836
|
return;
|
|
2822
2837
|
}
|
|
2823
2838
|
a({
|
|
2824
|
-
action:
|
|
2825
|
-
type:
|
|
2839
|
+
action: x.ADD,
|
|
2840
|
+
type: j.EMIT
|
|
2826
2841
|
});
|
|
2827
|
-
},
|
|
2828
|
-
return () => !n || !r(n.per, n.perSuffix) || !(
|
|
2842
|
+
}, l = Q()(k.ButtonKey);
|
|
2843
|
+
return () => !n || !r(n.per, n.perSuffix) || !(q(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : l ? d(l, K({
|
|
2829
2844
|
class: "pro-curd-add-button",
|
|
2830
|
-
disabled:
|
|
2845
|
+
disabled: q(n.disabled) ? n.disabled() : n.disabled
|
|
2831
2846
|
}, e.buttonProps, {
|
|
2832
2847
|
onClick: u
|
|
2833
2848
|
}), {
|
|
@@ -2845,9 +2860,9 @@ const Nr = () => ({
|
|
|
2845
2860
|
type: Boolean,
|
|
2846
2861
|
default: !0
|
|
2847
2862
|
}
|
|
2848
|
-
}),
|
|
2863
|
+
}), wr = D({
|
|
2849
2864
|
props: {
|
|
2850
|
-
...
|
|
2865
|
+
...Pr.props,
|
|
2851
2866
|
...yt()
|
|
2852
2867
|
},
|
|
2853
2868
|
setup: (e, {
|
|
@@ -2860,99 +2875,99 @@ const Nr = () => ({
|
|
|
2860
2875
|
searchColumns: n,
|
|
2861
2876
|
tableColumns: u,
|
|
2862
2877
|
sendCurdEvent: c,
|
|
2863
|
-
operates:
|
|
2864
|
-
refreshList:
|
|
2865
|
-
} =
|
|
2866
|
-
Y(
|
|
2867
|
-
const
|
|
2868
|
-
return
|
|
2878
|
+
operates: l,
|
|
2879
|
+
refreshList: i
|
|
2880
|
+
} = ae(), b = F(
|
|
2881
|
+
Y(l, (s) => {
|
|
2882
|
+
const P = s.action;
|
|
2883
|
+
return P === x.DETAIL || P === x.EDIT || P === x.DELETE || s.tableOperate;
|
|
2869
2884
|
}),
|
|
2870
|
-
(
|
|
2871
|
-
const
|
|
2872
|
-
...
|
|
2873
|
-
value:
|
|
2885
|
+
(s) => {
|
|
2886
|
+
const P = {
|
|
2887
|
+
...V(s, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix"),
|
|
2888
|
+
value: s.action
|
|
2874
2889
|
};
|
|
2875
|
-
return
|
|
2890
|
+
return P.onClick || (P.onClick = (C) => {
|
|
2876
2891
|
c({
|
|
2877
|
-
action:
|
|
2878
|
-
type:
|
|
2892
|
+
action: s.action,
|
|
2893
|
+
type: j.EMIT,
|
|
2879
2894
|
record: C
|
|
2880
2895
|
});
|
|
2881
|
-
}),
|
|
2896
|
+
}), P;
|
|
2882
2897
|
}
|
|
2883
|
-
),
|
|
2898
|
+
), h = (s) => {
|
|
2884
2899
|
c({
|
|
2885
|
-
action:
|
|
2886
|
-
type:
|
|
2887
|
-
values:
|
|
2900
|
+
action: x.LIST,
|
|
2901
|
+
type: j.EMIT,
|
|
2902
|
+
values: s
|
|
2888
2903
|
});
|
|
2889
2904
|
};
|
|
2890
2905
|
On(() => {
|
|
2891
|
-
e.activatedRefresh &&
|
|
2906
|
+
e.activatedRefresh && i();
|
|
2892
2907
|
});
|
|
2893
|
-
const
|
|
2908
|
+
const f = O(() => ({
|
|
2894
2909
|
formElementMap: o,
|
|
2895
2910
|
columns: n.value,
|
|
2896
2911
|
...e.searchProps
|
|
2897
|
-
})),
|
|
2898
|
-
var
|
|
2912
|
+
})), S = O(() => {
|
|
2913
|
+
var s, P;
|
|
2899
2914
|
return {
|
|
2900
2915
|
elementMap: r,
|
|
2901
2916
|
columns: u.value,
|
|
2902
2917
|
loading: a.listLoading,
|
|
2903
|
-
dataSource: (
|
|
2904
|
-
|
|
2918
|
+
dataSource: (s = a.listData) == null ? void 0 : s.dataSource,
|
|
2919
|
+
...$(e.tableProps, "operate"),
|
|
2905
2920
|
operate: {
|
|
2906
2921
|
items: b,
|
|
2907
|
-
...(
|
|
2922
|
+
...(P = e.tableProps) == null ? void 0 : P.operate
|
|
2908
2923
|
}
|
|
2909
2924
|
};
|
|
2910
|
-
}),
|
|
2911
|
-
var
|
|
2925
|
+
}), E = O(() => {
|
|
2926
|
+
var s;
|
|
2912
2927
|
return e.paginationProps === !1 ? !1 : {
|
|
2913
|
-
total: (
|
|
2928
|
+
total: (s = a.listData) == null ? void 0 : s.total,
|
|
2914
2929
|
...e.paginationProps
|
|
2915
2930
|
};
|
|
2916
|
-
}),
|
|
2931
|
+
}), y = z(yt()), A = Q()(k.ProListKey);
|
|
2917
2932
|
return () => {
|
|
2918
|
-
var
|
|
2919
|
-
return
|
|
2933
|
+
var s, P;
|
|
2934
|
+
return A ? d(A, K({
|
|
2920
2935
|
class: "pro-curd-list"
|
|
2921
|
-
},
|
|
2922
|
-
searchProps:
|
|
2923
|
-
tableProps:
|
|
2924
|
-
paginationProps:
|
|
2925
|
-
onSearch:
|
|
2936
|
+
}, $(e, ...y, "searchProps", "tableProps", "paginationProps"), {
|
|
2937
|
+
searchProps: f.value,
|
|
2938
|
+
tableProps: S.value,
|
|
2939
|
+
paginationProps: E.value,
|
|
2940
|
+
onSearch: h
|
|
2926
2941
|
}), {
|
|
2927
|
-
"search-end": (
|
|
2942
|
+
"search-end": (s = e.addConfig) != null && s.inSearch ? () => {
|
|
2928
2943
|
var C;
|
|
2929
|
-
return
|
|
2944
|
+
return d("div", {
|
|
2930
2945
|
class: "pro-curd-list-search-end"
|
|
2931
|
-
}, [
|
|
2946
|
+
}, [d(mt, (C = e.addConfig) == null ? void 0 : C.buttonProps, null)]);
|
|
2932
2947
|
} : void 0,
|
|
2933
|
-
"table-toolbarExtra": (
|
|
2934
|
-
var
|
|
2935
|
-
return
|
|
2948
|
+
"table-toolbarExtra": (P = e.addConfig) != null && P.inTable ? (C) => {
|
|
2949
|
+
var I;
|
|
2950
|
+
return d(ie, null, [d(mt, (I = e.addConfig) == null ? void 0 : I.buttonProps, null), C]);
|
|
2936
2951
|
} : void 0,
|
|
2937
2952
|
...t,
|
|
2938
|
-
search: t.search ? (C) => t.search(C,
|
|
2939
|
-
table: t.table ? (C) => t.table(C,
|
|
2940
|
-
pagination: t.pagination ? (C) => t.pagination(C,
|
|
2953
|
+
search: t.search ? (C) => t.search(C, f.value) : void 0,
|
|
2954
|
+
table: t.table ? (C) => t.table(C, S.value) : void 0,
|
|
2955
|
+
pagination: t.pagination ? (C) => t.pagination(C, E.value) : void 0
|
|
2941
2956
|
}) : null;
|
|
2942
2957
|
};
|
|
2943
2958
|
}
|
|
2944
|
-
}),
|
|
2959
|
+
}), Ma = D(() => {
|
|
2945
2960
|
const {
|
|
2946
2961
|
listProps: e
|
|
2947
|
-
} =
|
|
2948
|
-
return () =>
|
|
2949
|
-
}),
|
|
2962
|
+
} = ae();
|
|
2963
|
+
return () => d(wr, $(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
|
|
2964
|
+
}), Dr = () => ({
|
|
2950
2965
|
signName: {
|
|
2951
2966
|
type: String
|
|
2952
2967
|
}
|
|
2953
|
-
}), Ze =
|
|
2968
|
+
}), Ze = D({
|
|
2954
2969
|
props: {
|
|
2955
|
-
...
|
|
2970
|
+
...Dr()
|
|
2956
2971
|
},
|
|
2957
2972
|
setup: (e, {
|
|
2958
2973
|
slots: t,
|
|
@@ -2964,78 +2979,78 @@ const Nr = () => ({
|
|
|
2964
2979
|
formElementMap: n,
|
|
2965
2980
|
curdState: u,
|
|
2966
2981
|
formColumns: c,
|
|
2967
|
-
getSignColumns:
|
|
2968
|
-
sendCurdEvent:
|
|
2969
|
-
} =
|
|
2970
|
-
r(
|
|
2971
|
-
const
|
|
2972
|
-
var
|
|
2973
|
-
u.addAction =
|
|
2974
|
-
},
|
|
2975
|
-
var
|
|
2976
|
-
u.addAction =
|
|
2977
|
-
},
|
|
2982
|
+
getSignColumns: l,
|
|
2983
|
+
sendCurdEvent: i
|
|
2984
|
+
} = ae(), b = G();
|
|
2985
|
+
r(ge(e.formMethods || [], b));
|
|
2986
|
+
const h = O(() => e.signName ? l(e.signName) : c.value), f = () => {
|
|
2987
|
+
var s;
|
|
2988
|
+
u.addAction = Ne.NORMAL, (s = b.value) == null || s.submit();
|
|
2989
|
+
}, S = () => {
|
|
2990
|
+
var s;
|
|
2991
|
+
u.addAction = Ne.CONTINUE, (s = b.value) == null || s.submit();
|
|
2992
|
+
}, E = [
|
|
2978
2993
|
{
|
|
2979
|
-
value:
|
|
2994
|
+
value: ne.RESET,
|
|
2980
2995
|
label: "\u91CD\u7F6E"
|
|
2981
2996
|
},
|
|
2982
2997
|
{
|
|
2983
|
-
value:
|
|
2998
|
+
value: ne.SUBMIT,
|
|
2984
2999
|
label: "\u63D0\u4EA4",
|
|
2985
3000
|
extraProps: {
|
|
2986
3001
|
type: "primary"
|
|
2987
3002
|
}
|
|
2988
3003
|
},
|
|
2989
3004
|
{
|
|
2990
|
-
value:
|
|
3005
|
+
value: ne.CONTINUE,
|
|
2991
3006
|
label: "\u786E\u5B9A\u5E76\u7EE7\u7EED",
|
|
2992
3007
|
extraProps: {
|
|
2993
3008
|
type: "primary"
|
|
2994
3009
|
},
|
|
2995
3010
|
show: !1
|
|
2996
3011
|
}
|
|
2997
|
-
],
|
|
2998
|
-
o.onFinish || (u.mode ===
|
|
2999
|
-
action:
|
|
3000
|
-
type:
|
|
3001
|
-
values:
|
|
3002
|
-
}) :
|
|
3003
|
-
action:
|
|
3004
|
-
type:
|
|
3005
|
-
values:
|
|
3012
|
+
], y = (s) => {
|
|
3013
|
+
o.onFinish || (u.mode === x.EDIT ? i({
|
|
3014
|
+
action: x.EDIT,
|
|
3015
|
+
type: j.EXECUTE,
|
|
3016
|
+
values: s
|
|
3017
|
+
}) : i({
|
|
3018
|
+
action: x.ADD,
|
|
3019
|
+
type: j.EXECUTE,
|
|
3020
|
+
values: s
|
|
3006
3021
|
}));
|
|
3007
|
-
},
|
|
3008
|
-
return () =>
|
|
3022
|
+
}, A = Q()(k.ProFormKey);
|
|
3023
|
+
return () => A ? d(A, K({
|
|
3009
3024
|
ref: b,
|
|
3010
3025
|
class: "pro-curd-form"
|
|
3011
|
-
},
|
|
3026
|
+
}, $(e, "operate"), {
|
|
3012
3027
|
elementMap: e.elementMap || a,
|
|
3013
3028
|
formElementMap: e.formElementMap || n,
|
|
3014
|
-
columns: e.columns ||
|
|
3015
|
-
readonly: u.mode ===
|
|
3029
|
+
columns: e.columns || h.value,
|
|
3030
|
+
readonly: u.mode === x.DETAIL,
|
|
3016
3031
|
model: e.model || u.detailData,
|
|
3017
|
-
hideRequiredMark: u.mode ===
|
|
3032
|
+
hideRequiredMark: u.mode === x.DETAIL,
|
|
3018
3033
|
operate: e.operate ? {
|
|
3019
|
-
items:
|
|
3020
|
-
onSubmit:
|
|
3021
|
-
onContinue:
|
|
3034
|
+
items: E,
|
|
3035
|
+
onSubmit: f,
|
|
3036
|
+
onContinue: S,
|
|
3022
3037
|
...e.operate
|
|
3023
3038
|
} : void 0,
|
|
3024
|
-
onFinish:
|
|
3039
|
+
onFinish: y
|
|
3025
3040
|
}), t) : null;
|
|
3026
3041
|
}
|
|
3027
|
-
}),
|
|
3042
|
+
}), Ta = D(() => {
|
|
3028
3043
|
const {
|
|
3029
3044
|
formProps: e
|
|
3030
|
-
} =
|
|
3031
|
-
return () =>
|
|
3032
|
-
}),
|
|
3045
|
+
} = ae();
|
|
3046
|
+
return () => d(Ze, $(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
|
|
3047
|
+
}), Kr = () => ({
|
|
3033
3048
|
signName: {
|
|
3034
3049
|
type: String
|
|
3035
3050
|
}
|
|
3036
|
-
}),
|
|
3051
|
+
}), xr = D({
|
|
3037
3052
|
props: {
|
|
3038
|
-
...
|
|
3053
|
+
...Kr()
|
|
3039
3054
|
},
|
|
3040
3055
|
setup: (e, {
|
|
3041
3056
|
slots: t
|
|
@@ -3044,23 +3059,23 @@ const Nr = () => ({
|
|
|
3044
3059
|
curdState: r,
|
|
3045
3060
|
descColumns: o,
|
|
3046
3061
|
getSignColumns: a
|
|
3047
|
-
} =
|
|
3048
|
-
return () =>
|
|
3062
|
+
} = ae(), n = O(() => e.signName ? a(e.signName) : o.value);
|
|
3063
|
+
return () => d(pr, K($(e, "signName", "model", "columns"), {
|
|
3049
3064
|
model: e.model || r.detailData,
|
|
3050
3065
|
columns: n.value
|
|
3051
3066
|
}), t);
|
|
3052
3067
|
}
|
|
3053
|
-
}),
|
|
3068
|
+
}), Ia = D(() => {
|
|
3054
3069
|
const {
|
|
3055
3070
|
descProps: e
|
|
3056
|
-
} =
|
|
3057
|
-
return () =>
|
|
3071
|
+
} = ae();
|
|
3072
|
+
return () => d(xr, K({
|
|
3058
3073
|
class: "pro-curd-desc"
|
|
3059
|
-
},
|
|
3074
|
+
}, $(e == null ? void 0 : e.value, "slots")), m(e == null ? void 0 : e.value, "slots"));
|
|
3060
3075
|
}), vt = () => ({
|
|
3061
3076
|
validMode: {
|
|
3062
3077
|
type: Array,
|
|
3063
|
-
default: [
|
|
3078
|
+
default: [x.ADD, x.DETAIL, x.EDIT]
|
|
3064
3079
|
},
|
|
3065
3080
|
loadingOpts: {
|
|
3066
3081
|
type: Object
|
|
@@ -3068,48 +3083,48 @@ const Nr = () => ({
|
|
|
3068
3083
|
overrideProps: {
|
|
3069
3084
|
type: Object
|
|
3070
3085
|
}
|
|
3071
|
-
}), tn =
|
|
3086
|
+
}), tn = D({
|
|
3072
3087
|
props: {
|
|
3073
3088
|
...vt()
|
|
3074
3089
|
},
|
|
3075
3090
|
setup: (e, {
|
|
3076
3091
|
slots: t
|
|
3077
3092
|
}) => {
|
|
3078
|
-
const r =
|
|
3093
|
+
const r = Q(), o = r(k.ModalKey), a = r(k.LoadingKey), {
|
|
3079
3094
|
curdState: n,
|
|
3080
3095
|
getOperate: u
|
|
3081
|
-
} =
|
|
3096
|
+
} = ae(), c = () => {
|
|
3082
3097
|
n.mode = void 0, Ct(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
|
|
3083
|
-
},
|
|
3098
|
+
}, l = z(vt());
|
|
3084
3099
|
return () => {
|
|
3085
3100
|
var b;
|
|
3086
|
-
const
|
|
3087
|
-
return !fe(e.validMode, (
|
|
3101
|
+
const i = n.mode;
|
|
3102
|
+
return !fe(e.validMode, (h) => h === i) || !o ? null : d(o, K({
|
|
3088
3103
|
class: "pro-curd-modal"
|
|
3089
|
-
},
|
|
3090
|
-
visible: fe(e.validMode, (
|
|
3104
|
+
}, $(e, l), {
|
|
3105
|
+
visible: fe(e.validMode, (h) => h === i),
|
|
3091
3106
|
title: e.title || ((b = u(n.mode)) == null ? void 0 : b.label),
|
|
3092
3107
|
confirmLoading: n.operateLoading,
|
|
3093
|
-
maskClosable: n.mode ===
|
|
3094
|
-
footer: n.mode ===
|
|
3108
|
+
maskClosable: n.mode === x.DETAIL,
|
|
3109
|
+
footer: n.detailLoading || n.mode === x.DETAIL ? !1 : void 0
|
|
3095
3110
|
}, e.overrideProps, {
|
|
3096
3111
|
onCancel: c
|
|
3097
3112
|
}), {
|
|
3098
3113
|
default: () => {
|
|
3099
|
-
var
|
|
3100
|
-
return [n.detailLoading && a ?
|
|
3114
|
+
var h;
|
|
3115
|
+
return [n.detailLoading && a ? d(a, K({
|
|
3101
3116
|
loading: !0
|
|
3102
3117
|
}, e.loadingOpts), {
|
|
3103
|
-
default: () => [
|
|
3118
|
+
default: () => [d("div", {
|
|
3104
3119
|
class: "pro-curd-modal-loading-dom"
|
|
3105
3120
|
}, null)]
|
|
3106
|
-
}) : (
|
|
3121
|
+
}) : (h = t.default) == null ? void 0 : h.call(t)];
|
|
3107
3122
|
},
|
|
3108
|
-
|
|
3123
|
+
...$(t, "default")
|
|
3109
3124
|
});
|
|
3110
3125
|
};
|
|
3111
3126
|
}
|
|
3112
|
-
}),
|
|
3127
|
+
}), Na = D({
|
|
3113
3128
|
props: {
|
|
3114
3129
|
modalProps: Object,
|
|
3115
3130
|
formProps: Object
|
|
@@ -3117,137 +3132,139 @@ const Nr = () => ({
|
|
|
3117
3132
|
setup: (e, {
|
|
3118
3133
|
slots: t
|
|
3119
3134
|
}) => {
|
|
3120
|
-
const r =
|
|
3121
|
-
return () =>
|
|
3135
|
+
const r = G(), o = le(t, "modal"), a = le(t, "form");
|
|
3136
|
+
return () => d(tn, K(e.modalProps, {
|
|
3122
3137
|
onOk: () => {
|
|
3123
3138
|
var n;
|
|
3124
3139
|
(n = r.value) == null || n.submit();
|
|
3125
3140
|
}
|
|
3126
3141
|
}), {
|
|
3127
|
-
default: () => [
|
|
3142
|
+
default: () => [d(Ze, K({
|
|
3128
3143
|
ref: r
|
|
3129
3144
|
}, e.formProps), a)],
|
|
3130
3145
|
...o
|
|
3131
3146
|
});
|
|
3132
3147
|
}
|
|
3133
|
-
}),
|
|
3148
|
+
}), Aa = D(() => {
|
|
3134
3149
|
const {
|
|
3135
3150
|
modalProps: e,
|
|
3136
3151
|
formProps: t
|
|
3137
|
-
} =
|
|
3138
|
-
return () =>
|
|
3152
|
+
} = ae(), r = G();
|
|
3153
|
+
return () => d(tn, K($(e == null ? void 0 : e.value, "slots"), {
|
|
3139
3154
|
onOk: () => {
|
|
3140
3155
|
var o;
|
|
3141
3156
|
(o = r.value) == null || o.submit();
|
|
3142
3157
|
}
|
|
3143
3158
|
}), {
|
|
3144
|
-
default: () => [
|
|
3159
|
+
default: () => [d(Ze, K({
|
|
3145
3160
|
ref: r
|
|
3146
|
-
},
|
|
3147
|
-
...
|
|
3161
|
+
}, $(t == null ? void 0 : t.value, "slots")), m(t == null ? void 0 : t.value, "slots"))],
|
|
3162
|
+
...m(e == null ? void 0 : e.value, "slots")
|
|
3148
3163
|
});
|
|
3149
3164
|
});
|
|
3150
3165
|
export {
|
|
3151
3166
|
mt as AddButton,
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3167
|
+
mr as ColumnSetting,
|
|
3168
|
+
x as CurdAction,
|
|
3169
|
+
Ne as CurdAddAction,
|
|
3155
3170
|
de as CurdCurrentMode,
|
|
3156
3171
|
en as CurdMethods,
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3172
|
+
j as CurdSubAction,
|
|
3173
|
+
k as ElementKeys,
|
|
3174
|
+
ne as FormAction,
|
|
3175
|
+
aa as FormRulePrefixMap,
|
|
3176
|
+
sa as LogonUser,
|
|
3162
3177
|
Xt as LogonUserKey,
|
|
3163
|
-
|
|
3164
|
-
la as
|
|
3165
|
-
ia as
|
|
3166
|
-
|
|
3178
|
+
qe as ModalCurdOpe,
|
|
3179
|
+
la as MustLogon,
|
|
3180
|
+
ia as PerSuffix,
|
|
3181
|
+
da as Permission,
|
|
3182
|
+
Xr as ProConfig,
|
|
3167
3183
|
ze as ProCurd,
|
|
3168
|
-
|
|
3169
|
-
|
|
3184
|
+
xr as ProCurdDesc,
|
|
3185
|
+
Ia as ProCurdDescConnect,
|
|
3170
3186
|
Ze as ProCurdForm,
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3187
|
+
Ta as ProCurdFormConnect,
|
|
3188
|
+
wr as ProCurdList,
|
|
3189
|
+
Ma as ProCurdListConnect,
|
|
3174
3190
|
tn as ProCurdModal,
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3191
|
+
Na as ProCurdModalForm,
|
|
3192
|
+
Aa as ProCurdModalFormConnect,
|
|
3193
|
+
pr as ProDesc,
|
|
3194
|
+
ra as ProForm,
|
|
3195
|
+
na as ProFormList,
|
|
3196
|
+
Se as ProGrid,
|
|
3197
|
+
ga as ProLayout,
|
|
3198
|
+
Pr as ProList,
|
|
3199
|
+
Ca as ProModalCurd,
|
|
3200
|
+
Ke as ProModule,
|
|
3185
3201
|
Qt as ProOperate,
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3202
|
+
ma as ProPage,
|
|
3203
|
+
Ea as ProPageCurd,
|
|
3204
|
+
oa as ProSearchForm,
|
|
3205
|
+
ba as ProShowDate,
|
|
3206
|
+
ya as ProShowDigit,
|
|
3207
|
+
va as ProShowOptions,
|
|
3208
|
+
ke as ProShowText,
|
|
3209
|
+
ha as ProShowTree,
|
|
3210
|
+
fa as ProTable,
|
|
3211
|
+
Er as ProTypography,
|
|
3212
|
+
Pa as ProUploadList,
|
|
3213
|
+
Sa as ProUploaderText,
|
|
3214
|
+
Te as RequestAction,
|
|
3199
3215
|
Un as RouterMethods,
|
|
3200
|
-
|
|
3201
|
-
|
|
3216
|
+
Le as SearchMode,
|
|
3217
|
+
Jn as Wrapper,
|
|
3202
3218
|
Bt as convertPathToList,
|
|
3203
3219
|
jn as convertResData,
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3220
|
+
ge as createExpose,
|
|
3221
|
+
ta as createExposeObj,
|
|
3222
|
+
ua as createFormItemCompFn,
|
|
3223
|
+
pa as createModule,
|
|
3224
|
+
_r as createProConfig,
|
|
3225
|
+
gr as defaultPage,
|
|
3210
3226
|
le as filterSlotsByPrefix,
|
|
3211
3227
|
se as getColumnFormItemName,
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3228
|
+
Lt as getColumnValueType,
|
|
3229
|
+
Qn as getFirstPropName,
|
|
3230
|
+
_n as getRealRender,
|
|
3231
|
+
nr as getSignValue,
|
|
3232
|
+
tr as getValidValues,
|
|
3233
|
+
Yn as isValidConfig,
|
|
3234
|
+
Xn as isValidNode,
|
|
3235
|
+
je as mergeState,
|
|
3236
|
+
ea as mergeStateToList,
|
|
3237
|
+
he as proBaseProps,
|
|
3238
|
+
Nr as provideProCurd,
|
|
3222
3239
|
zt as provideProFormList,
|
|
3223
3240
|
Wn as provideProModule,
|
|
3224
3241
|
Qe as renderColumn,
|
|
3225
|
-
|
|
3242
|
+
Ie as renderElement,
|
|
3226
3243
|
Je as renderElements,
|
|
3227
3244
|
jt as renderInputColumn,
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3245
|
+
ur as useAccess,
|
|
3246
|
+
ca as useAccessMgr,
|
|
3247
|
+
Ln as useComposeRequestActor,
|
|
3248
|
+
Jr as useDispatchMeta,
|
|
3232
3249
|
Hn as useDispatchStore,
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3250
|
+
Yr as useDoneRequestActor,
|
|
3251
|
+
Qr as useFailedRequestActor,
|
|
3252
|
+
ar as useFormSubmit,
|
|
3253
|
+
Q as useGetCompByKey,
|
|
3237
3254
|
_t as useHasPer,
|
|
3238
3255
|
Yt as useHasPer2,
|
|
3239
|
-
|
|
3256
|
+
cr as useLogonUser,
|
|
3240
3257
|
kn as useMetaRegister,
|
|
3241
3258
|
Ye as useModuleEvent,
|
|
3242
|
-
|
|
3243
|
-
|
|
3259
|
+
te as useProConfig,
|
|
3260
|
+
ae as useProCurd,
|
|
3244
3261
|
Wt as useProForm,
|
|
3245
3262
|
Vt as useProFormList,
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3263
|
+
Wr as useProModal,
|
|
3264
|
+
be as useProModule,
|
|
3265
|
+
Hr as useProMsg,
|
|
3266
|
+
Gr as useProNotify,
|
|
3267
|
+
Ft as useProRouter,
|
|
3268
|
+
yr as useProTable,
|
|
3269
|
+
Zr as useReadStore
|
|
3253
3270
|
};
|