@vue-start/pro 0.5.30 → 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 +34 -4
- package/dist/index.es.js +1511 -1454
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { defineComponent as w, provide as
|
|
2
|
-
import { reduce as ne, get as
|
|
3
|
-
import { filter as De, tap as xe, merge as
|
|
4
|
-
import { map as
|
|
5
|
-
import { useEffect as ue,
|
|
6
|
-
import { useRequestProvide as $e, isDoneRequestActor as
|
|
7
|
-
import { useDispatchStore 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,180 +30,217 @@ const Nn = () => ({
|
|
|
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: n } = $e(),
|
|
46
|
-
const P =
|
|
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);
|
|
47
51
|
if (!!P)
|
|
48
|
-
return n(P.actor,
|
|
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:
|
|
58
|
+
registerStoreMap: a,
|
|
59
|
+
registerActorMap: o,
|
|
56
60
|
registerMetaMap: r,
|
|
57
|
-
dispatchRequest:
|
|
61
|
+
dispatchRequest: u,
|
|
58
62
|
convertRouter: e.convertRouter,
|
|
59
63
|
showMsg: e.showMsg,
|
|
60
64
|
showModal: e.showModal,
|
|
61
65
|
showNotify: e.showNotify
|
|
62
66
|
}), () => {
|
|
63
|
-
var
|
|
64
|
-
return (
|
|
67
|
+
var c;
|
|
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 n =
|
|
76
|
+
const n = o.pipe(
|
|
73
77
|
De(e),
|
|
74
|
-
xe((
|
|
75
|
-
r.has(
|
|
78
|
+
xe((u) => {
|
|
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
|
|
86
|
-
|
|
87
|
-
De(
|
|
88
|
-
xe((
|
|
89
|
-
var
|
|
90
|
-
n.has(
|
|
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
|
-
De(
|
|
95
|
-
xe((
|
|
96
|
-
var
|
|
97
|
-
n.has(
|
|
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
|
-
|
|
103
|
-
|
|
106
|
+
c.unsubscribe(), a && Z(u, (d) => {
|
|
107
|
+
d && r({ ...d, stage: "CANCEL" });
|
|
104
108
|
});
|
|
105
109
|
};
|
|
106
110
|
}, []);
|
|
107
|
-
},
|
|
111
|
+
}, Rn = (e, t, a) => {
|
|
108
112
|
var r;
|
|
109
|
-
const
|
|
110
|
-
return t ? t(
|
|
111
|
-
},
|
|
112
|
-
const e =
|
|
113
|
-
return (
|
|
114
|
-
const 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);
|
|
115
119
|
if (!r)
|
|
116
120
|
return;
|
|
117
|
-
const n = r.storeName ||
|
|
118
|
-
|
|
121
|
+
const n = r.storeName || o;
|
|
122
|
+
m(e.value, n) || a(o, r.initParams || {});
|
|
119
123
|
};
|
|
120
|
-
},
|
|
121
|
-
const { requestSubject$:
|
|
122
|
-
const
|
|
123
|
-
return !!(
|
|
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);
|
|
127
|
+
return !!(u && c && c.actor);
|
|
124
128
|
};
|
|
125
129
|
ue(() => {
|
|
126
|
-
const n =
|
|
130
|
+
const n = a.pipe(
|
|
127
131
|
De(r),
|
|
128
|
-
xe((
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
132
|
+
xe((u) => {
|
|
133
|
+
const c = m(e, u.name);
|
|
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, (
|
|
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) => {
|
|
156
197
|
if (r !== "type$")
|
|
157
|
-
if (
|
|
158
|
-
const n = Ke(
|
|
159
|
-
|
|
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 [
|
|
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("$", ""));
|
|
165
206
|
if (!n) {
|
|
166
207
|
console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
|
|
167
208
|
return;
|
|
168
209
|
}
|
|
169
|
-
const
|
|
170
|
-
return n(...
|
|
210
|
+
const u = F(o, (c) => Ke(c, t));
|
|
211
|
+
return n(...u);
|
|
171
212
|
}
|
|
172
213
|
return e;
|
|
173
|
-
},
|
|
174
|
-
const e =
|
|
175
|
-
return (
|
|
176
|
-
const r =
|
|
177
|
-
!r || e(
|
|
214
|
+
}, zn = () => {
|
|
215
|
+
const e = Dt(), { registerStoreMap: t } = ee();
|
|
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
|
|
183
|
-
return
|
|
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
|
},
|
|
@@ -226,47 +267,47 @@ const Nn = () => ({
|
|
|
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
|
|
276
|
+
const o = xt(), {
|
|
236
277
|
router: r
|
|
237
|
-
} =
|
|
278
|
+
} = Lt(), {
|
|
238
279
|
elementMap: n,
|
|
239
|
-
registerStoreMap:
|
|
240
|
-
expressionMethods:
|
|
241
|
-
} = ee(),
|
|
280
|
+
registerStoreMap: u,
|
|
281
|
+
expressionMethods: c
|
|
282
|
+
} = ee(), d = e.elementMap || n, i = (S) => W(S) ? Ze(d, S) : Te(d, S), P = new vn(), b = (S) => {
|
|
242
283
|
P.next(S);
|
|
243
|
-
},
|
|
244
|
-
const
|
|
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 Nn = () => ({
|
|
|
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
|
-
})(), H = (S, ...
|
|
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:
|
|
344
|
-
expressionMethods:
|
|
345
|
-
}),
|
|
381
|
+
const L = (S, g) => Ke(S, {
|
|
382
|
+
state: l,
|
|
383
|
+
data: h,
|
|
384
|
+
args: g,
|
|
385
|
+
expressionMethods: c
|
|
386
|
+
}), k = (S, g) => {
|
|
346
387
|
if (!S)
|
|
347
388
|
return;
|
|
348
|
-
const
|
|
349
|
-
state:
|
|
350
|
-
data:
|
|
351
|
-
args:
|
|
352
|
-
expressionMethods:
|
|
389
|
+
const D = {
|
|
390
|
+
state: l,
|
|
391
|
+
data: h,
|
|
392
|
+
args: g,
|
|
393
|
+
expressionMethods: c
|
|
353
394
|
};
|
|
354
|
-
Z(S, (
|
|
355
|
-
if (!W(
|
|
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:
|
|
419
|
+
return Hn({
|
|
420
|
+
elementMap: d,
|
|
380
421
|
subject$: P,
|
|
381
|
-
sendEvent:
|
|
382
|
-
state:
|
|
383
|
-
dispatch:
|
|
384
|
-
data:
|
|
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
|
|
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
|
-
},
|
|
441
|
+
}, Qe = (e, t) => {
|
|
401
442
|
var n;
|
|
402
|
-
const
|
|
403
|
-
if (!
|
|
443
|
+
const a = Rt(t), o = m(e, a);
|
|
444
|
+
if (!o)
|
|
404
445
|
return null;
|
|
405
446
|
const r = ie(t);
|
|
406
|
-
return
|
|
447
|
+
return pe(o, {
|
|
407
448
|
key: r,
|
|
408
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
454
|
}, (n = t.formFieldProps) == null ? void 0 : n.slots);
|
|
414
|
-
},
|
|
455
|
+
}, Je = (e, t, a) => {
|
|
415
456
|
var n;
|
|
416
|
-
const
|
|
417
|
-
return r ?
|
|
418
|
-
|
|
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:
|
|
461
|
+
value: a
|
|
421
462
|
}, (n = t.formFieldProps) == null ? void 0 : n.slots) : null;
|
|
422
|
-
},
|
|
463
|
+
}, Gn = (e) => e && !X(e) && e.elementType, Ze = (e, t) => F(t, (a) => Te(e, a)), jt = (e, t) => {
|
|
423
464
|
var n;
|
|
424
|
-
const
|
|
465
|
+
const a = t.elementProps, o = {
|
|
425
466
|
...t.elementProps
|
|
426
|
-
}, r =
|
|
427
|
-
return r && (typeof r == "object" ?
|
|
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`
|
|
428
469
|
${r}
|
|
429
|
-
`)), Z((n = t.highConfig$) == null ? void 0 : n.registerPropsTrans, (
|
|
430
|
-
const
|
|
431
|
-
if (!(!
|
|
432
|
-
if (W(
|
|
433
|
-
if (
|
|
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
|
-
!
|
|
439
|
-
const
|
|
440
|
-
...
|
|
441
|
-
params$:
|
|
442
|
-
} :
|
|
479
|
+
!c.elementType || (u.isFun ? le(o, u.name, (...d) => {
|
|
480
|
+
const i = u.needParams ? {
|
|
481
|
+
...c.elementProps,
|
|
482
|
+
params$: d
|
|
483
|
+
} : c.elementProps;
|
|
443
484
|
return Te(e, {
|
|
444
|
-
...
|
|
445
|
-
elementProps:
|
|
485
|
+
...c,
|
|
486
|
+
elementProps: i
|
|
446
487
|
});
|
|
447
|
-
}) :
|
|
488
|
+
}) : le(o, u.name, Te(e, c)));
|
|
448
489
|
}
|
|
449
|
-
}),
|
|
450
|
-
},
|
|
451
|
-
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 : "");
|
|
452
493
|
return Z(z(r), (n) => {
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
...
|
|
457
|
-
params$:
|
|
458
|
-
} :
|
|
494
|
+
const u = r[n];
|
|
495
|
+
Gn(u) ? r[n] = (...c) => {
|
|
496
|
+
const d = u.needParams ? {
|
|
497
|
+
...u.elementProps,
|
|
498
|
+
params$: c
|
|
499
|
+
} : u.elementProps;
|
|
459
500
|
return Te(e, {
|
|
460
|
-
...
|
|
461
|
-
elementProps:
|
|
501
|
+
...u,
|
|
502
|
+
elementProps: d
|
|
462
503
|
});
|
|
463
|
-
} : (oe(
|
|
504
|
+
} : (oe(u) || gt(u)) && (r[n] = () => u);
|
|
464
505
|
}), {
|
|
465
|
-
[
|
|
506
|
+
[o]: a ? () => a : void 0,
|
|
466
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
520
|
...r
|
|
480
|
-
},
|
|
481
|
-
},
|
|
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 Nn = () => ({
|
|
|
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
538
|
elementMap: r,
|
|
498
539
|
elementConfig: n
|
|
499
|
-
} = e,
|
|
500
|
-
Z((
|
|
501
|
-
const
|
|
502
|
-
const f = `${n.elementId}-${
|
|
503
|
-
|
|
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
|
-
|
|
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 (!
|
|
551
|
+
const d = N(() => {
|
|
552
|
+
if (!u.registerStateList || _(u.registerStateList) <= 0)
|
|
512
553
|
return;
|
|
513
|
-
const
|
|
514
|
-
...
|
|
515
|
-
},
|
|
516
|
-
const f =
|
|
517
|
-
return
|
|
554
|
+
const p = {
|
|
555
|
+
...c
|
|
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
|
-
}),
|
|
521
|
-
...
|
|
522
|
-
[
|
|
523
|
-
}), {}),
|
|
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 = {
|
|
524
565
|
...P,
|
|
525
|
-
...
|
|
566
|
+
...b
|
|
526
567
|
};
|
|
527
|
-
return () =>
|
|
568
|
+
return () => m(d.value, "show$") === !1 ? null : pe(i, {
|
|
528
569
|
key: n.elementId,
|
|
529
|
-
...
|
|
530
|
-
|
|
531
|
-
},
|
|
570
|
+
...c,
|
|
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 Nn = () => ({
|
|
|
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
|
|
@@ -573,13 +614,13 @@ const zn = () => ({
|
|
|
573
614
|
}
|
|
574
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
622
|
let r;
|
|
582
|
-
return !
|
|
623
|
+
return !a || !o ? null : s(a, e.row, Yn(r = F(e.items, (n) => s(o, O({
|
|
583
624
|
key: n.rowKey
|
|
584
625
|
}, e.col, n.col), {
|
|
585
626
|
default: () => [n.vNode]
|
|
@@ -588,52 +629,52 @@ const zn = () => ({
|
|
|
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 W(e) ? e : e && oe(e) && e.indexOf(".") > 0 ?
|
|
604
|
-
},
|
|
605
|
-
const r = X(
|
|
606
|
-
return !n ||
|
|
607
|
-
if (W(
|
|
608
|
-
return
|
|
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))
|
|
649
|
+
return c;
|
|
609
650
|
});
|
|
610
651
|
}), ge = (e, t) => {
|
|
611
|
-
const
|
|
652
|
+
const a = ne(
|
|
612
653
|
e,
|
|
613
|
-
(
|
|
614
|
-
...
|
|
654
|
+
(o, r) => ({
|
|
655
|
+
...o,
|
|
615
656
|
[r]: (...n) => {
|
|
616
|
-
var
|
|
617
|
-
return (
|
|
657
|
+
var u, c;
|
|
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
|
-
|
|
627
|
-
var
|
|
628
|
-
return (
|
|
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) => {
|
|
668
|
+
var u, c;
|
|
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 zn = () => ({
|
|
|
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 zn = () => ({
|
|
|
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
|
|
724
|
+
const o = Q()(U.FormItemKey), {
|
|
684
725
|
formState: r,
|
|
685
726
|
readonly: n,
|
|
686
|
-
formElementMap:
|
|
687
|
-
} =
|
|
688
|
-
let
|
|
689
|
-
W(
|
|
727
|
+
formElementMap: u
|
|
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:
|
|
711
|
-
pathList: [...
|
|
749
|
+
var l, h;
|
|
750
|
+
return [F(m(r, i), (E, f) => s(er, {
|
|
751
|
+
key: E[e.rowKey] || f,
|
|
752
|
+
pathList: [...i, f]
|
|
712
753
|
}, {
|
|
713
754
|
default: () => {
|
|
714
|
-
var
|
|
715
|
-
return [
|
|
755
|
+
var C, T, K, R, H, M;
|
|
756
|
+
return [s("div", {
|
|
716
757
|
class: "pro-form-list-item"
|
|
717
|
-
}, [(
|
|
758
|
+
}, [(C = t.start) == null ? void 0 : C.call(t, {
|
|
718
759
|
state: r,
|
|
719
|
-
path:
|
|
760
|
+
path: i,
|
|
720
761
|
index: f
|
|
721
|
-
}),
|
|
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
768
|
onClick: P
|
|
728
|
-
}, [((
|
|
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
|
-
}, [((H = t.itemMinus) == null ? void 0 : H.call(t)) || ((
|
|
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
|
-
})), !n.value &&
|
|
774
|
+
})), !n.value && s("div", {
|
|
734
775
|
class: "pro-form-list-add",
|
|
735
776
|
onClick: P
|
|
736
|
-
}, [((
|
|
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:
|
|
847
|
+
emit: a,
|
|
848
|
+
expose: o,
|
|
808
849
|
attrs: r
|
|
809
850
|
}) => {
|
|
810
851
|
const {
|
|
811
852
|
elementMap: n,
|
|
812
|
-
formElementMap:
|
|
813
|
-
} = ee(),
|
|
814
|
-
const
|
|
815
|
-
return e.convertColumn ?
|
|
816
|
-
}),
|
|
853
|
+
formElementMap: u
|
|
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
|
-
|
|
824
|
-
formState:
|
|
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({
|
|
865
|
+
formState: i,
|
|
825
866
|
showState: P,
|
|
826
|
-
readonlyState:
|
|
827
|
-
disableState:
|
|
828
|
-
elementMap:
|
|
829
|
-
formElementMap:
|
|
830
|
-
readonly:
|
|
831
|
-
columns:
|
|
832
|
-
formRef:
|
|
867
|
+
readonlyState: b,
|
|
868
|
+
disableState: y,
|
|
869
|
+
elementMap: c,
|
|
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
|
-
(
|
|
893
|
+
(B = T.value) == null || B.resetFields();
|
|
853
894
|
}, H = () => {
|
|
854
|
-
var
|
|
855
|
-
if ((
|
|
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]:
|
|
908
|
+
}, I = {
|
|
909
|
+
[te.RESET]: R,
|
|
869
910
|
[te.SUBMIT]: H,
|
|
870
|
-
[te.CONTINUE]:
|
|
871
|
-
},
|
|
872
|
-
const
|
|
873
|
-
return
|
|
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
|
-
},
|
|
898
|
-
model:
|
|
899
|
-
onFinish:
|
|
938
|
+
}, A(r, "onFinish"), A(e, ...D, ...q, "onFinish", "operate"), {
|
|
939
|
+
model: i,
|
|
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 r =
|
|
965
|
-
const
|
|
966
|
-
return
|
|
967
|
-
}), (
|
|
968
|
-
...
|
|
969
|
-
formItemProps:
|
|
970
|
-
}))),
|
|
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 () => r ?
|
|
994
|
-
ref:
|
|
1031
|
+
b();
|
|
1032
|
+
}, () => dn(n));
|
|
1033
|
+
const p = z(st());
|
|
1034
|
+
return () => r ? s(r, O({
|
|
1035
|
+
ref: i,
|
|
995
1036
|
class: "pro-search-form"
|
|
996
|
-
},
|
|
997
|
-
columns:
|
|
1037
|
+
}, A(e, p, "columns"), {
|
|
1038
|
+
columns: d.value,
|
|
998
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,116 +1053,116 @@ const lt = () => ({
|
|
|
1012
1053
|
slots: {
|
|
1013
1054
|
type: Object
|
|
1014
1055
|
}
|
|
1015
|
-
}),
|
|
1016
|
-
InputComp:
|
|
1017
|
-
valueType:
|
|
1056
|
+
}), ra = (e, t) => ({
|
|
1057
|
+
InputComp: a,
|
|
1058
|
+
valueType: o,
|
|
1018
1059
|
name: r
|
|
1019
1060
|
}) => w({
|
|
1020
1061
|
name: r,
|
|
1021
1062
|
props: {
|
|
1022
1063
|
...e.props,
|
|
1023
|
-
...
|
|
1064
|
+
...it()
|
|
1024
1065
|
},
|
|
1025
1066
|
setup: (n, {
|
|
1026
|
-
slots:
|
|
1067
|
+
slots: u
|
|
1027
1068
|
}) => {
|
|
1028
1069
|
const {
|
|
1029
|
-
formExtraMap:
|
|
1070
|
+
formExtraMap: c
|
|
1030
1071
|
} = ee(), {
|
|
1031
|
-
formState:
|
|
1032
|
-
showState:
|
|
1072
|
+
formState: d,
|
|
1073
|
+
showState: i,
|
|
1033
1074
|
readonlyState: P,
|
|
1034
|
-
disableState:
|
|
1035
|
-
readonly:
|
|
1036
|
-
elementMap:
|
|
1037
|
-
} =
|
|
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
|
-
}] : n.rules ?
|
|
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 H =
|
|
1048
|
-
return
|
|
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: () => [
|
|
1093
|
+
default: () => [l.value ? s(ae, null, [M ? s(M, O({
|
|
1053
1094
|
value: H
|
|
1054
1095
|
}, n.fieldProps, {
|
|
1055
1096
|
showProps: n.showProps
|
|
1056
|
-
}),
|
|
1097
|
+
}), u) : s("span", null, [H])]) : s(a, O(t(H, T, m(b, C)), n.fieldProps), u)],
|
|
1057
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
|
|
1074
|
-
var
|
|
1075
|
-
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: {} }), () => {
|
|
1115
|
+
var c;
|
|
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
|
-
r.value ||
|
|
1121
|
+
r.value || a("toLogin");
|
|
1081
1122
|
}, r), () => {
|
|
1082
1123
|
var n;
|
|
1083
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 r =
|
|
1095
|
-
if (
|
|
1096
|
-
const n = t.name ? t.name.toString() : "",
|
|
1097
|
-
r = W(r) ?
|
|
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
|
-
},
|
|
1102
|
-
const e =
|
|
1103
|
-
return (t,
|
|
1104
|
-
},
|
|
1142
|
+
}, _t = () => {
|
|
1143
|
+
const e = Xt();
|
|
1144
|
+
return (t, a, o) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: o }) : !0;
|
|
1145
|
+
}, ur = () => ({
|
|
1105
1146
|
suffix: { type: [String, Array] },
|
|
1106
1147
|
value: { type: [String, Array] },
|
|
1107
1148
|
splitStr: { type: String }
|
|
1108
|
-
}),
|
|
1149
|
+
}), la = w({
|
|
1109
1150
|
inheritAttrs: !1,
|
|
1110
1151
|
props: {
|
|
1111
|
-
...
|
|
1152
|
+
...ur()
|
|
1112
1153
|
},
|
|
1113
1154
|
setup: (e, { slots: t }) => {
|
|
1114
|
-
const
|
|
1155
|
+
const a = Xt(), o = N(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
|
|
1115
1156
|
return () => {
|
|
1116
1157
|
var r;
|
|
1117
|
-
return
|
|
1158
|
+
return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
|
|
1118
1159
|
};
|
|
1119
1160
|
}
|
|
1120
1161
|
});
|
|
1121
|
-
function
|
|
1122
|
-
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);
|
|
1123
1164
|
}
|
|
1124
|
-
const
|
|
1165
|
+
const lr = () => ({
|
|
1125
1166
|
clsName: {
|
|
1126
1167
|
type: String,
|
|
1127
1168
|
default: "pro-operate"
|
|
@@ -1134,48 +1175,48 @@ const tr = () => ({
|
|
|
1134
1175
|
},
|
|
1135
1176
|
elementKey: {
|
|
1136
1177
|
type: String,
|
|
1137
|
-
default:
|
|
1178
|
+
default: U.ButtonKey
|
|
1138
1179
|
},
|
|
1139
1180
|
splitStr: {
|
|
1140
1181
|
type: String
|
|
1141
1182
|
}
|
|
1142
|
-
}),
|
|
1183
|
+
}), Yt = w({
|
|
1143
1184
|
props: {
|
|
1144
|
-
...
|
|
1185
|
+
...lr()
|
|
1145
1186
|
},
|
|
1146
1187
|
setup: (e, {
|
|
1147
1188
|
slots: t
|
|
1148
1189
|
}) => {
|
|
1149
|
-
const
|
|
1150
|
-
const
|
|
1151
|
-
...
|
|
1152
|
-
...
|
|
1153
|
-
} :
|
|
1154
|
-
return
|
|
1155
|
-
}), r = (
|
|
1156
|
-
var
|
|
1157
|
-
(
|
|
1158
|
-
}, n =
|
|
1159
|
-
return () =>
|
|
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) ? {
|
|
1192
|
+
...i,
|
|
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;
|
|
1200
|
+
return () => s("div", {
|
|
1160
1201
|
class: e.clsName
|
|
1161
|
-
}, [
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1164
|
-
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
|
|
1165
1206
|
};
|
|
1166
|
-
return
|
|
1167
|
-
disabled:
|
|
1168
|
-
loading:
|
|
1169
|
-
onClick: () => r(
|
|
1170
|
-
},
|
|
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 : {
|
|
1171
1212
|
default: () => [P]
|
|
1172
|
-
}) :
|
|
1213
|
+
}) : s("div", {
|
|
1173
1214
|
class: `${e.clsName}-item`,
|
|
1174
|
-
onClick: () => r(
|
|
1215
|
+
onClick: () => r(c)
|
|
1175
1216
|
}, [P]);
|
|
1176
1217
|
})]);
|
|
1177
1218
|
}
|
|
1178
|
-
}),
|
|
1219
|
+
}), sr = () => ({
|
|
1179
1220
|
clsName: {
|
|
1180
1221
|
type: String,
|
|
1181
1222
|
default: "pro-table-toolbar-column"
|
|
@@ -1196,105 +1237,105 @@ const tr = () => ({
|
|
|
1196
1237
|
type: Function,
|
|
1197
1238
|
default: () => "\u5217\u8BBE\u7F6E"
|
|
1198
1239
|
}
|
|
1199
|
-
}),
|
|
1240
|
+
}), ir = w({
|
|
1200
1241
|
props: {
|
|
1201
|
-
...
|
|
1242
|
+
...sr()
|
|
1202
1243
|
},
|
|
1203
1244
|
setup: (e, {
|
|
1204
1245
|
slots: t
|
|
1205
1246
|
}) => {
|
|
1206
|
-
const
|
|
1247
|
+
const a = Q(), o = a(U.PopoverKey), r = a(U.CheckboxKey), {
|
|
1207
1248
|
originColumns: n,
|
|
1208
|
-
selectIdsRef:
|
|
1209
|
-
} =
|
|
1210
|
-
let
|
|
1249
|
+
selectIdsRef: u
|
|
1250
|
+
} = dr(), [c, d] = pn();
|
|
1251
|
+
let i = {};
|
|
1211
1252
|
const P = (f) => {
|
|
1212
|
-
|
|
1213
|
-
},
|
|
1214
|
-
Z(
|
|
1215
|
-
|
|
1253
|
+
i[f] = !1;
|
|
1254
|
+
}, b = () => {
|
|
1255
|
+
Z(u.value, (f) => {
|
|
1256
|
+
i[f] = !0;
|
|
1216
1257
|
});
|
|
1217
|
-
},
|
|
1258
|
+
}, y = N(() => ne(u.value, (f, C) => ({
|
|
1218
1259
|
...f,
|
|
1219
|
-
[
|
|
1220
|
-
}), {})),
|
|
1260
|
+
[C]: !0
|
|
1261
|
+
}), {})), v = (f) => Zn(f, e.signName);
|
|
1221
1262
|
ue(() => {
|
|
1222
|
-
|
|
1223
|
-
var
|
|
1224
|
-
return e.useSelectedStatus &&
|
|
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;
|
|
1225
1266
|
}), (f) => f.dataIndex);
|
|
1226
|
-
}, n),
|
|
1267
|
+
}, n), $t(() => {
|
|
1227
1268
|
var f;
|
|
1228
|
-
|
|
1229
|
-
},
|
|
1230
|
-
const
|
|
1231
|
-
const f =
|
|
1232
|
-
var
|
|
1233
|
-
return (
|
|
1234
|
-
}),
|
|
1235
|
-
var
|
|
1236
|
-
return (
|
|
1269
|
+
d(), b(), (f = e.onColumnSelectChange) == null || f.call(e, u.value);
|
|
1270
|
+
}, u);
|
|
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);
|
|
1237
1278
|
});
|
|
1238
1279
|
return {
|
|
1239
1280
|
checked: f,
|
|
1240
|
-
indeterminate: f ? !1 :
|
|
1281
|
+
indeterminate: f ? !1 : C
|
|
1241
1282
|
};
|
|
1242
|
-
}),
|
|
1243
|
-
var
|
|
1244
|
-
(Ee(f) ? (
|
|
1245
|
-
var
|
|
1246
|
-
return (
|
|
1247
|
-
}), (
|
|
1248
|
-
},
|
|
1249
|
-
|
|
1250
|
-
var
|
|
1251
|
-
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;
|
|
1252
1293
|
}), (f) => f.dataIndex);
|
|
1253
|
-
},
|
|
1254
|
-
var
|
|
1255
|
-
(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);
|
|
1256
1297
|
};
|
|
1257
|
-
return () =>
|
|
1298
|
+
return () => o ? s(o, O({
|
|
1258
1299
|
trigger: "click"
|
|
1259
1300
|
}, e.popoverProps), {
|
|
1260
1301
|
default: () => {
|
|
1261
|
-
var f,
|
|
1262
|
-
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))];
|
|
1263
1304
|
},
|
|
1264
|
-
content: () =>
|
|
1305
|
+
content: () => s("div", {
|
|
1265
1306
|
class: `${e.clsName}`
|
|
1266
|
-
}, [
|
|
1307
|
+
}, [s("div", {
|
|
1267
1308
|
class: `${e.clsName}-header`
|
|
1268
|
-
}, [
|
|
1269
|
-
key:
|
|
1270
|
-
checked:
|
|
1271
|
-
indeterminate:
|
|
1272
|
-
onChange:
|
|
1309
|
+
}, [s(r, {
|
|
1310
|
+
key: c.value,
|
|
1311
|
+
checked: p.value.checked,
|
|
1312
|
+
indeterminate: p.value.indeterminate,
|
|
1313
|
+
onChange: l
|
|
1273
1314
|
}, {
|
|
1274
1315
|
default: () => [tt("\u5217\u5C55\u793A")]
|
|
1275
|
-
}),
|
|
1276
|
-
onClick:
|
|
1277
|
-
}, [tt("\u91CD\u7F6E")])]),
|
|
1278
|
-
key:
|
|
1316
|
+
}), s("a", {
|
|
1317
|
+
onClick: h
|
|
1318
|
+
}, [tt("\u91CD\u7F6E")])]), s("div", {
|
|
1319
|
+
key: c.value,
|
|
1279
1320
|
class: `${e.clsName}-list`
|
|
1280
|
-
}, [
|
|
1281
|
-
const
|
|
1282
|
-
return
|
|
1283
|
-
checked:
|
|
1284
|
-
disabled:
|
|
1285
|
-
onChange: (
|
|
1286
|
-
|
|
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);
|
|
1287
1328
|
}
|
|
1288
1329
|
}, {
|
|
1289
1330
|
default: () => [f.title]
|
|
1290
1331
|
});
|
|
1291
1332
|
})])]),
|
|
1292
|
-
|
|
1333
|
+
...A(t, "default")
|
|
1293
1334
|
}) : null;
|
|
1294
1335
|
}
|
|
1295
|
-
}),
|
|
1296
|
-
|
|
1297
|
-
},
|
|
1336
|
+
}), Qt = Symbol("pro-table"), dr = () => ye(Qt), fr = (e) => {
|
|
1337
|
+
me(Qt, e);
|
|
1338
|
+
}, dt = () => ({
|
|
1298
1339
|
clsName: {
|
|
1299
1340
|
type: String,
|
|
1300
1341
|
default: "pro-table"
|
|
@@ -1329,147 +1370,147 @@ const tr = () => ({
|
|
|
1329
1370
|
tableMethods: {
|
|
1330
1371
|
type: Array
|
|
1331
1372
|
}
|
|
1332
|
-
}),
|
|
1373
|
+
}), sa = w({
|
|
1333
1374
|
inheritAttrs: !1,
|
|
1334
1375
|
props: {
|
|
1335
1376
|
...he,
|
|
1336
|
-
...
|
|
1377
|
+
...dt()
|
|
1337
1378
|
},
|
|
1338
1379
|
setup: (e, {
|
|
1339
1380
|
slots: t,
|
|
1340
|
-
expose:
|
|
1341
|
-
attrs:
|
|
1381
|
+
expose: a,
|
|
1382
|
+
attrs: o
|
|
1342
1383
|
}) => {
|
|
1343
1384
|
const {
|
|
1344
1385
|
elementMap: r
|
|
1345
|
-
} = ee(), n = e.elementMap || r,
|
|
1386
|
+
} = ee(), n = e.elementMap || r, u = m(r, U.TableKey), c = () => ({
|
|
1346
1387
|
title: "\u5E8F\u53F7",
|
|
1347
1388
|
dataIndex: "serialNumber",
|
|
1348
1389
|
width: 80,
|
|
1349
1390
|
...e.column,
|
|
1350
1391
|
...ve(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1351
1392
|
customRender: ({
|
|
1352
|
-
index:
|
|
1393
|
+
index: M
|
|
1353
1394
|
}) => {
|
|
1354
|
-
var
|
|
1355
|
-
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;
|
|
1356
1397
|
}
|
|
1357
|
-
}),
|
|
1358
|
-
var
|
|
1359
|
-
if (e.operateItemClickMap && e.operateItemClickMap[
|
|
1360
|
-
e.operateItemClickMap[
|
|
1398
|
+
}), d = (M, I) => {
|
|
1399
|
+
var L;
|
|
1400
|
+
if (e.operateItemClickMap && e.operateItemClickMap[I.value]) {
|
|
1401
|
+
e.operateItemClickMap[I.value](M, I);
|
|
1361
1402
|
return;
|
|
1362
1403
|
}
|
|
1363
|
-
(
|
|
1364
|
-
},
|
|
1365
|
-
const
|
|
1366
|
-
...
|
|
1367
|
-
...
|
|
1368
|
-
...
|
|
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)
|
|
1369
1410
|
}));
|
|
1370
1411
|
return {
|
|
1371
1412
|
...e.column,
|
|
1372
1413
|
title: "\u64CD\u4F5C",
|
|
1373
1414
|
dataIndex: "operate",
|
|
1374
1415
|
fixed: "right",
|
|
1375
|
-
...
|
|
1416
|
+
...M.column,
|
|
1376
1417
|
customRender: ({
|
|
1377
|
-
record:
|
|
1418
|
+
record: L
|
|
1378
1419
|
}) => {
|
|
1379
|
-
const
|
|
1380
|
-
...
|
|
1381
|
-
show: X(
|
|
1382
|
-
disabled: X(
|
|
1383
|
-
loading: X(
|
|
1384
|
-
extraProps: X(
|
|
1385
|
-
element: X(
|
|
1386
|
-
onClick: () =>
|
|
1387
|
-
})),
|
|
1388
|
-
...
|
|
1389
|
-
[
|
|
1390
|
-
var
|
|
1391
|
-
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);
|
|
1392
1433
|
}
|
|
1393
1434
|
}), {});
|
|
1394
|
-
return
|
|
1435
|
+
return s(Yt, {
|
|
1395
1436
|
class: `${e.clsName}-operate`,
|
|
1396
|
-
items:
|
|
1397
|
-
elementKey:
|
|
1398
|
-
},
|
|
1437
|
+
items: k,
|
|
1438
|
+
elementKey: M.elementKey || U.TableOperateKey
|
|
1439
|
+
}, S);
|
|
1399
1440
|
}
|
|
1400
1441
|
};
|
|
1401
|
-
},
|
|
1402
|
-
var
|
|
1403
|
-
return !!((
|
|
1404
|
-
}),
|
|
1405
|
-
|
|
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)
|
|
1406
1448
|
return e.columns;
|
|
1407
|
-
const
|
|
1408
|
-
...
|
|
1409
|
-
[
|
|
1449
|
+
const M = ne(b.value, (I, L) => ({
|
|
1450
|
+
...I,
|
|
1451
|
+
[L]: !0
|
|
1410
1452
|
}), {});
|
|
1411
|
-
return
|
|
1412
|
-
})
|
|
1413
|
-
|
|
1453
|
+
return Y(e.columns, (I) => m(M, I.dataIndex));
|
|
1454
|
+
});
|
|
1455
|
+
const p = (M) => F(M, (I) => {
|
|
1456
|
+
const L = {
|
|
1414
1457
|
...e.column,
|
|
1415
|
-
...
|
|
1416
|
-
},
|
|
1417
|
-
return
|
|
1418
|
-
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
|
|
1419
1462
|
}) => {
|
|
1420
|
-
var
|
|
1421
|
-
return
|
|
1422
|
-
...
|
|
1463
|
+
var D;
|
|
1464
|
+
return Je(n, {
|
|
1465
|
+
...I,
|
|
1423
1466
|
showProps: {
|
|
1424
|
-
...
|
|
1425
|
-
content: ((
|
|
1467
|
+
...I.showProps,
|
|
1468
|
+
content: ((D = I.showProps) == null ? void 0 : D.content) || e.columnEmptyText
|
|
1426
1469
|
}
|
|
1427
|
-
},
|
|
1428
|
-
}),
|
|
1429
|
-
}),
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
selectIdsRef: h,
|
|
1439
|
-
tableRef: C,
|
|
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,
|
|
1440
1481
|
toolbar: e.toolbar,
|
|
1441
1482
|
...e.provideExtra
|
|
1442
|
-
}),
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}),
|
|
1447
|
-
|
|
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;
|
|
1448
1489
|
});
|
|
1449
|
-
const
|
|
1490
|
+
const K = N(() => T.value || f.value ? `${e.clsName}-toolbar-valid` : ""), R = z(dt()), H = se(t, "columnSetting");
|
|
1450
1491
|
return () => {
|
|
1451
|
-
var
|
|
1452
|
-
if (!
|
|
1492
|
+
var I, L;
|
|
1493
|
+
if (!u)
|
|
1453
1494
|
return null;
|
|
1454
|
-
const
|
|
1455
|
-
return
|
|
1495
|
+
const M = y.value ? s(ir, (I = e.toolbar) == null ? void 0 : I.columnSetting, H) : null;
|
|
1496
|
+
return s("div", O({
|
|
1456
1497
|
class: e.clsName
|
|
1457
|
-
}, V(
|
|
1458
|
-
class: `${e.clsName}-toolbar ${
|
|
1459
|
-
}, [
|
|
1460
|
-
ref:
|
|
1498
|
+
}, V(o, "class")), [s("div", {
|
|
1499
|
+
class: `${e.clsName}-toolbar ${K.value}`
|
|
1500
|
+
}, [s("div", {
|
|
1501
|
+
ref: E,
|
|
1461
1502
|
class: `${e.clsName}-toolbar-start`
|
|
1462
|
-
}, [(
|
|
1463
|
-
ref:
|
|
1503
|
+
}, [(L = t.toolbar) == null ? void 0 : L.call(t)]), s("div", {
|
|
1504
|
+
ref: C,
|
|
1464
1505
|
class: `${e.clsName}-toolbar-extra`
|
|
1465
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1466
|
-
ref:
|
|
1467
|
-
},
|
|
1468
|
-
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
|
|
1469
1510
|
}), t)]);
|
|
1470
1511
|
};
|
|
1471
1512
|
}
|
|
1472
|
-
}),
|
|
1513
|
+
}), mr = () => ({
|
|
1473
1514
|
title: {
|
|
1474
1515
|
type: String
|
|
1475
1516
|
},
|
|
@@ -1488,41 +1529,41 @@ const tr = () => ({
|
|
|
1488
1529
|
type: Function,
|
|
1489
1530
|
default: () => "\u8FD4\u56DE"
|
|
1490
1531
|
}
|
|
1491
|
-
}),
|
|
1532
|
+
}), Ue = w({
|
|
1492
1533
|
props: {
|
|
1493
|
-
...
|
|
1534
|
+
...mr()
|
|
1494
1535
|
},
|
|
1495
1536
|
setup: (e, {
|
|
1496
1537
|
slots: t
|
|
1497
1538
|
}) => {
|
|
1498
|
-
const
|
|
1539
|
+
const a = Ge(), o = () => {
|
|
1499
1540
|
var r;
|
|
1500
1541
|
if (e.onBackClick) {
|
|
1501
1542
|
(r = e.onBackClick) == null || r.call(e);
|
|
1502
1543
|
return;
|
|
1503
1544
|
}
|
|
1504
|
-
|
|
1545
|
+
a.back();
|
|
1505
1546
|
};
|
|
1506
1547
|
return () => {
|
|
1507
|
-
var n,
|
|
1508
|
-
const r = e.hideWhileNoHistory && ((
|
|
1509
|
-
return
|
|
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;
|
|
1550
|
+
return s("div", {
|
|
1510
1551
|
class: "pro-page-header"
|
|
1511
|
-
}, [e.showBack && r &&
|
|
1552
|
+
}, [e.showBack && r && s("div", {
|
|
1512
1553
|
class: "pro-page-header-back",
|
|
1513
|
-
onClick:
|
|
1514
|
-
}, [t.backIcon ? t.backIcon() : (
|
|
1554
|
+
onClick: o
|
|
1555
|
+
}, [t.backIcon ? t.backIcon() : (c = e.renderBackIcon) == null ? void 0 : c.call(e)]), s("div", {
|
|
1515
1556
|
class: "pro-page-header-title"
|
|
1516
|
-
}, [t.title ? t.title() : e.title]),
|
|
1557
|
+
}, [t.title ? t.title() : e.title]), s("div", {
|
|
1517
1558
|
class: "pro-page-header-sub-title"
|
|
1518
|
-
}, [t.subTitle ? t.subTitle() : e.subTitle]),
|
|
1559
|
+
}, [t.subTitle ? t.subTitle() : e.subTitle]), s("div", {
|
|
1519
1560
|
class: "pro-page-header-space"
|
|
1520
|
-
}, [(
|
|
1561
|
+
}, [(d = t.space) == null ? void 0 : d.call(t)]), s("div", {
|
|
1521
1562
|
class: "pro-page-header-extra"
|
|
1522
|
-
}, [(
|
|
1563
|
+
}, [(i = t.extra) == null ? void 0 : i.call(t)])]);
|
|
1523
1564
|
};
|
|
1524
1565
|
}
|
|
1525
|
-
}),
|
|
1566
|
+
}), yr = () => ({
|
|
1526
1567
|
loading: {
|
|
1527
1568
|
type: Boolean,
|
|
1528
1569
|
default: !1
|
|
@@ -1532,37 +1573,37 @@ const tr = () => ({
|
|
|
1532
1573
|
type: Boolean,
|
|
1533
1574
|
default: !0
|
|
1534
1575
|
}
|
|
1535
|
-
}),
|
|
1576
|
+
}), ia = w({
|
|
1536
1577
|
props: {
|
|
1537
|
-
...
|
|
1538
|
-
...
|
|
1578
|
+
...Ue.props,
|
|
1579
|
+
...yr()
|
|
1539
1580
|
},
|
|
1540
1581
|
setup: (e, {
|
|
1541
1582
|
slots: t
|
|
1542
1583
|
}) => {
|
|
1543
|
-
const
|
|
1584
|
+
const o = Q()(U.LoadingKey), r = z(Ue.props);
|
|
1544
1585
|
return () => {
|
|
1545
|
-
var
|
|
1546
|
-
const n = e.title || t.title || e.subTitle || t.subTitle || t.extra,
|
|
1547
|
-
return
|
|
1586
|
+
var c, d, i;
|
|
1587
|
+
const n = e.title || t.title || e.subTitle || t.subTitle || t.extra, u = !!t.footer;
|
|
1588
|
+
return s("div", {
|
|
1548
1589
|
class: `pro-page ${e.fillMode ? "pro-page-fill" : ""}`
|
|
1549
|
-
}, [(
|
|
1590
|
+
}, [(c = t.start) == null ? void 0 : c.call(t), n && s(Ue, V(e, r), A(t, "start", "default", "footer")), s("div", {
|
|
1550
1591
|
class: "pro-page-content"
|
|
1551
|
-
}, [e.loading ?
|
|
1592
|
+
}, [e.loading ? o ? s(o, O({
|
|
1552
1593
|
loading: !0
|
|
1553
1594
|
}, e.loadingOpts), {
|
|
1554
|
-
default: () => [
|
|
1595
|
+
default: () => [s("div", {
|
|
1555
1596
|
class: "pro-loading-dom"
|
|
1556
1597
|
}, null)]
|
|
1557
|
-
}) : null : (
|
|
1598
|
+
}) : null : (d = t.default) == null ? void 0 : d.call(t)]), !e.loading && u && s("div", {
|
|
1558
1599
|
class: "pro-page-footer"
|
|
1559
|
-
}, [(
|
|
1600
|
+
}, [(i = t.footer) == null ? void 0 : i.call(t)])]);
|
|
1560
1601
|
};
|
|
1561
1602
|
}
|
|
1562
|
-
}),
|
|
1603
|
+
}), vr = Object.freeze({
|
|
1563
1604
|
page: 1,
|
|
1564
1605
|
pageSize: 10
|
|
1565
|
-
}),
|
|
1606
|
+
}), hr = () => ({
|
|
1566
1607
|
clsName: {
|
|
1567
1608
|
type: String,
|
|
1568
1609
|
default: "pro-list"
|
|
@@ -1596,65 +1637,65 @@ const tr = () => ({
|
|
|
1596
1637
|
end: {
|
|
1597
1638
|
type: Function
|
|
1598
1639
|
}
|
|
1599
|
-
}),
|
|
1640
|
+
}), br = w({
|
|
1600
1641
|
props: {
|
|
1601
|
-
...
|
|
1642
|
+
...hr()
|
|
1602
1643
|
},
|
|
1603
1644
|
setup: (e, {
|
|
1604
1645
|
slots: t,
|
|
1605
|
-
emit:
|
|
1646
|
+
emit: a
|
|
1606
1647
|
}) => {
|
|
1607
|
-
const
|
|
1608
|
-
...
|
|
1648
|
+
const o = Q(), r = o(U.ProSearchFormKey), n = o(U.ProTableKey), u = o(U.PaginationKey), c = e.pageState || Ne({
|
|
1649
|
+
...vr
|
|
1609
1650
|
});
|
|
1610
|
-
let
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
...
|
|
1614
|
-
...
|
|
1651
|
+
let d;
|
|
1652
|
+
const i = () => {
|
|
1653
|
+
a("search", {
|
|
1654
|
+
...d,
|
|
1655
|
+
...c
|
|
1615
1656
|
});
|
|
1616
|
-
}, P = (
|
|
1617
|
-
|
|
1618
|
-
},
|
|
1619
|
-
|
|
1620
|
-
},
|
|
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");
|
|
1621
1662
|
return () => {
|
|
1622
|
-
var
|
|
1623
|
-
const
|
|
1663
|
+
var h, E, f, C, T, K, R, H;
|
|
1664
|
+
const l = t.search ? t.search({
|
|
1624
1665
|
executeSearchWithResetPage: P,
|
|
1625
|
-
pageState:
|
|
1626
|
-
}) :
|
|
1666
|
+
pageState: c
|
|
1667
|
+
}) : s(ae, null, [r && s(r, O({
|
|
1627
1668
|
class: `${e.clsName}-search`
|
|
1628
|
-
},
|
|
1629
|
-
onFinish: (
|
|
1630
|
-
}),
|
|
1631
|
-
return
|
|
1669
|
+
}, A(e.searchProps, "onFinish"), {
|
|
1670
|
+
onFinish: (M) => P(M)
|
|
1671
|
+
}), y)]);
|
|
1672
|
+
return s("div", {
|
|
1632
1673
|
class: e.clsName
|
|
1633
|
-
}, [((
|
|
1634
|
-
pageState:
|
|
1635
|
-
}) :
|
|
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({
|
|
1675
|
+
pageState: c
|
|
1676
|
+
}) : s(ae, null, [n && s(n, O({
|
|
1636
1677
|
class: `${e.clsName}-table`,
|
|
1637
1678
|
paginationState: {
|
|
1638
|
-
page:
|
|
1639
|
-
pageSize:
|
|
1679
|
+
page: c.page,
|
|
1680
|
+
pageSize: c.pageSize
|
|
1640
1681
|
},
|
|
1641
1682
|
pagination: !1
|
|
1642
1683
|
}, e.tableProps), {
|
|
1643
|
-
...
|
|
1644
|
-
toolbar: e.searchInTable ? () =>
|
|
1645
|
-
})]), ((
|
|
1646
|
-
executePageChange:
|
|
1647
|
-
pageState:
|
|
1648
|
-
}) :
|
|
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,
|
|
1688
|
+
pageState: c
|
|
1689
|
+
}) : s(ae, null, [e.paginationProps !== !1 && u && s("div", {
|
|
1649
1690
|
class: `${e.clsName}-pagination`
|
|
1650
|
-
}, [
|
|
1651
|
-
page:
|
|
1652
|
-
pageSize:
|
|
1653
|
-
onComposeChange:
|
|
1654
|
-
}),
|
|
1691
|
+
}, [s(u, O(A(ve(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
1692
|
+
page: c.page,
|
|
1693
|
+
pageSize: c.pageSize,
|
|
1694
|
+
onComposeChange: b
|
|
1695
|
+
}), p)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((H = e.end) == null ? void 0 : H.call(e))]);
|
|
1655
1696
|
};
|
|
1656
1697
|
}
|
|
1657
|
-
}),
|
|
1698
|
+
}), ft = () => ({
|
|
1658
1699
|
clsName: {
|
|
1659
1700
|
type: String,
|
|
1660
1701
|
default: "pro-desc"
|
|
@@ -1662,50 +1703,50 @@ const tr = () => ({
|
|
|
1662
1703
|
model: {
|
|
1663
1704
|
type: Object
|
|
1664
1705
|
}
|
|
1665
|
-
}),
|
|
1706
|
+
}), gr = w({
|
|
1666
1707
|
props: {
|
|
1667
1708
|
...he,
|
|
1668
|
-
...
|
|
1709
|
+
...ft()
|
|
1669
1710
|
},
|
|
1670
1711
|
setup: (e, {
|
|
1671
1712
|
slots: t
|
|
1672
1713
|
}) => {
|
|
1673
1714
|
const {
|
|
1674
|
-
elementMap:
|
|
1675
|
-
} = ee(),
|
|
1676
|
-
let
|
|
1677
|
-
if (!!
|
|
1678
|
-
return oe(
|
|
1679
|
-
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,
|
|
1680
1721
|
record: e.model,
|
|
1681
|
-
column:
|
|
1722
|
+
column: A(b, "descRender")
|
|
1682
1723
|
});
|
|
1683
|
-
},
|
|
1684
|
-
return () => !n || !
|
|
1724
|
+
}, i = z(he), P = z(ft());
|
|
1725
|
+
return () => !n || !u ? null : s(n, O({
|
|
1685
1726
|
class: e.clsName
|
|
1686
|
-
},
|
|
1727
|
+
}, A(e, ...i, ...P, "model")), {
|
|
1687
1728
|
default: () => {
|
|
1688
|
-
var
|
|
1689
|
-
return [(
|
|
1690
|
-
const
|
|
1691
|
-
return
|
|
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);
|
|
1732
|
+
return s(u, O({
|
|
1692
1733
|
class: `${e.clsName}-item`
|
|
1693
|
-
},
|
|
1734
|
+
}, m(v.extra, "desc")), {
|
|
1694
1735
|
default: () => {
|
|
1695
|
-
var
|
|
1696
|
-
return [((
|
|
1736
|
+
var h;
|
|
1737
|
+
return [((h = t.value) == null ? void 0 : h.call(t, l, v)) || d(v, l) || Je(o, v, l)];
|
|
1697
1738
|
},
|
|
1698
1739
|
label: () => {
|
|
1699
|
-
var
|
|
1700
|
-
return ((
|
|
1740
|
+
var h;
|
|
1741
|
+
return ((h = t.label) == null ? void 0 : h.call(t, v)) || v.title;
|
|
1701
1742
|
}
|
|
1702
1743
|
});
|
|
1703
|
-
}), (
|
|
1744
|
+
}), (y = t.default) == null ? void 0 : y.call(t)];
|
|
1704
1745
|
},
|
|
1705
1746
|
...t
|
|
1706
1747
|
});
|
|
1707
1748
|
}
|
|
1708
|
-
}),
|
|
1749
|
+
}), Sr = () => ({
|
|
1709
1750
|
content: {
|
|
1710
1751
|
type: [String, Number]
|
|
1711
1752
|
},
|
|
@@ -1713,24 +1754,24 @@ const tr = () => ({
|
|
|
1713
1754
|
type: [Object, Boolean]
|
|
1714
1755
|
},
|
|
1715
1756
|
popoverProps: Object
|
|
1716
|
-
}),
|
|
1757
|
+
}), Pr = w({
|
|
1717
1758
|
inheritAttrs: !1,
|
|
1718
1759
|
props: {
|
|
1719
|
-
...
|
|
1760
|
+
...Sr()
|
|
1720
1761
|
},
|
|
1721
1762
|
setup: (e, {
|
|
1722
1763
|
attrs: t
|
|
1723
1764
|
}) => {
|
|
1724
|
-
const
|
|
1725
|
-
var n,
|
|
1726
|
-
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((n = e.ellipsis) == null ? void 0 : n.rows) || ((
|
|
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";
|
|
1727
1768
|
};
|
|
1728
1769
|
return () => {
|
|
1729
|
-
const n =
|
|
1770
|
+
const n = s("span", O({
|
|
1730
1771
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
1731
1772
|
style: `-webkit-line-clamp:${r()}`
|
|
1732
1773
|
}, t), [e.content]);
|
|
1733
|
-
return !e.popoverProps || !
|
|
1774
|
+
return !e.popoverProps || !o ? n : s(o, e.popoverProps, {
|
|
1734
1775
|
default: () => [n],
|
|
1735
1776
|
content: () => e.content
|
|
1736
1777
|
});
|
|
@@ -1746,7 +1787,7 @@ const tr = () => ({
|
|
|
1746
1787
|
convert: {
|
|
1747
1788
|
type: Function
|
|
1748
1789
|
}
|
|
1749
|
-
},
|
|
1790
|
+
}, Re = w({
|
|
1750
1791
|
inheritAttrs: !1,
|
|
1751
1792
|
props: {
|
|
1752
1793
|
...Ae
|
|
@@ -1754,16 +1795,16 @@ const tr = () => ({
|
|
|
1754
1795
|
setup: (e, {
|
|
1755
1796
|
attrs: t
|
|
1756
1797
|
}) => {
|
|
1757
|
-
const
|
|
1798
|
+
const a = N(() => {
|
|
1758
1799
|
var n;
|
|
1759
|
-
const
|
|
1800
|
+
const o = (n = e.showProps) == null ? void 0 : n.content, r = e.value || gt(e.value) ? e.value : o;
|
|
1760
1801
|
return e.convert ? e.convert(r, e) : r;
|
|
1761
1802
|
});
|
|
1762
|
-
return () =>
|
|
1763
|
-
content:
|
|
1803
|
+
return () => s(Pr, O(V(t, "style", "class"), A(e.showProps, "content"), {
|
|
1804
|
+
content: a.value
|
|
1764
1805
|
}), null);
|
|
1765
1806
|
}
|
|
1766
|
-
}),
|
|
1807
|
+
}), da = w({
|
|
1767
1808
|
inheritAttrs: !1,
|
|
1768
1809
|
props: {
|
|
1769
1810
|
...Ae,
|
|
@@ -1779,16 +1820,16 @@ const tr = () => ({
|
|
|
1779
1820
|
setup: (e, {
|
|
1780
1821
|
attrs: t
|
|
1781
1822
|
}) => {
|
|
1782
|
-
const
|
|
1783
|
-
let
|
|
1784
|
-
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;
|
|
1785
1826
|
});
|
|
1786
|
-
return () =>
|
|
1787
|
-
value:
|
|
1827
|
+
return () => s(Re, O(V(t, "style", "class"), {
|
|
1828
|
+
value: a.value,
|
|
1788
1829
|
showProps: e.showProps
|
|
1789
1830
|
}), null);
|
|
1790
1831
|
}
|
|
1791
|
-
}),
|
|
1832
|
+
}), fa = w({
|
|
1792
1833
|
inheritAttrs: !1,
|
|
1793
1834
|
props: {
|
|
1794
1835
|
...Ae,
|
|
@@ -1807,18 +1848,18 @@ const tr = () => ({
|
|
|
1807
1848
|
setup: (e, {
|
|
1808
1849
|
attrs: t
|
|
1809
1850
|
}) => {
|
|
1810
|
-
const
|
|
1851
|
+
const a = N(() => Mn(e.options, (n) => n.label), void 0), o = N(() => {
|
|
1811
1852
|
const n = e.value;
|
|
1812
|
-
let
|
|
1813
|
-
return W(n) ?
|
|
1814
|
-
}), r =
|
|
1815
|
-
return () =>
|
|
1853
|
+
let u = e.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"), {
|
|
1816
1857
|
style: `color:${r.value || ""}`,
|
|
1817
|
-
value:
|
|
1858
|
+
value: o.value,
|
|
1818
1859
|
showProps: e.showProps
|
|
1819
1860
|
}), null);
|
|
1820
1861
|
}
|
|
1821
|
-
}),
|
|
1862
|
+
}), ma = w({
|
|
1822
1863
|
inheritAttrs: !1,
|
|
1823
1864
|
props: {
|
|
1824
1865
|
...Ae,
|
|
@@ -1838,23 +1879,23 @@ const tr = () => ({
|
|
|
1838
1879
|
setup: (e, {
|
|
1839
1880
|
attrs: t
|
|
1840
1881
|
}) => {
|
|
1841
|
-
const
|
|
1882
|
+
const a = N(() => {
|
|
1842
1883
|
const r = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
|
|
1843
|
-
return
|
|
1884
|
+
return Tn(r, (u) => m(u, (n == null ? void 0 : n.label) || "label"), {
|
|
1844
1885
|
value: "value",
|
|
1845
1886
|
children: "children",
|
|
1846
1887
|
...n
|
|
1847
1888
|
});
|
|
1848
|
-
}),
|
|
1889
|
+
}), o = N(() => {
|
|
1849
1890
|
let r = e.value;
|
|
1850
|
-
return W(e.value) ? r =
|
|
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;
|
|
1851
1892
|
});
|
|
1852
|
-
return () =>
|
|
1853
|
-
value:
|
|
1893
|
+
return () => s(Re, O(V(t, "style", "class"), {
|
|
1894
|
+
value: o.value,
|
|
1854
1895
|
showProps: e.showProps
|
|
1855
1896
|
}), null);
|
|
1856
1897
|
}
|
|
1857
|
-
}),
|
|
1898
|
+
}), ya = w({
|
|
1858
1899
|
props: {
|
|
1859
1900
|
...Ae,
|
|
1860
1901
|
value: {
|
|
@@ -1876,31 +1917,31 @@ const tr = () => ({
|
|
|
1876
1917
|
setup: (e, {
|
|
1877
1918
|
attrs: t
|
|
1878
1919
|
}) => {
|
|
1879
|
-
const
|
|
1920
|
+
const a = (r) => r && (e.isUnix ? ut.unix(r).format(e.format) : ut(r).format(e.format)), o = N(() => {
|
|
1880
1921
|
let r = e.value;
|
|
1881
|
-
return W(e.value) ? r =
|
|
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;
|
|
1882
1923
|
});
|
|
1883
|
-
return () =>
|
|
1884
|
-
value:
|
|
1924
|
+
return () => s(Re, O(V(t, "style", "class"), {
|
|
1925
|
+
value: o.value,
|
|
1885
1926
|
showProps: e.showProps
|
|
1886
1927
|
}), null);
|
|
1887
1928
|
}
|
|
1888
1929
|
}), Oe = w((e, {
|
|
1889
1930
|
slots: t
|
|
1890
1931
|
}) => {
|
|
1891
|
-
const
|
|
1892
|
-
return
|
|
1893
|
-
var
|
|
1894
|
-
const n = (
|
|
1895
|
-
|
|
1932
|
+
const a = G(), o = G(0);
|
|
1933
|
+
return Ve(a, (r) => {
|
|
1934
|
+
var u;
|
|
1935
|
+
const n = (u = r[0]) == null ? void 0 : u.contentRect;
|
|
1936
|
+
o.value = n == null ? void 0 : n.width;
|
|
1896
1937
|
}), () => {
|
|
1897
|
-
var r, n,
|
|
1898
|
-
return
|
|
1899
|
-
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,
|
|
1900
1941
|
class: "pro-header-menus-wrapper"
|
|
1901
|
-
}, [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)]);
|
|
1902
1943
|
};
|
|
1903
|
-
}),
|
|
1944
|
+
}), pr = () => ({
|
|
1904
1945
|
clsName: {
|
|
1905
1946
|
type: String,
|
|
1906
1947
|
default: "pro-layout"
|
|
@@ -1938,111 +1979,116 @@ const tr = () => ({
|
|
|
1938
1979
|
menuProps: {
|
|
1939
1980
|
type: Object
|
|
1940
1981
|
}
|
|
1941
|
-
}),
|
|
1982
|
+
}), va = w({
|
|
1942
1983
|
inheritAttrs: !1,
|
|
1943
1984
|
props: {
|
|
1944
|
-
...
|
|
1985
|
+
...pr()
|
|
1945
1986
|
},
|
|
1946
1987
|
setup: (e, {
|
|
1947
1988
|
slots: t,
|
|
1948
|
-
attrs:
|
|
1989
|
+
attrs: a
|
|
1949
1990
|
}) => {
|
|
1950
|
-
const r =
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
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";
|
|
1955
1999
|
return {
|
|
1956
|
-
|
|
1957
|
-
value:
|
|
1958
|
-
label:
|
|
2000
|
+
...A(E, f, C),
|
|
2001
|
+
value: m(E, f),
|
|
2002
|
+
label: m(E, C)
|
|
1959
2003
|
};
|
|
1960
2004
|
}, {
|
|
1961
|
-
children: ((
|
|
2005
|
+
children: ((h = e.fieldNames) == null ? void 0 : h.children) || "children",
|
|
1962
2006
|
childrenName: "children"
|
|
1963
2007
|
});
|
|
1964
|
-
}),
|
|
1965
|
-
var
|
|
1966
|
-
const
|
|
1967
|
-
return
|
|
1968
|
-
}),
|
|
1969
|
-
var
|
|
1970
|
-
return
|
|
1971
|
-
}),
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
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");
|
|
1976
2021
|
return () => {
|
|
1977
|
-
var
|
|
2022
|
+
var f, C, T, K, R, H, M, I, L, k;
|
|
1978
2023
|
if (!r)
|
|
1979
2024
|
return null;
|
|
1980
|
-
const
|
|
2025
|
+
const h = V(a, "class"), E = {
|
|
1981
2026
|
class: `${e.clsName}-menus`,
|
|
1982
2027
|
options: c.value,
|
|
1983
|
-
activeKey:
|
|
1984
|
-
...V(e, "convertSubMenuProps", "convertMenuItemProps"
|
|
2028
|
+
activeKey: b.value,
|
|
2029
|
+
...V(e, "convertSubMenuProps", "convertMenuItemProps"),
|
|
2030
|
+
onMenuItemClick: y,
|
|
1985
2031
|
...e.menuProps
|
|
1986
2032
|
};
|
|
1987
|
-
return e.layout === "vertical" ?
|
|
2033
|
+
return e.layout === "vertical" ? s("main", O(h, {
|
|
1988
2034
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1989
|
-
}), [
|
|
2035
|
+
}), [s(Oe, {
|
|
1990
2036
|
class: `${e.clsName}-header`
|
|
1991
2037
|
}, {
|
|
1992
|
-
menus: (
|
|
1993
|
-
style: `width:${
|
|
2038
|
+
menus: (S) => S ? s(r, O({
|
|
2039
|
+
style: `width:${S}px`,
|
|
1994
2040
|
mode: "horizontal"
|
|
1995
|
-
},
|
|
1996
|
-
...
|
|
1997
|
-
}),
|
|
2041
|
+
}, E), l) : null,
|
|
2042
|
+
...p
|
|
2043
|
+
}), s("div", {
|
|
1998
2044
|
class: `${e.clsName}-section`
|
|
1999
|
-
}, [(
|
|
2045
|
+
}, [(f = t.default) == null ? void 0 : f.call(t)])]) : e.layout === "horizontal" ? s("main", O(h, {
|
|
2000
2046
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2001
|
-
}), [
|
|
2047
|
+
}), [s("div", {
|
|
2002
2048
|
class: `${e.clsName}-menus-wrapper`
|
|
2003
|
-
}, [(C =
|
|
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", {
|
|
2004
2050
|
class: `${e.clsName}-structure`
|
|
2005
|
-
}, [
|
|
2051
|
+
}, [s(Oe, {
|
|
2006
2052
|
class: `${e.clsName}-header`
|
|
2007
|
-
},
|
|
2053
|
+
}, p), s("div", {
|
|
2008
2054
|
class: `${e.clsName}-section`
|
|
2009
|
-
}, [(
|
|
2055
|
+
}, [(K = t.default) == null ? void 0 : K.call(t)])])]) : e.layout === "horizontal-v" ? s("main", O(h, {
|
|
2010
2056
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2011
|
-
}), [
|
|
2057
|
+
}), [s(Oe, {
|
|
2012
2058
|
class: `${e.clsName}-header`
|
|
2013
|
-
},
|
|
2059
|
+
}, p), s("div", {
|
|
2014
2060
|
class: `${e.clsName}-structure`
|
|
2015
|
-
}, [
|
|
2061
|
+
}, [s("div", {
|
|
2016
2062
|
class: `${e.clsName}-menus-wrapper`
|
|
2017
|
-
}, [(
|
|
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", {
|
|
2018
2064
|
class: `${e.clsName}-section`
|
|
2019
|
-
}, [(
|
|
2065
|
+
}, [(M = t.default) == null ? void 0 : M.call(t)])])]) : s("main", O(h, {
|
|
2020
2066
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
2021
|
-
}), [
|
|
2067
|
+
}), [s(Oe, {
|
|
2022
2068
|
class: `${e.clsName}-header`
|
|
2023
2069
|
}, {
|
|
2024
|
-
menus: (
|
|
2025
|
-
style: `width:${
|
|
2070
|
+
menus: (S) => S ? s(r, O({
|
|
2071
|
+
style: `width:${S}px`,
|
|
2026
2072
|
class: `${e.clsName}-menus`,
|
|
2027
2073
|
mode: "horizontal",
|
|
2028
|
-
options:
|
|
2029
|
-
activeKey:
|
|
2074
|
+
options: F(c.value, (g) => A(g, "children")),
|
|
2075
|
+
activeKey: i.value
|
|
2030
2076
|
}, V(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2031
|
-
onMenuItemClick:
|
|
2032
|
-
}),
|
|
2033
|
-
...
|
|
2034
|
-
}),
|
|
2077
|
+
onMenuItemClick: v
|
|
2078
|
+
}), l) : null,
|
|
2079
|
+
...p
|
|
2080
|
+
}), s("div", {
|
|
2035
2081
|
class: `${e.clsName}-structure`
|
|
2036
|
-
}, [
|
|
2082
|
+
}, [P.value && _(P.value.children) > 0 && s("div", {
|
|
2037
2083
|
class: `${e.clsName}-menus-wrapper`
|
|
2038
|
-
}, [(
|
|
2039
|
-
options:
|
|
2040
|
-
},
|
|
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", {
|
|
2041
2087
|
class: `${e.clsName}-section`
|
|
2042
|
-
}, [(
|
|
2088
|
+
}, [(k = t.default) == null ? void 0 : k.call(t)])])]);
|
|
2043
2089
|
};
|
|
2044
2090
|
}
|
|
2045
|
-
}),
|
|
2091
|
+
}), ha = w({
|
|
2046
2092
|
props: {
|
|
2047
2093
|
fieldNames: {
|
|
2048
2094
|
type: Object,
|
|
@@ -2058,41 +2104,41 @@ const tr = () => ({
|
|
|
2058
2104
|
},
|
|
2059
2105
|
setup: (e, {
|
|
2060
2106
|
slots: t,
|
|
2061
|
-
emit:
|
|
2107
|
+
emit: a
|
|
2062
2108
|
}) => {
|
|
2063
|
-
const r =
|
|
2064
|
-
const P =
|
|
2109
|
+
const r = Q()(U.UploaderKey), n = (i) => {
|
|
2110
|
+
const P = At(i);
|
|
2065
2111
|
if (W(P)) {
|
|
2066
|
-
const
|
|
2067
|
-
return
|
|
2068
|
-
|
|
2069
|
-
id: y
|
|
2070
|
-
name: y
|
|
2071
|
-
size: y
|
|
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)
|
|
2072
2118
|
}));
|
|
2073
2119
|
}
|
|
2074
2120
|
return [];
|
|
2075
|
-
},
|
|
2076
|
-
let
|
|
2077
|
-
|
|
2078
|
-
var
|
|
2079
|
-
const
|
|
2080
|
-
[
|
|
2081
|
-
[
|
|
2082
|
-
[
|
|
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
|
|
2083
2129
|
};
|
|
2084
|
-
return ((
|
|
2085
|
-
}))),
|
|
2130
|
+
return ((l = e.convertItem) == null ? void 0 : l.call(e, y)) || p;
|
|
2131
|
+
}))), a(P, b);
|
|
2086
2132
|
};
|
|
2087
|
-
return () => r ?
|
|
2133
|
+
return () => r ? s(r, O({
|
|
2088
2134
|
class: "pro-uploader-text",
|
|
2089
|
-
value:
|
|
2090
|
-
"onUpdate:value": (
|
|
2091
|
-
modelValue:
|
|
2092
|
-
"onUpdate:modelValue": (
|
|
2093
|
-
},
|
|
2135
|
+
value: u.value,
|
|
2136
|
+
"onUpdate:value": (i) => d(i, "update:value"),
|
|
2137
|
+
modelValue: c.value,
|
|
2138
|
+
"onUpdate:modelValue": (i) => d(i, "update:modelValue")
|
|
2139
|
+
}, A(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
2094
2140
|
}
|
|
2095
|
-
}),
|
|
2141
|
+
}), ba = w({
|
|
2096
2142
|
props: {
|
|
2097
2143
|
value: [String, Array],
|
|
2098
2144
|
fieldNames: {
|
|
@@ -2106,66 +2152,66 @@ const tr = () => ({
|
|
|
2106
2152
|
},
|
|
2107
2153
|
setup: (e, {
|
|
2108
2154
|
slots: t,
|
|
2109
|
-
emit:
|
|
2155
|
+
emit: a
|
|
2110
2156
|
}) => {
|
|
2111
|
-
const
|
|
2112
|
-
var
|
|
2113
|
-
return !!
|
|
2114
|
-
}, r =
|
|
2115
|
-
let
|
|
2116
|
-
return
|
|
2117
|
-
var
|
|
2118
|
-
const
|
|
2157
|
+
const o = (u) => {
|
|
2158
|
+
var c;
|
|
2159
|
+
return !!m(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
|
|
2160
|
+
}, r = N(() => {
|
|
2161
|
+
let u = e.value;
|
|
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");
|
|
2119
2165
|
return {
|
|
2120
|
-
...
|
|
2121
|
-
id:
|
|
2166
|
+
...c,
|
|
2167
|
+
id: d,
|
|
2122
2168
|
size: P,
|
|
2123
|
-
name:
|
|
2169
|
+
name: i || d
|
|
2124
2170
|
};
|
|
2125
2171
|
}) : [];
|
|
2126
|
-
}), n = (
|
|
2127
|
-
|
|
2172
|
+
}), n = (u) => {
|
|
2173
|
+
a("titleClick", u);
|
|
2128
2174
|
};
|
|
2129
2175
|
return () => {
|
|
2130
|
-
var
|
|
2131
|
-
return
|
|
2176
|
+
var u, c;
|
|
2177
|
+
return s("div", {
|
|
2132
2178
|
class: "pro-upload-list"
|
|
2133
|
-
}, [(
|
|
2134
|
-
var
|
|
2135
|
-
return
|
|
2179
|
+
}, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (d) => {
|
|
2180
|
+
var i;
|
|
2181
|
+
return s("div", {
|
|
2136
2182
|
class: "pro-upload-list-item"
|
|
2137
|
-
}, [
|
|
2183
|
+
}, [s("span", {
|
|
2138
2184
|
class: "pro-upload-list-item-title",
|
|
2139
|
-
onClick: () => n(
|
|
2140
|
-
}, [
|
|
2141
|
-
}), (
|
|
2185
|
+
onClick: () => n(d)
|
|
2186
|
+
}, [d.name]), (i = t.extra) == null ? void 0 : i.call(t, d)]);
|
|
2187
|
+
}), (c = t.default) == null ? void 0 : c.call(t)]);
|
|
2142
2188
|
};
|
|
2143
2189
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
!e || !t ||
|
|
2146
|
-
const r =
|
|
2147
|
-
if (!
|
|
2148
|
-
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);
|
|
2149
2195
|
return;
|
|
2150
2196
|
}
|
|
2151
|
-
if (!
|
|
2152
|
-
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);
|
|
2153
2199
|
return;
|
|
2154
2200
|
}
|
|
2155
|
-
|
|
2201
|
+
le(e, r, a);
|
|
2156
2202
|
});
|
|
2157
2203
|
}, Pe = (e, t) => {
|
|
2158
|
-
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2161
|
-
const r =
|
|
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);
|
|
2162
2208
|
W(r) ? Z(r, (n) => {
|
|
2163
2209
|
Pe(n, t);
|
|
2164
2210
|
}) : Pe(r, t);
|
|
2165
|
-
}), e.children &&
|
|
2166
|
-
Pe(
|
|
2211
|
+
}), e.children && _(e.children) > 0 && Z(e.children, (o) => {
|
|
2212
|
+
Pe(o, t);
|
|
2167
2213
|
});
|
|
2168
|
-
},
|
|
2214
|
+
}, Er = w({
|
|
2169
2215
|
props: {
|
|
2170
2216
|
initExecuteList: {
|
|
2171
2217
|
type: Array
|
|
@@ -2179,38 +2225,38 @@ const tr = () => ({
|
|
|
2179
2225
|
e.initExecuteList && t(e.initExecuteList, []);
|
|
2180
2226
|
}, []), () => null;
|
|
2181
2227
|
}
|
|
2182
|
-
}),
|
|
2228
|
+
}), ga = ({
|
|
2183
2229
|
actors: e,
|
|
2184
2230
|
configData: t,
|
|
2185
|
-
configDataExtra:
|
|
2186
|
-
Logic:
|
|
2231
|
+
configDataExtra: a,
|
|
2232
|
+
Logic: o
|
|
2187
2233
|
}) => w(() => {
|
|
2188
|
-
const r = G(), n = (
|
|
2189
|
-
const
|
|
2190
|
-
return
|
|
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;
|
|
2191
2237
|
};
|
|
2192
2238
|
ue(() => {
|
|
2193
2239
|
t && t.elementConfigs && (r.value = n(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2194
2240
|
}, []);
|
|
2195
|
-
const
|
|
2196
|
-
return () => r.value ?
|
|
2241
|
+
const c = Q()(U.LoadingKey);
|
|
2242
|
+
return () => r.value ? s(we, {
|
|
2197
2243
|
initState: t == null ? void 0 : t.initState,
|
|
2198
2244
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2199
2245
|
actors: e,
|
|
2200
2246
|
requests: t == null ? void 0 : t.requests,
|
|
2201
2247
|
elementConfigs: r.value
|
|
2202
2248
|
}, {
|
|
2203
|
-
default: () => [
|
|
2204
|
-
}) :
|
|
2249
|
+
default: () => [s(Er, null, null), o && s(o, null, null)]
|
|
2250
|
+
}) : c ? s(c, {
|
|
2205
2251
|
loading: !0
|
|
2206
2252
|
}, {
|
|
2207
|
-
default: () => [
|
|
2253
|
+
default: () => [s("div", {
|
|
2208
2254
|
class: "pro-module-loading-dom"
|
|
2209
2255
|
}, null)]
|
|
2210
2256
|
}) : null;
|
|
2211
|
-
}),
|
|
2212
|
-
var
|
|
2213
|
-
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 = () => ({
|
|
2214
2260
|
rowKey: {
|
|
2215
2261
|
type: String,
|
|
2216
2262
|
default: "id"
|
|
@@ -2233,105 +2279,105 @@ const gr = () => ({
|
|
|
2233
2279
|
modalProps: {
|
|
2234
2280
|
type: Object
|
|
2235
2281
|
}
|
|
2236
|
-
}),
|
|
2282
|
+
}), Zt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = w({
|
|
2237
2283
|
props: {
|
|
2238
2284
|
...he,
|
|
2239
|
-
...
|
|
2285
|
+
...Tr()
|
|
2240
2286
|
},
|
|
2241
2287
|
setup: (e, {
|
|
2242
2288
|
slots: t,
|
|
2243
|
-
expose:
|
|
2289
|
+
expose: a
|
|
2244
2290
|
}) => {
|
|
2245
2291
|
const {
|
|
2246
|
-
elementMap:
|
|
2292
|
+
elementMap: o,
|
|
2247
2293
|
state: r,
|
|
2248
2294
|
sendEvent: n,
|
|
2249
|
-
sendRequest:
|
|
2250
|
-
} = be(),
|
|
2251
|
-
const
|
|
2252
|
-
const S =
|
|
2253
|
-
return
|
|
2295
|
+
sendRequest: u
|
|
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;
|
|
2254
2300
|
});
|
|
2255
|
-
return
|
|
2256
|
-
},
|
|
2257
|
-
let
|
|
2258
|
-
const
|
|
2259
|
-
|
|
2260
|
-
...
|
|
2261
|
-
...
|
|
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
|
|
2262
2308
|
});
|
|
2263
|
-
},
|
|
2309
|
+
}, E = (M) => {
|
|
2264
2310
|
n({
|
|
2265
|
-
type:
|
|
2266
|
-
payload:
|
|
2267
|
-
source:
|
|
2311
|
+
type: M.action,
|
|
2312
|
+
payload: A(M, "action", "source"),
|
|
2313
|
+
source: M.source
|
|
2268
2314
|
});
|
|
2269
2315
|
};
|
|
2270
2316
|
Ye(({
|
|
2271
|
-
type:
|
|
2272
|
-
payload:
|
|
2273
|
-
source:
|
|
2317
|
+
type: M,
|
|
2318
|
+
payload: I,
|
|
2319
|
+
source: L
|
|
2274
2320
|
}) => {
|
|
2275
|
-
if (
|
|
2321
|
+
if (L)
|
|
2276
2322
|
return;
|
|
2277
|
-
let
|
|
2278
|
-
|
|
2323
|
+
let k = M, S = I == null ? void 0 : I.type;
|
|
2324
|
+
k === Me.Success && (k = m(I, ["requestOpts", "action"]), S = j.SUCCESS);
|
|
2279
2325
|
const {
|
|
2280
|
-
values:
|
|
2281
|
-
record:
|
|
2282
|
-
} =
|
|
2283
|
-
switch (
|
|
2284
|
-
case
|
|
2285
|
-
S ===
|
|
2326
|
+
values: g,
|
|
2327
|
+
record: D
|
|
2328
|
+
} = I;
|
|
2329
|
+
switch (k) {
|
|
2330
|
+
case x.LIST:
|
|
2331
|
+
S === j.EMIT && (l = g, h());
|
|
2286
2332
|
return;
|
|
2287
|
-
case
|
|
2288
|
-
S ===
|
|
2333
|
+
case x.ADD:
|
|
2334
|
+
S === j.EXECUTE && u(x.ADD, g, r.detailData);
|
|
2289
2335
|
return;
|
|
2290
|
-
case
|
|
2291
|
-
S ===
|
|
2336
|
+
case x.EDIT:
|
|
2337
|
+
S === j.EXECUTE && u(x.EDIT, g, r.detailData);
|
|
2292
2338
|
return;
|
|
2293
|
-
case
|
|
2294
|
-
S ===
|
|
2339
|
+
case x.DELETE:
|
|
2340
|
+
S === j.EMIT ? u(x.DELETE, D, e.rowKey) : S === j.SUCCESS && h();
|
|
2295
2341
|
return;
|
|
2296
2342
|
}
|
|
2297
|
-
|
|
2343
|
+
k && M === j.EXECUTE && u(k, g);
|
|
2298
2344
|
});
|
|
2299
|
-
const f = ne(e.operates, (
|
|
2300
|
-
...
|
|
2301
|
-
[
|
|
2302
|
-
}), {}),
|
|
2303
|
-
return
|
|
2304
|
-
columns:
|
|
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({
|
|
2350
|
+
columns: c,
|
|
2305
2351
|
getSignColumns: P,
|
|
2306
|
-
getFormItemVNode:
|
|
2307
|
-
getItemVNode:
|
|
2308
|
-
elementMap:
|
|
2352
|
+
getFormItemVNode: d,
|
|
2353
|
+
getItemVNode: i,
|
|
2354
|
+
elementMap: o,
|
|
2309
2355
|
formElementMap: e.formElementMap,
|
|
2310
2356
|
rowKey: e.rowKey,
|
|
2311
2357
|
curdState: r,
|
|
2312
|
-
formColumns:
|
|
2313
|
-
descColumns:
|
|
2314
|
-
tableColumns:
|
|
2315
|
-
searchColumns:
|
|
2316
|
-
sendCurdEvent:
|
|
2358
|
+
formColumns: b,
|
|
2359
|
+
descColumns: y,
|
|
2360
|
+
tableColumns: v,
|
|
2361
|
+
searchColumns: p,
|
|
2362
|
+
sendCurdEvent: E,
|
|
2317
2363
|
operates: e.operates,
|
|
2318
|
-
getOperate:
|
|
2319
|
-
refreshList:
|
|
2320
|
-
listProps:
|
|
2321
|
-
formProps:
|
|
2322
|
-
descProps:
|
|
2364
|
+
getOperate: C,
|
|
2365
|
+
refreshList: h,
|
|
2366
|
+
listProps: T,
|
|
2367
|
+
formProps: K,
|
|
2368
|
+
descProps: R,
|
|
2323
2369
|
modalProps: H
|
|
2324
|
-
}),
|
|
2325
|
-
sendCurdEvent:
|
|
2326
|
-
refreshList:
|
|
2370
|
+
}), a({
|
|
2371
|
+
sendCurdEvent: E,
|
|
2372
|
+
refreshList: h
|
|
2327
2373
|
}), () => {
|
|
2328
|
-
var
|
|
2329
|
-
return (
|
|
2374
|
+
var M;
|
|
2375
|
+
return (M = t.default) == null ? void 0 : M.call(t);
|
|
2330
2376
|
};
|
|
2331
2377
|
}
|
|
2332
|
-
}),
|
|
2378
|
+
}), ze = w({
|
|
2333
2379
|
props: {
|
|
2334
|
-
|
|
2380
|
+
...A(we.props, "state", "requests"),
|
|
2335
2381
|
...mt.props,
|
|
2336
2382
|
curdState: {
|
|
2337
2383
|
type: Object
|
|
@@ -2339,478 +2385,487 @@ const gr = () => ({
|
|
|
2339
2385
|
},
|
|
2340
2386
|
setup: (e, {
|
|
2341
2387
|
slots: t,
|
|
2342
|
-
expose:
|
|
2388
|
+
expose: a
|
|
2343
2389
|
}) => {
|
|
2344
2390
|
const {
|
|
2345
|
-
elementMap:
|
|
2391
|
+
elementMap: o,
|
|
2346
2392
|
formElementMap: r
|
|
2347
|
-
} = ee(), n = G(),
|
|
2393
|
+
} = ee(), n = G(), u = G(), c = e.curdState || Ne({
|
|
2348
2394
|
detailData: {}
|
|
2349
|
-
}),
|
|
2350
|
-
[
|
|
2351
|
-
convertParams: (
|
|
2352
|
-
convertData: (
|
|
2353
|
-
var
|
|
2354
|
-
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;
|
|
2355
2401
|
},
|
|
2356
2402
|
loadingName: "listLoading",
|
|
2357
2403
|
stateName: "listData"
|
|
2358
2404
|
},
|
|
2359
|
-
[
|
|
2360
|
-
convertParams: (
|
|
2361
|
-
convertData: (
|
|
2362
|
-
var
|
|
2363
|
-
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;
|
|
2364
2410
|
},
|
|
2365
2411
|
loadingName: "detailLoading",
|
|
2366
2412
|
stateName: "detailData",
|
|
2367
2413
|
label: "\u8BE6\u60C5"
|
|
2368
2414
|
},
|
|
2369
|
-
[
|
|
2370
|
-
convertParams: (
|
|
2415
|
+
[x.ADD]: {
|
|
2416
|
+
convertParams: (y, v) => ({
|
|
2371
2417
|
body: {
|
|
2372
|
-
...
|
|
2373
|
-
...
|
|
2418
|
+
...v,
|
|
2419
|
+
...y
|
|
2374
2420
|
}
|
|
2375
2421
|
}),
|
|
2376
2422
|
loadingName: "operateLoading",
|
|
2377
2423
|
label: "\u6DFB\u52A0"
|
|
2378
2424
|
},
|
|
2379
|
-
[
|
|
2380
|
-
convertParams: (
|
|
2425
|
+
[x.EDIT]: {
|
|
2426
|
+
convertParams: (y, v) => ({
|
|
2381
2427
|
body: {
|
|
2382
|
-
...
|
|
2383
|
-
...
|
|
2428
|
+
...v,
|
|
2429
|
+
...y
|
|
2384
2430
|
}
|
|
2385
2431
|
}),
|
|
2386
2432
|
loadingName: "operateLoading",
|
|
2387
2433
|
label: "\u7F16\u8F91"
|
|
2388
2434
|
},
|
|
2389
|
-
[
|
|
2390
|
-
convertParams: (
|
|
2435
|
+
[x.DELETE]: {
|
|
2436
|
+
convertParams: (y, v) => V(y, v),
|
|
2391
2437
|
label: "\u5220\u9664"
|
|
2392
2438
|
}
|
|
2393
|
-
},
|
|
2394
|
-
var
|
|
2395
|
-
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;
|
|
2396
2442
|
return {
|
|
2397
|
-
...
|
|
2398
|
-
...
|
|
2443
|
+
...v,
|
|
2444
|
+
...p
|
|
2399
2445
|
};
|
|
2400
|
-
}), P =
|
|
2401
|
-
return
|
|
2402
|
-
sendCurdEvent: (
|
|
2403
|
-
var
|
|
2404
|
-
(
|
|
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);
|
|
2405
2451
|
},
|
|
2406
|
-
refreshList: (
|
|
2407
|
-
var
|
|
2408
|
-
(
|
|
2452
|
+
refreshList: (y) => {
|
|
2453
|
+
var v;
|
|
2454
|
+
(v = u.value) == null || v.refreshList(y);
|
|
2409
2455
|
},
|
|
2410
|
-
sendEvent: (
|
|
2411
|
-
var
|
|
2412
|
-
(
|
|
2456
|
+
sendEvent: (y) => {
|
|
2457
|
+
var v;
|
|
2458
|
+
(v = n.value) == null || v.sendEvent(y);
|
|
2413
2459
|
},
|
|
2414
|
-
sendRequest: (
|
|
2415
|
-
var
|
|
2416
|
-
(
|
|
2460
|
+
sendRequest: (y, ...v) => {
|
|
2461
|
+
var p;
|
|
2462
|
+
(p = n.value) == null || p.sendRequest(y, ...v);
|
|
2417
2463
|
}
|
|
2418
|
-
}), () =>
|
|
2464
|
+
}), () => s(we, O({
|
|
2419
2465
|
ref: n
|
|
2420
|
-
}, V(e,
|
|
2421
|
-
elementMap: e.elementMap ||
|
|
2422
|
-
state:
|
|
2466
|
+
}, V(e, b), {
|
|
2467
|
+
elementMap: e.elementMap || o,
|
|
2468
|
+
state: c,
|
|
2423
2469
|
requests: P
|
|
2424
2470
|
}), {
|
|
2425
|
-
default: () => [
|
|
2426
|
-
ref:
|
|
2427
|
-
},
|
|
2471
|
+
default: () => [s(mt, O({
|
|
2472
|
+
ref: u
|
|
2473
|
+
}, A(e, ...b, "curdState", "operates", "convertOperate"), {
|
|
2428
2474
|
formElementMap: e.formElementMap || r,
|
|
2429
|
-
operates:
|
|
2475
|
+
operates: i
|
|
2430
2476
|
}), t)]
|
|
2431
2477
|
});
|
|
2432
2478
|
}
|
|
2433
|
-
}),
|
|
2479
|
+
}), Ir = () => ({
|
|
2434
2480
|
defaultAddRecord: {
|
|
2435
2481
|
type: Object
|
|
2436
2482
|
}
|
|
2437
|
-
}),
|
|
2483
|
+
}), Be = w({
|
|
2438
2484
|
props: {
|
|
2439
|
-
...
|
|
2485
|
+
...Ir()
|
|
2440
2486
|
},
|
|
2441
2487
|
setup: (e) => {
|
|
2442
|
-
var
|
|
2488
|
+
var v;
|
|
2443
2489
|
const {
|
|
2444
2490
|
dispatch: t,
|
|
2445
|
-
sendRequest:
|
|
2491
|
+
sendRequest: a
|
|
2446
2492
|
} = be(), {
|
|
2447
|
-
rowKey:
|
|
2493
|
+
rowKey: o,
|
|
2448
2494
|
curdState: r,
|
|
2449
2495
|
listProps: n,
|
|
2450
|
-
getOperate:
|
|
2451
|
-
refreshList:
|
|
2452
|
-
} = re(),
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2496
|
+
getOperate: u,
|
|
2497
|
+
refreshList: c
|
|
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({
|
|
2455
2501
|
type: "detailData",
|
|
2456
|
-
payload: Ct(
|
|
2502
|
+
payload: Ct(p)
|
|
2457
2503
|
});
|
|
2458
|
-
}, P = (
|
|
2459
|
-
record:
|
|
2504
|
+
}, P = (p, {
|
|
2505
|
+
record: l
|
|
2460
2506
|
}) => {
|
|
2461
|
-
|
|
2507
|
+
p === j.EMIT && (t({
|
|
2462
2508
|
type: "mode",
|
|
2463
2509
|
payload: de.DETAIL
|
|
2464
|
-
}),
|
|
2465
|
-
},
|
|
2466
|
-
|
|
2510
|
+
}), i(l));
|
|
2511
|
+
}, b = (p) => {
|
|
2512
|
+
p === j.EMIT ? (t({
|
|
2467
2513
|
type: "mode",
|
|
2468
2514
|
payload: de.ADD
|
|
2469
2515
|
}), t({
|
|
2470
2516
|
type: "detailData",
|
|
2471
2517
|
payload: e.defaultAddRecord || {}
|
|
2472
|
-
})) :
|
|
2518
|
+
})) : p === j.SUCCESS && (d && (d.page = 1), c(), r.addAction === Ie.CONTINUE ? t({
|
|
2473
2519
|
type: "detailData",
|
|
2474
2520
|
payload: e.defaultAddRecord || {}
|
|
2475
2521
|
}) : t({
|
|
2476
2522
|
type: "mode",
|
|
2477
2523
|
payload: void 0
|
|
2478
2524
|
}));
|
|
2479
|
-
},
|
|
2480
|
-
record:
|
|
2525
|
+
}, y = (p, {
|
|
2526
|
+
record: l
|
|
2481
2527
|
}) => {
|
|
2482
|
-
|
|
2528
|
+
p === j.EMIT ? (t({
|
|
2483
2529
|
type: "mode",
|
|
2484
2530
|
payload: de.EDIT
|
|
2485
|
-
}),
|
|
2531
|
+
}), i(l)) : p === j.SUCCESS && (t({
|
|
2486
2532
|
type: "mode",
|
|
2487
2533
|
payload: void 0
|
|
2488
|
-
}),
|
|
2534
|
+
}), c());
|
|
2489
2535
|
};
|
|
2490
2536
|
return Ye(({
|
|
2491
|
-
type:
|
|
2492
|
-
payload:
|
|
2493
|
-
source:
|
|
2537
|
+
type: p,
|
|
2538
|
+
payload: l,
|
|
2539
|
+
source: h
|
|
2494
2540
|
}) => {
|
|
2495
|
-
if (
|
|
2541
|
+
if (h)
|
|
2496
2542
|
return;
|
|
2497
|
-
let
|
|
2498
|
-
const
|
|
2499
|
-
switch (
|
|
2500
|
-
case
|
|
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:
|
|
2501
2547
|
P(f, {
|
|
2502
|
-
record:
|
|
2548
|
+
record: C
|
|
2503
2549
|
});
|
|
2504
2550
|
break;
|
|
2505
|
-
case
|
|
2506
|
-
|
|
2551
|
+
case x.ADD:
|
|
2552
|
+
b(f);
|
|
2507
2553
|
break;
|
|
2508
|
-
case
|
|
2509
|
-
|
|
2510
|
-
record:
|
|
2554
|
+
case x.EDIT:
|
|
2555
|
+
y(f, {
|
|
2556
|
+
record: C
|
|
2511
2557
|
});
|
|
2512
2558
|
break;
|
|
2513
2559
|
}
|
|
2514
2560
|
}), () => null;
|
|
2515
2561
|
}
|
|
2516
|
-
}),
|
|
2562
|
+
}), Sa = w({
|
|
2517
2563
|
props: {
|
|
2518
|
-
...
|
|
2519
|
-
...
|
|
2564
|
+
...ze.props,
|
|
2565
|
+
...Be.props
|
|
2520
2566
|
},
|
|
2521
2567
|
setup: (e, {
|
|
2522
2568
|
slots: t,
|
|
2523
|
-
expose:
|
|
2569
|
+
expose: a
|
|
2524
2570
|
}) => {
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
const r = z(
|
|
2528
|
-
return () =>
|
|
2529
|
-
ref:
|
|
2530
|
-
},
|
|
2571
|
+
const o = G();
|
|
2572
|
+
a(ge(Zt, o));
|
|
2573
|
+
const r = z(Be.props), u = Q()(U.ProCurdKey);
|
|
2574
|
+
return () => u ? s(u, O({
|
|
2575
|
+
ref: o
|
|
2576
|
+
}, A(e, r)), {
|
|
2531
2577
|
default: () => {
|
|
2532
|
-
var
|
|
2533
|
-
return [
|
|
2578
|
+
var c;
|
|
2579
|
+
return [s(Be, V(e, r), null), (c = t.default) == null ? void 0 : c.call(t)];
|
|
2534
2580
|
}
|
|
2535
2581
|
}) : null;
|
|
2536
2582
|
}
|
|
2537
|
-
}),
|
|
2583
|
+
}), Nr = () => ({
|
|
2538
2584
|
defaultAddRecord: {
|
|
2539
2585
|
type: Object
|
|
2540
2586
|
},
|
|
2541
2587
|
routeBack: {
|
|
2542
2588
|
type: Function
|
|
2543
2589
|
}
|
|
2544
|
-
}),
|
|
2590
|
+
}), qe = w({
|
|
2545
2591
|
props: {
|
|
2546
|
-
...
|
|
2592
|
+
...Nr()
|
|
2547
2593
|
},
|
|
2548
2594
|
setup: (e) => {
|
|
2549
|
-
const t =
|
|
2550
|
-
dispatch:
|
|
2595
|
+
const t = Ge(), a = Xe(), {
|
|
2596
|
+
dispatch: o,
|
|
2551
2597
|
sendRequest: r
|
|
2552
2598
|
} = be(), {
|
|
2553
2599
|
rowKey: n,
|
|
2554
|
-
curdState:
|
|
2555
|
-
} = re(),
|
|
2556
|
-
|
|
2600
|
+
curdState: u
|
|
2601
|
+
} = re(), c = (b) => {
|
|
2602
|
+
b === j.PAGE && (o({
|
|
2557
2603
|
type: "mode",
|
|
2558
2604
|
payload: void 0
|
|
2559
|
-
}),
|
|
2605
|
+
}), o({
|
|
2560
2606
|
type: "detailData",
|
|
2561
2607
|
payload: {}
|
|
2562
|
-
}),
|
|
2608
|
+
}), o({
|
|
2563
2609
|
type: "detailLoading",
|
|
2564
2610
|
payload: !1
|
|
2565
|
-
}),
|
|
2611
|
+
}), o({
|
|
2566
2612
|
type: "addAction",
|
|
2567
2613
|
payload: void 0
|
|
2568
2614
|
}));
|
|
2569
|
-
},
|
|
2570
|
-
record:
|
|
2615
|
+
}, d = (b, {
|
|
2616
|
+
record: y
|
|
2571
2617
|
}) => {
|
|
2572
|
-
|
|
2573
|
-
path: `${
|
|
2574
|
-
query: V(
|
|
2575
|
-
}) :
|
|
2618
|
+
b === j.EMIT ? t.push({
|
|
2619
|
+
path: `${a.path}/detail`,
|
|
2620
|
+
query: V(y, n)
|
|
2621
|
+
}) : b === j.PAGE && (o({
|
|
2576
2622
|
type: "mode",
|
|
2577
2623
|
payload: de.DETAIL
|
|
2578
|
-
}), r(
|
|
2579
|
-
},
|
|
2580
|
-
|
|
2581
|
-
path: `${
|
|
2582
|
-
}) :
|
|
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({
|
|
2583
2629
|
type: "mode",
|
|
2584
2630
|
payload: de.ADD
|
|
2585
|
-
}),
|
|
2631
|
+
}), o({
|
|
2586
2632
|
type: "detailData",
|
|
2587
2633
|
payload: e.defaultAddRecord || {}
|
|
2588
|
-
})) :
|
|
2634
|
+
})) : b === j.SUCCESS && (u.addAction === Ie.CONTINUE ? o({
|
|
2589
2635
|
type: "detailData",
|
|
2590
2636
|
payload: e.defaultAddRecord || {}
|
|
2591
|
-
}) : e.routeBack ? e.routeBack(
|
|
2592
|
-
}, P = (
|
|
2593
|
-
record:
|
|
2637
|
+
}) : e.routeBack ? e.routeBack(x.ADD) : t.go(-1));
|
|
2638
|
+
}, P = (b, {
|
|
2639
|
+
record: y
|
|
2594
2640
|
}) => {
|
|
2595
|
-
|
|
2596
|
-
path: `${
|
|
2597
|
-
query: V(
|
|
2598
|
-
}) :
|
|
2641
|
+
b === j.EMIT ? t.push({
|
|
2642
|
+
path: `${a.path}/edit`,
|
|
2643
|
+
query: V(y, n)
|
|
2644
|
+
}) : b === j.PAGE ? (o({
|
|
2599
2645
|
type: "mode",
|
|
2600
2646
|
payload: de.EDIT
|
|
2601
|
-
}), r(
|
|
2647
|
+
}), r(x.DETAIL, a.query, n)) : b === j.SUCCESS && (e.routeBack ? e.routeBack(x.EDIT) : t.go(-1));
|
|
2602
2648
|
};
|
|
2603
2649
|
return Ye(({
|
|
2604
|
-
type:
|
|
2605
|
-
payload:
|
|
2606
|
-
source:
|
|
2650
|
+
type: b,
|
|
2651
|
+
payload: y,
|
|
2652
|
+
source: v
|
|
2607
2653
|
}) => {
|
|
2608
|
-
if (
|
|
2654
|
+
if (v)
|
|
2609
2655
|
return;
|
|
2610
|
-
let
|
|
2611
|
-
const
|
|
2612
|
-
switch (
|
|
2613
|
-
case
|
|
2614
|
-
|
|
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);
|
|
2615
2661
|
break;
|
|
2616
|
-
case
|
|
2617
|
-
|
|
2618
|
-
record:
|
|
2662
|
+
case x.DETAIL:
|
|
2663
|
+
d(l, {
|
|
2664
|
+
record: h
|
|
2619
2665
|
});
|
|
2620
2666
|
break;
|
|
2621
|
-
case
|
|
2622
|
-
|
|
2667
|
+
case x.ADD:
|
|
2668
|
+
i(l);
|
|
2623
2669
|
break;
|
|
2624
|
-
case
|
|
2625
|
-
P(
|
|
2626
|
-
record:
|
|
2670
|
+
case x.EDIT:
|
|
2671
|
+
P(l, {
|
|
2672
|
+
record: h
|
|
2627
2673
|
});
|
|
2628
2674
|
break;
|
|
2629
2675
|
}
|
|
2630
2676
|
}), () => null;
|
|
2631
2677
|
}
|
|
2632
|
-
}),
|
|
2678
|
+
}), Pa = w({
|
|
2633
2679
|
props: {
|
|
2634
|
-
...
|
|
2635
|
-
...
|
|
2680
|
+
...ze.props,
|
|
2681
|
+
...qe.props
|
|
2636
2682
|
},
|
|
2637
2683
|
setup: (e, {
|
|
2638
2684
|
slots: t,
|
|
2639
|
-
expose:
|
|
2685
|
+
expose: a
|
|
2640
2686
|
}) => {
|
|
2641
|
-
const
|
|
2642
|
-
|
|
2643
|
-
const r = z(
|
|
2644
|
-
return () =>
|
|
2645
|
-
ref:
|
|
2646
|
-
},
|
|
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)), {
|
|
2647
2693
|
default: () => {
|
|
2648
2694
|
var n;
|
|
2649
|
-
return [
|
|
2695
|
+
return [s(qe, V(e, r), null), (n = t.default) == null ? void 0 : n.call(t)];
|
|
2650
2696
|
}
|
|
2651
2697
|
});
|
|
2652
2698
|
}
|
|
2653
|
-
}),
|
|
2699
|
+
}), yt = w({
|
|
2654
2700
|
props: {
|
|
2655
2701
|
buttonProps: Object
|
|
2656
2702
|
},
|
|
2657
2703
|
setup: (e, {
|
|
2658
2704
|
slots: t
|
|
2659
2705
|
}) => {
|
|
2660
|
-
const
|
|
2661
|
-
getOperate:
|
|
2706
|
+
const a = _t(), {
|
|
2707
|
+
getOperate: o,
|
|
2662
2708
|
sendCurdEvent: r
|
|
2663
|
-
} = re(), n =
|
|
2709
|
+
} = re(), n = o(x.ADD), u = () => {
|
|
2664
2710
|
if (n != null && n.onClick) {
|
|
2665
2711
|
n.onClick();
|
|
2666
2712
|
return;
|
|
2667
2713
|
}
|
|
2668
2714
|
r({
|
|
2669
|
-
action:
|
|
2670
|
-
type:
|
|
2715
|
+
action: x.ADD,
|
|
2716
|
+
type: j.EMIT
|
|
2671
2717
|
});
|
|
2672
|
-
},
|
|
2673
|
-
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({
|
|
2674
2720
|
class: "pro-curd-add-button",
|
|
2675
2721
|
disabled: X(n.disabled) ? n.disabled() : n.disabled
|
|
2676
2722
|
}, e.buttonProps, {
|
|
2677
|
-
onClick:
|
|
2723
|
+
onClick: u
|
|
2678
2724
|
}), {
|
|
2679
2725
|
default: () => [n.label]
|
|
2680
2726
|
}) : null;
|
|
2681
2727
|
}
|
|
2682
|
-
}),
|
|
2728
|
+
}), vt = () => ({
|
|
2683
2729
|
addConfig: {
|
|
2684
2730
|
type: Object,
|
|
2685
2731
|
default: {
|
|
2686
2732
|
inSearch: !0
|
|
2687
2733
|
}
|
|
2734
|
+
},
|
|
2735
|
+
activatedRefresh: {
|
|
2736
|
+
type: Boolean,
|
|
2737
|
+
default: !0
|
|
2688
2738
|
}
|
|
2689
|
-
}),
|
|
2739
|
+
}), $r = w({
|
|
2690
2740
|
props: {
|
|
2691
|
-
...
|
|
2692
|
-
...
|
|
2741
|
+
...br.props,
|
|
2742
|
+
...vt()
|
|
2693
2743
|
},
|
|
2694
2744
|
setup: (e, {
|
|
2695
2745
|
slots: t
|
|
2696
2746
|
}) => {
|
|
2697
2747
|
const {
|
|
2698
|
-
elementMap:
|
|
2699
|
-
formElementMap:
|
|
2748
|
+
elementMap: a,
|
|
2749
|
+
formElementMap: o,
|
|
2700
2750
|
curdState: r,
|
|
2701
2751
|
searchColumns: n,
|
|
2702
|
-
tableColumns:
|
|
2703
|
-
sendCurdEvent:
|
|
2704
|
-
operates:
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2752
|
+
tableColumns: u,
|
|
2753
|
+
sendCurdEvent: c,
|
|
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;
|
|
2709
2760
|
}),
|
|
2710
|
-
(
|
|
2711
|
-
const
|
|
2712
|
-
...V(
|
|
2713
|
-
value:
|
|
2761
|
+
(f) => {
|
|
2762
|
+
const C = {
|
|
2763
|
+
...V(f, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix"),
|
|
2764
|
+
value: f.action
|
|
2714
2765
|
};
|
|
2715
|
-
return
|
|
2716
|
-
|
|
2717
|
-
action:
|
|
2718
|
-
type:
|
|
2719
|
-
record:
|
|
2766
|
+
return C.onClick || (C.onClick = (T) => {
|
|
2767
|
+
c({
|
|
2768
|
+
action: f.action,
|
|
2769
|
+
type: j.EMIT,
|
|
2770
|
+
record: T
|
|
2720
2771
|
});
|
|
2721
|
-
}),
|
|
2772
|
+
}), C;
|
|
2722
2773
|
}
|
|
2723
|
-
),
|
|
2724
|
-
|
|
2725
|
-
action:
|
|
2726
|
-
type:
|
|
2727
|
-
values:
|
|
2774
|
+
), b = (f) => {
|
|
2775
|
+
c({
|
|
2776
|
+
action: x.LIST,
|
|
2777
|
+
type: j.EMIT,
|
|
2778
|
+
values: f
|
|
2728
2779
|
});
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2780
|
+
};
|
|
2781
|
+
$n(() => {
|
|
2782
|
+
e.activatedRefresh && i();
|
|
2783
|
+
});
|
|
2784
|
+
const y = N(() => ({
|
|
2785
|
+
formElementMap: o,
|
|
2731
2786
|
columns: n.value,
|
|
2732
2787
|
...e.searchProps
|
|
2733
|
-
})), v =
|
|
2734
|
-
var
|
|
2788
|
+
})), v = N(() => {
|
|
2789
|
+
var f, C;
|
|
2735
2790
|
return {
|
|
2736
|
-
elementMap:
|
|
2737
|
-
columns:
|
|
2791
|
+
elementMap: a,
|
|
2792
|
+
columns: u.value,
|
|
2738
2793
|
loading: r.listLoading,
|
|
2739
|
-
dataSource: (
|
|
2740
|
-
|
|
2794
|
+
dataSource: (f = r.listData) == null ? void 0 : f.dataSource,
|
|
2795
|
+
...A(e.tableProps, "operate"),
|
|
2741
2796
|
operate: {
|
|
2742
|
-
items:
|
|
2743
|
-
...(
|
|
2797
|
+
items: P,
|
|
2798
|
+
...(C = e.tableProps) == null ? void 0 : C.operate
|
|
2744
2799
|
}
|
|
2745
2800
|
};
|
|
2746
|
-
}),
|
|
2747
|
-
var
|
|
2801
|
+
}), p = N(() => {
|
|
2802
|
+
var f;
|
|
2748
2803
|
return e.paginationProps === !1 ? !1 : {
|
|
2749
|
-
total: (
|
|
2804
|
+
total: (f = r.listData) == null ? void 0 : f.total,
|
|
2750
2805
|
...e.paginationProps
|
|
2751
2806
|
};
|
|
2752
|
-
}),
|
|
2807
|
+
}), l = z(vt()), E = Q()(U.ProListKey);
|
|
2753
2808
|
return () => {
|
|
2754
|
-
var
|
|
2755
|
-
return
|
|
2809
|
+
var f, C;
|
|
2810
|
+
return E ? s(E, O({
|
|
2756
2811
|
class: "pro-curd-list"
|
|
2757
|
-
},
|
|
2758
|
-
searchProps:
|
|
2812
|
+
}, A(e, ...l, "searchProps", "tableProps", "paginationProps"), {
|
|
2813
|
+
searchProps: y.value,
|
|
2759
2814
|
tableProps: v.value,
|
|
2760
|
-
paginationProps:
|
|
2761
|
-
onSearch:
|
|
2815
|
+
paginationProps: p.value,
|
|
2816
|
+
onSearch: b
|
|
2762
2817
|
}), {
|
|
2763
|
-
"search-end": (
|
|
2764
|
-
var
|
|
2765
|
-
return
|
|
2818
|
+
"search-end": (f = e.addConfig) != null && f.inSearch ? () => {
|
|
2819
|
+
var T;
|
|
2820
|
+
return s("div", {
|
|
2766
2821
|
class: "pro-curd-list-search-end"
|
|
2767
|
-
}, [
|
|
2822
|
+
}, [s(yt, (T = e.addConfig) == null ? void 0 : T.buttonProps, null)]);
|
|
2768
2823
|
} : void 0,
|
|
2769
|
-
"table-toolbarExtra": (
|
|
2770
|
-
var
|
|
2771
|
-
return
|
|
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]);
|
|
2772
2827
|
} : void 0,
|
|
2773
2828
|
...t,
|
|
2774
|
-
search: t.search ? (
|
|
2775
|
-
table: t.table ? (
|
|
2776
|
-
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
|
|
2777
2832
|
}) : null;
|
|
2778
2833
|
};
|
|
2779
2834
|
}
|
|
2780
|
-
}),
|
|
2835
|
+
}), pa = w(() => {
|
|
2781
2836
|
const {
|
|
2782
2837
|
listProps: e
|
|
2783
2838
|
} = re();
|
|
2784
|
-
return () =>
|
|
2785
|
-
}),
|
|
2839
|
+
return () => s($r, A(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
|
|
2840
|
+
}), Ar = () => ({
|
|
2786
2841
|
signName: {
|
|
2787
2842
|
type: String
|
|
2788
2843
|
}
|
|
2789
2844
|
}), et = w({
|
|
2790
2845
|
props: {
|
|
2791
|
-
...
|
|
2846
|
+
...Ar()
|
|
2792
2847
|
},
|
|
2793
2848
|
setup: (e, {
|
|
2794
2849
|
slots: t,
|
|
2795
|
-
expose:
|
|
2796
|
-
attrs:
|
|
2850
|
+
expose: a,
|
|
2851
|
+
attrs: o
|
|
2797
2852
|
}) => {
|
|
2798
2853
|
const {
|
|
2799
2854
|
elementMap: r,
|
|
2800
2855
|
formElementMap: n,
|
|
2801
|
-
curdState:
|
|
2802
|
-
formColumns:
|
|
2803
|
-
getSignColumns:
|
|
2804
|
-
sendCurdEvent:
|
|
2856
|
+
curdState: u,
|
|
2857
|
+
formColumns: c,
|
|
2858
|
+
getSignColumns: d,
|
|
2859
|
+
sendCurdEvent: i
|
|
2805
2860
|
} = re(), P = G();
|
|
2806
|
-
|
|
2807
|
-
const
|
|
2861
|
+
a(ge(e.formMethods || [], P));
|
|
2862
|
+
const b = N(() => e.signName ? d(e.signName) : c.value), y = () => {
|
|
2808
2863
|
var f;
|
|
2809
|
-
|
|
2810
|
-
},
|
|
2864
|
+
u.addAction = Ie.NORMAL, (f = P.value) == null || f.submit();
|
|
2865
|
+
}, v = () => {
|
|
2811
2866
|
var f;
|
|
2812
|
-
|
|
2813
|
-
},
|
|
2867
|
+
u.addAction = Ie.CONTINUE, (f = P.value) == null || f.submit();
|
|
2868
|
+
}, p = [
|
|
2814
2869
|
{
|
|
2815
2870
|
value: te.RESET,
|
|
2816
2871
|
label: "\u91CD\u7F6E"
|
|
@@ -2830,73 +2885,73 @@ const gr = () => ({
|
|
|
2830
2885
|
},
|
|
2831
2886
|
show: !1
|
|
2832
2887
|
}
|
|
2833
|
-
],
|
|
2834
|
-
|
|
2835
|
-
action:
|
|
2836
|
-
type:
|
|
2888
|
+
], l = (f) => {
|
|
2889
|
+
o.onFinish || (u.mode === x.EDIT ? i({
|
|
2890
|
+
action: x.EDIT,
|
|
2891
|
+
type: j.EXECUTE,
|
|
2837
2892
|
values: f
|
|
2838
|
-
}) :
|
|
2839
|
-
action:
|
|
2840
|
-
type:
|
|
2893
|
+
}) : i({
|
|
2894
|
+
action: x.ADD,
|
|
2895
|
+
type: j.EXECUTE,
|
|
2841
2896
|
values: f
|
|
2842
2897
|
}));
|
|
2843
|
-
},
|
|
2844
|
-
return () =>
|
|
2898
|
+
}, E = Q()(U.ProFormKey);
|
|
2899
|
+
return () => E ? s(E, O({
|
|
2845
2900
|
ref: P,
|
|
2846
2901
|
class: "pro-curd-form"
|
|
2847
|
-
},
|
|
2902
|
+
}, A(e, "operate"), {
|
|
2848
2903
|
elementMap: e.elementMap || r,
|
|
2849
2904
|
formElementMap: e.formElementMap || n,
|
|
2850
|
-
columns: e.columns ||
|
|
2851
|
-
readonly:
|
|
2852
|
-
model: e.model ||
|
|
2853
|
-
hideRequiredMark:
|
|
2905
|
+
columns: e.columns || b.value,
|
|
2906
|
+
readonly: u.mode === x.DETAIL,
|
|
2907
|
+
model: e.model || u.detailData,
|
|
2908
|
+
hideRequiredMark: u.mode === x.DETAIL,
|
|
2854
2909
|
operate: e.operate ? {
|
|
2855
|
-
items:
|
|
2856
|
-
onSubmit:
|
|
2857
|
-
onContinue:
|
|
2910
|
+
items: p,
|
|
2911
|
+
onSubmit: y,
|
|
2912
|
+
onContinue: v,
|
|
2858
2913
|
...e.operate
|
|
2859
2914
|
} : void 0,
|
|
2860
|
-
onFinish:
|
|
2915
|
+
onFinish: l
|
|
2861
2916
|
}), t) : null;
|
|
2862
2917
|
}
|
|
2863
|
-
}),
|
|
2918
|
+
}), Ca = w(() => {
|
|
2864
2919
|
const {
|
|
2865
2920
|
formProps: e
|
|
2866
2921
|
} = re();
|
|
2867
|
-
return () =>
|
|
2868
|
-
}),
|
|
2922
|
+
return () => s(et, A(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
|
|
2923
|
+
}), Or = () => ({
|
|
2869
2924
|
signName: {
|
|
2870
2925
|
type: String
|
|
2871
2926
|
}
|
|
2872
|
-
}),
|
|
2927
|
+
}), wr = w({
|
|
2873
2928
|
props: {
|
|
2874
|
-
...
|
|
2929
|
+
...Or()
|
|
2875
2930
|
},
|
|
2876
2931
|
setup: (e, {
|
|
2877
2932
|
slots: t
|
|
2878
2933
|
}) => {
|
|
2879
2934
|
const {
|
|
2880
|
-
curdState:
|
|
2881
|
-
descColumns:
|
|
2935
|
+
curdState: a,
|
|
2936
|
+
descColumns: o,
|
|
2882
2937
|
getSignColumns: r
|
|
2883
|
-
} = re(), n =
|
|
2884
|
-
return () =>
|
|
2885
|
-
model: e.model ||
|
|
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,
|
|
2886
2941
|
columns: n.value
|
|
2887
2942
|
}), t);
|
|
2888
2943
|
}
|
|
2889
|
-
}),
|
|
2944
|
+
}), Ea = w(() => {
|
|
2890
2945
|
const {
|
|
2891
2946
|
descProps: e
|
|
2892
2947
|
} = re();
|
|
2893
|
-
return () =>
|
|
2948
|
+
return () => s(wr, O({
|
|
2894
2949
|
class: "pro-curd-desc"
|
|
2895
|
-
},
|
|
2896
|
-
}),
|
|
2950
|
+
}, A(e == null ? void 0 : e.value, "slots")), m(e == null ? void 0 : e.value, "slots"));
|
|
2951
|
+
}), ht = () => ({
|
|
2897
2952
|
validMode: {
|
|
2898
2953
|
type: Array,
|
|
2899
|
-
default: [
|
|
2954
|
+
default: [x.ADD, x.DETAIL, x.EDIT]
|
|
2900
2955
|
},
|
|
2901
2956
|
loadingOpts: {
|
|
2902
2957
|
type: Object
|
|
@@ -2904,48 +2959,48 @@ const gr = () => ({
|
|
|
2904
2959
|
overrideProps: {
|
|
2905
2960
|
type: Object
|
|
2906
2961
|
}
|
|
2907
|
-
}),
|
|
2962
|
+
}), en = w({
|
|
2908
2963
|
props: {
|
|
2909
|
-
...
|
|
2964
|
+
...ht()
|
|
2910
2965
|
},
|
|
2911
2966
|
setup: (e, {
|
|
2912
2967
|
slots: t
|
|
2913
2968
|
}) => {
|
|
2914
|
-
const
|
|
2969
|
+
const a = Q(), o = a(U.ModalKey), r = a(U.LoadingKey), {
|
|
2915
2970
|
curdState: n,
|
|
2916
|
-
getOperate:
|
|
2917
|
-
} = re(),
|
|
2918
|
-
n.mode = void 0,
|
|
2919
|
-
},
|
|
2971
|
+
getOperate: u
|
|
2972
|
+
} = re(), c = () => {
|
|
2973
|
+
n.mode = void 0, Et(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
|
|
2974
|
+
}, d = z(ht());
|
|
2920
2975
|
return () => {
|
|
2921
2976
|
var P;
|
|
2922
|
-
const
|
|
2923
|
-
return !
|
|
2977
|
+
const i = n.mode;
|
|
2978
|
+
return !fe(e.validMode, (b) => b === i) || !o ? null : s(o, O({
|
|
2924
2979
|
class: "pro-curd-modal"
|
|
2925
|
-
},
|
|
2926
|
-
visible:
|
|
2927
|
-
title: e.title || ((P =
|
|
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),
|
|
2928
2983
|
confirmLoading: n.operateLoading,
|
|
2929
|
-
maskClosable: n.mode ===
|
|
2930
|
-
footer: n.mode ===
|
|
2984
|
+
maskClosable: n.mode === x.DETAIL,
|
|
2985
|
+
footer: n.mode === x.DETAIL ? !1 : void 0
|
|
2931
2986
|
}, e.overrideProps, {
|
|
2932
|
-
onCancel:
|
|
2987
|
+
onCancel: c
|
|
2933
2988
|
}), {
|
|
2934
2989
|
default: () => {
|
|
2935
|
-
var
|
|
2936
|
-
return [n.detailLoading && r ?
|
|
2990
|
+
var b;
|
|
2991
|
+
return [n.detailLoading && r ? s(r, O({
|
|
2937
2992
|
loading: !0
|
|
2938
2993
|
}, e.loadingOpts), {
|
|
2939
|
-
default: () => [
|
|
2994
|
+
default: () => [s("div", {
|
|
2940
2995
|
class: "pro-curd-modal-loading-dom"
|
|
2941
2996
|
}, null)]
|
|
2942
|
-
}) : (
|
|
2997
|
+
}) : (b = t.default) == null ? void 0 : b.call(t)];
|
|
2943
2998
|
},
|
|
2944
|
-
|
|
2999
|
+
...A(t, "default")
|
|
2945
3000
|
});
|
|
2946
3001
|
};
|
|
2947
3002
|
}
|
|
2948
|
-
}),
|
|
3003
|
+
}), Ma = w({
|
|
2949
3004
|
props: {
|
|
2950
3005
|
modalProps: Object,
|
|
2951
3006
|
formProps: Object
|
|
@@ -2953,134 +3008,136 @@ const gr = () => ({
|
|
|
2953
3008
|
setup: (e, {
|
|
2954
3009
|
slots: t
|
|
2955
3010
|
}) => {
|
|
2956
|
-
const
|
|
2957
|
-
return () =>
|
|
3011
|
+
const a = G(), o = se(t, "modal"), r = se(t, "form");
|
|
3012
|
+
return () => s(en, O(e.modalProps, {
|
|
2958
3013
|
onOk: () => {
|
|
2959
3014
|
var n;
|
|
2960
|
-
(n =
|
|
3015
|
+
(n = a.value) == null || n.submit();
|
|
2961
3016
|
}
|
|
2962
3017
|
}), {
|
|
2963
|
-
default: () => [
|
|
2964
|
-
ref:
|
|
3018
|
+
default: () => [s(et, O({
|
|
3019
|
+
ref: a
|
|
2965
3020
|
}, e.formProps), r)],
|
|
2966
|
-
...
|
|
3021
|
+
...o
|
|
2967
3022
|
});
|
|
2968
3023
|
}
|
|
2969
|
-
}),
|
|
3024
|
+
}), Ta = w(() => {
|
|
2970
3025
|
const {
|
|
2971
3026
|
modalProps: e,
|
|
2972
3027
|
formProps: t
|
|
2973
|
-
} = re(),
|
|
2974
|
-
return () =>
|
|
3028
|
+
} = re(), a = G();
|
|
3029
|
+
return () => s(en, O(A(e == null ? void 0 : e.value, "slots"), {
|
|
2975
3030
|
onOk: () => {
|
|
2976
|
-
var
|
|
2977
|
-
(
|
|
3031
|
+
var o;
|
|
3032
|
+
(o = a.value) == null || o.submit();
|
|
2978
3033
|
}
|
|
2979
3034
|
}), {
|
|
2980
|
-
default: () => [
|
|
2981
|
-
ref:
|
|
2982
|
-
},
|
|
2983
|
-
...
|
|
3035
|
+
default: () => [s(et, O({
|
|
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")
|
|
2984
3039
|
});
|
|
2985
3040
|
});
|
|
2986
3041
|
export {
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3042
|
+
yt as AddButton,
|
|
3043
|
+
ir as ColumnSetting,
|
|
3044
|
+
x as CurdAction,
|
|
2990
3045
|
Ie as CurdAddAction,
|
|
2991
3046
|
de as CurdCurrentMode,
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3047
|
+
Zt as CurdMethods,
|
|
3048
|
+
j as CurdSubAction,
|
|
3049
|
+
U as ElementKeys,
|
|
2995
3050
|
te as FormAction,
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
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,
|
|
3006
3061
|
et as ProCurdForm,
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
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,
|
|
3016
3071
|
Se as ProGrid,
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3072
|
+
va as ProLayout,
|
|
3073
|
+
br as ProList,
|
|
3074
|
+
Sa as ProModalCurd,
|
|
3020
3075
|
we as ProModule,
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
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,
|
|
3034
3089
|
Me as RequestAction,
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3090
|
+
kn as RouterMethods,
|
|
3091
|
+
Le as SearchMode,
|
|
3092
|
+
_n as Wrapper,
|
|
3093
|
+
Ut as convertPathToList,
|
|
3094
|
+
Rn as convertResData,
|
|
3039
3095
|
ge as createExpose,
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3096
|
+
Jr as createExposeObj,
|
|
3097
|
+
ra as createFormItemCompFn,
|
|
3098
|
+
ga as createModule,
|
|
3099
|
+
Wr as createProConfig,
|
|
3100
|
+
vr as defaultPage,
|
|
3101
|
+
se as filterSlotsByPrefix,
|
|
3046
3102
|
ie as getColumnFormItemName,
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
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,
|
|
3055
3112
|
he as proBaseProps,
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3113
|
+
Mr as provideProCurd,
|
|
3114
|
+
Vt as provideProFormList,
|
|
3115
|
+
Hn as provideProModule,
|
|
3059
3116
|
Te as renderElement,
|
|
3060
3117
|
Ze as renderElements,
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
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,
|
|
3074
3131
|
Ye as useModuleEvent,
|
|
3075
3132
|
ee as useProConfig,
|
|
3076
3133
|
re as useProCurd,
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3134
|
+
Ht as useProForm,
|
|
3135
|
+
qt as useProFormList,
|
|
3136
|
+
Vr as useProModal,
|
|
3080
3137
|
be as useProModule,
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3138
|
+
qr as useProMsg,
|
|
3139
|
+
zr as useProNotify,
|
|
3140
|
+
Lt as useProRouter,
|
|
3141
|
+
dr as useProTable,
|
|
3142
|
+
Yr as useReadStore
|
|
3086
3143
|
};
|