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