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