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