@vue-start/pro 0.5.22 → 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +13 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +415 -405
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { reduce as Q, get as f, map as
|
|
3
|
-
import { filter as
|
|
1
|
+
import { defineComponent as D, provide as se, inject as ie, reactive as Me, createVNode as l, Fragment as te, computed as I, h as ge, isVNode as Se, mergeProps as A, ref as W, createTextVNode as tt, toRef as Jt } from "vue";
|
|
2
|
+
import { reduce as Q, get as f, map as L, isString as oe, forEach as Y, endsWith as ht, set as re, isArray as z, size as _, pick as B, add as Qt, subtract as Zt, isFunction as H, filter as G, has as He, keys as q, isObject as Pe, omit as $, some as le, isNumber as bt, head as en, split as tn, isEmpty as gt, mergeWith as nn, startsWith as rn, mapKeys as an, debounce as on, clone as un, isBoolean as me, every as cn, sortBy as St, join as Ge, findLast as ln, cloneDeep as Pt } from "lodash";
|
|
3
|
+
import { filter as Ke, tap as xe, merge as sn, Subject as dn } from "rxjs";
|
|
4
4
|
import { map as mn, tap as fn } from "rxjs/operators";
|
|
5
|
-
import { useEffect as ne, setReactiveValue as pt, restorePath as Ct, isValidPath as Et, isPathHasParent as Mt, useRuleState as
|
|
6
|
-
import { useRequestProvide as Te, isDoneRequestActor as At, isFailedRequestActor as
|
|
7
|
-
import { useDispatchStore as
|
|
8
|
-
import { useRouter as Xe, useRoute as
|
|
5
|
+
import { useEffect as ne, setReactiveValue as pt, restorePath as Ct, isValidPath as Et, isPathHasParent as Mt, useRuleState as Ue, mergeStateToData as we, convertCollection as Tt, useWatch as It, useUpdateKey as yn, useResizeObserver as ze, decimalFixed as vn, thousandDivision as hn, listToMap as bn, treeToMap as gn, getMenuTopNameMap as Sn, findTreeItem as nt, strToJson as Nt, jsonToStr as Pn, useState as rt } from "@vue-start/hooks";
|
|
6
|
+
import { useRequestProvide as Te, isDoneRequestActor as At, isFailedRequestActor as $t } from "@vue-start/request";
|
|
7
|
+
import { useDispatchStore as Dt, useStore as Ot, useObservableRef as pn, useStoreConn as Cn, shallowEqual as En, createStateUse as Mn } from "@vue-start/store";
|
|
8
|
+
import { useRouter as Xe, useRoute as Re } from "vue-router";
|
|
9
9
|
import { css as at } from "@emotion/css";
|
|
10
10
|
import ot from "dayjs";
|
|
11
11
|
const Tn = () => ({
|
|
@@ -23,13 +23,13 @@ const Tn = () => ({
|
|
|
23
23
|
registerMetas: { type: Array },
|
|
24
24
|
convertRouter: { type: Function },
|
|
25
25
|
expressionMethods: { type: Object }
|
|
26
|
-
}), _e = Symbol("pro-config"), Z = () => ie(_e) || {}, xr =
|
|
26
|
+
}), _e = Symbol("pro-config"), Z = () => ie(_e) || {}, xr = D({
|
|
27
27
|
props: {
|
|
28
28
|
...In()
|
|
29
29
|
},
|
|
30
30
|
setup: (e, { slots: t }) => {
|
|
31
31
|
const u = Q(e.registerStores, (c, m) => ({ ...c, [m.key]: m }), {}), o = Q(e.registerActors, (c, m) => ({ ...c, [m.actor.name]: m }), {}), n = Q(e.registerMetas, (c, m) => ({ ...c, [m.actorName]: m }), {});
|
|
32
|
-
|
|
32
|
+
$n(n, o);
|
|
33
33
|
const { dispatchRequest: r } = Te(), a = (c, m, i) => {
|
|
34
34
|
const p = f(o, c);
|
|
35
35
|
if (!!p)
|
|
@@ -52,11 +52,11 @@ const Tn = () => ({
|
|
|
52
52
|
}), Lr = (e = {}) => (t) => {
|
|
53
53
|
t.provide(_e, e);
|
|
54
54
|
}, Kt = (e) => (t, u) => {
|
|
55
|
-
const { requestSubject$: o } = Te(), n = new Set(
|
|
55
|
+
const { requestSubject$: o } = Te(), n = new Set(L(t, (r) => oe(r) ? r : r.name));
|
|
56
56
|
ne(() => {
|
|
57
57
|
const r = o.pipe(
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Ke(e),
|
|
59
|
+
xe((a) => {
|
|
60
60
|
n.has(a.name) && u(a);
|
|
61
61
|
})
|
|
62
62
|
).subscribe();
|
|
@@ -64,20 +64,20 @@ const Tn = () => ({
|
|
|
64
64
|
r.unsubscribe();
|
|
65
65
|
};
|
|
66
66
|
}, []);
|
|
67
|
-
}, Fr = Kt(At), wr = Kt(
|
|
68
|
-
const { requestSubject$: o, dispatchRequest: n } = Te(), r = new Set(
|
|
67
|
+
}, Fr = Kt(At), wr = Kt($t), Nn = (e, t, u) => {
|
|
68
|
+
const { requestSubject$: o, dispatchRequest: n } = Te(), r = new Set(L(e, (c) => oe(c) ? c : c.name)), a = {};
|
|
69
69
|
ne(() => {
|
|
70
70
|
const c = sn(
|
|
71
71
|
o.pipe(
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
Ke(At),
|
|
73
|
+
xe((m) => {
|
|
74
74
|
var i, p;
|
|
75
75
|
r.has(m.name) && ((i = t.onSuccess) == null || i.call(t, m), (p = t.onFinish) == null || p.call(t, m), a[m.name] = void 0);
|
|
76
76
|
})
|
|
77
77
|
),
|
|
78
78
|
o.pipe(
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
Ke($t),
|
|
80
|
+
xe((m) => {
|
|
81
81
|
var i, p;
|
|
82
82
|
r.has(m.name) && ((i = t.onFailed) == null || i.call(t, m), (p = t.onFinish) == null || p.call(t, m), a[m.name] = void 0);
|
|
83
83
|
})
|
|
@@ -102,15 +102,15 @@ const Tn = () => ({
|
|
|
102
102
|
const r = n.storeName || o;
|
|
103
103
|
f(e.value, r) || u(o, n.initParams || {});
|
|
104
104
|
};
|
|
105
|
-
},
|
|
106
|
-
const { requestSubject$: u } = Te(), o =
|
|
105
|
+
}, $n = (e, t) => {
|
|
106
|
+
const { requestSubject$: u } = Te(), o = Dt(), n = (r) => {
|
|
107
107
|
const a = f(e, r.name), c = f(t, r.name);
|
|
108
108
|
return !!(a && c && c.actor);
|
|
109
109
|
};
|
|
110
110
|
ne(() => {
|
|
111
111
|
const r = u.pipe(
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Ke(n),
|
|
113
|
+
xe((a) => {
|
|
114
114
|
const c = f(e, a.name);
|
|
115
115
|
if (!c)
|
|
116
116
|
return;
|
|
@@ -122,16 +122,16 @@ const Tn = () => ({
|
|
|
122
122
|
r.unsubscribe();
|
|
123
123
|
};
|
|
124
124
|
}, []);
|
|
125
|
-
},
|
|
126
|
-
const { convertRouter: e } = Z(), t = Xe(), u =
|
|
125
|
+
}, Dn = () => {
|
|
126
|
+
const { convertRouter: e } = Z(), t = Xe(), u = Re(), r = { ...t, open: (c, m, i) => window.open(c, m, i), openMenu: (c) => {
|
|
127
127
|
} };
|
|
128
128
|
return { router: e ? e(r) : r, route: u };
|
|
129
129
|
}, On = (e) => {
|
|
130
|
-
if (!
|
|
130
|
+
if (!z(e) || _(e) <= 0)
|
|
131
131
|
return !1;
|
|
132
132
|
const t = e[0];
|
|
133
133
|
return oe(t) ? ht(t, "$") : !1;
|
|
134
|
-
}, Kn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, xn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Ln = { get: f, pick: B, add: Qt, subtract: Zt },
|
|
134
|
+
}, Kn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, xn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Ln = { get: f, pick: B, add: Qt, subtract: Zt }, Le = (e, t) => {
|
|
135
135
|
if (Kn(e)) {
|
|
136
136
|
const u = f(t, e.name$);
|
|
137
137
|
return e.namePath$ ? f(u, e.namePath$) : u;
|
|
@@ -140,7 +140,7 @@ const Tn = () => ({
|
|
|
140
140
|
return Y(e, (o, n) => {
|
|
141
141
|
if (n !== "type$")
|
|
142
142
|
if (ht(n, "$")) {
|
|
143
|
-
const r =
|
|
143
|
+
const r = Le(o, t);
|
|
144
144
|
re(u, n.replace("$", ""), r);
|
|
145
145
|
} else
|
|
146
146
|
u[n] = o;
|
|
@@ -151,12 +151,12 @@ const Tn = () => ({
|
|
|
151
151
|
console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
const a =
|
|
154
|
+
const a = L(o, (c) => Le(c, t));
|
|
155
155
|
return r(...a);
|
|
156
156
|
}
|
|
157
157
|
return e;
|
|
158
158
|
}, Fn = () => {
|
|
159
|
-
const e =
|
|
159
|
+
const e = Dt(), { registerStoreMap: t } = Z();
|
|
160
160
|
return (u, o) => {
|
|
161
161
|
const n = f(t, u);
|
|
162
162
|
!n || e(u, o, !!n.persist, n.initialState);
|
|
@@ -209,7 +209,7 @@ const Tn = () => ({
|
|
|
209
209
|
requests: {
|
|
210
210
|
type: Array
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
212
|
+
}), Oe = D({
|
|
213
213
|
props: {
|
|
214
214
|
...Rn()
|
|
215
215
|
},
|
|
@@ -219,11 +219,11 @@ const Tn = () => ({
|
|
|
219
219
|
}) => {
|
|
220
220
|
const o = Ot(), {
|
|
221
221
|
router: n
|
|
222
|
-
} =
|
|
222
|
+
} = Dn(), {
|
|
223
223
|
elementMap: r,
|
|
224
224
|
registerStoreMap: a,
|
|
225
225
|
expressionMethods: c
|
|
226
|
-
} = Z(), m = e.elementMap || r, i = (b) =>
|
|
226
|
+
} = Z(), m = e.elementMap || r, i = (b) => z(b) ? Ze(m, b) : Ce(m, b), p = new dn(), S = (b) => {
|
|
227
227
|
p.next(b);
|
|
228
228
|
}, v = G(e.storeKeys, (b) => He(a, b)), h = () => Q(v, (b, y) => {
|
|
229
229
|
const M = f(a, y);
|
|
@@ -260,8 +260,8 @@ const Tn = () => ({
|
|
|
260
260
|
};
|
|
261
261
|
}, []);
|
|
262
262
|
const {
|
|
263
|
-
dispatchRequest:
|
|
264
|
-
} = Te(),
|
|
263
|
+
dispatchRequest: j
|
|
264
|
+
} = Te(), R = (() => {
|
|
265
265
|
const b = {}, y = Q(e.actors || [], (M, T) => ({
|
|
266
266
|
...M,
|
|
267
267
|
[T.name]: T
|
|
@@ -275,23 +275,23 @@ const Tn = () => ({
|
|
|
275
275
|
}
|
|
276
276
|
!M.actor || (b[M.actor.name] = M, M.action && (b[M.action] = M));
|
|
277
277
|
}), b;
|
|
278
|
-
})(),
|
|
278
|
+
})(), V = (b, ...y) => b.convertParams ? b.convertParams(...y) : b.convertParamsEx ? x(b.convertParamsEx, y) : f(y, 0), N = (b, y) => {
|
|
279
279
|
var M;
|
|
280
280
|
return b.convertData ? b.convertData(y) : b.convertDataEx ? x(b.convertDataEx, y) : (M = y.res) == null ? void 0 : M.data;
|
|
281
|
-
},
|
|
282
|
-
const M = f(
|
|
281
|
+
}, O = (b, ...y) => {
|
|
282
|
+
const M = f(R, b);
|
|
283
283
|
if (!M)
|
|
284
284
|
return;
|
|
285
|
-
const T =
|
|
285
|
+
const T = V(M, ...y);
|
|
286
286
|
M.loadingName && P({
|
|
287
287
|
type: M.loadingName,
|
|
288
288
|
payload: !0
|
|
289
|
-
}),
|
|
289
|
+
}), j(M.actor, T);
|
|
290
290
|
};
|
|
291
|
-
Nn(q(
|
|
291
|
+
Nn(q(R), {
|
|
292
292
|
onSuccess: (b) => {
|
|
293
293
|
var T;
|
|
294
|
-
const y = f(
|
|
294
|
+
const y = f(R, b.name), M = N(y, b);
|
|
295
295
|
y != null && y.stateName && P({
|
|
296
296
|
type: y.stateName,
|
|
297
297
|
payload: M
|
|
@@ -301,33 +301,33 @@ const Tn = () => ({
|
|
|
301
301
|
actor: b,
|
|
302
302
|
requestOpts: y
|
|
303
303
|
}
|
|
304
|
-
}), (T = y.onSuccess) == null || T.call(y, b), y.onSuccessEx &&
|
|
304
|
+
}), (T = y.onSuccess) == null || T.call(y, b), y.onSuccessEx && F(y.onSuccessEx, [M]);
|
|
305
305
|
},
|
|
306
306
|
onFailed: (b) => {
|
|
307
307
|
var M;
|
|
308
|
-
const y = f(
|
|
308
|
+
const y = f(R, b.name);
|
|
309
309
|
S({
|
|
310
310
|
type: pe.Fail,
|
|
311
311
|
payload: {
|
|
312
312
|
actor: b,
|
|
313
313
|
requestOpts: y
|
|
314
314
|
}
|
|
315
|
-
}), (M = y.onFailed) == null || M.call(y, b), y.onFailedEx &&
|
|
315
|
+
}), (M = y.onFailed) == null || M.call(y, b), y.onFailedEx && F(y.onFailedEx, [b.err]);
|
|
316
316
|
},
|
|
317
317
|
onFinish: (b) => {
|
|
318
|
-
const y = f(
|
|
318
|
+
const y = f(R, [b.name, "loadingName"]);
|
|
319
319
|
y && P({
|
|
320
320
|
type: y,
|
|
321
321
|
payload: !1
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
}, !0);
|
|
325
|
-
const x = (b, y) =>
|
|
325
|
+
const x = (b, y) => Le(b, {
|
|
326
326
|
state: s,
|
|
327
327
|
data: C,
|
|
328
328
|
args: y,
|
|
329
329
|
expressionMethods: c
|
|
330
|
-
}),
|
|
330
|
+
}), F = (b, y) => {
|
|
331
331
|
if (!b)
|
|
332
332
|
return;
|
|
333
333
|
const M = {
|
|
@@ -337,26 +337,26 @@ const Tn = () => ({
|
|
|
337
337
|
expressionMethods: c
|
|
338
338
|
};
|
|
339
339
|
Y(b, (T) => {
|
|
340
|
-
if (!
|
|
340
|
+
if (!z(T) || _(T) < 2) {
|
|
341
341
|
console.log("execute invalid", T);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
344
|
const [de, Ne, ...Ae] = T;
|
|
345
|
-
let
|
|
345
|
+
let $e;
|
|
346
346
|
switch (de) {
|
|
347
347
|
case "router":
|
|
348
|
-
|
|
348
|
+
$e = f(n, Ne);
|
|
349
349
|
break;
|
|
350
350
|
case "state":
|
|
351
|
-
|
|
351
|
+
$e = f(E, Ne);
|
|
352
352
|
break;
|
|
353
353
|
}
|
|
354
|
-
if (
|
|
354
|
+
if ($e)
|
|
355
355
|
try {
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
-
} catch (
|
|
359
|
-
console.log("execute err",
|
|
356
|
+
const ke = L(Ae, (Yt) => Le(Yt, M));
|
|
357
|
+
$e(...ke);
|
|
358
|
+
} catch (ke) {
|
|
359
|
+
console.log("execute err", ke);
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
};
|
|
@@ -368,12 +368,12 @@ const Tn = () => ({
|
|
|
368
368
|
dispatch: P,
|
|
369
369
|
data: C,
|
|
370
370
|
requests: e.requests,
|
|
371
|
-
sendRequest:
|
|
371
|
+
sendRequest: O,
|
|
372
372
|
executeExp: x,
|
|
373
|
-
execute:
|
|
373
|
+
execute: F
|
|
374
374
|
}), u({
|
|
375
375
|
sendEvent: S,
|
|
376
|
-
sendRequest:
|
|
376
|
+
sendRequest: O
|
|
377
377
|
}), () => {
|
|
378
378
|
var b;
|
|
379
379
|
return l(te, null, [_(e.elementConfigs) > 0 && i(e.elementConfigs), (b = t.default) == null ? void 0 : b.call(t)]);
|
|
@@ -393,18 +393,18 @@ const Tn = () => ({
|
|
|
393
393
|
name: n,
|
|
394
394
|
label: t.title,
|
|
395
395
|
...t.formItemProps,
|
|
396
|
-
fieldProps:
|
|
396
|
+
fieldProps: $(t.formFieldProps, "slots"),
|
|
397
397
|
showProps: t.showProps
|
|
398
398
|
}, (r = t.formFieldProps) == null ? void 0 : r.slots);
|
|
399
399
|
}, Qe = (e, t, u) => {
|
|
400
400
|
var r;
|
|
401
401
|
const o = t.valueType || "text", n = f(e, o);
|
|
402
402
|
return n ? ge(n, {
|
|
403
|
-
|
|
403
|
+
...$(t.formFieldProps, "slots"),
|
|
404
404
|
showProps: t.showProps,
|
|
405
405
|
value: u
|
|
406
406
|
}, (r = t.formFieldProps) == null ? void 0 : r.slots) : null;
|
|
407
|
-
}, jn = (e) => e && !H(e) && e.elementType, Ze = (e, t) =>
|
|
407
|
+
}, jn = (e) => e && !H(e) && e.elementType, Ze = (e, t) => L(t, (u) => Ce(e, u)), Ft = (e, t) => {
|
|
408
408
|
var r;
|
|
409
409
|
const u = t.elementProps, o = {
|
|
410
410
|
...t.elementProps
|
|
@@ -414,7 +414,7 @@ const Tn = () => ({
|
|
|
414
414
|
`)), Y((r = t.highConfig$) == null ? void 0 : r.registerPropsTrans, (a) => {
|
|
415
415
|
const c = f(u, a.name);
|
|
416
416
|
if (!(!c || Se(c))) {
|
|
417
|
-
if (
|
|
417
|
+
if (z(c)) {
|
|
418
418
|
if (le(c, (m) => Se(m)))
|
|
419
419
|
return;
|
|
420
420
|
re(o, a.name, Ze(e, c));
|
|
@@ -433,7 +433,7 @@ const Tn = () => ({
|
|
|
433
433
|
}
|
|
434
434
|
}), o;
|
|
435
435
|
}, wt = (e, t) => {
|
|
436
|
-
const u = _(t.children) > 0 ? Ze(e, t.children) : void 0, o = t.childrenSlotName || "default", n =
|
|
436
|
+
const u = _(t.children) > 0 ? Ze(e, t.children) : void 0, o = t.childrenSlotName || "default", n = $(t.slots, u ? o : "");
|
|
437
437
|
return Y(q(n), (r) => {
|
|
438
438
|
const a = n[r];
|
|
439
439
|
jn(a) ? n[r] = (...c) => {
|
|
@@ -463,7 +463,7 @@ const Tn = () => ({
|
|
|
463
463
|
key: t.elementId,
|
|
464
464
|
...n
|
|
465
465
|
}, o);
|
|
466
|
-
}, kn = (e) =>
|
|
466
|
+
}, kn = (e) => z(e) ? en(e) : oe(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Un = D({
|
|
467
467
|
props: {
|
|
468
468
|
elementMap: {
|
|
469
469
|
type: Object
|
|
@@ -497,7 +497,7 @@ const Tn = () => ({
|
|
|
497
497
|
return;
|
|
498
498
|
const g = {
|
|
499
499
|
...c
|
|
500
|
-
}, s = G(a.registerStateList, (P) => !P.target || P.target === "prop"), C =
|
|
500
|
+
}, s = G(a.registerStateList, (P) => !P.target || P.target === "prop"), C = L(s, (P) => {
|
|
501
501
|
const d = P.mapName || P.name, E = f(t, P.name);
|
|
502
502
|
return re(g, d, E), kn(d);
|
|
503
503
|
});
|
|
@@ -512,7 +512,7 @@ const Tn = () => ({
|
|
|
512
512
|
return () => f(m.value, "show$") === !1 ? null : ge(i, {
|
|
513
513
|
key: r.elementId,
|
|
514
514
|
...c,
|
|
515
|
-
|
|
515
|
+
...$(m.value, "show$")
|
|
516
516
|
}, v);
|
|
517
517
|
}
|
|
518
518
|
}), U = {
|
|
@@ -556,7 +556,7 @@ const qn = () => ({
|
|
|
556
556
|
items: {
|
|
557
557
|
type: Array
|
|
558
558
|
}
|
|
559
|
-
}), he =
|
|
559
|
+
}), he = D({
|
|
560
560
|
props: {
|
|
561
561
|
...qn()
|
|
562
562
|
},
|
|
@@ -564,7 +564,7 @@ const qn = () => ({
|
|
|
564
564
|
const t = X(), u = t(U.RowKey), o = t(U.ColKey);
|
|
565
565
|
return () => {
|
|
566
566
|
let n;
|
|
567
|
-
return !u || !o ? null : l(u, e.row, Bn(n =
|
|
567
|
+
return !u || !o ? null : l(u, e.row, Bn(n = L(e.items, (r) => l(o, A({
|
|
568
568
|
key: r.rowKey
|
|
569
569
|
}, e.col, r.col), {
|
|
570
570
|
default: () => [r.vNode]
|
|
@@ -576,20 +576,20 @@ const qn = () => ({
|
|
|
576
576
|
}), Vn = (e, t, u) => {
|
|
577
577
|
if (t) {
|
|
578
578
|
const o = G(q(t), (n) => !t[n]);
|
|
579
|
-
return
|
|
579
|
+
return $(e, o);
|
|
580
580
|
}
|
|
581
581
|
if (u) {
|
|
582
582
|
const o = G(q(u), (n) => !u[n](e));
|
|
583
|
-
return
|
|
583
|
+
return $(e, o);
|
|
584
584
|
}
|
|
585
585
|
return e;
|
|
586
586
|
}, Rt = (e) => {
|
|
587
587
|
if (!!e)
|
|
588
|
-
return
|
|
589
|
-
}, kr = (e, t, u) => !t || !u ? e :
|
|
588
|
+
return z(e) ? e : e && oe(e) && e.indexOf(".") > 0 ? tn(e, ".") : [e];
|
|
589
|
+
}, kr = (e, t, u) => !t || !u ? e : L(e, (o) => {
|
|
590
590
|
const n = H(u) ? u(o) : f(o, u), r = f(t, n);
|
|
591
591
|
return !r || gt(r) || H(r) || !Pe(r) ? o : nn(o, r, (a, c) => {
|
|
592
|
-
if (
|
|
592
|
+
if (z(a) || z(c))
|
|
593
593
|
return c;
|
|
594
594
|
});
|
|
595
595
|
}), ve = (e, t) => {
|
|
@@ -618,7 +618,7 @@ const qn = () => ({
|
|
|
618
618
|
return an(r, (a, c) => c.replace(o, ""));
|
|
619
619
|
}, jt = Symbol("pro-form-list"), kt = () => ie(jt), Ut = (e) => {
|
|
620
620
|
se(jt, e);
|
|
621
|
-
}, Wn =
|
|
621
|
+
}, Wn = D({
|
|
622
622
|
props: {
|
|
623
623
|
pathList: {
|
|
624
624
|
type: Array
|
|
@@ -657,10 +657,10 @@ const qn = () => ({
|
|
|
657
657
|
renderItemMinus: {
|
|
658
658
|
type: Function
|
|
659
659
|
}
|
|
660
|
-
}), Br =
|
|
660
|
+
}), Br = D({
|
|
661
661
|
props: {
|
|
662
662
|
...ut(),
|
|
663
|
-
|
|
663
|
+
...$(he.props, "items")
|
|
664
664
|
},
|
|
665
665
|
setup: (e, {
|
|
666
666
|
slots: t
|
|
@@ -671,7 +671,7 @@ const qn = () => ({
|
|
|
671
671
|
formElementMap: a
|
|
672
672
|
} = qt(), c = kt(), m = Rt(e.name), i = c != null && c.pathList ? [...c.pathList, ...m] : m, p = () => {
|
|
673
673
|
let s = f(n, i);
|
|
674
|
-
|
|
674
|
+
z(s) || (s = []), s.push({
|
|
675
675
|
[e.rowKey]: new Date().valueOf()
|
|
676
676
|
}), re(n, i, s);
|
|
677
677
|
}, S = (s) => {
|
|
@@ -680,23 +680,23 @@ const qn = () => ({
|
|
|
680
680
|
}, v = (s) => {
|
|
681
681
|
const C = ue(s);
|
|
682
682
|
return C && t[C] ? t[C](s, n) : Je(a, s);
|
|
683
|
-
}, h = I(() => e.row ?
|
|
683
|
+
}, h = I(() => e.row ? L(e.columns, (s) => ({
|
|
684
684
|
rowKey: ue(s),
|
|
685
685
|
vNode: v(s),
|
|
686
686
|
col: f(s, ["extra", "col"])
|
|
687
|
-
})) :
|
|
688
|
-
return () => o ? l(o,
|
|
687
|
+
})) : L(e.columns, (s) => v(s))), g = q(ut());
|
|
688
|
+
return () => o ? l(o, A({
|
|
689
689
|
class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
|
|
690
690
|
name: e.name
|
|
691
|
-
},
|
|
691
|
+
}, $(e, g)), {
|
|
692
692
|
default: () => {
|
|
693
693
|
var s, C;
|
|
694
|
-
return [
|
|
694
|
+
return [L(f(n, i), (P, d) => l(Wn, {
|
|
695
695
|
key: P[e.rowKey] || d,
|
|
696
696
|
pathList: [...i, d]
|
|
697
697
|
}, {
|
|
698
698
|
default: () => {
|
|
699
|
-
var E,
|
|
699
|
+
var E, j, w, R, V, N;
|
|
700
700
|
return [l("div", {
|
|
701
701
|
class: "pro-form-list-item"
|
|
702
702
|
}, [(E = t.start) == null ? void 0 : E.call(t, {
|
|
@@ -707,13 +707,13 @@ const qn = () => ({
|
|
|
707
707
|
row: e.row,
|
|
708
708
|
col: e.col,
|
|
709
709
|
items: h.value
|
|
710
|
-
}, null) : h.value]), (
|
|
710
|
+
}, null) : h.value]), (j = t.default) == null ? void 0 : j.call(t), !r.value && l(te, null, [l("div", {
|
|
711
711
|
class: "pro-form-list-item-add",
|
|
712
712
|
onClick: p
|
|
713
|
-
}, [((
|
|
713
|
+
}, [((w = t.itemAdd) == null ? void 0 : w.call(t)) || ((R = e.renderItemAdd) == null ? void 0 : R.call(e))]), l("div", {
|
|
714
714
|
class: "pro-form-list-item-minus",
|
|
715
715
|
onClick: () => S(d)
|
|
716
|
-
}, [((
|
|
716
|
+
}, [((V = t.itemMinus) == null ? void 0 : V.call(t)) || ((N = e.renderItemMinus) == null ? void 0 : N.call(e))])])])];
|
|
717
717
|
}
|
|
718
718
|
})), !r.value && l("div", {
|
|
719
719
|
class: "pro-form-list-add",
|
|
@@ -771,12 +771,12 @@ const ct = () => ({
|
|
|
771
771
|
formMethods: {
|
|
772
772
|
type: Array
|
|
773
773
|
}
|
|
774
|
-
}), qr =
|
|
774
|
+
}), qr = D({
|
|
775
775
|
inheritAttrs: !1,
|
|
776
776
|
props: {
|
|
777
777
|
...fe,
|
|
778
778
|
...ct(),
|
|
779
|
-
|
|
779
|
+
...$(he.props, "items")
|
|
780
780
|
},
|
|
781
781
|
setup: (e, {
|
|
782
782
|
slots: t,
|
|
@@ -787,13 +787,13 @@ const ct = () => ({
|
|
|
787
787
|
const {
|
|
788
788
|
elementMap: r,
|
|
789
789
|
formElementMap: a
|
|
790
|
-
} = Z(), c = e.elementMap || r, m = e.formElementMap || a, i = e.model || Me({}), p =
|
|
791
|
-
const y =
|
|
790
|
+
} = Z(), c = e.elementMap || r, m = e.formElementMap || a, i = e.model || Me({}), p = Ue(i, e.showStateRules, e.showState), S = Ue(i, e.readonlyStateRules, e.readonlyState), v = Ue(i, e.disableStateRules, e.disableState), h = I(() => e.readonly), g = I(() => {
|
|
791
|
+
const y = we(e.columns, e.columnState, (M) => ue(M));
|
|
792
792
|
return e.convertColumn ? Tt(y, e.convertColumn) : y;
|
|
793
793
|
}), s = (y) => {
|
|
794
794
|
const M = Vn(y, p, e.showStateRules);
|
|
795
795
|
u("finish", M, y);
|
|
796
|
-
}, C =
|
|
796
|
+
}, C = W();
|
|
797
797
|
o(ve(e.formMethods || [], C)), Hn({
|
|
798
798
|
formState: i,
|
|
799
799
|
showState: p,
|
|
@@ -829,20 +829,20 @@ const ct = () => ({
|
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
831
831
|
(M = C.value) == null || M.submit();
|
|
832
|
-
},
|
|
832
|
+
}, j = () => {
|
|
833
833
|
var y, M;
|
|
834
834
|
(M = (y = e.operate) == null ? void 0 : y.onContinue) == null || M.call(y);
|
|
835
|
-
},
|
|
835
|
+
}, w = {
|
|
836
836
|
[J.RESET]: d,
|
|
837
837
|
[J.SUBMIT]: E,
|
|
838
|
-
[J.CONTINUE]:
|
|
839
|
-
},
|
|
838
|
+
[J.CONTINUE]: j
|
|
839
|
+
}, R = I(() => {
|
|
840
840
|
const y = e.operate, M = (y == null ? void 0 : y.items) || P;
|
|
841
|
-
return
|
|
841
|
+
return L(M, (T) => !T.onClick && !f(y == null ? void 0 : y.itemState, [T.value, "onClick"]) ? {
|
|
842
842
|
...T,
|
|
843
|
-
onClick: f(
|
|
843
|
+
onClick: f(w, T.value)
|
|
844
844
|
} : T);
|
|
845
|
-
}),
|
|
845
|
+
}), V = I(() => {
|
|
846
846
|
var y;
|
|
847
847
|
return {
|
|
848
848
|
[J.SUBMIT]: {
|
|
@@ -851,18 +851,18 @@ const ct = () => ({
|
|
|
851
851
|
},
|
|
852
852
|
...(y = e.operate) == null ? void 0 : y.itemState
|
|
853
853
|
};
|
|
854
|
-
}),
|
|
854
|
+
}), N = (y) => {
|
|
855
855
|
const M = ue(y);
|
|
856
856
|
return M && t[M] ? t[M](y, i) : Je(m, y);
|
|
857
|
-
},
|
|
857
|
+
}, O = I(() => e.row ? L(g.value, (y) => ({
|
|
858
858
|
rowKey: ue(y),
|
|
859
|
-
vNode:
|
|
859
|
+
vNode: N(y),
|
|
860
860
|
col: f(y, ["extra", "col"])
|
|
861
|
-
})) :
|
|
862
|
-
return () => b ? l(b,
|
|
861
|
+
})) : L(g.value, (y) => N(y))), x = [...q(ct()), ...q(fe)], F = q($(he.props, "items")), b = f(r, U.FormKey);
|
|
862
|
+
return () => b ? l(b, A({
|
|
863
863
|
ref: C,
|
|
864
864
|
class: e.clsName
|
|
865
|
-
},
|
|
865
|
+
}, $(n, "onFinish"), $(e, ...x, ...F, "onFinish", "operate"), {
|
|
866
866
|
model: i,
|
|
867
867
|
onFinish: s
|
|
868
868
|
}), {
|
|
@@ -871,12 +871,12 @@ const ct = () => ({
|
|
|
871
871
|
return [(y = t.start) == null ? void 0 : y.call(t), m && _(g.value) > 0 && l(te, null, [e.row ? l(he, {
|
|
872
872
|
row: e.row,
|
|
873
873
|
col: e.col,
|
|
874
|
-
items:
|
|
875
|
-
}, null) :
|
|
874
|
+
items: O.value
|
|
875
|
+
}, null) : O.value]), (M = t.default) == null ? void 0 : M.call(t), e.operate && l(Vt, A({
|
|
876
876
|
class: `${e.clsName}-operate`
|
|
877
|
-
},
|
|
878
|
-
items:
|
|
879
|
-
itemState:
|
|
877
|
+
}, $(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
878
|
+
items: R.value,
|
|
879
|
+
itemState: V.value
|
|
880
880
|
}), null), (T = t.end) == null ? void 0 : T.call(t)];
|
|
881
881
|
}
|
|
882
882
|
}) : null;
|
|
@@ -893,10 +893,10 @@ const ct = () => ({
|
|
|
893
893
|
date: "\u8BF7\u9009\u62E9",
|
|
894
894
|
time: "\u8BF7\u9009\u62E9"
|
|
895
895
|
};
|
|
896
|
-
let
|
|
896
|
+
let Fe;
|
|
897
897
|
(function(e) {
|
|
898
898
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
899
|
-
})(
|
|
899
|
+
})(Fe || (Fe = {}));
|
|
900
900
|
const lt = () => ({
|
|
901
901
|
initEmit: {
|
|
902
902
|
type: Boolean,
|
|
@@ -904,7 +904,7 @@ const lt = () => ({
|
|
|
904
904
|
},
|
|
905
905
|
searchMode: {
|
|
906
906
|
type: String,
|
|
907
|
-
default:
|
|
907
|
+
default: Fe.AUTO
|
|
908
908
|
},
|
|
909
909
|
debounceKeys: {
|
|
910
910
|
type: Array
|
|
@@ -917,7 +917,7 @@ const lt = () => ({
|
|
|
917
917
|
type: Number,
|
|
918
918
|
default: 800
|
|
919
919
|
}
|
|
920
|
-
}), zr =
|
|
920
|
+
}), zr = D({
|
|
921
921
|
props: {
|
|
922
922
|
...lt(),
|
|
923
923
|
needRules: {
|
|
@@ -929,13 +929,13 @@ const lt = () => ({
|
|
|
929
929
|
slots: t,
|
|
930
930
|
expose: u
|
|
931
931
|
}) => {
|
|
932
|
-
const n = X()(U.ProFormKey), r = e.model || Me({}), a = new Set(e.debounceTypes), c =
|
|
932
|
+
const n = X()(U.ProFormKey), r = e.model || Me({}), a = new Set(e.debounceTypes), c = L(G(e.columns, (s) => {
|
|
933
933
|
const C = Lt(s);
|
|
934
934
|
return a.has(C);
|
|
935
|
-
}), (s) => ue(s)), m = I(() =>
|
|
935
|
+
}), (s) => ue(s)), m = I(() => L(e.columns, (s) => ({
|
|
936
936
|
...s,
|
|
937
|
-
formItemProps:
|
|
938
|
-
}))), i =
|
|
937
|
+
formItemProps: $(s.formItemProps, "required")
|
|
938
|
+
}))), i = W(), p = e.formMethods || [];
|
|
939
939
|
u(ve(p, i));
|
|
940
940
|
const S = () => {
|
|
941
941
|
var s;
|
|
@@ -948,7 +948,7 @@ const lt = () => ({
|
|
|
948
948
|
}, []);
|
|
949
949
|
const h = (s, C, P) => le(P, (d) => f(s, d) !== f(C, d));
|
|
950
950
|
It((s, C) => {
|
|
951
|
-
if (e.searchMode !==
|
|
951
|
+
if (e.searchMode !== Fe.AUTO)
|
|
952
952
|
return;
|
|
953
953
|
const P = _(e.debounceKeys) > 0 ? e.debounceKeys : c;
|
|
954
954
|
if (_(P) > 0 && h(s, C, P)) {
|
|
@@ -958,10 +958,10 @@ const lt = () => ({
|
|
|
958
958
|
S();
|
|
959
959
|
}, () => un(r));
|
|
960
960
|
const g = q(lt());
|
|
961
|
-
return () => n ? l(n,
|
|
961
|
+
return () => n ? l(n, A({
|
|
962
962
|
ref: i,
|
|
963
963
|
class: "pro-search-form"
|
|
964
|
-
},
|
|
964
|
+
}, $(e, g, "columns"), {
|
|
965
965
|
columns: m.value,
|
|
966
966
|
model: r
|
|
967
967
|
}), t) : null;
|
|
@@ -984,7 +984,7 @@ const lt = () => ({
|
|
|
984
984
|
InputComp: u,
|
|
985
985
|
valueType: o,
|
|
986
986
|
name: n
|
|
987
|
-
}) =>
|
|
987
|
+
}) => D({
|
|
988
988
|
name: n,
|
|
989
989
|
props: {
|
|
990
990
|
...e.props,
|
|
@@ -1005,23 +1005,23 @@ const lt = () => ({
|
|
|
1005
1005
|
} = qt(), g = kt(), s = I(() => me(r.readonly) ? r.readonly : me(p[r.name]) ? p[r.name] : v.value), C = () => `${f(c == null ? void 0 : c.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${r.label || ""}`, P = I(() => c != null && c.rulePrefixMap ? r.required === !0 && !r.rules ? [{
|
|
1006
1006
|
required: !0,
|
|
1007
1007
|
message: C()
|
|
1008
|
-
}] : r.rules ?
|
|
1009
|
-
re(m, E,
|
|
1010
|
-
},
|
|
1008
|
+
}] : r.rules ? L(r.rules, (R) => (R.required && !R.message && (R.message = C()), R)) : r.rules : r.rules), d = Rt(r.name), E = g != null && g.pathList ? [...g.pathList, ...d] : d, j = (R) => {
|
|
1009
|
+
re(m, E, R);
|
|
1010
|
+
}, w = q(st());
|
|
1011
1011
|
return () => {
|
|
1012
|
-
const
|
|
1013
|
-
if (me(
|
|
1012
|
+
const R = f(i, E);
|
|
1013
|
+
if (me(R) && !R)
|
|
1014
1014
|
return null;
|
|
1015
|
-
const
|
|
1016
|
-
return l(e,
|
|
1015
|
+
const V = f(m, E), N = f(h, o);
|
|
1016
|
+
return l(e, A($(r, ...w, "name", "rules", "slots"), {
|
|
1017
1017
|
name: E,
|
|
1018
1018
|
rules: P.value
|
|
1019
1019
|
}), {
|
|
1020
|
-
default: () => [s.value ? l(te, null, [
|
|
1021
|
-
value:
|
|
1020
|
+
default: () => [s.value ? l(te, null, [N ? l(N, A({
|
|
1021
|
+
value: V
|
|
1022
1022
|
}, r.fieldProps, {
|
|
1023
1023
|
showProps: r.showProps
|
|
1024
|
-
}), a) : l("span", null, [
|
|
1024
|
+
}), a) : l("span", null, [V])]) : l(u, A(t(V, j, f(S, E)), r.fieldProps), a)],
|
|
1025
1025
|
...r.slots
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
@@ -1045,7 +1045,7 @@ const Xn = () => ({
|
|
|
1045
1045
|
type: String,
|
|
1046
1046
|
default: U.ButtonKey
|
|
1047
1047
|
}
|
|
1048
|
-
}), Vt =
|
|
1048
|
+
}), Vt = D({
|
|
1049
1049
|
props: {
|
|
1050
1050
|
...Xn()
|
|
1051
1051
|
},
|
|
@@ -1054,7 +1054,7 @@ const Xn = () => ({
|
|
|
1054
1054
|
}) => {
|
|
1055
1055
|
const u = X(), o = e.elementKey ? u(e.elementKey) : void 0, n = I(() => {
|
|
1056
1056
|
const a = G(e.items, (c) => H(c.show) ? c.show() : me(c.show) ? c.show : !0);
|
|
1057
|
-
return
|
|
1057
|
+
return L(a, (c) => He(e.itemState, c.value) ? {
|
|
1058
1058
|
...c,
|
|
1059
1059
|
...f(e.itemState, c.value)
|
|
1060
1060
|
} : c);
|
|
@@ -1064,12 +1064,12 @@ const Xn = () => ({
|
|
|
1064
1064
|
};
|
|
1065
1065
|
return () => l("div", {
|
|
1066
1066
|
class: e.clsName
|
|
1067
|
-
}, [
|
|
1067
|
+
}, [L(n.value, (a) => {
|
|
1068
1068
|
const c = H(a.disabled) ? a.disabled() : a.disabled, m = H(a.loading) ? a.loading() : a.loading, i = H(a.label) ? a.label() : a.label, p = H(a.extraProps) ? a.extraProps() : a.extraProps, S = {
|
|
1069
|
-
|
|
1069
|
+
...$(a, "show", "disabled", "element"),
|
|
1070
1070
|
disabled: c
|
|
1071
1071
|
};
|
|
1072
|
-
return a.element && H(a.element) ? a.element(S) : t[a.value] ? t[a.value](S) : o ? l(o,
|
|
1072
|
+
return a.element && H(a.element) ? a.element(S) : t[a.value] ? t[a.value](S) : o ? l(o, A({
|
|
1073
1073
|
disabled: c,
|
|
1074
1074
|
loading: m,
|
|
1075
1075
|
onClick: () => r(a)
|
|
@@ -1102,7 +1102,7 @@ const Xn = () => ({
|
|
|
1102
1102
|
type: Function,
|
|
1103
1103
|
default: () => "\u5217\u8BBE\u7F6E"
|
|
1104
1104
|
}
|
|
1105
|
-
}), Yn =
|
|
1105
|
+
}), Yn = D({
|
|
1106
1106
|
props: {
|
|
1107
1107
|
..._n()
|
|
1108
1108
|
},
|
|
@@ -1125,7 +1125,7 @@ const Xn = () => ({
|
|
|
1125
1125
|
[E]: !0
|
|
1126
1126
|
}), {})), h = (d) => zn(d, e.signName);
|
|
1127
1127
|
ne(() => {
|
|
1128
|
-
a.value =
|
|
1128
|
+
a.value = L(G(r.value, (d) => {
|
|
1129
1129
|
var E;
|
|
1130
1130
|
return e.useSelectedStatus && He(i, d.dataIndex) ? i[d.dataIndex] : ((E = h(d)) == null ? void 0 : E.initShow) !== !1;
|
|
1131
1131
|
}), (d) => d.dataIndex);
|
|
@@ -1134,33 +1134,33 @@ const Xn = () => ({
|
|
|
1134
1134
|
m(), S(), (d = e.onColumnSelectChange) == null || d.call(e, a.value);
|
|
1135
1135
|
}, a);
|
|
1136
1136
|
const g = I(() => {
|
|
1137
|
-
const d = cn(r.value, (
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1140
|
-
}), E = le(r.value, (
|
|
1141
|
-
var
|
|
1142
|
-
return (
|
|
1137
|
+
const d = cn(r.value, (j) => {
|
|
1138
|
+
var w;
|
|
1139
|
+
return (w = h(j)) != null && w.disabled ? !0 : f(v.value, j.dataIndex);
|
|
1140
|
+
}), E = le(r.value, (j) => {
|
|
1141
|
+
var w;
|
|
1142
|
+
return (w = h(j)) != null && w.disabled ? !0 : f(v.value, j.dataIndex);
|
|
1143
1143
|
});
|
|
1144
1144
|
return {
|
|
1145
1145
|
checked: d,
|
|
1146
1146
|
indeterminate: d ? !1 : E
|
|
1147
1147
|
};
|
|
1148
1148
|
}), s = (d) => {
|
|
1149
|
-
var
|
|
1150
|
-
(Pe(d) ? (
|
|
1151
|
-
var
|
|
1152
|
-
return (
|
|
1153
|
-
}), (
|
|
1149
|
+
var j;
|
|
1150
|
+
(Pe(d) ? (j = d.target) == null ? void 0 : j.checked : d) ? a.value = L(r.value, (w) => w.dataIndex) : a.value = L(G(r.value, (w) => {
|
|
1151
|
+
var R;
|
|
1152
|
+
return (R = h(w)) != null && R.disabled ? !0 : (p(w.dataIndex), !1);
|
|
1153
|
+
}), (w) => w.dataIndex);
|
|
1154
1154
|
}, C = () => {
|
|
1155
|
-
a.value =
|
|
1155
|
+
a.value = L(G(r.value, (d) => {
|
|
1156
1156
|
var E;
|
|
1157
1157
|
return ((E = h(d)) == null ? void 0 : E.initShow) === !1 ? (p(d.dataIndex), !1) : !0;
|
|
1158
1158
|
}), (d) => d.dataIndex);
|
|
1159
1159
|
}, P = (d, E) => {
|
|
1160
|
-
var
|
|
1161
|
-
(Pe(E) ? (
|
|
1160
|
+
var w;
|
|
1161
|
+
(Pe(E) ? (w = E.target) == null ? void 0 : w.checked : E) ? a.value = [...a.value, d.dataIndex] : a.value = G(a.value, (R) => d.dataIndex === R ? (p(d.dataIndex), !1) : !0);
|
|
1162
1162
|
};
|
|
1163
|
-
return () => o ? l(o,
|
|
1163
|
+
return () => o ? l(o, A({
|
|
1164
1164
|
trigger: "click"
|
|
1165
1165
|
}, e.popoverProps), {
|
|
1166
1166
|
default: () => {
|
|
@@ -1183,19 +1183,19 @@ const Xn = () => ({
|
|
|
1183
1183
|
}, [tt("\u91CD\u7F6E")])]), l("div", {
|
|
1184
1184
|
key: c.value,
|
|
1185
1185
|
class: `${e.clsName}-list`
|
|
1186
|
-
}, [
|
|
1187
|
-
const E = h(d),
|
|
1186
|
+
}, [L(r.value, (d) => {
|
|
1187
|
+
const E = h(d), j = f(v.value, d.dataIndex, !1);
|
|
1188
1188
|
return l(n, {
|
|
1189
|
-
checked:
|
|
1189
|
+
checked: j,
|
|
1190
1190
|
disabled: E == null ? void 0 : E.disabled,
|
|
1191
|
-
onChange: (
|
|
1192
|
-
P(d,
|
|
1191
|
+
onChange: (w) => {
|
|
1192
|
+
P(d, w);
|
|
1193
1193
|
}
|
|
1194
1194
|
}, {
|
|
1195
1195
|
default: () => [d.title]
|
|
1196
1196
|
});
|
|
1197
1197
|
})])]),
|
|
1198
|
-
|
|
1198
|
+
...$(t, "default")
|
|
1199
1199
|
}) : null;
|
|
1200
1200
|
}
|
|
1201
1201
|
}), zt = Symbol("pro-table"), Jn = () => ie(zt), Qn = (e) => {
|
|
@@ -1235,7 +1235,7 @@ const Xn = () => ({
|
|
|
1235
1235
|
tableMethods: {
|
|
1236
1236
|
type: Array
|
|
1237
1237
|
}
|
|
1238
|
-
}), Hr =
|
|
1238
|
+
}), Hr = D({
|
|
1239
1239
|
inheritAttrs: !1,
|
|
1240
1240
|
props: {
|
|
1241
1241
|
...fe,
|
|
@@ -1255,34 +1255,34 @@ const Xn = () => ({
|
|
|
1255
1255
|
...e.column,
|
|
1256
1256
|
...me(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1257
1257
|
customRender: ({
|
|
1258
|
-
index:
|
|
1258
|
+
index: O
|
|
1259
1259
|
}) => {
|
|
1260
|
-
var x,
|
|
1261
|
-
return ((x = e.paginationState) == null ? void 0 : x.page) && ((
|
|
1260
|
+
var x, F;
|
|
1261
|
+
return ((x = e.paginationState) == null ? void 0 : x.page) && ((F = e.paginationState) == null ? void 0 : F.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + O + 1 : O + 1;
|
|
1262
1262
|
}
|
|
1263
|
-
}), m = (
|
|
1264
|
-
var
|
|
1263
|
+
}), m = (O, x) => {
|
|
1264
|
+
var F;
|
|
1265
1265
|
if (e.operateItemClickMap && e.operateItemClickMap[x.value]) {
|
|
1266
|
-
e.operateItemClickMap[x.value](
|
|
1266
|
+
e.operateItemClickMap[x.value](O, x);
|
|
1267
1267
|
return;
|
|
1268
1268
|
}
|
|
1269
|
-
(
|
|
1269
|
+
(F = x.onClick) == null || F.call(x, O);
|
|
1270
1270
|
}, i = ae(t, "operate"), p = () => {
|
|
1271
|
-
const
|
|
1271
|
+
const O = e.operate, x = L(O.items, (b) => ({
|
|
1272
1272
|
...f(e.operateItemState, b.value),
|
|
1273
1273
|
...b,
|
|
1274
|
-
...f(
|
|
1275
|
-
})),
|
|
1274
|
+
...f(O.itemState, b.value)
|
|
1275
|
+
})), F = St(x, (b) => b.sort);
|
|
1276
1276
|
return {
|
|
1277
1277
|
...e.column,
|
|
1278
1278
|
title: "\u64CD\u4F5C",
|
|
1279
1279
|
dataIndex: "operate",
|
|
1280
1280
|
fixed: "right",
|
|
1281
|
-
...
|
|
1281
|
+
...O.column,
|
|
1282
1282
|
customRender: ({
|
|
1283
1283
|
record: b
|
|
1284
1284
|
}) => {
|
|
1285
|
-
const y = F
|
|
1285
|
+
const y = L(F, (T) => ({
|
|
1286
1286
|
...T,
|
|
1287
1287
|
show: H(T.show) ? T.show(b) : T.show,
|
|
1288
1288
|
disabled: H(T.disabled) ? T.disabled(b) : T.disabled,
|
|
@@ -1300,26 +1300,26 @@ const Xn = () => ({
|
|
|
1300
1300
|
return l(Vt, {
|
|
1301
1301
|
class: `${e.clsName}-operate`,
|
|
1302
1302
|
items: y,
|
|
1303
|
-
elementKey:
|
|
1303
|
+
elementKey: O.elementKey || U.TableOperateKey
|
|
1304
1304
|
}, M);
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
|
-
}, S =
|
|
1308
|
-
var
|
|
1309
|
-
return !!((
|
|
1307
|
+
}, S = W([]), v = I(() => {
|
|
1308
|
+
var O;
|
|
1309
|
+
return !!((O = e.toolbar) != null && O.columnSetting);
|
|
1310
1310
|
}), h = Jt(e, "columns"), g = I(() => {
|
|
1311
1311
|
if (!v.value)
|
|
1312
1312
|
return e.columns;
|
|
1313
|
-
const
|
|
1313
|
+
const O = Q(S.value, (x, F) => ({
|
|
1314
1314
|
...x,
|
|
1315
|
-
[
|
|
1315
|
+
[F]: !0
|
|
1316
1316
|
}), {});
|
|
1317
|
-
return G(e.columns, (x) => f(
|
|
1318
|
-
}), s = (
|
|
1319
|
-
const
|
|
1317
|
+
return G(e.columns, (x) => f(O, x.dataIndex));
|
|
1318
|
+
}), s = (O) => L(O, (x) => {
|
|
1319
|
+
const F = {
|
|
1320
1320
|
...e.column,
|
|
1321
1321
|
...x
|
|
1322
|
-
}, b = e.convertColumn ? e.convertColumn(
|
|
1322
|
+
}, b = e.convertColumn ? e.convertColumn(F) : F;
|
|
1323
1323
|
return x.children && _(x.children) > 0 ? (b.children = s(x.children), b) : (x.customRender || (b.customRender = ({
|
|
1324
1324
|
text: y
|
|
1325
1325
|
}) => {
|
|
@@ -1333,11 +1333,11 @@ const Xn = () => ({
|
|
|
1333
1333
|
}, y) || y || e.columnEmptyText;
|
|
1334
1334
|
}), b);
|
|
1335
1335
|
}), C = I(() => {
|
|
1336
|
-
const
|
|
1336
|
+
const O = we(g.value, e.columnState, (F) => F.dataIndex, {
|
|
1337
1337
|
children: "children"
|
|
1338
|
-
}), x = s(
|
|
1339
|
-
return e.serialNumber && x.unshift(c()), e.operate && e.operate.items && le(e.operate.items, (
|
|
1340
|
-
}), P =
|
|
1338
|
+
}), x = s(O);
|
|
1339
|
+
return e.serialNumber && x.unshift(c()), e.operate && e.operate.items && le(e.operate.items, (F) => F.show) && x.push(p()), x;
|
|
1340
|
+
}), P = W();
|
|
1341
1341
|
Qn({
|
|
1342
1342
|
columns: C,
|
|
1343
1343
|
originColumns: h,
|
|
@@ -1346,31 +1346,31 @@ const Xn = () => ({
|
|
|
1346
1346
|
toolbar: e.toolbar,
|
|
1347
1347
|
...e.provideExtra
|
|
1348
1348
|
}), u(ve(e.tableMethods || [], P));
|
|
1349
|
-
const d =
|
|
1349
|
+
const d = W(), E = W(!1), j = W(), w = W(!1);
|
|
1350
1350
|
ze(d, () => {
|
|
1351
1351
|
E.value = !!d.value.innerText;
|
|
1352
|
-
}), ze(
|
|
1353
|
-
|
|
1352
|
+
}), ze(j, () => {
|
|
1353
|
+
w.value = !!j.value.innerText;
|
|
1354
1354
|
});
|
|
1355
|
-
const
|
|
1355
|
+
const R = I(() => w.value || E.value ? `${e.clsName}-toolbar-valid` : ""), V = q(it()), N = ae(t, "columnSetting");
|
|
1356
1356
|
return () => {
|
|
1357
|
-
var x,
|
|
1357
|
+
var x, F;
|
|
1358
1358
|
if (!a)
|
|
1359
1359
|
return null;
|
|
1360
|
-
const
|
|
1361
|
-
return l("div",
|
|
1360
|
+
const O = v.value ? l(Yn, (x = e.toolbar) == null ? void 0 : x.columnSetting, N) : null;
|
|
1361
|
+
return l("div", A({
|
|
1362
1362
|
class: e.clsName
|
|
1363
1363
|
}, B(o, "class")), [l("div", {
|
|
1364
|
-
class: `${e.clsName}-toolbar ${
|
|
1364
|
+
class: `${e.clsName}-toolbar ${R.value}`
|
|
1365
1365
|
}, [l("div", {
|
|
1366
1366
|
ref: d,
|
|
1367
1367
|
class: `${e.clsName}-toolbar-start`
|
|
1368
|
-
}, [(
|
|
1369
|
-
ref:
|
|
1368
|
+
}, [(F = t.toolbar) == null ? void 0 : F.call(t)]), l("div", {
|
|
1369
|
+
ref: j,
|
|
1370
1370
|
class: `${e.clsName}-toolbar-extra`
|
|
1371
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1371
|
+
}, [t.toolbarExtra ? t.toolbarExtra([O]) : l(te, null, [O])])]), l(a, A({
|
|
1372
1372
|
ref: P
|
|
1373
|
-
},
|
|
1373
|
+
}, $(o, "class"), $(e, V), {
|
|
1374
1374
|
columns: C.value
|
|
1375
1375
|
}), t)]);
|
|
1376
1376
|
};
|
|
@@ -1394,7 +1394,7 @@ const Xn = () => ({
|
|
|
1394
1394
|
type: Function,
|
|
1395
1395
|
default: () => "\u8FD4\u56DE"
|
|
1396
1396
|
}
|
|
1397
|
-
}),
|
|
1397
|
+
}), Be = D({
|
|
1398
1398
|
props: {
|
|
1399
1399
|
...Zn()
|
|
1400
1400
|
},
|
|
@@ -1438,23 +1438,23 @@ const Xn = () => ({
|
|
|
1438
1438
|
type: Boolean,
|
|
1439
1439
|
default: !0
|
|
1440
1440
|
}
|
|
1441
|
-
}), Gr =
|
|
1441
|
+
}), Gr = D({
|
|
1442
1442
|
props: {
|
|
1443
|
-
...
|
|
1443
|
+
...Be.props,
|
|
1444
1444
|
...er()
|
|
1445
1445
|
},
|
|
1446
1446
|
setup: (e, {
|
|
1447
1447
|
slots: t
|
|
1448
1448
|
}) => {
|
|
1449
|
-
const o = X()(U.LoadingKey), n = q(
|
|
1449
|
+
const o = X()(U.LoadingKey), n = q(Be.props);
|
|
1450
1450
|
return () => {
|
|
1451
1451
|
var c, m, i;
|
|
1452
1452
|
const r = e.title || t.title || e.subTitle || t.subTitle || t.extra, a = !!t.footer;
|
|
1453
1453
|
return l("div", {
|
|
1454
1454
|
class: `pro-page ${e.fillMode ? "pro-page-fill" : ""}`
|
|
1455
|
-
}, [(c = t.start) == null ? void 0 : c.call(t), r && l(
|
|
1455
|
+
}, [(c = t.start) == null ? void 0 : c.call(t), r && l(Be, B(e, n), $(t, "start", "default", "footer")), l("div", {
|
|
1456
1456
|
class: "pro-page-content"
|
|
1457
|
-
}, [e.loading ? o ? l(o,
|
|
1457
|
+
}, [e.loading ? o ? l(o, A({
|
|
1458
1458
|
loading: !0
|
|
1459
1459
|
}, e.loadingOpts), {
|
|
1460
1460
|
default: () => [l("div", {
|
|
@@ -1502,7 +1502,7 @@ const Xn = () => ({
|
|
|
1502
1502
|
end: {
|
|
1503
1503
|
type: Function
|
|
1504
1504
|
}
|
|
1505
|
-
}), rr =
|
|
1505
|
+
}), rr = D({
|
|
1506
1506
|
props: {
|
|
1507
1507
|
...nr()
|
|
1508
1508
|
},
|
|
@@ -1525,20 +1525,20 @@ const Xn = () => ({
|
|
|
1525
1525
|
c.page = s, c.pageSize = C, i();
|
|
1526
1526
|
}, v = ae(t, "search"), h = ae(t, "table"), g = ae(t, "pagination");
|
|
1527
1527
|
return () => {
|
|
1528
|
-
var C, P, d, E,
|
|
1528
|
+
var C, P, d, E, j, w, R, V;
|
|
1529
1529
|
const s = t.search ? t.search({
|
|
1530
1530
|
executeSearchWithResetPage: p,
|
|
1531
1531
|
pageState: c
|
|
1532
|
-
}) : l(te, null, [n && l(n,
|
|
1532
|
+
}) : l(te, null, [n && l(n, A({
|
|
1533
1533
|
class: `${e.clsName}-search`
|
|
1534
|
-
},
|
|
1535
|
-
onFinish: (
|
|
1534
|
+
}, $(e.searchProps, "onFinish"), {
|
|
1535
|
+
onFinish: (N) => p(N)
|
|
1536
1536
|
}), v)]);
|
|
1537
1537
|
return l("div", {
|
|
1538
1538
|
class: e.clsName
|
|
1539
1539
|
}, [((C = t.start) == null ? void 0 : C.call(t)) || ((P = e.start) == null ? void 0 : P.call(e)), !e.searchInTable && s, ((d = t.divide) == null ? void 0 : d.call(t)) || ((E = e.divide) == null ? void 0 : E.call(e)), t.table ? t.table({
|
|
1540
1540
|
pageState: c
|
|
1541
|
-
}) : l(te, null, [r && l(r,
|
|
1541
|
+
}) : l(te, null, [r && l(r, A({
|
|
1542
1542
|
class: `${e.clsName}-table`,
|
|
1543
1543
|
paginationState: {
|
|
1544
1544
|
page: c.page,
|
|
@@ -1548,16 +1548,16 @@ const Xn = () => ({
|
|
|
1548
1548
|
}, e.tableProps), {
|
|
1549
1549
|
...h,
|
|
1550
1550
|
toolbar: e.searchInTable ? () => h.toolbar ? h.toolbar(s) : s : h.toolbar
|
|
1551
|
-
})]), ((
|
|
1551
|
+
})]), ((j = t.divide2) == null ? void 0 : j.call(t)) || ((w = e.divide2) == null ? void 0 : w.call(e)), t.pagination ? t.pagination({
|
|
1552
1552
|
executePageChange: S,
|
|
1553
1553
|
pageState: c
|
|
1554
1554
|
}) : l(te, null, [e.paginationProps !== !1 && a && l("div", {
|
|
1555
1555
|
class: `${e.clsName}-pagination`
|
|
1556
|
-
}, [l(a,
|
|
1556
|
+
}, [l(a, A($(me(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
1557
1557
|
page: c.page,
|
|
1558
1558
|
pageSize: c.pageSize,
|
|
1559
1559
|
onComposeChange: S
|
|
1560
|
-
}), g)])]), ((
|
|
1560
|
+
}), g)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((V = e.end) == null ? void 0 : V.call(e))]);
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
1563
|
}), dt = () => ({
|
|
@@ -1568,7 +1568,7 @@ const Xn = () => ({
|
|
|
1568
1568
|
model: {
|
|
1569
1569
|
type: Object
|
|
1570
1570
|
}
|
|
1571
|
-
}), ar =
|
|
1571
|
+
}), ar = D({
|
|
1572
1572
|
props: {
|
|
1573
1573
|
...fe,
|
|
1574
1574
|
...dt()
|
|
@@ -1578,15 +1578,15 @@ const Xn = () => ({
|
|
|
1578
1578
|
}) => {
|
|
1579
1579
|
const {
|
|
1580
1580
|
elementMap: u
|
|
1581
|
-
} = Z(), o = e.elementMap || u, n = X(), r = n(U.DescriptionsKey), a = n(U.DescriptionsItemKey), c = I(() =>
|
|
1582
|
-
return () => !r || !a ? null : l(r,
|
|
1581
|
+
} = Z(), o = e.elementMap || u, n = X(), r = n(U.DescriptionsKey), a = n(U.DescriptionsItemKey), c = I(() => we(e.columns, e.columnState, "dataIndex")), m = q(fe), i = q(dt());
|
|
1582
|
+
return () => !r || !a ? null : l(r, A({
|
|
1583
1583
|
class: e.clsName
|
|
1584
|
-
},
|
|
1584
|
+
}, $(e, ...m, ...i, "model")), {
|
|
1585
1585
|
default: () => {
|
|
1586
1586
|
var p, S;
|
|
1587
|
-
return [(p = t.start) == null ? void 0 : p.call(t),
|
|
1587
|
+
return [(p = t.start) == null ? void 0 : p.call(t), L(c.value, (v) => {
|
|
1588
1588
|
const h = v.dataIndex, g = f(e.model, h);
|
|
1589
|
-
return l(a,
|
|
1589
|
+
return l(a, A({
|
|
1590
1590
|
class: `${e.clsName}-item`
|
|
1591
1591
|
}, f(v.extra, "desc")), {
|
|
1592
1592
|
default: () => {
|
|
@@ -1611,7 +1611,7 @@ const Xn = () => ({
|
|
|
1611
1611
|
type: [Object, Boolean]
|
|
1612
1612
|
},
|
|
1613
1613
|
popoverProps: Object
|
|
1614
|
-
}), ur =
|
|
1614
|
+
}), ur = D({
|
|
1615
1615
|
inheritAttrs: !1,
|
|
1616
1616
|
props: {
|
|
1617
1617
|
...or()
|
|
@@ -1624,7 +1624,7 @@ const Xn = () => ({
|
|
|
1624
1624
|
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((r = e.ellipsis) == null ? void 0 : r.rows) || ((a = e.ellipsis) == null ? void 0 : a.num) || 1 : "unset";
|
|
1625
1625
|
};
|
|
1626
1626
|
return () => {
|
|
1627
|
-
const r = l("span",
|
|
1627
|
+
const r = l("span", A({
|
|
1628
1628
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
1629
1629
|
style: `-webkit-line-clamp:${n()}`
|
|
1630
1630
|
}, t), [e.content]);
|
|
@@ -1644,7 +1644,7 @@ const Xn = () => ({
|
|
|
1644
1644
|
convert: {
|
|
1645
1645
|
type: Function
|
|
1646
1646
|
}
|
|
1647
|
-
},
|
|
1647
|
+
}, je = D({
|
|
1648
1648
|
inheritAttrs: !1,
|
|
1649
1649
|
props: {
|
|
1650
1650
|
...Ie
|
|
@@ -1657,11 +1657,11 @@ const Xn = () => ({
|
|
|
1657
1657
|
const o = (r = e.showProps) == null ? void 0 : r.content, n = e.value || bt(e.value) ? e.value : o;
|
|
1658
1658
|
return e.convert ? e.convert(n, e) : n;
|
|
1659
1659
|
});
|
|
1660
|
-
return () => l(ur,
|
|
1660
|
+
return () => l(ur, A(B(t, "style", "class"), $(e.showProps, "content"), {
|
|
1661
1661
|
content: u.value
|
|
1662
1662
|
}), null);
|
|
1663
1663
|
}
|
|
1664
|
-
}), Xr =
|
|
1664
|
+
}), Xr = D({
|
|
1665
1665
|
inheritAttrs: !1,
|
|
1666
1666
|
props: {
|
|
1667
1667
|
...Ie,
|
|
@@ -1681,12 +1681,12 @@ const Xn = () => ({
|
|
|
1681
1681
|
let o = e.value;
|
|
1682
1682
|
return o && e.decimalFixed && (o = vn(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = hn(o)), e.convert ? e.convert(o, e) : o;
|
|
1683
1683
|
});
|
|
1684
|
-
return () => l(
|
|
1684
|
+
return () => l(je, A(B(t, "style", "class"), {
|
|
1685
1685
|
value: u.value,
|
|
1686
1686
|
showProps: e.showProps
|
|
1687
1687
|
}), null);
|
|
1688
1688
|
}
|
|
1689
|
-
}), _r =
|
|
1689
|
+
}), _r = D({
|
|
1690
1690
|
inheritAttrs: !1,
|
|
1691
1691
|
props: {
|
|
1692
1692
|
...Ie,
|
|
@@ -1708,15 +1708,15 @@ const Xn = () => ({
|
|
|
1708
1708
|
const u = I(() => bn(e.options, (r) => r.label), void 0), o = I(() => {
|
|
1709
1709
|
const r = e.value;
|
|
1710
1710
|
let a = e.value;
|
|
1711
|
-
return
|
|
1711
|
+
return z(r) ? a = Ge(L(r, (c) => f(u.value, c, c)), e.splitStr) : a = f(u.value, r, e.value), e.convert ? e.convert(a, e) : a;
|
|
1712
1712
|
}), n = I(() => f(e.colorMap, e.value));
|
|
1713
|
-
return () => l(
|
|
1713
|
+
return () => l(je, A(B(t, "style", "class"), {
|
|
1714
1714
|
style: `color:${n.value || ""}`,
|
|
1715
1715
|
value: o.value,
|
|
1716
1716
|
showProps: e.showProps
|
|
1717
1717
|
}), null);
|
|
1718
1718
|
}
|
|
1719
|
-
}), Yr =
|
|
1719
|
+
}), Yr = D({
|
|
1720
1720
|
inheritAttrs: !1,
|
|
1721
1721
|
props: {
|
|
1722
1722
|
...Ie,
|
|
@@ -1745,14 +1745,14 @@ const Xn = () => ({
|
|
|
1745
1745
|
});
|
|
1746
1746
|
}), o = I(() => {
|
|
1747
1747
|
let n = e.value;
|
|
1748
|
-
return
|
|
1748
|
+
return z(e.value) ? n = Ge(L(e.value, (r) => f(u.value, r, r)), e.splitStr) : n = f(u.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
|
|
1749
1749
|
});
|
|
1750
|
-
return () => l(
|
|
1750
|
+
return () => l(je, A(B(t, "style", "class"), {
|
|
1751
1751
|
value: o.value,
|
|
1752
1752
|
showProps: e.showProps
|
|
1753
1753
|
}), null);
|
|
1754
1754
|
}
|
|
1755
|
-
}), Jr =
|
|
1755
|
+
}), Jr = D({
|
|
1756
1756
|
props: {
|
|
1757
1757
|
...Ie,
|
|
1758
1758
|
value: {
|
|
@@ -1776,17 +1776,17 @@ const Xn = () => ({
|
|
|
1776
1776
|
}) => {
|
|
1777
1777
|
const u = (n) => n && (e.isUnix ? ot.unix(n).format(e.format) : ot(n).format(e.format)), o = I(() => {
|
|
1778
1778
|
let n = e.value;
|
|
1779
|
-
return
|
|
1779
|
+
return z(e.value) ? n = Ge(L(e.value, (r) => u(r) || ""), e.splitStr) : n = u(e.value) || "", e.convert ? e.convert(n, e) : n;
|
|
1780
1780
|
});
|
|
1781
|
-
return () => l(
|
|
1781
|
+
return () => l(je, A(B(t, "style", "class"), {
|
|
1782
1782
|
value: o.value,
|
|
1783
1783
|
showProps: e.showProps
|
|
1784
1784
|
}), null);
|
|
1785
1785
|
}
|
|
1786
|
-
}),
|
|
1786
|
+
}), De = D((e, {
|
|
1787
1787
|
slots: t
|
|
1788
1788
|
}) => {
|
|
1789
|
-
const u =
|
|
1789
|
+
const u = W(), o = W(0);
|
|
1790
1790
|
return ze(u, (n) => {
|
|
1791
1791
|
var a;
|
|
1792
1792
|
const r = (a = n[0]) == null ? void 0 : a.contentRect;
|
|
@@ -1833,7 +1833,7 @@ const Xn = () => ({
|
|
|
1833
1833
|
onMenuItemClick: {
|
|
1834
1834
|
type: Function
|
|
1835
1835
|
}
|
|
1836
|
-
}), Qr =
|
|
1836
|
+
}), Qr = D({
|
|
1837
1837
|
inheritAttrs: !1,
|
|
1838
1838
|
props: {
|
|
1839
1839
|
...cr()
|
|
@@ -1842,13 +1842,13 @@ const Xn = () => ({
|
|
|
1842
1842
|
slots: t,
|
|
1843
1843
|
attrs: u
|
|
1844
1844
|
}) => {
|
|
1845
|
-
const n = X()(U.MenusKey), r =
|
|
1845
|
+
const n = X()(U.MenusKey), r = Re(), a = I(() => {
|
|
1846
1846
|
var g;
|
|
1847
1847
|
return Tt(e.menus, (s) => {
|
|
1848
1848
|
var d, E;
|
|
1849
1849
|
const C = ((d = e.fieldNames) == null ? void 0 : d.value) || "value", P = ((E = e.fieldNames) == null ? void 0 : E.label) || "label";
|
|
1850
1850
|
return {
|
|
1851
|
-
|
|
1851
|
+
...$(s, C, P),
|
|
1852
1852
|
value: f(s, C),
|
|
1853
1853
|
label: f(s, P)
|
|
1854
1854
|
};
|
|
@@ -1869,7 +1869,7 @@ const Xn = () => ({
|
|
|
1869
1869
|
(C = e.onMenuItemClick) == null || C.call(e, s);
|
|
1870
1870
|
}, v = ae(t, "header"), h = ae(t, "menu");
|
|
1871
1871
|
return () => {
|
|
1872
|
-
var C, P, d, E, R;
|
|
1872
|
+
var C, P, d, E, j, w, R, V;
|
|
1873
1873
|
if (!n)
|
|
1874
1874
|
return null;
|
|
1875
1875
|
const g = B(u, "class"), s = {
|
|
@@ -1878,38 +1878,48 @@ const Xn = () => ({
|
|
|
1878
1878
|
activeKey: p.value,
|
|
1879
1879
|
...B(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
|
|
1880
1880
|
};
|
|
1881
|
-
return e.layout === "vertical" ? l("main",
|
|
1881
|
+
return e.layout === "vertical" ? l("main", A(g, {
|
|
1882
1882
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1883
|
-
}), [l(
|
|
1883
|
+
}), [l(De, {
|
|
1884
1884
|
class: `${e.clsName}-header`
|
|
1885
1885
|
}, {
|
|
1886
|
-
menus: (
|
|
1887
|
-
style: `width:${
|
|
1886
|
+
menus: (N) => N ? l(n, A({
|
|
1887
|
+
style: `width:${N}px`,
|
|
1888
1888
|
mode: "horizontal"
|
|
1889
1889
|
}, s), h) : null,
|
|
1890
1890
|
...v
|
|
1891
1891
|
}), l("div", {
|
|
1892
1892
|
class: `${e.clsName}-section`
|
|
1893
|
-
}, [(C = t.default) == null ? void 0 : C.call(t)])]) : e.layout === "horizontal" ? l("main",
|
|
1893
|
+
}, [(C = t.default) == null ? void 0 : C.call(t)])]) : e.layout === "horizontal" ? l("main", A(g, {
|
|
1894
1894
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1895
1895
|
}), [l("div", {
|
|
1896
1896
|
class: "pro-layout-menus-wrapper"
|
|
1897
1897
|
}, [(P = h.start) == null ? void 0 : P.call(h), l(n, s, h), (d = h.end) == null ? void 0 : d.call(h)]), l("div", {
|
|
1898
1898
|
class: `${e.clsName}-structure`
|
|
1899
|
-
}, [l(
|
|
1899
|
+
}, [l(De, {
|
|
1900
|
+
class: `${e.clsName}-header`
|
|
1901
|
+
}, v), l("div", {
|
|
1902
|
+
class: `${e.clsName}-section`
|
|
1903
|
+
}, [(E = t.default) == null ? void 0 : E.call(t)])])]) : e.layout === "horizontal-v" ? l("main", A(g, {
|
|
1904
|
+
class: `${e.clsName} ${e.clsName}-horizontal ${e.clsName}-horizontal-v`
|
|
1905
|
+
}), [l(De, {
|
|
1900
1906
|
class: `${e.clsName}-header`
|
|
1901
1907
|
}, v), l("div", {
|
|
1908
|
+
class: `${e.clsName}-structure`
|
|
1909
|
+
}, [l("div", {
|
|
1910
|
+
class: "pro-layout-menus-wrapper"
|
|
1911
|
+
}, [(j = h.start) == null ? void 0 : j.call(h), l(n, s, h), (w = h.end) == null ? void 0 : w.call(h)]), l("div", {
|
|
1902
1912
|
class: `${e.clsName}-section`
|
|
1903
|
-
}, [(
|
|
1913
|
+
}, [(R = t.default) == null ? void 0 : R.call(t)])])]) : l("main", A(g, {
|
|
1904
1914
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1905
|
-
}), [l(
|
|
1915
|
+
}), [l(De, {
|
|
1906
1916
|
class: `${e.clsName}-header`
|
|
1907
1917
|
}, {
|
|
1908
|
-
menus: (
|
|
1909
|
-
style: `width:${
|
|
1918
|
+
menus: (N) => N ? l(n, A({
|
|
1919
|
+
style: `width:${N}px`,
|
|
1910
1920
|
class: "pro-layout-menus",
|
|
1911
1921
|
mode: "horizontal",
|
|
1912
|
-
options:
|
|
1922
|
+
options: L(a.value, (O) => $(O, "children")),
|
|
1913
1923
|
activeKey: m.value
|
|
1914
1924
|
}, B(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
1915
1925
|
onMenuItemClick: S
|
|
@@ -1917,14 +1927,14 @@ const Xn = () => ({
|
|
|
1917
1927
|
...v
|
|
1918
1928
|
}), l("div", {
|
|
1919
1929
|
class: `${e.clsName}-structure`
|
|
1920
|
-
}, [i.value && _(i.value.children) > 0 && l(n,
|
|
1930
|
+
}, [i.value && _(i.value.children) > 0 && l(n, A({
|
|
1921
1931
|
options: i.value.children
|
|
1922
|
-
},
|
|
1932
|
+
}, $(s, "options")), h), l("div", {
|
|
1923
1933
|
class: `${e.clsName}-section`
|
|
1924
|
-
}, [(
|
|
1934
|
+
}, [(V = t.default) == null ? void 0 : V.call(t)])])]);
|
|
1925
1935
|
};
|
|
1926
1936
|
}
|
|
1927
|
-
}), Zr =
|
|
1937
|
+
}), Zr = D({
|
|
1928
1938
|
props: {
|
|
1929
1939
|
fieldNames: {
|
|
1930
1940
|
type: Object,
|
|
@@ -1944,10 +1954,10 @@ const Xn = () => ({
|
|
|
1944
1954
|
}) => {
|
|
1945
1955
|
const n = X()(U.UploaderKey), r = (i) => {
|
|
1946
1956
|
const p = Nt(i);
|
|
1947
|
-
if (
|
|
1957
|
+
if (z(p)) {
|
|
1948
1958
|
const S = e.fieldNames;
|
|
1949
|
-
return
|
|
1950
|
-
|
|
1959
|
+
return L(p, (v) => ({
|
|
1960
|
+
...$(v, S.id, S.name, S.size),
|
|
1951
1961
|
id: f(v, S.id),
|
|
1952
1962
|
name: f(v, S.name),
|
|
1953
1963
|
size: f(v, S.size)
|
|
@@ -1956,7 +1966,7 @@ const Xn = () => ({
|
|
|
1956
1966
|
return [];
|
|
1957
1967
|
}, a = I(() => r(e.value)), c = I(() => r(e.modelValue)), m = (i, p) => {
|
|
1958
1968
|
let S = "";
|
|
1959
|
-
i && _(i) > 0 && (S = Pn(
|
|
1969
|
+
i && _(i) > 0 && (S = Pn(L(i, (v) => {
|
|
1960
1970
|
var s;
|
|
1961
1971
|
const h = e.fieldNames, g = {
|
|
1962
1972
|
[h.id]: v.id,
|
|
@@ -1966,15 +1976,15 @@ const Xn = () => ({
|
|
|
1966
1976
|
return ((s = e.convertItem) == null ? void 0 : s.call(e, v)) || g;
|
|
1967
1977
|
}))), u(p, S);
|
|
1968
1978
|
};
|
|
1969
|
-
return () => n ? l(n,
|
|
1979
|
+
return () => n ? l(n, A({
|
|
1970
1980
|
class: "pro-uploader-text",
|
|
1971
1981
|
value: a.value,
|
|
1972
1982
|
"onUpdate:value": (i) => m(i, "update:value"),
|
|
1973
1983
|
modelValue: c.value,
|
|
1974
1984
|
"onUpdate:modelValue": (i) => m(i, "update:modelValue")
|
|
1975
|
-
},
|
|
1985
|
+
}, $(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
1976
1986
|
}
|
|
1977
|
-
}), ea =
|
|
1987
|
+
}), ea = D({
|
|
1978
1988
|
props: {
|
|
1979
1989
|
value: [String, Array],
|
|
1980
1990
|
fieldNames: {
|
|
@@ -1995,7 +2005,7 @@ const Xn = () => ({
|
|
|
1995
2005
|
return !!f(a, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
|
|
1996
2006
|
}, n = I(() => {
|
|
1997
2007
|
let a = e.value;
|
|
1998
|
-
return a && oe(a) && (a = Nt(a)), a && !
|
|
2008
|
+
return a && oe(a) && (a = Nt(a)), a && !z(a) && Pe(a) && o(a) && (a = [a]), z(a) ? L(G(a, (c) => o(c)), (c) => {
|
|
1999
2009
|
var S, v, h;
|
|
2000
2010
|
const m = f(c, ((S = e.fieldNames) == null ? void 0 : S.id) || "id"), i = f(c, ((v = e.fieldNames) == null ? void 0 : v.name) || "name"), p = f(c, ((h = e.fieldNames) == null ? void 0 : h.name) || "size");
|
|
2001
2011
|
return {
|
|
@@ -2012,7 +2022,7 @@ const Xn = () => ({
|
|
|
2012
2022
|
var a, c;
|
|
2013
2023
|
return l("div", {
|
|
2014
2024
|
class: "pro-upload-list"
|
|
2015
|
-
}, [(a = t.start) == null ? void 0 : a.call(t),
|
|
2025
|
+
}, [(a = t.start) == null ? void 0 : a.call(t), L(n.value, (m) => {
|
|
2016
2026
|
var i;
|
|
2017
2027
|
return l("div", {
|
|
2018
2028
|
class: "pro-upload-list-item"
|
|
@@ -2041,13 +2051,13 @@ const Xn = () => ({
|
|
|
2041
2051
|
const u = f(e, ["highConfig$", "registerPropsTrans"]);
|
|
2042
2052
|
u && _(u) > 0 && Y(u, (o) => {
|
|
2043
2053
|
const n = f(e.elementProps, o.name);
|
|
2044
|
-
|
|
2054
|
+
z(n) ? Y(n, (r) => {
|
|
2045
2055
|
be(r, t);
|
|
2046
2056
|
}) : be(n, t);
|
|
2047
2057
|
}), e.children && _(e.children) > 0 && Y(e.children, (o) => {
|
|
2048
2058
|
be(o, t);
|
|
2049
2059
|
});
|
|
2050
|
-
}, sr =
|
|
2060
|
+
}, sr = D({
|
|
2051
2061
|
props: {
|
|
2052
2062
|
initExecuteList: {
|
|
2053
2063
|
type: Array
|
|
@@ -2066,16 +2076,16 @@ const Xn = () => ({
|
|
|
2066
2076
|
configData: t,
|
|
2067
2077
|
configDataExtra: u,
|
|
2068
2078
|
Logic: o
|
|
2069
|
-
}) =>
|
|
2070
|
-
const n =
|
|
2079
|
+
}) => D(() => {
|
|
2080
|
+
const n = W(), r = (m) => {
|
|
2071
2081
|
const i = Pt(m);
|
|
2072
|
-
return u && (
|
|
2082
|
+
return u && (z(i) ? Y(i, (p) => be(p, u)) : be(i, u)), i;
|
|
2073
2083
|
};
|
|
2074
2084
|
ne(() => {
|
|
2075
2085
|
t && t.elementConfigs && (n.value = r(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2076
2086
|
}, []);
|
|
2077
2087
|
const c = X()(U.LoadingKey);
|
|
2078
|
-
return () => n.value ? l(
|
|
2088
|
+
return () => n.value ? l(Oe, {
|
|
2079
2089
|
initState: t == null ? void 0 : t.initState,
|
|
2080
2090
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2081
2091
|
actors: e,
|
|
@@ -2100,13 +2110,13 @@ const Xn = () => ({
|
|
|
2100
2110
|
return [e, t, () => {
|
|
2101
2111
|
t(void 0);
|
|
2102
2112
|
}];
|
|
2103
|
-
}, Ht = Symbol("logon-user"), dr = () => ie(Ht), ra =
|
|
2113
|
+
}, Ht = Symbol("logon-user"), dr = () => ie(Ht), ra = D((e, { slots: t }) => {
|
|
2104
2114
|
const [u, o] = rt(), [n, r] = rt();
|
|
2105
2115
|
return se(Ht, { user: u, setUser: o, per: n, setPer: r, opts: {} }), () => {
|
|
2106
2116
|
var c;
|
|
2107
2117
|
return (c = t.default) == null ? void 0 : c.call(t);
|
|
2108
2118
|
};
|
|
2109
|
-
}), aa =
|
|
2119
|
+
}), aa = D((e, { slots: t, emit: u }) => {
|
|
2110
2120
|
const { access: o } = ir(), n = I(() => o && o.token);
|
|
2111
2121
|
return ne(() => {
|
|
2112
2122
|
n.value || u("toLogin");
|
|
@@ -2118,22 +2128,22 @@ const Xn = () => ({
|
|
|
2118
2128
|
Add: "add",
|
|
2119
2129
|
Edit: "edit",
|
|
2120
2130
|
Delete: "delete"
|
|
2121
|
-
}, mr = (e, t) => !e || !t ? !1 :
|
|
2122
|
-
const { per: e } = dr(), t =
|
|
2131
|
+
}, mr = (e, t) => !e || !t ? !1 : z(t) ? le(t, (u) => e[u]) : e[t], fr = () => {
|
|
2132
|
+
const { per: e } = dr(), t = Re();
|
|
2123
2133
|
return (u, o) => {
|
|
2124
2134
|
if (!u)
|
|
2125
2135
|
return !1;
|
|
2126
2136
|
let n = u;
|
|
2127
2137
|
if (o != null && o.suffix) {
|
|
2128
2138
|
const r = t.name ? t.name.toString() : "";
|
|
2129
|
-
n =
|
|
2139
|
+
n = z(n) ? L(n, (a) => `${r}:${a}`) : `${r}:${n}`;
|
|
2130
2140
|
}
|
|
2131
2141
|
return mr(e.buttonMap, n);
|
|
2132
2142
|
};
|
|
2133
2143
|
}, yr = () => ({
|
|
2134
2144
|
suffix: { type: [String, Array] },
|
|
2135
2145
|
value: { type: [String, Array] }
|
|
2136
|
-
}), ua =
|
|
2146
|
+
}), ua = D({
|
|
2137
2147
|
inheritAttrs: !1,
|
|
2138
2148
|
props: {
|
|
2139
2149
|
...yr()
|
|
@@ -2146,7 +2156,7 @@ const Xn = () => ({
|
|
|
2146
2156
|
};
|
|
2147
2157
|
}
|
|
2148
2158
|
}), Gt = Symbol("pro-curd"), ee = () => ie(Gt), vr = (e) => se(Gt, e);
|
|
2149
|
-
var
|
|
2159
|
+
var K = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(K || {}), k = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(k || {}), ce = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(ce || {}), Ee = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ee || {});
|
|
2150
2160
|
const hr = () => ({
|
|
2151
2161
|
rowKey: {
|
|
2152
2162
|
type: String,
|
|
@@ -2170,7 +2180,7 @@ const hr = () => ({
|
|
|
2170
2180
|
modalProps: {
|
|
2171
2181
|
type: Object
|
|
2172
2182
|
}
|
|
2173
|
-
}), Xt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt =
|
|
2183
|
+
}), Xt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = D({
|
|
2174
2184
|
props: {
|
|
2175
2185
|
...fe,
|
|
2176
2186
|
...hr()
|
|
@@ -2184,59 +2194,59 @@ const hr = () => ({
|
|
|
2184
2194
|
state: n,
|
|
2185
2195
|
sendEvent: r,
|
|
2186
2196
|
sendRequest: a
|
|
2187
|
-
} = ye(), c = I(() =>
|
|
2188
|
-
const x = G(c.value, (
|
|
2189
|
-
const b = f(
|
|
2190
|
-
return
|
|
2197
|
+
} = ye(), c = I(() => we(e.columns, e.columnState, (N) => ue(N))), m = (N) => Je(e.formElementMap, N), i = (N, O) => Qe(o, N, O), p = (N, O) => {
|
|
2198
|
+
const x = G(c.value, (F) => {
|
|
2199
|
+
const b = f(F, ["extra", N]) || f(F, N);
|
|
2200
|
+
return O ? b !== !1 : b;
|
|
2191
2201
|
});
|
|
2192
|
-
return St(x, (
|
|
2202
|
+
return St(x, (F) => f(F, ["extra", `${N}Sort`]) || f(F, `${N}Sort`));
|
|
2193
2203
|
}, S = I(() => p("form", !0)), v = I(() => p("detail", !0)), h = I(() => p("table", !0)), g = I(() => p("search"));
|
|
2194
2204
|
let s;
|
|
2195
|
-
const C = (
|
|
2196
|
-
a(
|
|
2205
|
+
const C = (N) => {
|
|
2206
|
+
a(K.LIST, {
|
|
2197
2207
|
...s,
|
|
2198
|
-
...
|
|
2208
|
+
...N
|
|
2199
2209
|
});
|
|
2200
|
-
}, P = (
|
|
2210
|
+
}, P = (N) => {
|
|
2201
2211
|
r({
|
|
2202
|
-
type:
|
|
2203
|
-
payload: N
|
|
2204
|
-
source:
|
|
2212
|
+
type: N.action,
|
|
2213
|
+
payload: $(N, "action", "source"),
|
|
2214
|
+
source: N.source
|
|
2205
2215
|
});
|
|
2206
2216
|
};
|
|
2207
2217
|
Ye(({
|
|
2208
|
-
type:
|
|
2209
|
-
payload:
|
|
2218
|
+
type: N,
|
|
2219
|
+
payload: O,
|
|
2210
2220
|
source: x
|
|
2211
2221
|
}) => {
|
|
2212
2222
|
if (x)
|
|
2213
2223
|
return;
|
|
2214
|
-
let
|
|
2215
|
-
|
|
2224
|
+
let F = N, b = O == null ? void 0 : O.type;
|
|
2225
|
+
F === pe.Success && (F = f(O, ["requestOpts", "action"]), b = k.SUCCESS);
|
|
2216
2226
|
const {
|
|
2217
2227
|
values: y,
|
|
2218
2228
|
record: M
|
|
2219
|
-
} =
|
|
2220
|
-
switch (
|
|
2221
|
-
case
|
|
2229
|
+
} = O;
|
|
2230
|
+
switch (F) {
|
|
2231
|
+
case K.LIST:
|
|
2222
2232
|
b === k.EMIT && (s = y, C());
|
|
2223
2233
|
return;
|
|
2224
|
-
case
|
|
2225
|
-
b === k.EXECUTE && a(
|
|
2234
|
+
case K.ADD:
|
|
2235
|
+
b === k.EXECUTE && a(K.ADD, y, n.detailData);
|
|
2226
2236
|
return;
|
|
2227
|
-
case
|
|
2228
|
-
b === k.EXECUTE && a(
|
|
2237
|
+
case K.EDIT:
|
|
2238
|
+
b === k.EXECUTE && a(K.EDIT, y, n.detailData);
|
|
2229
2239
|
return;
|
|
2230
|
-
case
|
|
2231
|
-
b === k.EMIT ? a(
|
|
2240
|
+
case K.DELETE:
|
|
2241
|
+
b === k.EMIT ? a(K.DELETE, M, e.rowKey) : b === k.SUCCESS && C();
|
|
2232
2242
|
return;
|
|
2233
2243
|
}
|
|
2234
|
-
|
|
2244
|
+
F && N === k.EXECUTE && a(F, y);
|
|
2235
2245
|
});
|
|
2236
|
-
const d = Q(e.operates, (
|
|
2237
|
-
...
|
|
2238
|
-
[
|
|
2239
|
-
}), {}), E = (
|
|
2246
|
+
const d = Q(e.operates, (N, O) => ({
|
|
2247
|
+
...N,
|
|
2248
|
+
[O.action]: O
|
|
2249
|
+
}), {}), E = (N) => f(d, N), j = I(() => e.listProps), w = I(() => e.formProps), R = I(() => e.descProps), V = I(() => e.modalProps);
|
|
2240
2250
|
return vr({
|
|
2241
2251
|
columns: c,
|
|
2242
2252
|
getSignColumns: p,
|
|
@@ -2254,21 +2264,21 @@ const hr = () => ({
|
|
|
2254
2264
|
operates: e.operates,
|
|
2255
2265
|
getOperate: E,
|
|
2256
2266
|
refreshList: C,
|
|
2257
|
-
listProps:
|
|
2258
|
-
formProps:
|
|
2259
|
-
descProps:
|
|
2260
|
-
modalProps:
|
|
2267
|
+
listProps: j,
|
|
2268
|
+
formProps: w,
|
|
2269
|
+
descProps: R,
|
|
2270
|
+
modalProps: V
|
|
2261
2271
|
}), u({
|
|
2262
2272
|
sendCurdEvent: P,
|
|
2263
2273
|
refreshList: C
|
|
2264
2274
|
}), () => {
|
|
2265
|
-
var
|
|
2266
|
-
return (
|
|
2275
|
+
var N;
|
|
2276
|
+
return (N = t.default) == null ? void 0 : N.call(t);
|
|
2267
2277
|
};
|
|
2268
2278
|
}
|
|
2269
|
-
}), We =
|
|
2279
|
+
}), We = D({
|
|
2270
2280
|
props: {
|
|
2271
|
-
|
|
2281
|
+
...$(Oe.props, "state", "requests"),
|
|
2272
2282
|
...mt.props,
|
|
2273
2283
|
curdState: {
|
|
2274
2284
|
type: Object
|
|
@@ -2281,10 +2291,10 @@ const hr = () => ({
|
|
|
2281
2291
|
const {
|
|
2282
2292
|
elementMap: o,
|
|
2283
2293
|
formElementMap: n
|
|
2284
|
-
} = Z(), r =
|
|
2294
|
+
} = Z(), r = W(), a = W(), c = e.curdState || Me({
|
|
2285
2295
|
detailData: {}
|
|
2286
2296
|
}), m = {
|
|
2287
|
-
[
|
|
2297
|
+
[K.LIST]: {
|
|
2288
2298
|
convertParams: (v) => v,
|
|
2289
2299
|
convertData: (v) => {
|
|
2290
2300
|
var h;
|
|
@@ -2293,7 +2303,7 @@ const hr = () => ({
|
|
|
2293
2303
|
loadingName: "listLoading",
|
|
2294
2304
|
stateName: "listData"
|
|
2295
2305
|
},
|
|
2296
|
-
[
|
|
2306
|
+
[K.DETAIL]: {
|
|
2297
2307
|
convertParams: (v, h) => B(v, h),
|
|
2298
2308
|
convertData: (v) => {
|
|
2299
2309
|
var h;
|
|
@@ -2303,7 +2313,7 @@ const hr = () => ({
|
|
|
2303
2313
|
stateName: "detailData",
|
|
2304
2314
|
label: "\u8BE6\u60C5"
|
|
2305
2315
|
},
|
|
2306
|
-
[
|
|
2316
|
+
[K.ADD]: {
|
|
2307
2317
|
convertParams: (v, h) => ({
|
|
2308
2318
|
body: {
|
|
2309
2319
|
...h,
|
|
@@ -2313,7 +2323,7 @@ const hr = () => ({
|
|
|
2313
2323
|
loadingName: "operateLoading",
|
|
2314
2324
|
label: "\u6DFB\u52A0"
|
|
2315
2325
|
},
|
|
2316
|
-
[
|
|
2326
|
+
[K.EDIT]: {
|
|
2317
2327
|
convertParams: (v, h) => ({
|
|
2318
2328
|
body: {
|
|
2319
2329
|
...h,
|
|
@@ -2323,18 +2333,18 @@ const hr = () => ({
|
|
|
2323
2333
|
loadingName: "operateLoading",
|
|
2324
2334
|
label: "\u7F16\u8F91"
|
|
2325
2335
|
},
|
|
2326
|
-
[
|
|
2336
|
+
[K.DELETE]: {
|
|
2327
2337
|
convertParams: (v, h) => B(v, h),
|
|
2328
2338
|
label: "\u5220\u9664"
|
|
2329
2339
|
}
|
|
2330
|
-
}, i =
|
|
2340
|
+
}, i = L(e.operates, (v) => {
|
|
2331
2341
|
var s;
|
|
2332
2342
|
const h = f(m, v.action), g = ((s = e.convertOperate) == null ? void 0 : s.call(e, v, h)) || v;
|
|
2333
2343
|
return {
|
|
2334
2344
|
...h,
|
|
2335
2345
|
...g
|
|
2336
2346
|
};
|
|
2337
|
-
}), p = G(i, (v) => v.actor), S = q(
|
|
2347
|
+
}), p = G(i, (v) => v.actor), S = q($(Oe.props, "state", "requests"));
|
|
2338
2348
|
return u({
|
|
2339
2349
|
sendCurdEvent: (v) => {
|
|
2340
2350
|
var h;
|
|
@@ -2352,16 +2362,16 @@ const hr = () => ({
|
|
|
2352
2362
|
var g;
|
|
2353
2363
|
(g = r.value) == null || g.sendRequest(v, ...h);
|
|
2354
2364
|
}
|
|
2355
|
-
}), () => l(
|
|
2365
|
+
}), () => l(Oe, A({
|
|
2356
2366
|
ref: r
|
|
2357
2367
|
}, B(e, S), {
|
|
2358
2368
|
elementMap: e.elementMap || o,
|
|
2359
2369
|
state: c,
|
|
2360
2370
|
requests: p
|
|
2361
2371
|
}), {
|
|
2362
|
-
default: () => [l(mt,
|
|
2372
|
+
default: () => [l(mt, A({
|
|
2363
2373
|
ref: a
|
|
2364
|
-
},
|
|
2374
|
+
}, $(e, ...S, "curdState", "operates", "convertOperate"), {
|
|
2365
2375
|
formElementMap: e.formElementMap || n,
|
|
2366
2376
|
operates: i
|
|
2367
2377
|
}), t)]
|
|
@@ -2371,7 +2381,7 @@ const hr = () => ({
|
|
|
2371
2381
|
defaultAddRecord: {
|
|
2372
2382
|
type: Object
|
|
2373
2383
|
}
|
|
2374
|
-
}), qe =
|
|
2384
|
+
}), qe = D({
|
|
2375
2385
|
props: {
|
|
2376
2386
|
...br()
|
|
2377
2387
|
},
|
|
@@ -2387,8 +2397,8 @@ const hr = () => ({
|
|
|
2387
2397
|
getOperate: a,
|
|
2388
2398
|
refreshList: c
|
|
2389
2399
|
} = ee(), m = (h = r == null ? void 0 : r.value) == null ? void 0 : h.pageState, i = (g) => {
|
|
2390
|
-
const s = a(
|
|
2391
|
-
s != null && s.actor ? u(
|
|
2400
|
+
const s = a(K.DETAIL);
|
|
2401
|
+
s != null && s.actor ? u(K.DETAIL, g, o) : t({
|
|
2392
2402
|
type: "detailData",
|
|
2393
2403
|
payload: Pt(g)
|
|
2394
2404
|
});
|
|
@@ -2434,15 +2444,15 @@ const hr = () => ({
|
|
|
2434
2444
|
let P = g, d = s == null ? void 0 : s.type;
|
|
2435
2445
|
const E = s == null ? void 0 : s.record;
|
|
2436
2446
|
switch (P === pe.Success && (P = f(s, ["requestOpts", "action"]), d = k.SUCCESS), P) {
|
|
2437
|
-
case
|
|
2447
|
+
case K.DETAIL:
|
|
2438
2448
|
p(d, {
|
|
2439
2449
|
record: E
|
|
2440
2450
|
});
|
|
2441
2451
|
break;
|
|
2442
|
-
case
|
|
2452
|
+
case K.ADD:
|
|
2443
2453
|
S(d);
|
|
2444
2454
|
break;
|
|
2445
|
-
case
|
|
2455
|
+
case K.EDIT:
|
|
2446
2456
|
v(d, {
|
|
2447
2457
|
record: E
|
|
2448
2458
|
});
|
|
@@ -2450,7 +2460,7 @@ const hr = () => ({
|
|
|
2450
2460
|
}
|
|
2451
2461
|
}), () => null;
|
|
2452
2462
|
}
|
|
2453
|
-
}), ca =
|
|
2463
|
+
}), ca = D({
|
|
2454
2464
|
props: {
|
|
2455
2465
|
...We.props,
|
|
2456
2466
|
...qe.props
|
|
@@ -2459,12 +2469,12 @@ const hr = () => ({
|
|
|
2459
2469
|
slots: t,
|
|
2460
2470
|
expose: u
|
|
2461
2471
|
}) => {
|
|
2462
|
-
const o =
|
|
2472
|
+
const o = W();
|
|
2463
2473
|
u(ve(Xt, o));
|
|
2464
2474
|
const n = q(qe.props), a = X()(U.ProCurdKey);
|
|
2465
|
-
return () => a ? l(a,
|
|
2475
|
+
return () => a ? l(a, A({
|
|
2466
2476
|
ref: o
|
|
2467
|
-
},
|
|
2477
|
+
}, $(e, n)), {
|
|
2468
2478
|
default: () => {
|
|
2469
2479
|
var c;
|
|
2470
2480
|
return [l(qe, B(e, n), null), (c = t.default) == null ? void 0 : c.call(t)];
|
|
@@ -2478,12 +2488,12 @@ const hr = () => ({
|
|
|
2478
2488
|
routeBack: {
|
|
2479
2489
|
type: Function
|
|
2480
2490
|
}
|
|
2481
|
-
}), Ve =
|
|
2491
|
+
}), Ve = D({
|
|
2482
2492
|
props: {
|
|
2483
2493
|
...gr()
|
|
2484
2494
|
},
|
|
2485
2495
|
setup: (e) => {
|
|
2486
|
-
const t = Xe(), u =
|
|
2496
|
+
const t = Xe(), u = Re(), {
|
|
2487
2497
|
dispatch: o,
|
|
2488
2498
|
sendRequest: n
|
|
2489
2499
|
} = ye(), {
|
|
@@ -2512,7 +2522,7 @@ const hr = () => ({
|
|
|
2512
2522
|
}) : S === k.PAGE && (o({
|
|
2513
2523
|
type: "mode",
|
|
2514
2524
|
payload: ce.DETAIL
|
|
2515
|
-
}), n(
|
|
2525
|
+
}), n(K.DETAIL, u.query, r));
|
|
2516
2526
|
}, i = (S) => {
|
|
2517
2527
|
S === k.EMIT ? t.push({
|
|
2518
2528
|
path: `${u.path}/add`
|
|
@@ -2525,7 +2535,7 @@ const hr = () => ({
|
|
|
2525
2535
|
})) : S === k.SUCCESS && (a.addAction === Ee.CONTINUE ? o({
|
|
2526
2536
|
type: "detailData",
|
|
2527
2537
|
payload: e.defaultAddRecord || {}
|
|
2528
|
-
}) : e.routeBack ? e.routeBack(
|
|
2538
|
+
}) : e.routeBack ? e.routeBack(K.ADD) : t.go(-1));
|
|
2529
2539
|
}, p = (S, {
|
|
2530
2540
|
record: v
|
|
2531
2541
|
}) => {
|
|
@@ -2535,7 +2545,7 @@ const hr = () => ({
|
|
|
2535
2545
|
}) : S === k.PAGE ? (o({
|
|
2536
2546
|
type: "mode",
|
|
2537
2547
|
payload: ce.EDIT
|
|
2538
|
-
}), n(
|
|
2548
|
+
}), n(K.DETAIL, u.query, r)) : S === k.SUCCESS && (e.routeBack ? e.routeBack(K.EDIT) : t.go(-1));
|
|
2539
2549
|
};
|
|
2540
2550
|
return Ye(({
|
|
2541
2551
|
type: S,
|
|
@@ -2547,18 +2557,18 @@ const hr = () => ({
|
|
|
2547
2557
|
let g = S, s = v == null ? void 0 : v.type;
|
|
2548
2558
|
const C = v == null ? void 0 : v.record;
|
|
2549
2559
|
switch (g === pe.Success && (g = f(v, ["requestOpts", "action"]), s = k.SUCCESS), g) {
|
|
2550
|
-
case
|
|
2560
|
+
case K.LIST:
|
|
2551
2561
|
c(s);
|
|
2552
2562
|
break;
|
|
2553
|
-
case
|
|
2563
|
+
case K.DETAIL:
|
|
2554
2564
|
m(s, {
|
|
2555
2565
|
record: C
|
|
2556
2566
|
});
|
|
2557
2567
|
break;
|
|
2558
|
-
case
|
|
2568
|
+
case K.ADD:
|
|
2559
2569
|
i(s);
|
|
2560
2570
|
break;
|
|
2561
|
-
case
|
|
2571
|
+
case K.EDIT:
|
|
2562
2572
|
p(s, {
|
|
2563
2573
|
record: C
|
|
2564
2574
|
});
|
|
@@ -2566,7 +2576,7 @@ const hr = () => ({
|
|
|
2566
2576
|
}
|
|
2567
2577
|
}), () => null;
|
|
2568
2578
|
}
|
|
2569
|
-
}), la =
|
|
2579
|
+
}), la = D({
|
|
2570
2580
|
props: {
|
|
2571
2581
|
...We.props,
|
|
2572
2582
|
...Ve.props
|
|
@@ -2575,19 +2585,19 @@ const hr = () => ({
|
|
|
2575
2585
|
slots: t,
|
|
2576
2586
|
expose: u
|
|
2577
2587
|
}) => {
|
|
2578
|
-
const o =
|
|
2588
|
+
const o = W();
|
|
2579
2589
|
u(ve(Xt, o));
|
|
2580
2590
|
const n = q(Ve.props);
|
|
2581
|
-
return () => l(We,
|
|
2591
|
+
return () => l(We, A({
|
|
2582
2592
|
ref: o
|
|
2583
|
-
},
|
|
2593
|
+
}, $(e, n)), {
|
|
2584
2594
|
default: () => {
|
|
2585
2595
|
var r;
|
|
2586
2596
|
return [l(Ve, B(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
|
|
2587
2597
|
}
|
|
2588
2598
|
});
|
|
2589
2599
|
}
|
|
2590
|
-
}), ft =
|
|
2600
|
+
}), ft = D({
|
|
2591
2601
|
props: {
|
|
2592
2602
|
buttonProps: Object
|
|
2593
2603
|
},
|
|
@@ -2597,17 +2607,17 @@ const hr = () => ({
|
|
|
2597
2607
|
const {
|
|
2598
2608
|
getOperate: u,
|
|
2599
2609
|
sendCurdEvent: o
|
|
2600
|
-
} = ee(), n = u(
|
|
2610
|
+
} = ee(), n = u(K.ADD), r = () => {
|
|
2601
2611
|
if (n != null && n.onClick) {
|
|
2602
2612
|
n.onClick();
|
|
2603
2613
|
return;
|
|
2604
2614
|
}
|
|
2605
2615
|
o({
|
|
2606
|
-
action:
|
|
2616
|
+
action: K.ADD,
|
|
2607
2617
|
type: k.EMIT
|
|
2608
2618
|
});
|
|
2609
2619
|
}, c = X()(U.ButtonKey);
|
|
2610
|
-
return () => n != null && n.show ? t.default ? t.default(n, r) : c ? l(c,
|
|
2620
|
+
return () => n != null && n.show ? t.default ? t.default(n, r) : c ? l(c, A({
|
|
2611
2621
|
class: "pro-curd-add-button",
|
|
2612
2622
|
disabled: H(n.disabled) ? n.disabled() : n.disabled
|
|
2613
2623
|
}, e.buttonProps, {
|
|
@@ -2623,7 +2633,7 @@ const hr = () => ({
|
|
|
2623
2633
|
inSearch: !0
|
|
2624
2634
|
}
|
|
2625
2635
|
}
|
|
2626
|
-
}), Sr =
|
|
2636
|
+
}), Sr = D({
|
|
2627
2637
|
props: {
|
|
2628
2638
|
...rr.props,
|
|
2629
2639
|
...yt()
|
|
@@ -2639,10 +2649,10 @@ const hr = () => ({
|
|
|
2639
2649
|
tableColumns: a,
|
|
2640
2650
|
sendCurdEvent: c,
|
|
2641
2651
|
operates: m
|
|
2642
|
-
} = ee(), i =
|
|
2652
|
+
} = ee(), i = L(
|
|
2643
2653
|
G(m, (P) => {
|
|
2644
2654
|
const d = P.action;
|
|
2645
|
-
return d ===
|
|
2655
|
+
return d === K.DETAIL || d === K.EDIT || d === K.DELETE || P.tableOperate;
|
|
2646
2656
|
}),
|
|
2647
2657
|
(P) => {
|
|
2648
2658
|
const d = {
|
|
@@ -2659,7 +2669,7 @@ const hr = () => ({
|
|
|
2659
2669
|
}
|
|
2660
2670
|
), p = (P) => {
|
|
2661
2671
|
c({
|
|
2662
|
-
action:
|
|
2672
|
+
action: K.LIST,
|
|
2663
2673
|
type: k.EMIT,
|
|
2664
2674
|
values: P
|
|
2665
2675
|
});
|
|
@@ -2674,7 +2684,7 @@ const hr = () => ({
|
|
|
2674
2684
|
columns: a.value,
|
|
2675
2685
|
loading: n.listLoading,
|
|
2676
2686
|
dataSource: (P = n.listData) == null ? void 0 : P.dataSource,
|
|
2677
|
-
|
|
2687
|
+
...$(e.tableProps, "operate"),
|
|
2678
2688
|
operate: {
|
|
2679
2689
|
items: i,
|
|
2680
2690
|
...(d = e.tableProps) == null ? void 0 : d.operate
|
|
@@ -2689,9 +2699,9 @@ const hr = () => ({
|
|
|
2689
2699
|
}), g = q(yt()), C = X()(U.ProListKey);
|
|
2690
2700
|
return () => {
|
|
2691
2701
|
var P, d;
|
|
2692
|
-
return C ? l(C,
|
|
2702
|
+
return C ? l(C, A({
|
|
2693
2703
|
class: "pro-curd-list"
|
|
2694
|
-
},
|
|
2704
|
+
}, $(e, ...g, "searchProps", "tableProps", "paginationProps"), {
|
|
2695
2705
|
searchProps: S.value,
|
|
2696
2706
|
tableProps: v.value,
|
|
2697
2707
|
paginationProps: h.value,
|
|
@@ -2704,8 +2714,8 @@ const hr = () => ({
|
|
|
2704
2714
|
}, [l(ft, (E = e.addConfig) == null ? void 0 : E.buttonProps, null)]);
|
|
2705
2715
|
} : void 0,
|
|
2706
2716
|
"table-toolbarExtra": (d = e.addConfig) != null && d.inTable ? (E) => {
|
|
2707
|
-
var
|
|
2708
|
-
return l(te, null, [l(ft, (
|
|
2717
|
+
var j;
|
|
2718
|
+
return l(te, null, [l(ft, (j = e.addConfig) == null ? void 0 : j.buttonProps, null), E]);
|
|
2709
2719
|
} : void 0,
|
|
2710
2720
|
...t,
|
|
2711
2721
|
search: t.search ? (E) => t.search(E, S.value) : void 0,
|
|
@@ -2714,16 +2724,16 @@ const hr = () => ({
|
|
|
2714
2724
|
}) : null;
|
|
2715
2725
|
};
|
|
2716
2726
|
}
|
|
2717
|
-
}), sa =
|
|
2727
|
+
}), sa = D(() => {
|
|
2718
2728
|
const {
|
|
2719
2729
|
listProps: e
|
|
2720
2730
|
} = ee();
|
|
2721
|
-
return () => l(Sr,
|
|
2731
|
+
return () => l(Sr, $(e == null ? void 0 : e.value, "slots"), f(e == null ? void 0 : e.value, "slots"));
|
|
2722
2732
|
}), Pr = () => ({
|
|
2723
2733
|
signName: {
|
|
2724
2734
|
type: String
|
|
2725
2735
|
}
|
|
2726
|
-
}), et =
|
|
2736
|
+
}), et = D({
|
|
2727
2737
|
props: {
|
|
2728
2738
|
...Pr()
|
|
2729
2739
|
},
|
|
@@ -2739,7 +2749,7 @@ const hr = () => ({
|
|
|
2739
2749
|
formColumns: c,
|
|
2740
2750
|
getSignColumns: m,
|
|
2741
2751
|
sendCurdEvent: i
|
|
2742
|
-
} = ee(), p =
|
|
2752
|
+
} = ee(), p = W();
|
|
2743
2753
|
u(ve(e.formMethods || [], p));
|
|
2744
2754
|
const S = I(() => e.signName ? m(e.signName) : c.value), v = () => {
|
|
2745
2755
|
var d;
|
|
@@ -2768,26 +2778,26 @@ const hr = () => ({
|
|
|
2768
2778
|
show: !1
|
|
2769
2779
|
}
|
|
2770
2780
|
], s = (d) => {
|
|
2771
|
-
o.onFinish || (a.mode ===
|
|
2772
|
-
action:
|
|
2781
|
+
o.onFinish || (a.mode === K.EDIT ? i({
|
|
2782
|
+
action: K.EDIT,
|
|
2773
2783
|
type: k.EXECUTE,
|
|
2774
2784
|
values: d
|
|
2775
2785
|
}) : i({
|
|
2776
|
-
action:
|
|
2786
|
+
action: K.ADD,
|
|
2777
2787
|
type: k.EXECUTE,
|
|
2778
2788
|
values: d
|
|
2779
2789
|
}));
|
|
2780
2790
|
}, P = X()(U.ProFormKey);
|
|
2781
|
-
return () => P ? l(P,
|
|
2791
|
+
return () => P ? l(P, A({
|
|
2782
2792
|
ref: p,
|
|
2783
2793
|
class: "pro-curd-form"
|
|
2784
|
-
},
|
|
2794
|
+
}, $(e, "operate"), {
|
|
2785
2795
|
elementMap: e.elementMap || n,
|
|
2786
2796
|
formElementMap: e.formElementMap || r,
|
|
2787
2797
|
columns: e.columns || S.value,
|
|
2788
|
-
readonly: a.mode ===
|
|
2798
|
+
readonly: a.mode === K.DETAIL,
|
|
2789
2799
|
model: e.model || a.detailData,
|
|
2790
|
-
hideRequiredMark: a.mode ===
|
|
2800
|
+
hideRequiredMark: a.mode === K.DETAIL,
|
|
2791
2801
|
operate: e.operate ? {
|
|
2792
2802
|
items: g,
|
|
2793
2803
|
onSubmit: v,
|
|
@@ -2797,16 +2807,16 @@ const hr = () => ({
|
|
|
2797
2807
|
onFinish: s
|
|
2798
2808
|
}), t) : null;
|
|
2799
2809
|
}
|
|
2800
|
-
}), ia =
|
|
2810
|
+
}), ia = D(() => {
|
|
2801
2811
|
const {
|
|
2802
2812
|
formProps: e
|
|
2803
2813
|
} = ee();
|
|
2804
|
-
return () => l(et,
|
|
2814
|
+
return () => l(et, $(e == null ? void 0 : e.value, "slots"), f(e == null ? void 0 : e.value, "slots"));
|
|
2805
2815
|
}), pr = () => ({
|
|
2806
2816
|
signName: {
|
|
2807
2817
|
type: String
|
|
2808
2818
|
}
|
|
2809
|
-
}), Cr =
|
|
2819
|
+
}), Cr = D({
|
|
2810
2820
|
props: {
|
|
2811
2821
|
...pr()
|
|
2812
2822
|
},
|
|
@@ -2818,22 +2828,22 @@ const hr = () => ({
|
|
|
2818
2828
|
descColumns: o,
|
|
2819
2829
|
getSignColumns: n
|
|
2820
2830
|
} = ee(), r = I(() => e.signName ? n(e.signName) : o.value);
|
|
2821
|
-
return () => l(ar,
|
|
2831
|
+
return () => l(ar, A($(e, "signName", "model", "columns"), {
|
|
2822
2832
|
model: e.model || u.detailData,
|
|
2823
2833
|
columns: r.value
|
|
2824
2834
|
}), t);
|
|
2825
2835
|
}
|
|
2826
|
-
}), da =
|
|
2836
|
+
}), da = D(() => {
|
|
2827
2837
|
const {
|
|
2828
2838
|
descProps: e
|
|
2829
2839
|
} = ee();
|
|
2830
|
-
return () => l(Cr,
|
|
2840
|
+
return () => l(Cr, A({
|
|
2831
2841
|
class: "pro-curd-desc"
|
|
2832
|
-
},
|
|
2842
|
+
}, $(e == null ? void 0 : e.value, "slots")), f(e == null ? void 0 : e.value, "slots"));
|
|
2833
2843
|
}), vt = () => ({
|
|
2834
2844
|
validMode: {
|
|
2835
2845
|
type: Array,
|
|
2836
|
-
default: [
|
|
2846
|
+
default: [K.ADD, K.DETAIL, K.EDIT]
|
|
2837
2847
|
},
|
|
2838
2848
|
loadingOpts: {
|
|
2839
2849
|
type: Object
|
|
@@ -2841,7 +2851,7 @@ const hr = () => ({
|
|
|
2841
2851
|
overrideProps: {
|
|
2842
2852
|
type: Object
|
|
2843
2853
|
}
|
|
2844
|
-
}), _t =
|
|
2854
|
+
}), _t = D({
|
|
2845
2855
|
props: {
|
|
2846
2856
|
...vt()
|
|
2847
2857
|
},
|
|
@@ -2857,20 +2867,20 @@ const hr = () => ({
|
|
|
2857
2867
|
return () => {
|
|
2858
2868
|
var p;
|
|
2859
2869
|
const i = r.mode;
|
|
2860
|
-
return !le(e.validMode, (S) => S === i) || !o ? null : l(o,
|
|
2870
|
+
return !le(e.validMode, (S) => S === i) || !o ? null : l(o, A({
|
|
2861
2871
|
class: "pro-curd-modal"
|
|
2862
|
-
},
|
|
2872
|
+
}, $(e, m), {
|
|
2863
2873
|
visible: le(e.validMode, (S) => S === i),
|
|
2864
2874
|
title: e.title || ((p = a(r.mode)) == null ? void 0 : p.label),
|
|
2865
2875
|
confirmLoading: r.operateLoading,
|
|
2866
|
-
maskClosable: r.mode ===
|
|
2867
|
-
footer: r.mode ===
|
|
2876
|
+
maskClosable: r.mode === K.DETAIL,
|
|
2877
|
+
footer: r.mode === K.DETAIL ? !1 : void 0
|
|
2868
2878
|
}, e.overrideProps, {
|
|
2869
2879
|
onCancel: c
|
|
2870
2880
|
}), {
|
|
2871
2881
|
default: () => {
|
|
2872
2882
|
var S;
|
|
2873
|
-
return [r.detailLoading && n ? l(n,
|
|
2883
|
+
return [r.detailLoading && n ? l(n, A({
|
|
2874
2884
|
loading: !0
|
|
2875
2885
|
}, e.loadingOpts), {
|
|
2876
2886
|
default: () => [l("div", {
|
|
@@ -2878,11 +2888,11 @@ const hr = () => ({
|
|
|
2878
2888
|
}, null)]
|
|
2879
2889
|
}) : (S = t.default) == null ? void 0 : S.call(t)];
|
|
2880
2890
|
},
|
|
2881
|
-
|
|
2891
|
+
...$(t, "default")
|
|
2882
2892
|
});
|
|
2883
2893
|
};
|
|
2884
2894
|
}
|
|
2885
|
-
}), ma =
|
|
2895
|
+
}), ma = D({
|
|
2886
2896
|
props: {
|
|
2887
2897
|
modalProps: Object,
|
|
2888
2898
|
formProps: Object
|
|
@@ -2890,40 +2900,40 @@ const hr = () => ({
|
|
|
2890
2900
|
setup: (e, {
|
|
2891
2901
|
slots: t
|
|
2892
2902
|
}) => {
|
|
2893
|
-
const u =
|
|
2894
|
-
return () => l(_t,
|
|
2903
|
+
const u = W(), o = ae(t, "modal"), n = ae(t, "form");
|
|
2904
|
+
return () => l(_t, A(e.modalProps, {
|
|
2895
2905
|
onOk: () => {
|
|
2896
2906
|
var r;
|
|
2897
2907
|
(r = u.value) == null || r.submit();
|
|
2898
2908
|
}
|
|
2899
2909
|
}), {
|
|
2900
|
-
default: () => [l(et,
|
|
2910
|
+
default: () => [l(et, A({
|
|
2901
2911
|
ref: u
|
|
2902
2912
|
}, e.formProps), n)],
|
|
2903
2913
|
...o
|
|
2904
2914
|
});
|
|
2905
2915
|
}
|
|
2906
|
-
}), fa =
|
|
2916
|
+
}), fa = D(() => {
|
|
2907
2917
|
const {
|
|
2908
2918
|
modalProps: e,
|
|
2909
2919
|
formProps: t
|
|
2910
|
-
} = ee(), u =
|
|
2911
|
-
return () => l(_t,
|
|
2920
|
+
} = ee(), u = W();
|
|
2921
|
+
return () => l(_t, A($(e == null ? void 0 : e.value, "slots"), {
|
|
2912
2922
|
onOk: () => {
|
|
2913
2923
|
var o;
|
|
2914
2924
|
(o = u.value) == null || o.submit();
|
|
2915
2925
|
}
|
|
2916
2926
|
}), {
|
|
2917
|
-
default: () => [l(et,
|
|
2927
|
+
default: () => [l(et, A({
|
|
2918
2928
|
ref: u
|
|
2919
|
-
},
|
|
2929
|
+
}, $(t == null ? void 0 : t.value, "slots")), f(t == null ? void 0 : t.value, "slots"))],
|
|
2920
2930
|
...f(e == null ? void 0 : e.value, "slots")
|
|
2921
2931
|
});
|
|
2922
2932
|
});
|
|
2923
2933
|
export {
|
|
2924
2934
|
ft as AddButton,
|
|
2925
2935
|
Yn as ColumnSetting,
|
|
2926
|
-
|
|
2936
|
+
K as CurdAction,
|
|
2927
2937
|
Ee as CurdAddAction,
|
|
2928
2938
|
ce as CurdCurrentMode,
|
|
2929
2939
|
Xt as CurdMethods,
|
|
@@ -2954,7 +2964,7 @@ export {
|
|
|
2954
2964
|
Qr as ProLayout,
|
|
2955
2965
|
rr as ProList,
|
|
2956
2966
|
ca as ProModalCurd,
|
|
2957
|
-
|
|
2967
|
+
Oe as ProModule,
|
|
2958
2968
|
Vt as ProOperate,
|
|
2959
2969
|
Gr as ProPage,
|
|
2960
2970
|
la as ProPageCurd,
|
|
@@ -2962,14 +2972,14 @@ export {
|
|
|
2962
2972
|
Jr as ProShowDate,
|
|
2963
2973
|
Xr as ProShowDigit,
|
|
2964
2974
|
_r as ProShowOptions,
|
|
2965
|
-
|
|
2975
|
+
je as ProShowText,
|
|
2966
2976
|
Yr as ProShowTree,
|
|
2967
2977
|
Hr as ProTable,
|
|
2968
2978
|
ur as ProTypography,
|
|
2969
2979
|
ea as ProUploadList,
|
|
2970
2980
|
Zr as ProUploaderText,
|
|
2971
2981
|
pe as RequestAction,
|
|
2972
|
-
|
|
2982
|
+
Fe as SearchMode,
|
|
2973
2983
|
Un as Wrapper,
|
|
2974
2984
|
Rt as convertPathToList,
|
|
2975
2985
|
An as convertResData,
|
|
@@ -3005,14 +3015,14 @@ export {
|
|
|
3005
3015
|
X as useGetCompByKey,
|
|
3006
3016
|
fr as useHasPer,
|
|
3007
3017
|
dr as useLogonUser,
|
|
3008
|
-
|
|
3018
|
+
$n as useMetaRegister,
|
|
3009
3019
|
Ye as useModuleEvent,
|
|
3010
3020
|
Z as useProConfig,
|
|
3011
3021
|
ee as useProCurd,
|
|
3012
3022
|
qt as useProForm,
|
|
3013
3023
|
kt as useProFormList,
|
|
3014
3024
|
ye as useProModule,
|
|
3015
|
-
|
|
3025
|
+
Dn as useProRouter,
|
|
3016
3026
|
Jn as useProTable,
|
|
3017
3027
|
jr as useReadStore
|
|
3018
3028
|
};
|