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