@vue-start/pro 0.5.38 → 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 +121 -1
- package/dist/index.es.js +1958 -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$",
|
|
@@ -628,20 +630,22 @@ const qn = () => ({
|
|
|
628
630
|
TableKey: "Table$",
|
|
629
631
|
TableOperateKey: "TableOperate$",
|
|
630
632
|
UploaderKey: "Uploader$",
|
|
633
|
+
EmptyKey: "Empty$",
|
|
634
|
+
DropdownKey: "Dropdown$",
|
|
631
635
|
ProFormKey: "ProForm$",
|
|
632
636
|
ProSearchFormKey: "ProSearchForm$",
|
|
633
637
|
ProTableKey: "ProTable$",
|
|
634
638
|
ProCurdKey: "ProCurd$",
|
|
635
639
|
ProListKey: "ProList$",
|
|
636
640
|
ProPageKey: "ProPage$"
|
|
637
|
-
},
|
|
638
|
-
const { elementMap: e } =
|
|
639
|
-
return (t) =>
|
|
641
|
+
}, Z = () => {
|
|
642
|
+
const { elementMap: e } = re();
|
|
643
|
+
return (t) => p(e, t);
|
|
640
644
|
};
|
|
641
|
-
function
|
|
642
|
-
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);
|
|
643
647
|
}
|
|
644
|
-
const
|
|
648
|
+
const pr = () => ({
|
|
645
649
|
row: {
|
|
646
650
|
type: Object,
|
|
647
651
|
default: void 0
|
|
@@ -652,69 +656,69 @@ const ur = () => ({
|
|
|
652
656
|
items: {
|
|
653
657
|
type: Array
|
|
654
658
|
}
|
|
655
|
-
}),
|
|
659
|
+
}), Ce = A({
|
|
656
660
|
props: {
|
|
657
|
-
...
|
|
661
|
+
...pr()
|
|
658
662
|
},
|
|
659
663
|
setup: (e) => {
|
|
660
|
-
const t =
|
|
664
|
+
const t = Z(), a = t(q.RowKey), o = t(q.ColKey);
|
|
661
665
|
return () => {
|
|
662
|
-
let
|
|
663
|
-
return !
|
|
666
|
+
let r;
|
|
667
|
+
return !a || !o ? null : i(a, e.row, gr(r = F(e.items, (n) => i(o, $({
|
|
664
668
|
key: n.rowKey
|
|
665
669
|
}, e.col, n.col), {
|
|
666
670
|
default: () => [n.vNode]
|
|
667
|
-
}))) ?
|
|
668
|
-
default: () => [
|
|
671
|
+
}))) ? r : {
|
|
672
|
+
default: () => [r]
|
|
669
673
|
});
|
|
670
674
|
};
|
|
671
675
|
}
|
|
672
|
-
}),
|
|
676
|
+
}), Sr = (e, t, a) => {
|
|
673
677
|
if (t) {
|
|
674
|
-
const o = Y(
|
|
675
|
-
return
|
|
678
|
+
const o = X(Y(t), (r) => !t[r]);
|
|
679
|
+
return D(e, o);
|
|
676
680
|
}
|
|
677
|
-
if (
|
|
678
|
-
const o = Y(
|
|
679
|
-
return
|
|
681
|
+
if (a) {
|
|
682
|
+
const o = X(Y(a), (r) => !a[r](e));
|
|
683
|
+
return D(e, o);
|
|
680
684
|
}
|
|
681
685
|
return e;
|
|
682
|
-
},
|
|
686
|
+
}, Zt = (e) => {
|
|
683
687
|
if (!!e)
|
|
684
|
-
return
|
|
685
|
-
},
|
|
686
|
-
const
|
|
687
|
-
return !n ||
|
|
688
|
-
if (
|
|
689
|
-
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;
|
|
690
694
|
});
|
|
691
|
-
}),
|
|
692
|
-
const
|
|
695
|
+
}), Pe = (e, t) => {
|
|
696
|
+
const a = ae(
|
|
693
697
|
e,
|
|
694
|
-
(o,
|
|
698
|
+
(o, r) => ({
|
|
695
699
|
...o,
|
|
696
|
-
[
|
|
697
|
-
var u,
|
|
698
|
-
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);
|
|
699
703
|
}
|
|
700
704
|
}),
|
|
701
705
|
{}
|
|
702
706
|
);
|
|
703
|
-
return
|
|
704
|
-
},
|
|
705
|
-
const o = { originRef: e, ...
|
|
706
|
-
return t &&
|
|
707
|
-
o[
|
|
708
|
-
var u,
|
|
709
|
-
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);
|
|
710
714
|
};
|
|
711
715
|
}), o;
|
|
712
|
-
},
|
|
713
|
-
const
|
|
714
|
-
return
|
|
715
|
-
},
|
|
716
|
-
|
|
717
|
-
},
|
|
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({
|
|
718
722
|
props: {
|
|
719
723
|
pathList: {
|
|
720
724
|
type: Array
|
|
@@ -722,13 +726,13 @@ const ur = () => ({
|
|
|
722
726
|
},
|
|
723
727
|
setup: (e, {
|
|
724
728
|
slots: t
|
|
725
|
-
}) => (
|
|
729
|
+
}) => (nn({
|
|
726
730
|
pathList: e.pathList
|
|
727
731
|
}), () => {
|
|
728
|
-
var
|
|
729
|
-
return (
|
|
732
|
+
var a;
|
|
733
|
+
return (a = t.default) == null ? void 0 : a.call(t);
|
|
730
734
|
})
|
|
731
|
-
}),
|
|
735
|
+
}), Pt = () => ({
|
|
732
736
|
rowKey: {
|
|
733
737
|
type: String,
|
|
734
738
|
default: "id"
|
|
@@ -765,120 +769,120 @@ const ur = () => ({
|
|
|
765
769
|
onRemove: {
|
|
766
770
|
type: Function
|
|
767
771
|
}
|
|
768
|
-
}),
|
|
772
|
+
}), Da = A({
|
|
769
773
|
props: {
|
|
770
|
-
...
|
|
771
|
-
|
|
774
|
+
...Pt(),
|
|
775
|
+
...D(Ce.props, "items")
|
|
772
776
|
},
|
|
773
777
|
setup: (e, {
|
|
774
778
|
slots: t
|
|
775
779
|
}) => {
|
|
776
|
-
const o =
|
|
777
|
-
formState:
|
|
780
|
+
const o = Z()(q.FormItemKey), {
|
|
781
|
+
formState: r,
|
|
778
782
|
readonly: n,
|
|
779
783
|
elementMap: u,
|
|
780
|
-
formElementMap:
|
|
781
|
-
} =
|
|
784
|
+
formElementMap: l
|
|
785
|
+
} = an(), s = tn(), d = Zt(e.name), v = s != null && s.pathList ? [...s.pathList, ...d] : d, [b, h] = et(), S = () => {
|
|
782
786
|
var E;
|
|
783
787
|
if (((E = e.onPreAdd) == null ? void 0 : E.call(e)) === !0)
|
|
784
788
|
return;
|
|
785
|
-
const
|
|
786
|
-
let
|
|
787
|
-
|
|
789
|
+
const M = () => {
|
|
790
|
+
let N = p(r, v);
|
|
791
|
+
Q(N) || (N = []), N.push({
|
|
788
792
|
[e.rowKey]: new Date().valueOf()
|
|
789
|
-
}), ie(
|
|
793
|
+
}), ie(r, v, N);
|
|
790
794
|
};
|
|
791
795
|
if (e.onAdd) {
|
|
792
|
-
e.onAdd(
|
|
796
|
+
e.onAdd(M);
|
|
793
797
|
return;
|
|
794
798
|
}
|
|
795
|
-
|
|
796
|
-
},
|
|
797
|
-
var
|
|
798
|
-
if (((
|
|
799
|
-
index:
|
|
800
|
-
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
|
|
801
805
|
})) === !0)
|
|
802
806
|
return;
|
|
803
|
-
const
|
|
804
|
-
const
|
|
805
|
-
|
|
807
|
+
const N = () => {
|
|
808
|
+
const U = p(r, v);
|
|
809
|
+
_(U) <= 0 || (U.splice(f, 1), h());
|
|
806
810
|
};
|
|
807
811
|
if (e.onRemove) {
|
|
808
|
-
e.onRemove(
|
|
809
|
-
index:
|
|
810
|
-
item:
|
|
812
|
+
e.onRemove(N, {
|
|
813
|
+
index: f,
|
|
814
|
+
item: M
|
|
811
815
|
});
|
|
812
816
|
return;
|
|
813
817
|
}
|
|
814
|
-
|
|
815
|
-
},
|
|
816
|
-
const E = de(
|
|
818
|
+
N();
|
|
819
|
+
}, g = (f, M) => {
|
|
820
|
+
const E = de(f);
|
|
817
821
|
return E && t[E] ? t[E]({
|
|
818
|
-
item:
|
|
819
|
-
formState:
|
|
820
|
-
pathList:
|
|
821
|
-
}) :
|
|
822
|
-
},
|
|
823
|
-
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)
|
|
824
828
|
return null;
|
|
825
829
|
if (!e.row)
|
|
826
|
-
return F(e.columns, (
|
|
827
|
-
const E = F(e.columns, (
|
|
828
|
-
rowKey: de(
|
|
829
|
-
vNode:
|
|
830
|
-
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"])
|
|
831
835
|
}));
|
|
832
|
-
return i(
|
|
836
|
+
return i(Ce, {
|
|
833
837
|
row: e.row,
|
|
834
838
|
col: e.col,
|
|
835
839
|
items: E
|
|
836
840
|
}, null);
|
|
837
|
-
},
|
|
838
|
-
return () => o ? i(o,
|
|
841
|
+
}, O = Y(Pt());
|
|
842
|
+
return () => o ? i(o, $({
|
|
839
843
|
class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
|
|
840
844
|
name: e.name
|
|
841
|
-
},
|
|
845
|
+
}, D(e, O)), {
|
|
842
846
|
default: () => {
|
|
843
|
-
var
|
|
844
|
-
return [F(
|
|
845
|
-
const
|
|
846
|
-
return i(
|
|
847
|
-
key: E[e.rowKey] +
|
|
848
|
-
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
|
|
849
853
|
}, {
|
|
850
854
|
default: () => {
|
|
851
|
-
var
|
|
855
|
+
var U, j, V, H, C, y;
|
|
852
856
|
return [i("div", {
|
|
853
857
|
class: "pro-form-list-item"
|
|
854
|
-
}, [(
|
|
855
|
-
state:
|
|
856
|
-
path:
|
|
857
|
-
index:
|
|
858
|
-
}), 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", {
|
|
859
863
|
class: "pro-form-list-item-add",
|
|
860
864
|
onClick: S
|
|
861
|
-
}, [((
|
|
865
|
+
}, [((V = t.itemAdd) == null ? void 0 : V.call(t)) || ((H = e.renderItemAdd) == null ? void 0 : H.call(e))]), i("div", {
|
|
862
866
|
class: "pro-form-list-item-minus",
|
|
863
|
-
onClick: () =>
|
|
864
|
-
}, [((
|
|
867
|
+
onClick: () => P(N, E)
|
|
868
|
+
}, [((C = t.itemMinus) == null ? void 0 : C.call(t)) || ((y = e.renderItemMinus) == null ? void 0 : y.call(e))])])])];
|
|
865
869
|
}
|
|
866
870
|
});
|
|
867
871
|
}), !n.value && i("div", {
|
|
868
872
|
class: "pro-form-list-add",
|
|
869
873
|
onClick: S
|
|
870
|
-
}, [((
|
|
874
|
+
}, [((f = t.add) == null ? void 0 : f.call(t)) || ((M = e.renderAdd) == null ? void 0 : M.call(e))])];
|
|
871
875
|
}
|
|
872
876
|
}) : null;
|
|
873
877
|
}
|
|
874
|
-
}),
|
|
875
|
-
|
|
878
|
+
}), rn = Symbol("pro-form"), an = () => ye(rn), Mr = (e, t = 300, a) => Dt(e, t, a), Er = (e) => {
|
|
879
|
+
me(rn, e);
|
|
876
880
|
};
|
|
877
|
-
let
|
|
881
|
+
let ue;
|
|
878
882
|
(function(e) {
|
|
879
883
|
e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
|
|
880
|
-
})(
|
|
881
|
-
const
|
|
884
|
+
})(ue || (ue = {}));
|
|
885
|
+
const Ct = () => ({
|
|
882
886
|
clsName: {
|
|
883
887
|
type: String,
|
|
884
888
|
default: "pro-form"
|
|
@@ -928,144 +932,144 @@ const vt = () => ({
|
|
|
928
932
|
type: Function,
|
|
929
933
|
default: void 0
|
|
930
934
|
}
|
|
931
|
-
}),
|
|
935
|
+
}), $a = A({
|
|
932
936
|
inheritAttrs: !1,
|
|
933
937
|
props: {
|
|
934
|
-
...
|
|
935
|
-
...
|
|
936
|
-
|
|
938
|
+
...pe,
|
|
939
|
+
...Ct(),
|
|
940
|
+
...D(Ce.props, "items")
|
|
937
941
|
},
|
|
938
942
|
setup: (e, {
|
|
939
943
|
slots: t,
|
|
940
|
-
emit:
|
|
944
|
+
emit: a,
|
|
941
945
|
expose: o,
|
|
942
|
-
attrs:
|
|
946
|
+
attrs: r
|
|
943
947
|
}) => {
|
|
944
948
|
const {
|
|
945
949
|
elementMap: n,
|
|
946
950
|
formElementMap: u
|
|
947
|
-
} =
|
|
948
|
-
const
|
|
949
|
-
return e.convertColumn ?
|
|
950
|
-
}),
|
|
951
|
-
var
|
|
952
|
-
((
|
|
953
|
-
userOpe:
|
|
954
|
-
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
|
|
955
959
|
});
|
|
956
|
-
},
|
|
957
|
-
const
|
|
958
|
-
|
|
959
|
-
},
|
|
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();
|
|
960
964
|
o({
|
|
961
|
-
...
|
|
962
|
-
userOpe:
|
|
963
|
-
asyncNum:
|
|
964
|
-
}),
|
|
965
|
+
...Pe(e.formMethods || [], T),
|
|
966
|
+
userOpe: g,
|
|
967
|
+
asyncNum: x
|
|
968
|
+
}), Er({
|
|
965
969
|
formState: d,
|
|
966
|
-
showState:
|
|
967
|
-
readonlyState:
|
|
968
|
-
disableState:
|
|
969
|
-
elementMap:
|
|
970
|
+
showState: v,
|
|
971
|
+
readonlyState: b,
|
|
972
|
+
disableState: h,
|
|
973
|
+
elementMap: l,
|
|
970
974
|
formElementMap: s,
|
|
971
975
|
readonly: S,
|
|
972
|
-
columns:
|
|
973
|
-
formRef:
|
|
974
|
-
userOpe:
|
|
975
|
-
asyncNum:
|
|
976
|
+
columns: P,
|
|
977
|
+
formRef: T,
|
|
978
|
+
userOpe: g,
|
|
979
|
+
asyncNum: x,
|
|
976
980
|
...e.provideExtra
|
|
977
|
-
}),
|
|
978
|
-
const
|
|
979
|
-
value:
|
|
981
|
+
}), nn({});
|
|
982
|
+
const U = [{
|
|
983
|
+
value: ue.RESET,
|
|
980
984
|
label: "\u91CD\u7F6E"
|
|
981
985
|
}, {
|
|
982
|
-
value:
|
|
986
|
+
value: ue.SUBMIT,
|
|
983
987
|
label: "\u63D0\u4EA4",
|
|
984
988
|
extraProps: {
|
|
985
989
|
type: "primary"
|
|
986
990
|
}
|
|
987
991
|
}], j = () => {
|
|
988
|
-
var
|
|
989
|
-
if ((
|
|
992
|
+
var K, k;
|
|
993
|
+
if ((K = e.operate) != null && K.onReset) {
|
|
990
994
|
e.operate.onReset({
|
|
991
|
-
form:
|
|
995
|
+
form: T.value
|
|
992
996
|
});
|
|
993
997
|
return;
|
|
994
998
|
}
|
|
995
|
-
(
|
|
996
|
-
},
|
|
997
|
-
var
|
|
998
|
-
if ((
|
|
999
|
+
(k = T.value) == null || k.resetFields();
|
|
1000
|
+
}, V = () => {
|
|
1001
|
+
var K, k;
|
|
1002
|
+
if ((K = e.operate) != null && K.onSubmit) {
|
|
999
1003
|
e.operate.onSubmit({
|
|
1000
|
-
form:
|
|
1004
|
+
form: T.value
|
|
1001
1005
|
});
|
|
1002
1006
|
return;
|
|
1003
1007
|
}
|
|
1004
|
-
(
|
|
1005
|
-
},
|
|
1006
|
-
var
|
|
1007
|
-
(
|
|
1008
|
-
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
|
|
1009
1013
|
});
|
|
1010
|
-
},
|
|
1011
|
-
[
|
|
1012
|
-
[
|
|
1013
|
-
[
|
|
1014
|
-
},
|
|
1015
|
-
const
|
|
1016
|
-
return F(
|
|
1017
|
-
...
|
|
1018
|
-
onClick:
|
|
1019
|
-
} :
|
|
1020
|
-
}),
|
|
1021
|
-
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;
|
|
1022
1026
|
return {
|
|
1023
|
-
[
|
|
1024
|
-
value:
|
|
1027
|
+
[ue.SUBMIT]: {
|
|
1028
|
+
value: ue.SUBMIT,
|
|
1025
1029
|
loading: e.submitLoading
|
|
1026
1030
|
},
|
|
1027
|
-
...(
|
|
1031
|
+
...(K = e.operate) == null ? void 0 : K.itemState
|
|
1028
1032
|
};
|
|
1029
|
-
}),
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1032
|
-
},
|
|
1033
|
-
const
|
|
1034
|
-
const
|
|
1035
|
-
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);
|
|
1036
1040
|
});
|
|
1037
|
-
return e.row ? F(
|
|
1038
|
-
rowKey: de(
|
|
1039
|
-
vNode:
|
|
1040
|
-
col:
|
|
1041
|
-
})) : F(
|
|
1042
|
-
}),
|
|
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);
|
|
1043
1047
|
return () => {
|
|
1044
|
-
var
|
|
1045
|
-
if (!
|
|
1048
|
+
var ft, mt, yt;
|
|
1049
|
+
if (!ee)
|
|
1046
1050
|
return null;
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1049
|
-
ref:
|
|
1050
|
-
class:
|
|
1051
|
-
},
|
|
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"), {
|
|
1052
1056
|
model: d,
|
|
1053
|
-
onFinish:
|
|
1057
|
+
onFinish: N
|
|
1054
1058
|
}), {
|
|
1055
|
-
default: () => [
|
|
1059
|
+
default: () => [K, s && _(P.value) > 0 && i(le, null, [e.row ? i(Ce, {
|
|
1056
1060
|
row: e.row,
|
|
1057
1061
|
col: e.col,
|
|
1058
|
-
items:
|
|
1059
|
-
}, null) :
|
|
1062
|
+
items: w.value
|
|
1063
|
+
}, null) : w.value]), k, e.operate && !dt && i(sn, $({
|
|
1060
1064
|
class: `${e.clsName}-operate`
|
|
1061
|
-
},
|
|
1062
|
-
items:
|
|
1063
|
-
itemState:
|
|
1064
|
-
}), null),
|
|
1065
|
+
}, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
1066
|
+
items: y.value,
|
|
1067
|
+
itemState: c.value
|
|
1068
|
+
}), null), ne]
|
|
1065
1069
|
});
|
|
1066
1070
|
};
|
|
1067
1071
|
}
|
|
1068
|
-
}),
|
|
1072
|
+
}), Fa = {
|
|
1069
1073
|
text: "\u8BF7\u8F93\u5165",
|
|
1070
1074
|
digit: "\u8BF7\u8F93\u5165",
|
|
1071
1075
|
select: "\u8BF7\u9009\u62E9",
|
|
@@ -1077,18 +1081,18 @@ const vt = () => ({
|
|
|
1077
1081
|
date: "\u8BF7\u9009\u62E9",
|
|
1078
1082
|
time: "\u8BF7\u9009\u62E9"
|
|
1079
1083
|
};
|
|
1080
|
-
let
|
|
1084
|
+
let Ue;
|
|
1081
1085
|
(function(e) {
|
|
1082
1086
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
1083
|
-
})(
|
|
1084
|
-
const
|
|
1087
|
+
})(Ue || (Ue = {}));
|
|
1088
|
+
const Mt = () => ({
|
|
1085
1089
|
initEmit: {
|
|
1086
1090
|
type: Boolean,
|
|
1087
1091
|
default: !0
|
|
1088
1092
|
},
|
|
1089
1093
|
searchMode: {
|
|
1090
1094
|
type: String,
|
|
1091
|
-
default:
|
|
1095
|
+
default: Ue.AUTO
|
|
1092
1096
|
},
|
|
1093
1097
|
debounceKeys: {
|
|
1094
1098
|
type: Array
|
|
@@ -1101,9 +1105,9 @@ const ht = () => ({
|
|
|
1101
1105
|
type: Number,
|
|
1102
1106
|
default: 800
|
|
1103
1107
|
}
|
|
1104
|
-
}),
|
|
1108
|
+
}), Ra = A({
|
|
1105
1109
|
props: {
|
|
1106
|
-
...
|
|
1110
|
+
...Mt(),
|
|
1107
1111
|
needRules: {
|
|
1108
1112
|
type: Boolean,
|
|
1109
1113
|
default: !1
|
|
@@ -1111,73 +1115,73 @@ const ht = () => ({
|
|
|
1111
1115
|
},
|
|
1112
1116
|
setup: (e, {
|
|
1113
1117
|
slots: t,
|
|
1114
|
-
expose:
|
|
1118
|
+
expose: a
|
|
1115
1119
|
}) => {
|
|
1116
|
-
const
|
|
1117
|
-
const
|
|
1118
|
-
return u.has(
|
|
1119
|
-
}), (
|
|
1120
|
-
...
|
|
1121
|
-
formItemProps:
|
|
1122
|
-
}))), d =
|
|
1123
|
-
|
|
1124
|
-
const
|
|
1125
|
-
var
|
|
1126
|
-
(
|
|
1127
|
-
},
|
|
1128
|
-
|
|
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();
|
|
1129
1133
|
}, e.debounceTime);
|
|
1130
|
-
|
|
1131
|
-
e.initEmit &&
|
|
1134
|
+
oe(() => {
|
|
1135
|
+
e.initEmit && b();
|
|
1132
1136
|
}, []);
|
|
1133
|
-
const S = (
|
|
1134
|
-
|
|
1135
|
-
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)
|
|
1136
1140
|
return;
|
|
1137
|
-
const
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1141
|
+
const O = _(e.debounceKeys) > 0 ? e.debounceKeys : l;
|
|
1142
|
+
if (_(O) > 0 && S(g, x, O)) {
|
|
1143
|
+
h();
|
|
1140
1144
|
return;
|
|
1141
1145
|
}
|
|
1142
|
-
|
|
1143
|
-
}, () =>
|
|
1144
|
-
const
|
|
1145
|
-
return () =>
|
|
1146
|
+
b();
|
|
1147
|
+
}, () => wn(n));
|
|
1148
|
+
const P = Y(Mt());
|
|
1149
|
+
return () => r ? i(r, $({
|
|
1146
1150
|
ref: d,
|
|
1147
1151
|
class: "pro-search-form"
|
|
1148
|
-
},
|
|
1152
|
+
}, D(e, P, "columns"), {
|
|
1149
1153
|
columns: s.value,
|
|
1150
1154
|
model: n
|
|
1151
1155
|
}), t) : null;
|
|
1152
1156
|
}
|
|
1153
|
-
}),
|
|
1157
|
+
}), Tr = () => ({
|
|
1154
1158
|
title: String,
|
|
1155
1159
|
content: String,
|
|
1156
1160
|
renderDom: {
|
|
1157
1161
|
type: Function,
|
|
1158
1162
|
default: () => i("span", {
|
|
1159
1163
|
class: "pro-tip-dom"
|
|
1160
|
-
}, [
|
|
1164
|
+
}, [Re("?")])
|
|
1161
1165
|
}
|
|
1162
|
-
}),
|
|
1166
|
+
}), xr = A({
|
|
1163
1167
|
props: {
|
|
1164
|
-
...
|
|
1168
|
+
...Tr()
|
|
1165
1169
|
},
|
|
1166
1170
|
setup: (e, {
|
|
1167
1171
|
slots: t
|
|
1168
1172
|
}) => {
|
|
1169
|
-
const o =
|
|
1170
|
-
return () => i(o,
|
|
1173
|
+
const o = Z()(q.TooltipKey);
|
|
1174
|
+
return () => i(o, D(e, "renderDom"), {
|
|
1171
1175
|
default: () => {
|
|
1172
|
-
var
|
|
1173
|
-
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))];
|
|
1174
1178
|
},
|
|
1175
1179
|
content: () => e.content,
|
|
1176
1180
|
title: () => e.title,
|
|
1177
1181
|
...t
|
|
1178
1182
|
});
|
|
1179
1183
|
}
|
|
1180
|
-
}),
|
|
1184
|
+
}), Et = () => ({
|
|
1181
1185
|
readonly: {
|
|
1182
1186
|
type: Boolean,
|
|
1183
1187
|
default: void 0
|
|
@@ -1197,135 +1201,135 @@ const ht = () => ({
|
|
|
1197
1201
|
tipProps: {
|
|
1198
1202
|
type: Object
|
|
1199
1203
|
}
|
|
1200
|
-
}),
|
|
1201
|
-
InputComp:
|
|
1204
|
+
}), La = (e, t) => ({
|
|
1205
|
+
InputComp: a,
|
|
1202
1206
|
valueType: o,
|
|
1203
|
-
name:
|
|
1204
|
-
}) =>
|
|
1205
|
-
name:
|
|
1207
|
+
name: r
|
|
1208
|
+
}) => A({
|
|
1209
|
+
name: r,
|
|
1206
1210
|
props: {
|
|
1207
1211
|
...e.props,
|
|
1208
|
-
...
|
|
1212
|
+
...Et()
|
|
1209
1213
|
},
|
|
1210
1214
|
setup: (n, {
|
|
1211
1215
|
slots: u
|
|
1212
1216
|
}) => {
|
|
1213
1217
|
const {
|
|
1214
|
-
formExtraMap:
|
|
1218
|
+
formExtraMap: l,
|
|
1215
1219
|
elementMap: s
|
|
1216
|
-
} =
|
|
1220
|
+
} = re(), {
|
|
1217
1221
|
formState: d,
|
|
1218
|
-
readonlyState:
|
|
1219
|
-
disableState:
|
|
1220
|
-
readonly:
|
|
1222
|
+
readonlyState: v,
|
|
1223
|
+
disableState: b,
|
|
1224
|
+
readonly: h,
|
|
1221
1225
|
userOpe: S
|
|
1222
|
-
} =
|
|
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 ? [{
|
|
1223
1227
|
required: !0,
|
|
1224
|
-
message:
|
|
1225
|
-
}] : n.rules ? F(n.rules, (j) => (j.required && !j.message && (j.message =
|
|
1226
|
-
S.value = !0, ie(d,
|
|
1227
|
-
},
|
|
1228
|
-
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);
|
|
1229
1233
|
if (u.renderShow)
|
|
1230
1234
|
return u.renderShow({
|
|
1231
1235
|
value: j,
|
|
1232
1236
|
record: d,
|
|
1233
|
-
path:
|
|
1237
|
+
path: M
|
|
1234
1238
|
});
|
|
1235
|
-
const
|
|
1236
|
-
return
|
|
1239
|
+
const V = p(s, o);
|
|
1240
|
+
return V ? i(V, $({
|
|
1237
1241
|
value: j
|
|
1238
1242
|
}, n.fieldProps, {
|
|
1239
1243
|
showProps: n.showProps
|
|
1240
1244
|
}), u) : i("span", null, [j]);
|
|
1241
|
-
},
|
|
1242
|
-
const j =
|
|
1245
|
+
}, U = () => {
|
|
1246
|
+
const j = p(d, M), V = p(b, M);
|
|
1243
1247
|
return u.renderInput ? u.renderInput({
|
|
1244
1248
|
value: j,
|
|
1245
1249
|
setValue: E,
|
|
1246
|
-
disabled:
|
|
1250
|
+
disabled: V,
|
|
1247
1251
|
record: d,
|
|
1248
|
-
path:
|
|
1249
|
-
}) : i(
|
|
1252
|
+
path: M
|
|
1253
|
+
}) : i(a, $(t(j, E, V), n.fieldProps), u);
|
|
1250
1254
|
};
|
|
1251
|
-
return () => i(e,
|
|
1255
|
+
return () => i(e, $({
|
|
1252
1256
|
class: "pro-form-item"
|
|
1253
|
-
},
|
|
1254
|
-
name:
|
|
1255
|
-
rules:
|
|
1257
|
+
}, D(n, ...N, "name", "rules"), {
|
|
1258
|
+
name: M,
|
|
1259
|
+
rules: O.value
|
|
1256
1260
|
}), {
|
|
1257
|
-
default: () => [
|
|
1258
|
-
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, $({
|
|
1259
1263
|
content: n.tip,
|
|
1260
1264
|
title: n.tip
|
|
1261
1265
|
}, n.tipProps), null)]),
|
|
1262
1266
|
...n.slots
|
|
1263
1267
|
});
|
|
1264
1268
|
}
|
|
1265
|
-
}),
|
|
1266
|
-
const [e, t] =
|
|
1269
|
+
}), on = _n("access", void 0, !0), Ir = () => {
|
|
1270
|
+
const [e, t] = on();
|
|
1267
1271
|
return { access: e, setAccess: t, delAccess: () => {
|
|
1268
1272
|
t(void 0);
|
|
1269
1273
|
} };
|
|
1270
|
-
},
|
|
1271
|
-
const [e, t] =
|
|
1274
|
+
}, ka = () => {
|
|
1275
|
+
const [e, t] = on();
|
|
1272
1276
|
return [e, t, () => {
|
|
1273
1277
|
t(void 0);
|
|
1274
1278
|
}];
|
|
1275
|
-
},
|
|
1276
|
-
const [
|
|
1277
|
-
return
|
|
1278
|
-
var
|
|
1279
|
-
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);
|
|
1280
1284
|
};
|
|
1281
|
-
}),
|
|
1282
|
-
const { access: o } =
|
|
1283
|
-
return
|
|
1284
|
-
|
|
1285
|
-
},
|
|
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), () => {
|
|
1286
1290
|
var n;
|
|
1287
|
-
return
|
|
1291
|
+
return r.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
|
|
1288
1292
|
};
|
|
1289
|
-
}),
|
|
1293
|
+
}), Ba = {
|
|
1290
1294
|
Add: "add",
|
|
1291
1295
|
Edit: "edit",
|
|
1292
1296
|
Delete: "delete"
|
|
1293
|
-
},
|
|
1294
|
-
const { per: e } =
|
|
1295
|
-
return (
|
|
1296
|
-
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)
|
|
1297
1301
|
return !1;
|
|
1298
|
-
let
|
|
1302
|
+
let r = a;
|
|
1299
1303
|
if (o != null && o.suffix) {
|
|
1300
1304
|
const n = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
|
|
1301
|
-
|
|
1305
|
+
r = Q(r) ? F(r, (l) => `${n}${u}${l}`) : `${n}${u}${r}`;
|
|
1302
1306
|
}
|
|
1303
|
-
return
|
|
1307
|
+
return wr(e.buttonMap, r);
|
|
1304
1308
|
};
|
|
1305
|
-
},
|
|
1306
|
-
const e =
|
|
1307
|
-
return (t,
|
|
1308
|
-
},
|
|
1309
|
+
}, cn = () => {
|
|
1310
|
+
const e = ln();
|
|
1311
|
+
return (t, a, o) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: o }) : !0;
|
|
1312
|
+
}, Or = () => ({
|
|
1309
1313
|
suffix: { type: [String, Array] },
|
|
1310
1314
|
value: { type: [String, Array] },
|
|
1311
1315
|
splitStr: { type: String }
|
|
1312
|
-
}),
|
|
1316
|
+
}), qa = A({
|
|
1313
1317
|
inheritAttrs: !1,
|
|
1314
1318
|
props: {
|
|
1315
|
-
...
|
|
1319
|
+
...Or()
|
|
1316
1320
|
},
|
|
1317
1321
|
setup: (e, { slots: t }) => {
|
|
1318
|
-
const
|
|
1322
|
+
const a = ln(), o = I(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
|
|
1319
1323
|
return () => {
|
|
1320
|
-
var
|
|
1321
|
-
return o.value ? (
|
|
1324
|
+
var r;
|
|
1325
|
+
return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
|
|
1322
1326
|
};
|
|
1323
1327
|
}
|
|
1324
1328
|
});
|
|
1325
|
-
function
|
|
1326
|
-
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);
|
|
1327
1331
|
}
|
|
1328
|
-
const
|
|
1332
|
+
const Ar = () => ({
|
|
1329
1333
|
clsName: {
|
|
1330
1334
|
type: String,
|
|
1331
1335
|
default: "pro-operate"
|
|
@@ -1338,61 +1342,61 @@ const Sr = () => ({
|
|
|
1338
1342
|
},
|
|
1339
1343
|
elementKey: {
|
|
1340
1344
|
type: String,
|
|
1341
|
-
default:
|
|
1345
|
+
default: q.ButtonKey
|
|
1342
1346
|
},
|
|
1343
1347
|
splitStr: {
|
|
1344
1348
|
type: String
|
|
1345
1349
|
}
|
|
1346
|
-
}),
|
|
1350
|
+
}), sn = A({
|
|
1347
1351
|
props: {
|
|
1348
|
-
...
|
|
1352
|
+
...Ar()
|
|
1349
1353
|
},
|
|
1350
1354
|
setup: (e, {
|
|
1351
1355
|
slots: t
|
|
1352
1356
|
}) => {
|
|
1353
|
-
const
|
|
1354
|
-
const s =
|
|
1355
|
-
...
|
|
1356
|
-
...
|
|
1357
|
-
} :
|
|
1358
|
-
return
|
|
1359
|
-
}),
|
|
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) => {
|
|
1360
1364
|
var d;
|
|
1361
1365
|
(d = s.onClick) == null || d.call(s, s);
|
|
1362
|
-
}, n =
|
|
1366
|
+
}, n = Z(), u = e.elementKey ? n(e.elementKey) : void 0, l = n(q.TooltipKey);
|
|
1363
1367
|
return () => i("div", {
|
|
1364
1368
|
class: e.clsName
|
|
1365
1369
|
}, [F(o.value, (s) => {
|
|
1366
|
-
const d =
|
|
1367
|
-
|
|
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"),
|
|
1368
1372
|
disabled: d
|
|
1369
1373
|
};
|
|
1370
|
-
if (s.element &&
|
|
1374
|
+
if (s.element && G(s.element))
|
|
1371
1375
|
return s.element(S);
|
|
1372
1376
|
if (t[s.value])
|
|
1373
1377
|
return t[s.value](S);
|
|
1374
1378
|
if (u) {
|
|
1375
|
-
const
|
|
1379
|
+
const P = i(u, $({
|
|
1376
1380
|
disabled: d,
|
|
1377
|
-
loading:
|
|
1378
|
-
onClick: () =>
|
|
1379
|
-
},
|
|
1380
|
-
default: () => [
|
|
1381
|
+
loading: v,
|
|
1382
|
+
onClick: () => r(s)
|
|
1383
|
+
}, h), Kr(b) ? b : {
|
|
1384
|
+
default: () => [b]
|
|
1381
1385
|
});
|
|
1382
|
-
return s.tip &&
|
|
1386
|
+
return s.tip && l ? i(l, $({
|
|
1383
1387
|
placement: "top"
|
|
1384
1388
|
}, s.tipProps), {
|
|
1385
|
-
default: () => [
|
|
1389
|
+
default: () => [P],
|
|
1386
1390
|
content: () => s.tip
|
|
1387
|
-
}) :
|
|
1391
|
+
}) : P;
|
|
1388
1392
|
}
|
|
1389
1393
|
return i("div", {
|
|
1390
1394
|
class: `${e.clsName}-item`,
|
|
1391
|
-
onClick: () =>
|
|
1392
|
-
}, [
|
|
1395
|
+
onClick: () => r(s)
|
|
1396
|
+
}, [b]);
|
|
1393
1397
|
})]);
|
|
1394
1398
|
}
|
|
1395
|
-
}),
|
|
1399
|
+
}), Dr = () => ({
|
|
1396
1400
|
clsName: {
|
|
1397
1401
|
type: String,
|
|
1398
1402
|
default: "pro-table-toolbar-column"
|
|
@@ -1413,105 +1417,105 @@ const Sr = () => ({
|
|
|
1413
1417
|
type: Function,
|
|
1414
1418
|
default: () => "\u5217\u8BBE\u7F6E"
|
|
1415
1419
|
}
|
|
1416
|
-
}),
|
|
1420
|
+
}), $r = A({
|
|
1417
1421
|
props: {
|
|
1418
|
-
...
|
|
1422
|
+
...Dr()
|
|
1419
1423
|
},
|
|
1420
1424
|
setup: (e, {
|
|
1421
1425
|
slots: t
|
|
1422
1426
|
}) => {
|
|
1423
|
-
const
|
|
1427
|
+
const a = Z(), o = a(q.PopoverKey), r = a(q.CheckboxKey), {
|
|
1424
1428
|
originColumns: n,
|
|
1425
1429
|
selectIdsRef: u
|
|
1426
|
-
} =
|
|
1430
|
+
} = Fr(), [l, s] = et();
|
|
1427
1431
|
let d = {};
|
|
1428
|
-
const
|
|
1429
|
-
d[
|
|
1430
|
-
},
|
|
1431
|
-
te(u.value, (
|
|
1432
|
-
d[
|
|
1432
|
+
const v = (f) => {
|
|
1433
|
+
d[f] = !1;
|
|
1434
|
+
}, b = () => {
|
|
1435
|
+
te(u.value, (f) => {
|
|
1436
|
+
d[f] = !0;
|
|
1433
1437
|
});
|
|
1434
|
-
},
|
|
1435
|
-
...
|
|
1436
|
-
[
|
|
1437
|
-
}), {})), S = (
|
|
1438
|
-
|
|
1439
|
-
u.value = F(
|
|
1440
|
-
var
|
|
1441
|
-
return e.useSelectedStatus &&
|
|
1442
|
-
}), (
|
|
1443
|
-
}, n),
|
|
1444
|
-
var
|
|
1445
|
-
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);
|
|
1446
1450
|
}, u);
|
|
1447
|
-
const
|
|
1448
|
-
const
|
|
1449
|
-
var
|
|
1450
|
-
return (
|
|
1451
|
-
}),
|
|
1452
|
-
var
|
|
1453
|
-
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);
|
|
1454
1458
|
});
|
|
1455
1459
|
return {
|
|
1456
|
-
checked:
|
|
1457
|
-
indeterminate:
|
|
1460
|
+
checked: f,
|
|
1461
|
+
indeterminate: f ? !1 : M
|
|
1458
1462
|
};
|
|
1459
|
-
}),
|
|
1463
|
+
}), g = (f) => {
|
|
1460
1464
|
var E;
|
|
1461
|
-
(
|
|
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) => {
|
|
1462
1471
|
var M;
|
|
1463
|
-
return (M = S(
|
|
1464
|
-
}), (
|
|
1465
|
-
},
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
return ((g = S(l)) == null ? void 0 : g.initShow) === !1 ? (y(l.dataIndex), !1) : !0;
|
|
1469
|
-
}), (l) => l.dataIndex);
|
|
1470
|
-
}, N = (l, g) => {
|
|
1471
|
-
var I;
|
|
1472
|
-
(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);
|
|
1473
1477
|
};
|
|
1474
|
-
return () => o ? i(o,
|
|
1478
|
+
return () => o ? i(o, $({
|
|
1475
1479
|
trigger: "click"
|
|
1476
1480
|
}, e.popoverProps), {
|
|
1477
1481
|
default: () => {
|
|
1478
|
-
var
|
|
1479
|
-
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))];
|
|
1480
1484
|
},
|
|
1481
1485
|
content: () => i("div", {
|
|
1482
1486
|
class: `${e.clsName}`
|
|
1483
1487
|
}, [i("div", {
|
|
1484
1488
|
class: `${e.clsName}-header`
|
|
1485
|
-
}, [i(
|
|
1486
|
-
key:
|
|
1487
|
-
checked:
|
|
1488
|
-
indeterminate:
|
|
1489
|
-
onChange:
|
|
1489
|
+
}, [i(r, {
|
|
1490
|
+
key: l.value,
|
|
1491
|
+
checked: P.value.checked,
|
|
1492
|
+
indeterminate: P.value.indeterminate,
|
|
1493
|
+
onChange: g
|
|
1490
1494
|
}, {
|
|
1491
|
-
default: () => [
|
|
1495
|
+
default: () => [Re("\u5217\u5C55\u793A")]
|
|
1492
1496
|
}), i("a", {
|
|
1493
|
-
onClick:
|
|
1494
|
-
}, [
|
|
1495
|
-
key:
|
|
1497
|
+
onClick: x
|
|
1498
|
+
}, [Re("\u91CD\u7F6E")])]), i("div", {
|
|
1499
|
+
key: l.value,
|
|
1496
1500
|
class: `${e.clsName}-list`
|
|
1497
|
-
}, [F(n.value, (
|
|
1498
|
-
const
|
|
1499
|
-
return i(
|
|
1501
|
+
}, [F(n.value, (f) => {
|
|
1502
|
+
const M = S(f), E = p(h.value, f.dataIndex, !1);
|
|
1503
|
+
return i(r, {
|
|
1500
1504
|
checked: E,
|
|
1501
|
-
disabled:
|
|
1502
|
-
onChange: (
|
|
1503
|
-
|
|
1505
|
+
disabled: M == null ? void 0 : M.disabled,
|
|
1506
|
+
onChange: (N) => {
|
|
1507
|
+
O(f, N);
|
|
1504
1508
|
}
|
|
1505
1509
|
}, {
|
|
1506
|
-
default: () => [
|
|
1510
|
+
default: () => [f.title]
|
|
1507
1511
|
});
|
|
1508
1512
|
})])]),
|
|
1509
|
-
|
|
1513
|
+
...D(t, "default")
|
|
1510
1514
|
}) : null;
|
|
1511
1515
|
}
|
|
1512
|
-
}),
|
|
1513
|
-
|
|
1514
|
-
},
|
|
1516
|
+
}), dn = Symbol("pro-table"), Fr = () => ye(dn), Rr = (e) => {
|
|
1517
|
+
me(dn, e);
|
|
1518
|
+
}, Tt = () => ({
|
|
1515
1519
|
clsName: {
|
|
1516
1520
|
type: String,
|
|
1517
1521
|
default: "pro-table"
|
|
@@ -1552,156 +1556,156 @@ const Sr = () => ({
|
|
|
1552
1556
|
dataSource: {
|
|
1553
1557
|
type: Array
|
|
1554
1558
|
}
|
|
1555
|
-
}),
|
|
1559
|
+
}), Va = A({
|
|
1556
1560
|
inheritAttrs: !1,
|
|
1557
1561
|
props: {
|
|
1558
|
-
...
|
|
1559
|
-
...
|
|
1562
|
+
...pe,
|
|
1563
|
+
...Tt()
|
|
1560
1564
|
},
|
|
1561
1565
|
setup: (e, {
|
|
1562
1566
|
slots: t,
|
|
1563
|
-
expose:
|
|
1567
|
+
expose: a,
|
|
1564
1568
|
attrs: o
|
|
1565
1569
|
}) => {
|
|
1566
1570
|
const {
|
|
1567
|
-
elementMap:
|
|
1568
|
-
} =
|
|
1571
|
+
elementMap: r
|
|
1572
|
+
} = re(), n = e.elementMap || r, u = p(r, q.TableKey), l = () => ({
|
|
1569
1573
|
title: "\u5E8F\u53F7",
|
|
1570
1574
|
dataIndex: "serialNumber",
|
|
1571
1575
|
width: 80,
|
|
1572
1576
|
...e.column,
|
|
1573
|
-
...
|
|
1577
|
+
...Ie(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1574
1578
|
customRender: ({
|
|
1575
|
-
index:
|
|
1579
|
+
index: y
|
|
1576
1580
|
}) => {
|
|
1577
|
-
var
|
|
1578
|
-
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;
|
|
1579
1583
|
}
|
|
1580
|
-
}), s = (
|
|
1581
|
-
var
|
|
1582
|
-
if (e.operateItemClickMap && e.operateItemClickMap[
|
|
1583
|
-
e.operateItemClickMap[
|
|
1584
|
+
}), s = (y, c) => {
|
|
1585
|
+
var m;
|
|
1586
|
+
if (e.operateItemClickMap && e.operateItemClickMap[c.value]) {
|
|
1587
|
+
e.operateItemClickMap[c.value](y, c);
|
|
1584
1588
|
return;
|
|
1585
1589
|
}
|
|
1586
|
-
(
|
|
1587
|
-
}, d = fe(t, "operate"),
|
|
1588
|
-
const
|
|
1589
|
-
...
|
|
1590
|
-
...
|
|
1591
|
-
...
|
|
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)
|
|
1592
1596
|
}));
|
|
1593
1597
|
return {
|
|
1594
1598
|
...e.column,
|
|
1595
1599
|
title: "\u64CD\u4F5C",
|
|
1596
1600
|
dataIndex: "operate",
|
|
1597
1601
|
fixed: "right",
|
|
1598
|
-
...
|
|
1602
|
+
...y.column,
|
|
1599
1603
|
customRender: ({
|
|
1600
|
-
record:
|
|
1604
|
+
record: m
|
|
1601
1605
|
}) => {
|
|
1602
|
-
const
|
|
1603
|
-
...
|
|
1604
|
-
show:
|
|
1605
|
-
disabled:
|
|
1606
|
-
loading:
|
|
1607
|
-
extraProps:
|
|
1608
|
-
element:
|
|
1609
|
-
onClick: () => s(
|
|
1610
|
-
tip:
|
|
1611
|
-
tipProps:
|
|
1612
|
-
})),
|
|
1613
|
-
...
|
|
1614
|
-
[
|
|
1615
|
-
var
|
|
1616
|
-
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);
|
|
1617
1621
|
}
|
|
1618
1622
|
}), {});
|
|
1619
|
-
return i(
|
|
1623
|
+
return i(sn, {
|
|
1620
1624
|
class: `${e.clsName}-operate`,
|
|
1621
|
-
items:
|
|
1622
|
-
elementKey:
|
|
1623
|
-
},
|
|
1625
|
+
items: w,
|
|
1626
|
+
elementKey: y.elementKey || q.TableOperateKey
|
|
1627
|
+
}, B);
|
|
1624
1628
|
}
|
|
1625
1629
|
};
|
|
1626
|
-
},
|
|
1627
|
-
var
|
|
1628
|
-
return !!((
|
|
1629
|
-
}), S =
|
|
1630
|
-
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)
|
|
1631
1635
|
return e.columns;
|
|
1632
|
-
const
|
|
1633
|
-
...
|
|
1634
|
-
[
|
|
1636
|
+
const y = ae(b.value, (c, m) => ({
|
|
1637
|
+
...c,
|
|
1638
|
+
[m]: !0
|
|
1635
1639
|
}), {});
|
|
1636
|
-
return
|
|
1637
|
-
}),
|
|
1638
|
-
const
|
|
1640
|
+
return X(e.columns, (c) => p(y, c.dataIndex));
|
|
1641
|
+
}), g = (y) => F(y, (c) => {
|
|
1642
|
+
const m = {
|
|
1639
1643
|
...e.column,
|
|
1640
|
-
...
|
|
1641
|
-
},
|
|
1642
|
-
return
|
|
1643
|
-
value:
|
|
1644
|
-
}) => typeof
|
|
1645
|
-
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
|
|
1646
1650
|
}, {
|
|
1647
1651
|
render: "tableRender"
|
|
1648
|
-
}) ||
|
|
1649
|
-
}),
|
|
1650
|
-
const
|
|
1651
|
-
return e.serialNumber &&
|
|
1652
|
-
}),
|
|
1653
|
-
var
|
|
1654
|
-
const
|
|
1655
|
-
return
|
|
1656
|
-
}),
|
|
1657
|
-
|
|
1658
|
-
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,
|
|
1659
1663
|
originColumns: S,
|
|
1660
|
-
selectIdsRef:
|
|
1661
|
-
tableRef:
|
|
1664
|
+
selectIdsRef: b,
|
|
1665
|
+
tableRef: f,
|
|
1662
1666
|
toolbar: e.toolbar,
|
|
1663
1667
|
...e.provideExtra
|
|
1664
|
-
}),
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1668
|
-
if (
|
|
1669
|
-
const
|
|
1670
|
-
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;
|
|
1671
1675
|
}
|
|
1672
|
-
}),
|
|
1673
|
-
|
|
1674
|
-
}),
|
|
1675
|
-
j.value = !!
|
|
1676
|
+
}), $e(N, () => {
|
|
1677
|
+
T.value = !!N.value.innerText;
|
|
1678
|
+
}), $e(U, () => {
|
|
1679
|
+
j.value = !!U.value.innerText;
|
|
1676
1680
|
});
|
|
1677
|
-
const
|
|
1681
|
+
const V = I(() => j.value || T.value ? `${e.clsName}-toolbar-valid` : ""), H = Y(Tt()), C = fe(t, "columnSetting");
|
|
1678
1682
|
return () => {
|
|
1679
|
-
var
|
|
1683
|
+
var c, m;
|
|
1680
1684
|
if (!u)
|
|
1681
1685
|
return null;
|
|
1682
|
-
const
|
|
1683
|
-
return i("div",
|
|
1686
|
+
const y = h.value ? i($r, (c = e.toolbar) == null ? void 0 : c.columnSetting, C) : null;
|
|
1687
|
+
return i("div", $({
|
|
1684
1688
|
class: e.clsName,
|
|
1685
1689
|
style: `--pro-table-toolbar-hei: ${E.value}px`
|
|
1686
|
-
},
|
|
1687
|
-
ref:
|
|
1688
|
-
class: `${e.clsName}-toolbar ${
|
|
1690
|
+
}, J(o, "class")), [i("div", {
|
|
1691
|
+
ref: M,
|
|
1692
|
+
class: `${e.clsName}-toolbar ${V.value}`
|
|
1689
1693
|
}, [i("div", {
|
|
1690
|
-
ref:
|
|
1694
|
+
ref: N,
|
|
1691
1695
|
class: `${e.clsName}-toolbar-start`
|
|
1692
|
-
}, [(
|
|
1693
|
-
ref:
|
|
1696
|
+
}, [(m = t.toolbar) == null ? void 0 : m.call(t)]), i("div", {
|
|
1697
|
+
ref: U,
|
|
1694
1698
|
class: `${e.clsName}-toolbar-extra`
|
|
1695
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1696
|
-
ref:
|
|
1697
|
-
},
|
|
1699
|
+
}, [t.toolbarExtra ? t.toolbarExtra([y]) : i(le, null, [y])])]), i(u, $({
|
|
1700
|
+
ref: f
|
|
1701
|
+
}, D(o, "class"), D(e, H), {
|
|
1698
1702
|
mergeOpts: e.mergeOpts,
|
|
1699
|
-
dataSource:
|
|
1700
|
-
columns:
|
|
1703
|
+
dataSource: O.value,
|
|
1704
|
+
columns: x.value
|
|
1701
1705
|
}), t)]);
|
|
1702
1706
|
};
|
|
1703
1707
|
}
|
|
1704
|
-
}),
|
|
1708
|
+
}), Lr = () => ({
|
|
1705
1709
|
title: {
|
|
1706
1710
|
type: String
|
|
1707
1711
|
},
|
|
@@ -1720,30 +1724,30 @@ const Sr = () => ({
|
|
|
1720
1724
|
type: Function,
|
|
1721
1725
|
default: () => "\u8FD4\u56DE"
|
|
1722
1726
|
}
|
|
1723
|
-
}),
|
|
1727
|
+
}), He = A({
|
|
1724
1728
|
props: {
|
|
1725
|
-
...
|
|
1729
|
+
...Lr()
|
|
1726
1730
|
},
|
|
1727
1731
|
setup: (e, {
|
|
1728
1732
|
slots: t
|
|
1729
1733
|
}) => {
|
|
1730
|
-
const
|
|
1731
|
-
var
|
|
1734
|
+
const a = rt(), o = () => {
|
|
1735
|
+
var r;
|
|
1732
1736
|
if (e.onBackClick) {
|
|
1733
|
-
(
|
|
1737
|
+
(r = e.onBackClick) == null || r.call(e);
|
|
1734
1738
|
return;
|
|
1735
1739
|
}
|
|
1736
|
-
|
|
1740
|
+
a.back();
|
|
1737
1741
|
};
|
|
1738
1742
|
return () => {
|
|
1739
|
-
var n, u,
|
|
1740
|
-
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;
|
|
1741
1745
|
return i("div", {
|
|
1742
1746
|
class: "pro-page-header"
|
|
1743
|
-
}, [e.showBack &&
|
|
1747
|
+
}, [e.showBack && r && i("div", {
|
|
1744
1748
|
class: "pro-page-header-back",
|
|
1745
1749
|
onClick: o
|
|
1746
|
-
}, [t.backIcon ? t.backIcon() : (
|
|
1750
|
+
}, [t.backIcon ? t.backIcon() : (l = e.renderBackIcon) == null ? void 0 : l.call(e)]), i("div", {
|
|
1747
1751
|
class: "pro-page-header-title"
|
|
1748
1752
|
}, [t.title ? t.title() : e.title]), i("div", {
|
|
1749
1753
|
class: "pro-page-header-sub-title"
|
|
@@ -1754,7 +1758,7 @@ const Sr = () => ({
|
|
|
1754
1758
|
}, [(d = t.extra) == null ? void 0 : d.call(t)])]);
|
|
1755
1759
|
};
|
|
1756
1760
|
}
|
|
1757
|
-
}),
|
|
1761
|
+
}), kr = () => ({
|
|
1758
1762
|
loading: {
|
|
1759
1763
|
type: Boolean,
|
|
1760
1764
|
default: !1
|
|
@@ -1767,30 +1771,30 @@ const Sr = () => ({
|
|
|
1767
1771
|
as: {
|
|
1768
1772
|
type: String
|
|
1769
1773
|
}
|
|
1770
|
-
}),
|
|
1774
|
+
}), za = A({
|
|
1771
1775
|
props: {
|
|
1772
|
-
...
|
|
1773
|
-
...
|
|
1776
|
+
...He.props,
|
|
1777
|
+
...kr()
|
|
1774
1778
|
},
|
|
1775
1779
|
setup: (e, {
|
|
1776
1780
|
slots: t
|
|
1777
1781
|
}) => {
|
|
1778
|
-
const
|
|
1782
|
+
const a = Z(), o = a(q.LoadingKey), r = e.as || a(q.ScrollKey) || "div", n = () => o ? i(o, $({
|
|
1779
1783
|
loading: !0
|
|
1780
1784
|
}, e.loadingOpts), {
|
|
1781
1785
|
default: () => [i("div", {
|
|
1782
1786
|
class: "pro-loading-dom"
|
|
1783
1787
|
}, null)]
|
|
1784
|
-
}) : null, u =
|
|
1788
|
+
}) : null, u = Y(He.props);
|
|
1785
1789
|
return () => {
|
|
1786
|
-
var
|
|
1787
|
-
const
|
|
1788
|
-
return e.fillMode &&
|
|
1789
|
-
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
|
|
1790
1794
|
}, {
|
|
1791
1795
|
default: () => {
|
|
1792
|
-
var
|
|
1793
|
-
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", {
|
|
1794
1798
|
class: "pro-page-content"
|
|
1795
1799
|
}, [e.loading ? n() : (S = t.default) == null ? void 0 : S.call(t)]), d && i("div", {
|
|
1796
1800
|
class: "pro-page-footer"
|
|
@@ -1799,10 +1803,10 @@ const Sr = () => ({
|
|
|
1799
1803
|
});
|
|
1800
1804
|
};
|
|
1801
1805
|
}
|
|
1802
|
-
}),
|
|
1806
|
+
}), jr = Object.freeze({
|
|
1803
1807
|
page: 1,
|
|
1804
1808
|
pageSize: 10
|
|
1805
|
-
}),
|
|
1809
|
+
}), Ur = () => ({
|
|
1806
1810
|
clsName: {
|
|
1807
1811
|
type: String,
|
|
1808
1812
|
default: "pro-list"
|
|
@@ -1836,65 +1840,65 @@ const Sr = () => ({
|
|
|
1836
1840
|
end: {
|
|
1837
1841
|
type: Function
|
|
1838
1842
|
}
|
|
1839
|
-
}),
|
|
1843
|
+
}), Br = A({
|
|
1840
1844
|
props: {
|
|
1841
|
-
...
|
|
1845
|
+
...Ur()
|
|
1842
1846
|
},
|
|
1843
1847
|
setup: (e, {
|
|
1844
1848
|
slots: t,
|
|
1845
|
-
emit:
|
|
1849
|
+
emit: a
|
|
1846
1850
|
}) => {
|
|
1847
|
-
const o =
|
|
1848
|
-
...
|
|
1851
|
+
const o = Z(), r = o(q.ProSearchFormKey), n = o(q.ProTableKey), u = o(q.PaginationKey), l = e.pageState || be({
|
|
1852
|
+
...jr
|
|
1849
1853
|
});
|
|
1850
1854
|
let s;
|
|
1851
1855
|
const d = () => {
|
|
1852
|
-
|
|
1856
|
+
a("search", {
|
|
1853
1857
|
...s,
|
|
1854
|
-
...
|
|
1858
|
+
...l
|
|
1855
1859
|
});
|
|
1856
|
-
},
|
|
1857
|
-
s =
|
|
1858
|
-
},
|
|
1859
|
-
|
|
1860
|
-
},
|
|
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");
|
|
1861
1865
|
return () => {
|
|
1862
|
-
var
|
|
1863
|
-
const
|
|
1864
|
-
executeSearchWithResetPage:
|
|
1865
|
-
pageState:
|
|
1866
|
-
}) : 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, $({
|
|
1867
1871
|
class: `${e.clsName}-search`
|
|
1868
|
-
},
|
|
1869
|
-
onFinish: (j) =>
|
|
1870
|
-
}),
|
|
1872
|
+
}, D(e.searchProps, "onFinish"), {
|
|
1873
|
+
onFinish: (j) => v(j)
|
|
1874
|
+
}), h)]);
|
|
1871
1875
|
return i("div", {
|
|
1872
1876
|
class: e.clsName
|
|
1873
|
-
}, [((
|
|
1874
|
-
pageState:
|
|
1875
|
-
}) : 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, $({
|
|
1876
1880
|
class: `${e.clsName}-table`,
|
|
1877
1881
|
paginationState: {
|
|
1878
|
-
page:
|
|
1879
|
-
pageSize:
|
|
1882
|
+
page: l.page,
|
|
1883
|
+
pageSize: l.pageSize
|
|
1880
1884
|
},
|
|
1881
1885
|
pagination: !1
|
|
1882
1886
|
}, e.tableProps), {
|
|
1883
1887
|
...S,
|
|
1884
|
-
toolbar: e.searchInTable ? () => S.toolbar ? S.toolbar(
|
|
1885
|
-
})]), ((E = t.divide2) == null ? void 0 : E.call(t)) || ((
|
|
1886
|
-
executePageChange:
|
|
1887
|
-
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
|
|
1888
1892
|
}) : i(le, null, [e.paginationProps !== !1 && u && i("div", {
|
|
1889
1893
|
class: `${e.clsName}-pagination`
|
|
1890
|
-
}, [i(u,
|
|
1891
|
-
page:
|
|
1892
|
-
pageSize:
|
|
1893
|
-
onComposeChange:
|
|
1894
|
-
}),
|
|
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))]);
|
|
1895
1899
|
};
|
|
1896
1900
|
}
|
|
1897
|
-
}),
|
|
1901
|
+
}), xt = () => ({
|
|
1898
1902
|
clsName: {
|
|
1899
1903
|
type: String,
|
|
1900
1904
|
default: "pro-desc"
|
|
@@ -1902,58 +1906,58 @@ const Sr = () => ({
|
|
|
1902
1906
|
model: {
|
|
1903
1907
|
type: Object
|
|
1904
1908
|
}
|
|
1905
|
-
}),
|
|
1909
|
+
}), qr = A({
|
|
1906
1910
|
props: {
|
|
1907
|
-
...
|
|
1908
|
-
...
|
|
1911
|
+
...pe,
|
|
1912
|
+
...xt()
|
|
1909
1913
|
},
|
|
1910
1914
|
setup: (e, {
|
|
1911
1915
|
slots: t
|
|
1912
1916
|
}) => {
|
|
1913
1917
|
const {
|
|
1914
|
-
elementMap:
|
|
1915
|
-
} =
|
|
1916
|
-
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, $({
|
|
1917
1921
|
class: e.clsName
|
|
1918
|
-
},
|
|
1922
|
+
}, D(e, ...s, ...d, "model")), {
|
|
1919
1923
|
default: () => {
|
|
1920
|
-
var
|
|
1921
|
-
return [(
|
|
1922
|
-
const S =
|
|
1923
|
-
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, $({
|
|
1924
1928
|
class: `${e.clsName}-item`
|
|
1925
|
-
},
|
|
1929
|
+
}, p(h.extra, "desc")), {
|
|
1926
1930
|
default: () => {
|
|
1927
|
-
var
|
|
1928
|
-
return [((
|
|
1929
|
-
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
|
|
1930
1934
|
}, {
|
|
1931
1935
|
render: "descRender"
|
|
1932
1936
|
})];
|
|
1933
1937
|
},
|
|
1934
1938
|
label: () => {
|
|
1935
|
-
var
|
|
1936
|
-
return ((
|
|
1939
|
+
var g;
|
|
1940
|
+
return ((g = t.label) == null ? void 0 : g.call(t, h)) || h.title;
|
|
1937
1941
|
}
|
|
1938
1942
|
});
|
|
1939
|
-
}), (
|
|
1943
|
+
}), (b = t.default) == null ? void 0 : b.call(t)];
|
|
1940
1944
|
},
|
|
1941
1945
|
...t
|
|
1942
1946
|
});
|
|
1943
1947
|
}
|
|
1944
|
-
}),
|
|
1948
|
+
}), fn = (e, t) => Je(e) ? e : e || t, Vr = () => ({
|
|
1945
1949
|
value: {
|
|
1946
1950
|
type: [String, Number]
|
|
1947
1951
|
},
|
|
1948
1952
|
emptyText: {
|
|
1949
1953
|
type: String
|
|
1950
1954
|
}
|
|
1951
|
-
}),
|
|
1955
|
+
}), Ha = A({
|
|
1952
1956
|
props: {
|
|
1953
|
-
|
|
1957
|
+
...Vr()
|
|
1954
1958
|
},
|
|
1955
|
-
setup: (e) => () =>
|
|
1956
|
-
}),
|
|
1959
|
+
setup: (e) => () => fn(e.value, e.emptyText)
|
|
1960
|
+
}), zr = () => ({
|
|
1957
1961
|
content: {
|
|
1958
1962
|
type: [String, Number]
|
|
1959
1963
|
},
|
|
@@ -1964,30 +1968,30 @@ const Sr = () => ({
|
|
|
1964
1968
|
emptyText: {
|
|
1965
1969
|
type: String
|
|
1966
1970
|
}
|
|
1967
|
-
}),
|
|
1971
|
+
}), Hr = A({
|
|
1968
1972
|
inheritAttrs: !1,
|
|
1969
1973
|
props: {
|
|
1970
|
-
...
|
|
1974
|
+
...zr()
|
|
1971
1975
|
},
|
|
1972
1976
|
setup: (e, {
|
|
1973
1977
|
attrs: t
|
|
1974
1978
|
}) => {
|
|
1975
|
-
const o =
|
|
1979
|
+
const o = Z()(q.PopoverKey), r = () => {
|
|
1976
1980
|
var n, u;
|
|
1977
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";
|
|
1978
1982
|
};
|
|
1979
1983
|
return () => {
|
|
1980
|
-
const n = i("span",
|
|
1984
|
+
const n = i("span", $({
|
|
1981
1985
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
1982
|
-
style: `-webkit-line-clamp:${
|
|
1983
|
-
}, t), [
|
|
1986
|
+
style: `-webkit-line-clamp:${r()}`
|
|
1987
|
+
}, t), [fn(e.content, e.emptyText)]);
|
|
1984
1988
|
return !e.popoverProps || !o ? n : i(o, e.popoverProps, {
|
|
1985
1989
|
default: () => [n],
|
|
1986
1990
|
content: () => e.content
|
|
1987
1991
|
});
|
|
1988
1992
|
};
|
|
1989
1993
|
}
|
|
1990
|
-
}),
|
|
1994
|
+
}), Ae = {
|
|
1991
1995
|
value: {
|
|
1992
1996
|
type: [String, Number]
|
|
1993
1997
|
},
|
|
@@ -1997,27 +2001,27 @@ const Sr = () => ({
|
|
|
1997
2001
|
convert: {
|
|
1998
2002
|
type: Function
|
|
1999
2003
|
}
|
|
2000
|
-
},
|
|
2004
|
+
}, Ve = A({
|
|
2001
2005
|
inheritAttrs: !1,
|
|
2002
2006
|
props: {
|
|
2003
|
-
...
|
|
2007
|
+
...Ae
|
|
2004
2008
|
},
|
|
2005
2009
|
setup: (e, {
|
|
2006
2010
|
attrs: t
|
|
2007
2011
|
}) => {
|
|
2008
|
-
const
|
|
2012
|
+
const a = I(() => {
|
|
2009
2013
|
var n;
|
|
2010
|
-
const o = (n = e.showProps) == null ? void 0 : n.content,
|
|
2011
|
-
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;
|
|
2012
2016
|
});
|
|
2013
|
-
return () => i(
|
|
2014
|
-
content:
|
|
2017
|
+
return () => i(Hr, $(J(t, "style", "class"), D(e.showProps, "content"), {
|
|
2018
|
+
content: a.value
|
|
2015
2019
|
}), null);
|
|
2016
2020
|
}
|
|
2017
|
-
}),
|
|
2021
|
+
}), Wa = A({
|
|
2018
2022
|
inheritAttrs: !1,
|
|
2019
2023
|
props: {
|
|
2020
|
-
...
|
|
2024
|
+
...Ae,
|
|
2021
2025
|
decimalFixed: {
|
|
2022
2026
|
type: Number,
|
|
2023
2027
|
default: 0
|
|
@@ -2030,19 +2034,19 @@ const Sr = () => ({
|
|
|
2030
2034
|
setup: (e, {
|
|
2031
2035
|
attrs: t
|
|
2032
2036
|
}) => {
|
|
2033
|
-
const
|
|
2037
|
+
const a = I(() => {
|
|
2034
2038
|
let o = e.value;
|
|
2035
|
-
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;
|
|
2036
2040
|
});
|
|
2037
|
-
return () => i(
|
|
2038
|
-
value:
|
|
2041
|
+
return () => i(Ve, $(J(t, "style", "class"), {
|
|
2042
|
+
value: a.value,
|
|
2039
2043
|
showProps: e.showProps
|
|
2040
2044
|
}), null);
|
|
2041
2045
|
}
|
|
2042
|
-
}),
|
|
2046
|
+
}), Ga = A({
|
|
2043
2047
|
inheritAttrs: !1,
|
|
2044
2048
|
props: {
|
|
2045
|
-
...
|
|
2049
|
+
...Ae,
|
|
2046
2050
|
value: {
|
|
2047
2051
|
type: [String, Number, Array]
|
|
2048
2052
|
},
|
|
@@ -2058,21 +2062,21 @@ const Sr = () => ({
|
|
|
2058
2062
|
setup: (e, {
|
|
2059
2063
|
attrs: t
|
|
2060
2064
|
}) => {
|
|
2061
|
-
const
|
|
2065
|
+
const a = I(() => Vn(e.options, (n) => n.label), void 0), o = I(() => {
|
|
2062
2066
|
const n = e.value;
|
|
2063
2067
|
let u = e.value;
|
|
2064
|
-
return
|
|
2065
|
-
}),
|
|
2066
|
-
return () => i(
|
|
2067
|
-
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 || ""}`,
|
|
2068
2072
|
value: o.value,
|
|
2069
2073
|
showProps: e.showProps
|
|
2070
2074
|
}), null);
|
|
2071
2075
|
}
|
|
2072
|
-
}),
|
|
2076
|
+
}), Xa = A({
|
|
2073
2077
|
inheritAttrs: !1,
|
|
2074
2078
|
props: {
|
|
2075
|
-
...
|
|
2079
|
+
...Ae,
|
|
2076
2080
|
value: {
|
|
2077
2081
|
type: [String, Number, Array]
|
|
2078
2082
|
},
|
|
@@ -2089,25 +2093,25 @@ const Sr = () => ({
|
|
|
2089
2093
|
setup: (e, {
|
|
2090
2094
|
attrs: t
|
|
2091
2095
|
}) => {
|
|
2092
|
-
const
|
|
2093
|
-
const
|
|
2094
|
-
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"), {
|
|
2095
2099
|
value: "value",
|
|
2096
2100
|
children: "children",
|
|
2097
2101
|
...n
|
|
2098
2102
|
});
|
|
2099
|
-
}), o =
|
|
2100
|
-
let
|
|
2101
|
-
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;
|
|
2102
2106
|
});
|
|
2103
|
-
return () => i(
|
|
2107
|
+
return () => i(Ve, $(J(t, "style", "class"), {
|
|
2104
2108
|
value: o.value,
|
|
2105
2109
|
showProps: e.showProps
|
|
2106
2110
|
}), null);
|
|
2107
2111
|
}
|
|
2108
|
-
}),
|
|
2112
|
+
}), _a = A({
|
|
2109
2113
|
props: {
|
|
2110
|
-
...
|
|
2114
|
+
...Ae,
|
|
2111
2115
|
value: {
|
|
2112
2116
|
type: [String, Number, Array]
|
|
2113
2117
|
},
|
|
@@ -2127,31 +2131,204 @@ const Sr = () => ({
|
|
|
2127
2131
|
setup: (e, {
|
|
2128
2132
|
attrs: t
|
|
2129
2133
|
}) => {
|
|
2130
|
-
const
|
|
2131
|
-
let
|
|
2132
|
-
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;
|
|
2133
2137
|
});
|
|
2134
|
-
return () => i(
|
|
2138
|
+
return () => i(Ve, $(J(t, "style", "class"), {
|
|
2135
2139
|
value: o.value,
|
|
2136
2140
|
showProps: e.showProps
|
|
2137
2141
|
}), null);
|
|
2138
2142
|
}
|
|
2139
|
-
}),
|
|
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, {
|
|
2140
2317
|
slots: t
|
|
2141
2318
|
}) => {
|
|
2142
|
-
const
|
|
2143
|
-
return
|
|
2319
|
+
const a = W(), o = W(0);
|
|
2320
|
+
return $e(a, (r) => {
|
|
2144
2321
|
var u;
|
|
2145
|
-
const n = (u =
|
|
2322
|
+
const n = (u = r[0]) == null ? void 0 : u.contentRect;
|
|
2146
2323
|
o.value = n == null ? void 0 : n.width;
|
|
2147
2324
|
}), () => {
|
|
2148
|
-
var
|
|
2149
|
-
return i("header", null, [(
|
|
2150
|
-
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,
|
|
2151
2328
|
class: "pro-header-menus-wrapper"
|
|
2152
2329
|
}, [t.menus(o.value)]), (n = t.default) == null ? void 0 : n.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
|
|
2153
2330
|
};
|
|
2154
|
-
}),
|
|
2331
|
+
}), _r = () => ({
|
|
2155
2332
|
clsName: {
|
|
2156
2333
|
type: String,
|
|
2157
2334
|
default: "pro-layout"
|
|
@@ -2166,6 +2343,16 @@ const Sr = () => ({
|
|
|
2166
2343
|
findActiveKey: {
|
|
2167
2344
|
type: Function
|
|
2168
2345
|
},
|
|
2346
|
+
convertName: {
|
|
2347
|
+
type: Function
|
|
2348
|
+
},
|
|
2349
|
+
tabs: {
|
|
2350
|
+
type: Object,
|
|
2351
|
+
default: void 0
|
|
2352
|
+
},
|
|
2353
|
+
collapse: {
|
|
2354
|
+
type: Boolean
|
|
2355
|
+
},
|
|
2169
2356
|
menus: {
|
|
2170
2357
|
type: Array
|
|
2171
2358
|
},
|
|
@@ -2174,7 +2361,8 @@ const Sr = () => ({
|
|
|
2174
2361
|
default: {
|
|
2175
2362
|
children: "children",
|
|
2176
2363
|
value: "value",
|
|
2177
|
-
label: "label"
|
|
2364
|
+
label: "label",
|
|
2365
|
+
hide: "hide"
|
|
2178
2366
|
}
|
|
2179
2367
|
},
|
|
2180
2368
|
convertSubMenuProps: {
|
|
@@ -2189,118 +2377,179 @@ const Sr = () => ({
|
|
|
2189
2377
|
menuProps: {
|
|
2190
2378
|
type: Object
|
|
2191
2379
|
}
|
|
2192
|
-
}),
|
|
2380
|
+
}), Ya = A({
|
|
2193
2381
|
inheritAttrs: !1,
|
|
2194
2382
|
props: {
|
|
2195
|
-
...
|
|
2383
|
+
..._r()
|
|
2196
2384
|
},
|
|
2197
2385
|
setup: (e, {
|
|
2198
2386
|
slots: t,
|
|
2199
|
-
attrs:
|
|
2387
|
+
attrs: a
|
|
2200
2388
|
}) => {
|
|
2201
|
-
const o =
|
|
2389
|
+
const o = Z(), r = o(q.MenusKey), n = o(q.ScrollKey) || "div", {
|
|
2202
2390
|
router: u,
|
|
2203
|
-
route:
|
|
2204
|
-
} =
|
|
2205
|
-
var
|
|
2206
|
-
return
|
|
2207
|
-
var
|
|
2208
|
-
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";
|
|
2209
2397
|
return {
|
|
2210
|
-
|
|
2211
|
-
value: m
|
|
2212
|
-
label: m
|
|
2398
|
+
...D(m, w, B, L),
|
|
2399
|
+
value: p(m, w),
|
|
2400
|
+
label: p(m, B),
|
|
2401
|
+
hide: p(m, L)
|
|
2213
2402
|
};
|
|
2214
2403
|
}, {
|
|
2215
|
-
children: ((
|
|
2404
|
+
children: ((c = e.fieldNames) == null ? void 0 : c.children) || "children",
|
|
2216
2405
|
childrenName: "children"
|
|
2217
2406
|
});
|
|
2218
|
-
}), 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;
|
|
2219
2409
|
if (e.findCurrentTopName)
|
|
2220
|
-
return e.findCurrentTopName(
|
|
2221
|
-
const
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
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;
|
|
2225
2415
|
if (e.findActiveKey)
|
|
2226
|
-
return e.findActiveKey(
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
}
|
|
2235
|
-
|
|
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;
|
|
2236
2471
|
return i("div", {
|
|
2237
2472
|
class: `${e.clsName}-menus-wrapper`
|
|
2238
|
-
}, [(
|
|
2473
|
+
}, [(m = C.start) == null ? void 0 : m.call(C), i(n, {
|
|
2239
2474
|
class: `${e.clsName}-menus-scroll`
|
|
2240
2475
|
}, {
|
|
2241
|
-
default: () => [i(
|
|
2242
|
-
}), (
|
|
2476
|
+
default: () => [i(r, c, C)]
|
|
2477
|
+
}), (w = C.end) == null ? void 0 : w.call(C)]);
|
|
2243
2478
|
};
|
|
2244
2479
|
return () => {
|
|
2245
|
-
var
|
|
2246
|
-
if (!
|
|
2480
|
+
var L;
|
|
2481
|
+
if (!r)
|
|
2247
2482
|
return null;
|
|
2248
|
-
const
|
|
2483
|
+
const c = [`${e.clsName} ${e.clsName}-${e.layout}`];
|
|
2484
|
+
U.value && c.push("has-tabs");
|
|
2485
|
+
const m = {
|
|
2249
2486
|
class: `${e.clsName}-menus`,
|
|
2250
|
-
options:
|
|
2251
|
-
activeKey:
|
|
2252
|
-
...
|
|
2253
|
-
onMenuItemClick:
|
|
2487
|
+
options: v.value,
|
|
2488
|
+
activeKey: O.value,
|
|
2489
|
+
...J(e, "convertSubMenuProps", "convertMenuItemProps"),
|
|
2490
|
+
onMenuItemClick: f,
|
|
2254
2491
|
...e.menuProps
|
|
2255
|
-
},
|
|
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", {
|
|
2256
2499
|
class: `${e.clsName}-section`
|
|
2257
|
-
}, [(
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
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, {
|
|
2261
2506
|
class: `${e.clsName}-header`
|
|
2262
2507
|
}, {
|
|
2263
|
-
menus: (
|
|
2264
|
-
style: `width:${
|
|
2508
|
+
menus: (ee) => ee ? i(r, $({
|
|
2509
|
+
style: `width:${ee}px`,
|
|
2265
2510
|
mode: "horizontal"
|
|
2266
|
-
},
|
|
2267
|
-
...
|
|
2268
|
-
}),
|
|
2269
|
-
class:
|
|
2270
|
-
}), [
|
|
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", {
|
|
2271
2516
|
class: `${e.clsName}-structure`
|
|
2272
|
-
}, [i(
|
|
2517
|
+
}, [i(De, {
|
|
2273
2518
|
class: `${e.clsName}-header`
|
|
2274
|
-
},
|
|
2275
|
-
class:
|
|
2276
|
-
}), [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, {
|
|
2277
2522
|
class: `${e.clsName}-header`
|
|
2278
|
-
},
|
|
2523
|
+
}, H), i("div", {
|
|
2279
2524
|
class: `${e.clsName}-structure`
|
|
2280
|
-
}, [
|
|
2281
|
-
class: `${e.clsName}
|
|
2282
|
-
}),
|
|
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, {
|
|
2283
2530
|
class: `${e.clsName}-header`
|
|
2284
2531
|
}, {
|
|
2285
|
-
menus: (
|
|
2286
|
-
style: `width:${
|
|
2532
|
+
menus: (ee) => ee ? i(r, $({
|
|
2533
|
+
style: `width:${ee}px`,
|
|
2287
2534
|
class: `${e.clsName}-menus`,
|
|
2288
2535
|
mode: "horizontal",
|
|
2289
|
-
options: F(
|
|
2290
|
-
activeKey:
|
|
2291
|
-
},
|
|
2292
|
-
onMenuItemClick:
|
|
2293
|
-
}),
|
|
2294
|
-
...
|
|
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
|
|
2295
2542
|
}), i("div", {
|
|
2296
2543
|
class: `${e.clsName}-structure`
|
|
2297
|
-
}, [
|
|
2298
|
-
...
|
|
2299
|
-
options:
|
|
2300
|
-
}),
|
|
2544
|
+
}, [x.value && y({
|
|
2545
|
+
...w,
|
|
2546
|
+
options: g.value.children
|
|
2547
|
+
}), i("div", {
|
|
2548
|
+
class: `${e.clsName}-right`
|
|
2549
|
+
}, [B])])]));
|
|
2301
2550
|
};
|
|
2302
2551
|
}
|
|
2303
|
-
}),
|
|
2552
|
+
}), Qa = A({
|
|
2304
2553
|
props: {
|
|
2305
2554
|
fieldNames: {
|
|
2306
2555
|
type: Object,
|
|
@@ -2316,41 +2565,41 @@ const Sr = () => ({
|
|
|
2316
2565
|
},
|
|
2317
2566
|
setup: (e, {
|
|
2318
2567
|
slots: t,
|
|
2319
|
-
emit:
|
|
2568
|
+
emit: a
|
|
2320
2569
|
}) => {
|
|
2321
|
-
const
|
|
2322
|
-
const
|
|
2323
|
-
if (
|
|
2324
|
-
const
|
|
2325
|
-
return F(
|
|
2326
|
-
|
|
2327
|
-
id:
|
|
2328
|
-
name:
|
|
2329
|
-
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)
|
|
2330
2579
|
}));
|
|
2331
2580
|
}
|
|
2332
2581
|
return [];
|
|
2333
|
-
}, u =
|
|
2334
|
-
let
|
|
2335
|
-
d &&
|
|
2336
|
-
var
|
|
2337
|
-
const S = e.fieldNames,
|
|
2338
|
-
[S.id]:
|
|
2339
|
-
[S.name]:
|
|
2340
|
-
[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
|
|
2341
2590
|
};
|
|
2342
|
-
return ((
|
|
2343
|
-
}))),
|
|
2591
|
+
return ((g = e.convertItem) == null ? void 0 : g.call(e, h)) || P;
|
|
2592
|
+
}))), a(v, b);
|
|
2344
2593
|
};
|
|
2345
|
-
return () =>
|
|
2594
|
+
return () => r ? i(r, $({
|
|
2346
2595
|
class: "pro-uploader-text",
|
|
2347
2596
|
value: u.value,
|
|
2348
2597
|
"onUpdate:value": (d) => s(d, "update:value"),
|
|
2349
|
-
modelValue:
|
|
2598
|
+
modelValue: l.value,
|
|
2350
2599
|
"onUpdate:modelValue": (d) => s(d, "update:modelValue")
|
|
2351
|
-
},
|
|
2600
|
+
}, D(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
2352
2601
|
}
|
|
2353
|
-
}),
|
|
2602
|
+
}), Ja = A({
|
|
2354
2603
|
props: {
|
|
2355
2604
|
value: [String, Array],
|
|
2356
2605
|
fieldNames: {
|
|
@@ -2364,31 +2613,31 @@ const Sr = () => ({
|
|
|
2364
2613
|
},
|
|
2365
2614
|
setup: (e, {
|
|
2366
2615
|
slots: t,
|
|
2367
|
-
emit:
|
|
2616
|
+
emit: a
|
|
2368
2617
|
}) => {
|
|
2369
2618
|
const o = (u) => {
|
|
2370
|
-
var
|
|
2371
|
-
return !!
|
|
2372
|
-
},
|
|
2619
|
+
var l;
|
|
2620
|
+
return !!p(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
|
|
2621
|
+
}, r = I(() => {
|
|
2373
2622
|
let u = e.value;
|
|
2374
|
-
return u &&
|
|
2375
|
-
var
|
|
2376
|
-
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");
|
|
2377
2626
|
return {
|
|
2378
|
-
...
|
|
2627
|
+
...l,
|
|
2379
2628
|
id: s,
|
|
2380
|
-
size:
|
|
2629
|
+
size: v,
|
|
2381
2630
|
name: d || s
|
|
2382
2631
|
};
|
|
2383
2632
|
}) : [];
|
|
2384
2633
|
}), n = (u) => {
|
|
2385
|
-
|
|
2634
|
+
a("titleClick", u);
|
|
2386
2635
|
};
|
|
2387
2636
|
return () => {
|
|
2388
|
-
var u,
|
|
2637
|
+
var u, l;
|
|
2389
2638
|
return i("div", {
|
|
2390
2639
|
class: "pro-upload-list"
|
|
2391
|
-
}, [(u = t.start) == null ? void 0 : u.call(t), F(
|
|
2640
|
+
}, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (s) => {
|
|
2392
2641
|
var d;
|
|
2393
2642
|
return i("div", {
|
|
2394
2643
|
class: "pro-upload-list-item"
|
|
@@ -2396,34 +2645,34 @@ const Sr = () => ({
|
|
|
2396
2645
|
class: "pro-upload-list-item-title",
|
|
2397
2646
|
onClick: () => n(s)
|
|
2398
2647
|
}, [s.name]), (d = t.extra) == null ? void 0 : d.call(t, s)]);
|
|
2399
|
-
}), (
|
|
2648
|
+
}), (l = t.default) == null ? void 0 : l.call(t)]);
|
|
2400
2649
|
};
|
|
2401
2650
|
}
|
|
2402
|
-
}),
|
|
2403
|
-
!e || !t ||
|
|
2404
|
-
const
|
|
2405
|
-
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)) {
|
|
2406
2655
|
console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
|
|
2407
2656
|
return;
|
|
2408
2657
|
}
|
|
2409
|
-
if (!
|
|
2410
|
-
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);
|
|
2411
2660
|
return;
|
|
2412
2661
|
}
|
|
2413
|
-
ie(e,
|
|
2662
|
+
ie(e, r, a);
|
|
2414
2663
|
});
|
|
2415
|
-
},
|
|
2416
|
-
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
}) :
|
|
2423
|
-
}), e.children &&
|
|
2424
|
-
|
|
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);
|
|
2425
2674
|
});
|
|
2426
|
-
},
|
|
2675
|
+
}, Qr = A({
|
|
2427
2676
|
props: {
|
|
2428
2677
|
initExecuteList: {
|
|
2429
2678
|
type: Array
|
|
@@ -2432,43 +2681,43 @@ const Sr = () => ({
|
|
|
2432
2681
|
setup: (e) => {
|
|
2433
2682
|
const {
|
|
2434
2683
|
execute: t
|
|
2435
|
-
} =
|
|
2436
|
-
return
|
|
2684
|
+
} = Se();
|
|
2685
|
+
return oe(() => {
|
|
2437
2686
|
e.initExecuteList && t(e.initExecuteList, []);
|
|
2438
2687
|
}, []), () => null;
|
|
2439
2688
|
}
|
|
2440
|
-
}),
|
|
2689
|
+
}), Za = ({
|
|
2441
2690
|
actors: e,
|
|
2442
2691
|
configData: t,
|
|
2443
|
-
configDataExtra:
|
|
2692
|
+
configDataExtra: a,
|
|
2444
2693
|
Logic: o
|
|
2445
|
-
}) =>
|
|
2446
|
-
const
|
|
2447
|
-
const d =
|
|
2448
|
-
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;
|
|
2449
2698
|
};
|
|
2450
|
-
|
|
2451
|
-
t && t.elementConfigs && (
|
|
2699
|
+
oe(() => {
|
|
2700
|
+
t && t.elementConfigs && (r.value = n(t.elementConfigs)), t != null && t.elementConfigs;
|
|
2452
2701
|
}, []);
|
|
2453
|
-
const
|
|
2454
|
-
return () =>
|
|
2702
|
+
const l = Z()(q.LoadingKey);
|
|
2703
|
+
return () => r.value ? i(Fe, {
|
|
2455
2704
|
initState: t == null ? void 0 : t.initState,
|
|
2456
2705
|
storeKeys: t == null ? void 0 : t.storeKeys,
|
|
2457
2706
|
actors: e,
|
|
2458
2707
|
requests: t == null ? void 0 : t.requests,
|
|
2459
|
-
elementConfigs:
|
|
2708
|
+
elementConfigs: r.value
|
|
2460
2709
|
}, {
|
|
2461
|
-
default: () => [i(
|
|
2462
|
-
}) :
|
|
2710
|
+
default: () => [i(Qr, null, null), o && i(o, null, null)]
|
|
2711
|
+
}) : l ? i(l, {
|
|
2463
2712
|
loading: !0
|
|
2464
2713
|
}, {
|
|
2465
2714
|
default: () => [i("div", {
|
|
2466
2715
|
class: "pro-module-loading-dom"
|
|
2467
2716
|
}, null)]
|
|
2468
2717
|
}) : null;
|
|
2469
|
-
}),
|
|
2470
|
-
var
|
|
2471
|
-
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 = () => ({
|
|
2472
2721
|
rowKey: {
|
|
2473
2722
|
type: String,
|
|
2474
2723
|
default: "id"
|
|
@@ -2491,325 +2740,325 @@ const Lr = () => ({
|
|
|
2491
2740
|
modalProps: {
|
|
2492
2741
|
type: Object
|
|
2493
2742
|
}
|
|
2494
|
-
}),
|
|
2743
|
+
}), hn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], It = A({
|
|
2495
2744
|
props: {
|
|
2496
|
-
...
|
|
2497
|
-
...
|
|
2745
|
+
...pe,
|
|
2746
|
+
...Zr()
|
|
2498
2747
|
},
|
|
2499
2748
|
setup: (e, {
|
|
2500
2749
|
slots: t,
|
|
2501
|
-
expose:
|
|
2750
|
+
expose: a
|
|
2502
2751
|
}) => {
|
|
2503
2752
|
const {
|
|
2504
2753
|
elementMap: o,
|
|
2505
|
-
state:
|
|
2754
|
+
state: r,
|
|
2506
2755
|
sendEvent: n,
|
|
2507
2756
|
sendRequest: u
|
|
2508
|
-
} =
|
|
2509
|
-
const j =
|
|
2510
|
-
const
|
|
2511
|
-
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;
|
|
2512
2761
|
});
|
|
2513
|
-
return
|
|
2514
|
-
}, 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"));
|
|
2515
2764
|
let S;
|
|
2516
|
-
const
|
|
2517
|
-
u(
|
|
2765
|
+
const P = (T) => {
|
|
2766
|
+
u(R.LIST, {
|
|
2518
2767
|
...S,
|
|
2519
|
-
...
|
|
2768
|
+
...T
|
|
2520
2769
|
});
|
|
2521
|
-
},
|
|
2770
|
+
}, g = (T) => {
|
|
2522
2771
|
n({
|
|
2523
|
-
type:
|
|
2524
|
-
payload:
|
|
2525
|
-
source:
|
|
2772
|
+
type: T.action,
|
|
2773
|
+
payload: D(T, "action", "source"),
|
|
2774
|
+
source: T.source
|
|
2526
2775
|
});
|
|
2527
2776
|
};
|
|
2528
|
-
|
|
2529
|
-
type:
|
|
2530
|
-
payload:
|
|
2777
|
+
ut(({
|
|
2778
|
+
type: T,
|
|
2779
|
+
payload: U,
|
|
2531
2780
|
source: j
|
|
2532
2781
|
}) => {
|
|
2533
2782
|
if (j)
|
|
2534
2783
|
return;
|
|
2535
|
-
let
|
|
2536
|
-
|
|
2784
|
+
let V = T, H = U == null ? void 0 : U.type;
|
|
2785
|
+
V === Ne.Success && (V = p(U, ["requestOpts", "action"]), H = z.SUCCESS);
|
|
2537
2786
|
const {
|
|
2538
|
-
values:
|
|
2539
|
-
record:
|
|
2540
|
-
} =
|
|
2541
|
-
switch (
|
|
2542
|
-
case
|
|
2543
|
-
|
|
2787
|
+
values: C,
|
|
2788
|
+
record: y
|
|
2789
|
+
} = U;
|
|
2790
|
+
switch (V) {
|
|
2791
|
+
case R.LIST:
|
|
2792
|
+
H === z.EMIT && (S = C, P());
|
|
2544
2793
|
return;
|
|
2545
|
-
case
|
|
2546
|
-
|
|
2794
|
+
case R.ADD:
|
|
2795
|
+
H === z.EXECUTE && u(R.ADD, C, r.detailData);
|
|
2547
2796
|
return;
|
|
2548
|
-
case
|
|
2549
|
-
|
|
2797
|
+
case R.EDIT:
|
|
2798
|
+
H === z.EXECUTE && u(R.EDIT, C, r.detailData);
|
|
2550
2799
|
return;
|
|
2551
|
-
case
|
|
2552
|
-
|
|
2800
|
+
case R.DELETE:
|
|
2801
|
+
H === z.EMIT ? u(R.DELETE, y, e.rowKey) : H === z.SUCCESS && P();
|
|
2553
2802
|
return;
|
|
2554
2803
|
}
|
|
2555
|
-
|
|
2804
|
+
V && T === z.EXECUTE && u(V, C);
|
|
2556
2805
|
});
|
|
2557
|
-
const
|
|
2558
|
-
...
|
|
2559
|
-
[
|
|
2560
|
-
}), {}),
|
|
2561
|
-
return
|
|
2562
|
-
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,
|
|
2563
2812
|
getSignColumns: s,
|
|
2564
2813
|
elementMap: o,
|
|
2565
2814
|
formElementMap: e.formElementMap,
|
|
2566
2815
|
rowKey: e.rowKey,
|
|
2567
|
-
curdState:
|
|
2816
|
+
curdState: r,
|
|
2568
2817
|
formColumns: d,
|
|
2569
|
-
descColumns:
|
|
2570
|
-
tableColumns:
|
|
2571
|
-
searchColumns:
|
|
2572
|
-
sendCurdEvent:
|
|
2818
|
+
descColumns: v,
|
|
2819
|
+
tableColumns: b,
|
|
2820
|
+
searchColumns: h,
|
|
2821
|
+
sendCurdEvent: g,
|
|
2573
2822
|
operates: e.operates,
|
|
2574
|
-
getOperate:
|
|
2575
|
-
refreshList:
|
|
2576
|
-
listProps:
|
|
2577
|
-
formProps:
|
|
2823
|
+
getOperate: O,
|
|
2824
|
+
refreshList: P,
|
|
2825
|
+
listProps: f,
|
|
2826
|
+
formProps: M,
|
|
2578
2827
|
descProps: E,
|
|
2579
|
-
modalProps:
|
|
2580
|
-
}),
|
|
2581
|
-
sendCurdEvent:
|
|
2582
|
-
refreshList:
|
|
2828
|
+
modalProps: N
|
|
2829
|
+
}), a({
|
|
2830
|
+
sendCurdEvent: g,
|
|
2831
|
+
refreshList: P
|
|
2583
2832
|
}), () => {
|
|
2584
|
-
var
|
|
2585
|
-
return (
|
|
2833
|
+
var T;
|
|
2834
|
+
return (T = t.default) == null ? void 0 : T.call(t);
|
|
2586
2835
|
};
|
|
2587
2836
|
}
|
|
2588
|
-
}),
|
|
2837
|
+
}), Ye = A({
|
|
2589
2838
|
props: {
|
|
2590
|
-
|
|
2591
|
-
...
|
|
2839
|
+
...D(Fe.props, "state", "requests"),
|
|
2840
|
+
...It.props,
|
|
2592
2841
|
curdState: {
|
|
2593
2842
|
type: Object
|
|
2594
2843
|
}
|
|
2595
2844
|
},
|
|
2596
2845
|
setup: (e, {
|
|
2597
2846
|
slots: t,
|
|
2598
|
-
expose:
|
|
2847
|
+
expose: a
|
|
2599
2848
|
}) => {
|
|
2600
2849
|
const {
|
|
2601
2850
|
elementMap: o,
|
|
2602
|
-
formElementMap:
|
|
2603
|
-
} =
|
|
2851
|
+
formElementMap: r
|
|
2852
|
+
} = re(), n = W(), u = W(), l = e.curdState || be({
|
|
2604
2853
|
detailData: {}
|
|
2605
2854
|
}), s = {
|
|
2606
|
-
[
|
|
2607
|
-
convertParams: (
|
|
2608
|
-
convertData: (
|
|
2855
|
+
[R.LIST]: {
|
|
2856
|
+
convertParams: (h) => h,
|
|
2857
|
+
convertData: (h) => {
|
|
2609
2858
|
var S;
|
|
2610
|
-
return (S =
|
|
2859
|
+
return (S = h.res) == null ? void 0 : S.data;
|
|
2611
2860
|
},
|
|
2612
2861
|
loadingName: "listLoading",
|
|
2613
2862
|
stateName: "listData"
|
|
2614
2863
|
},
|
|
2615
|
-
[
|
|
2616
|
-
convertParams: (
|
|
2617
|
-
convertData: (
|
|
2864
|
+
[R.DETAIL]: {
|
|
2865
|
+
convertParams: (h, S) => J(h, S),
|
|
2866
|
+
convertData: (h) => {
|
|
2618
2867
|
var S;
|
|
2619
|
-
return (S =
|
|
2868
|
+
return (S = h.res) == null ? void 0 : S.data;
|
|
2620
2869
|
},
|
|
2621
2870
|
loadingName: "detailLoading",
|
|
2622
2871
|
stateName: "detailData",
|
|
2623
2872
|
label: "\u8BE6\u60C5"
|
|
2624
2873
|
},
|
|
2625
|
-
[
|
|
2626
|
-
convertParams: (
|
|
2874
|
+
[R.ADD]: {
|
|
2875
|
+
convertParams: (h, S) => ({
|
|
2627
2876
|
body: {
|
|
2628
2877
|
...S,
|
|
2629
|
-
...
|
|
2878
|
+
...h
|
|
2630
2879
|
}
|
|
2631
2880
|
}),
|
|
2632
2881
|
loadingName: "operateLoading",
|
|
2633
2882
|
label: "\u6DFB\u52A0"
|
|
2634
2883
|
},
|
|
2635
|
-
[
|
|
2636
|
-
convertParams: (
|
|
2884
|
+
[R.EDIT]: {
|
|
2885
|
+
convertParams: (h, S) => ({
|
|
2637
2886
|
body: {
|
|
2638
2887
|
...S,
|
|
2639
|
-
...
|
|
2888
|
+
...h
|
|
2640
2889
|
}
|
|
2641
2890
|
}),
|
|
2642
2891
|
loadingName: "operateLoading",
|
|
2643
2892
|
label: "\u7F16\u8F91"
|
|
2644
2893
|
},
|
|
2645
|
-
[
|
|
2646
|
-
convertParams: (
|
|
2894
|
+
[R.DELETE]: {
|
|
2895
|
+
convertParams: (h, S) => J(h, S),
|
|
2647
2896
|
label: "\u5220\u9664"
|
|
2648
2897
|
}
|
|
2649
|
-
}, d = F(e.operates, (
|
|
2650
|
-
var
|
|
2651
|
-
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;
|
|
2652
2901
|
return {
|
|
2653
2902
|
...S,
|
|
2654
|
-
...
|
|
2903
|
+
...P
|
|
2655
2904
|
};
|
|
2656
|
-
}),
|
|
2657
|
-
return
|
|
2658
|
-
sendCurdEvent: (
|
|
2905
|
+
}), v = X(d, (h) => h.actor), b = Y(D(Fe.props, "state", "requests"));
|
|
2906
|
+
return a({
|
|
2907
|
+
sendCurdEvent: (h) => {
|
|
2659
2908
|
var S;
|
|
2660
|
-
(S = u.value) == null || S.sendCurdEvent(
|
|
2909
|
+
(S = u.value) == null || S.sendCurdEvent(h);
|
|
2661
2910
|
},
|
|
2662
|
-
refreshList: (
|
|
2911
|
+
refreshList: (h) => {
|
|
2663
2912
|
var S;
|
|
2664
|
-
(S = u.value) == null || S.refreshList(
|
|
2913
|
+
(S = u.value) == null || S.refreshList(h);
|
|
2665
2914
|
},
|
|
2666
|
-
sendEvent: (
|
|
2915
|
+
sendEvent: (h) => {
|
|
2667
2916
|
var S;
|
|
2668
|
-
(S = n.value) == null || S.sendEvent(
|
|
2917
|
+
(S = n.value) == null || S.sendEvent(h);
|
|
2669
2918
|
},
|
|
2670
|
-
sendRequest: (
|
|
2671
|
-
var
|
|
2672
|
-
(
|
|
2919
|
+
sendRequest: (h, ...S) => {
|
|
2920
|
+
var P;
|
|
2921
|
+
(P = n.value) == null || P.sendRequest(h, ...S);
|
|
2673
2922
|
}
|
|
2674
|
-
}), () => i(Fe,
|
|
2923
|
+
}), () => i(Fe, $({
|
|
2675
2924
|
ref: n
|
|
2676
|
-
},
|
|
2925
|
+
}, J(e, b), {
|
|
2677
2926
|
elementMap: e.elementMap || o,
|
|
2678
|
-
state:
|
|
2679
|
-
requests:
|
|
2927
|
+
state: l,
|
|
2928
|
+
requests: v
|
|
2680
2929
|
}), {
|
|
2681
|
-
default: () => [i(
|
|
2930
|
+
default: () => [i(It, $({
|
|
2682
2931
|
ref: u
|
|
2683
|
-
},
|
|
2684
|
-
formElementMap: e.formElementMap ||
|
|
2932
|
+
}, D(e, ...b, "curdState", "operates", "convertOperate"), {
|
|
2933
|
+
formElementMap: e.formElementMap || r,
|
|
2685
2934
|
operates: d
|
|
2686
2935
|
}), t)]
|
|
2687
2936
|
});
|
|
2688
2937
|
}
|
|
2689
|
-
}),
|
|
2938
|
+
}), ea = () => ({
|
|
2690
2939
|
defaultAddRecord: {
|
|
2691
2940
|
type: Object
|
|
2692
2941
|
}
|
|
2693
|
-
}),
|
|
2942
|
+
}), We = A({
|
|
2694
2943
|
props: {
|
|
2695
|
-
...
|
|
2944
|
+
...ea()
|
|
2696
2945
|
},
|
|
2697
2946
|
setup: (e) => {
|
|
2698
2947
|
var S;
|
|
2699
2948
|
const {
|
|
2700
2949
|
dispatch: t,
|
|
2701
|
-
sendRequest:
|
|
2702
|
-
} =
|
|
2950
|
+
sendRequest: a
|
|
2951
|
+
} = Se(), {
|
|
2703
2952
|
rowKey: o,
|
|
2704
|
-
curdState:
|
|
2953
|
+
curdState: r,
|
|
2705
2954
|
listProps: n,
|
|
2706
2955
|
getOperate: u,
|
|
2707
|
-
refreshList:
|
|
2708
|
-
} =
|
|
2709
|
-
const
|
|
2710
|
-
|
|
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({
|
|
2711
2960
|
type: "detailData",
|
|
2712
|
-
payload:
|
|
2961
|
+
payload: Ft(P)
|
|
2713
2962
|
});
|
|
2714
|
-
},
|
|
2715
|
-
record:
|
|
2963
|
+
}, v = (P, {
|
|
2964
|
+
record: g
|
|
2716
2965
|
}) => {
|
|
2717
|
-
|
|
2966
|
+
P === z.EMIT && (t({
|
|
2718
2967
|
type: "mode",
|
|
2719
|
-
payload:
|
|
2720
|
-
}), d(
|
|
2721
|
-
},
|
|
2722
|
-
|
|
2968
|
+
payload: ve.DETAIL
|
|
2969
|
+
}), d(g));
|
|
2970
|
+
}, b = (P) => {
|
|
2971
|
+
P === z.EMIT ? (t({
|
|
2723
2972
|
type: "mode",
|
|
2724
|
-
payload:
|
|
2973
|
+
payload: ve.ADD
|
|
2725
2974
|
}), t({
|
|
2726
2975
|
type: "detailData",
|
|
2727
2976
|
payload: e.defaultAddRecord || {}
|
|
2728
|
-
})) :
|
|
2977
|
+
})) : P === z.SUCCESS && (s && (s.page = 1), l(), r.addAction === Oe.CONTINUE ? t({
|
|
2729
2978
|
type: "detailData",
|
|
2730
2979
|
payload: e.defaultAddRecord || {}
|
|
2731
2980
|
}) : t({
|
|
2732
2981
|
type: "mode",
|
|
2733
2982
|
payload: void 0
|
|
2734
2983
|
}));
|
|
2735
|
-
},
|
|
2736
|
-
record:
|
|
2984
|
+
}, h = (P, {
|
|
2985
|
+
record: g
|
|
2737
2986
|
}) => {
|
|
2738
|
-
|
|
2987
|
+
P === z.EMIT ? (t({
|
|
2739
2988
|
type: "mode",
|
|
2740
|
-
payload:
|
|
2741
|
-
}), d(
|
|
2989
|
+
payload: ve.EDIT
|
|
2990
|
+
}), d(g)) : P === z.SUCCESS && (t({
|
|
2742
2991
|
type: "mode",
|
|
2743
2992
|
payload: void 0
|
|
2744
|
-
}),
|
|
2993
|
+
}), l());
|
|
2745
2994
|
};
|
|
2746
|
-
return
|
|
2747
|
-
type:
|
|
2748
|
-
payload:
|
|
2749
|
-
source:
|
|
2995
|
+
return ut(({
|
|
2996
|
+
type: P,
|
|
2997
|
+
payload: g,
|
|
2998
|
+
source: x
|
|
2750
2999
|
}) => {
|
|
2751
|
-
if (
|
|
3000
|
+
if (x)
|
|
2752
3001
|
return;
|
|
2753
|
-
let
|
|
2754
|
-
const
|
|
2755
|
-
switch (
|
|
2756
|
-
case
|
|
2757
|
-
|
|
2758
|
-
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
|
|
2759
3008
|
});
|
|
2760
3009
|
break;
|
|
2761
|
-
case
|
|
2762
|
-
|
|
3010
|
+
case R.ADD:
|
|
3011
|
+
b(f);
|
|
2763
3012
|
break;
|
|
2764
|
-
case
|
|
2765
|
-
f
|
|
2766
|
-
record:
|
|
3013
|
+
case R.EDIT:
|
|
3014
|
+
h(f, {
|
|
3015
|
+
record: M
|
|
2767
3016
|
});
|
|
2768
3017
|
break;
|
|
2769
3018
|
}
|
|
2770
3019
|
}), () => null;
|
|
2771
3020
|
}
|
|
2772
|
-
}),
|
|
3021
|
+
}), eo = A({
|
|
2773
3022
|
props: {
|
|
2774
|
-
...
|
|
2775
|
-
...
|
|
3023
|
+
...Ye.props,
|
|
3024
|
+
...We.props
|
|
2776
3025
|
},
|
|
2777
3026
|
setup: (e, {
|
|
2778
3027
|
slots: t,
|
|
2779
|
-
expose:
|
|
3028
|
+
expose: a
|
|
2780
3029
|
}) => {
|
|
2781
|
-
const o =
|
|
2782
|
-
|
|
2783
|
-
const
|
|
2784
|
-
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, $({
|
|
2785
3034
|
ref: o
|
|
2786
|
-
},
|
|
3035
|
+
}, D(e, r)), {
|
|
2787
3036
|
default: () => {
|
|
2788
|
-
var
|
|
2789
|
-
return [i(
|
|
3037
|
+
var l;
|
|
3038
|
+
return [i(We, J(e, r), null), (l = t.default) == null ? void 0 : l.call(t)];
|
|
2790
3039
|
}
|
|
2791
3040
|
}) : null;
|
|
2792
3041
|
}
|
|
2793
|
-
}),
|
|
3042
|
+
}), ta = () => ({
|
|
2794
3043
|
defaultAddRecord: {
|
|
2795
3044
|
type: Object
|
|
2796
3045
|
},
|
|
2797
3046
|
routeBack: {
|
|
2798
3047
|
type: Function
|
|
2799
3048
|
}
|
|
2800
|
-
}),
|
|
3049
|
+
}), Ge = A({
|
|
2801
3050
|
props: {
|
|
2802
|
-
...
|
|
3051
|
+
...ta()
|
|
2803
3052
|
},
|
|
2804
3053
|
setup: (e) => {
|
|
2805
|
-
const t =
|
|
3054
|
+
const t = rt(), a = at(), {
|
|
2806
3055
|
dispatch: o,
|
|
2807
|
-
sendRequest:
|
|
2808
|
-
} =
|
|
3056
|
+
sendRequest: r
|
|
3057
|
+
} = Se(), {
|
|
2809
3058
|
rowKey: n,
|
|
2810
3059
|
curdState: u
|
|
2811
|
-
} =
|
|
2812
|
-
|
|
3060
|
+
} = ce(), l = (b) => {
|
|
3061
|
+
b === z.PAGE && (o({
|
|
2813
3062
|
type: "mode",
|
|
2814
3063
|
payload: void 0
|
|
2815
3064
|
}), o({
|
|
@@ -2822,120 +3071,120 @@ const Lr = () => ({
|
|
|
2822
3071
|
type: "addAction",
|
|
2823
3072
|
payload: void 0
|
|
2824
3073
|
}));
|
|
2825
|
-
}, s = (
|
|
2826
|
-
record:
|
|
3074
|
+
}, s = (b, {
|
|
3075
|
+
record: h
|
|
2827
3076
|
}) => {
|
|
2828
|
-
|
|
2829
|
-
path: `${
|
|
2830
|
-
query:
|
|
2831
|
-
}) :
|
|
3077
|
+
b === z.EMIT ? t.push({
|
|
3078
|
+
path: `${a.path}/detail`,
|
|
3079
|
+
query: J(h, n)
|
|
3080
|
+
}) : b === z.PAGE && (o({
|
|
2832
3081
|
type: "mode",
|
|
2833
|
-
payload:
|
|
2834
|
-
}),
|
|
2835
|
-
}, d = (
|
|
2836
|
-
|
|
2837
|
-
path: `${
|
|
2838
|
-
}) :
|
|
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({
|
|
2839
3088
|
type: "mode",
|
|
2840
|
-
payload:
|
|
3089
|
+
payload: ve.ADD
|
|
2841
3090
|
}), o({
|
|
2842
3091
|
type: "detailData",
|
|
2843
3092
|
payload: e.defaultAddRecord || {}
|
|
2844
|
-
})) :
|
|
3093
|
+
})) : b === z.SUCCESS && (u.addAction === Oe.CONTINUE ? o({
|
|
2845
3094
|
type: "detailData",
|
|
2846
3095
|
payload: e.defaultAddRecord || {}
|
|
2847
|
-
}) : e.routeBack ? e.routeBack(
|
|
2848
|
-
},
|
|
2849
|
-
record:
|
|
3096
|
+
}) : e.routeBack ? e.routeBack(R.ADD) : t.go(-1));
|
|
3097
|
+
}, v = (b, {
|
|
3098
|
+
record: h
|
|
2850
3099
|
}) => {
|
|
2851
|
-
|
|
2852
|
-
path: `${
|
|
2853
|
-
query:
|
|
2854
|
-
}) :
|
|
3100
|
+
b === z.EMIT ? t.push({
|
|
3101
|
+
path: `${a.path}/edit`,
|
|
3102
|
+
query: J(h, n)
|
|
3103
|
+
}) : b === z.PAGE ? (o({
|
|
2855
3104
|
type: "mode",
|
|
2856
|
-
payload:
|
|
2857
|
-
}),
|
|
3105
|
+
payload: ve.EDIT
|
|
3106
|
+
}), r(R.DETAIL, a.query, n)) : b === z.SUCCESS && (e.routeBack ? e.routeBack(R.EDIT) : t.go(-1));
|
|
2858
3107
|
};
|
|
2859
|
-
return
|
|
2860
|
-
type:
|
|
2861
|
-
payload:
|
|
3108
|
+
return ut(({
|
|
3109
|
+
type: b,
|
|
3110
|
+
payload: h,
|
|
2862
3111
|
source: S
|
|
2863
3112
|
}) => {
|
|
2864
3113
|
if (S)
|
|
2865
3114
|
return;
|
|
2866
|
-
let
|
|
2867
|
-
const
|
|
2868
|
-
switch (
|
|
2869
|
-
case
|
|
2870
|
-
|
|
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);
|
|
2871
3120
|
break;
|
|
2872
|
-
case
|
|
2873
|
-
s(
|
|
2874
|
-
record:
|
|
3121
|
+
case R.DETAIL:
|
|
3122
|
+
s(g, {
|
|
3123
|
+
record: x
|
|
2875
3124
|
});
|
|
2876
3125
|
break;
|
|
2877
|
-
case
|
|
2878
|
-
d(
|
|
3126
|
+
case R.ADD:
|
|
3127
|
+
d(g);
|
|
2879
3128
|
break;
|
|
2880
|
-
case
|
|
2881
|
-
|
|
2882
|
-
record:
|
|
3129
|
+
case R.EDIT:
|
|
3130
|
+
v(g, {
|
|
3131
|
+
record: x
|
|
2883
3132
|
});
|
|
2884
3133
|
break;
|
|
2885
3134
|
}
|
|
2886
3135
|
}), () => null;
|
|
2887
3136
|
}
|
|
2888
|
-
}),
|
|
3137
|
+
}), to = A({
|
|
2889
3138
|
props: {
|
|
2890
|
-
...
|
|
2891
|
-
...
|
|
3139
|
+
...Ye.props,
|
|
3140
|
+
...Ge.props
|
|
2892
3141
|
},
|
|
2893
3142
|
setup: (e, {
|
|
2894
3143
|
slots: t,
|
|
2895
|
-
expose:
|
|
3144
|
+
expose: a
|
|
2896
3145
|
}) => {
|
|
2897
|
-
const o =
|
|
2898
|
-
|
|
2899
|
-
const
|
|
2900
|
-
return () => i(
|
|
3146
|
+
const o = W();
|
|
3147
|
+
a(Pe(hn, o));
|
|
3148
|
+
const r = Y(Ge.props);
|
|
3149
|
+
return () => i(Ye, $({
|
|
2901
3150
|
ref: o
|
|
2902
|
-
},
|
|
3151
|
+
}, D(e, r)), {
|
|
2903
3152
|
default: () => {
|
|
2904
3153
|
var n;
|
|
2905
|
-
return [i(
|
|
3154
|
+
return [i(Ge, J(e, r), null), (n = t.default) == null ? void 0 : n.call(t)];
|
|
2906
3155
|
}
|
|
2907
3156
|
});
|
|
2908
3157
|
}
|
|
2909
|
-
}),
|
|
3158
|
+
}), Nt = A({
|
|
2910
3159
|
props: {
|
|
2911
3160
|
buttonProps: Object
|
|
2912
3161
|
},
|
|
2913
3162
|
setup: (e, {
|
|
2914
3163
|
slots: t
|
|
2915
3164
|
}) => {
|
|
2916
|
-
const
|
|
3165
|
+
const a = cn(), {
|
|
2917
3166
|
getOperate: o,
|
|
2918
|
-
sendCurdEvent:
|
|
2919
|
-
} =
|
|
3167
|
+
sendCurdEvent: r
|
|
3168
|
+
} = ce(), n = o(R.ADD), u = () => {
|
|
2920
3169
|
if (n != null && n.onClick) {
|
|
2921
3170
|
n.onClick();
|
|
2922
3171
|
return;
|
|
2923
3172
|
}
|
|
2924
|
-
|
|
2925
|
-
action:
|
|
2926
|
-
type:
|
|
3173
|
+
r({
|
|
3174
|
+
action: R.ADD,
|
|
3175
|
+
type: z.EMIT
|
|
2927
3176
|
});
|
|
2928
|
-
}, s =
|
|
2929
|
-
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, $({
|
|
2930
3179
|
class: "pro-curd-add-button",
|
|
2931
|
-
disabled:
|
|
3180
|
+
disabled: G(n.disabled) ? n.disabled() : n.disabled
|
|
2932
3181
|
}, e.buttonProps, {
|
|
2933
3182
|
onClick: u
|
|
2934
3183
|
}), {
|
|
2935
3184
|
default: () => [n.label]
|
|
2936
3185
|
}) : null;
|
|
2937
3186
|
}
|
|
2938
|
-
}),
|
|
3187
|
+
}), wt = () => ({
|
|
2939
3188
|
addConfig: {
|
|
2940
3189
|
type: Object,
|
|
2941
3190
|
default: {
|
|
@@ -2946,222 +3195,222 @@ const Lr = () => ({
|
|
|
2946
3195
|
type: Boolean,
|
|
2947
3196
|
default: !0
|
|
2948
3197
|
}
|
|
2949
|
-
}),
|
|
3198
|
+
}), na = A({
|
|
2950
3199
|
props: {
|
|
2951
|
-
...
|
|
2952
|
-
...
|
|
3200
|
+
...Br.props,
|
|
3201
|
+
...wt()
|
|
2953
3202
|
},
|
|
2954
3203
|
setup: (e, {
|
|
2955
3204
|
slots: t
|
|
2956
3205
|
}) => {
|
|
2957
3206
|
const {
|
|
2958
|
-
elementMap:
|
|
3207
|
+
elementMap: a,
|
|
2959
3208
|
formElementMap: o,
|
|
2960
|
-
curdState:
|
|
3209
|
+
curdState: r,
|
|
2961
3210
|
searchColumns: n,
|
|
2962
3211
|
tableColumns: u,
|
|
2963
|
-
sendCurdEvent:
|
|
3212
|
+
sendCurdEvent: l,
|
|
2964
3213
|
operates: s,
|
|
2965
3214
|
refreshList: d
|
|
2966
|
-
} =
|
|
2967
|
-
|
|
2968
|
-
const
|
|
2969
|
-
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;
|
|
2970
3219
|
}),
|
|
2971
|
-
(
|
|
2972
|
-
const
|
|
2973
|
-
...
|
|
2974
|
-
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
|
|
2975
3224
|
};
|
|
2976
|
-
return
|
|
2977
|
-
|
|
2978
|
-
action:
|
|
2979
|
-
type:
|
|
3225
|
+
return M.onClick || (M.onClick = (E) => {
|
|
3226
|
+
l({
|
|
3227
|
+
action: f.action,
|
|
3228
|
+
type: z.EMIT,
|
|
2980
3229
|
record: E
|
|
2981
3230
|
});
|
|
2982
|
-
}),
|
|
3231
|
+
}), M;
|
|
2983
3232
|
}
|
|
2984
|
-
),
|
|
2985
|
-
|
|
2986
|
-
action:
|
|
2987
|
-
type:
|
|
2988
|
-
values:
|
|
3233
|
+
), b = (f) => {
|
|
3234
|
+
l({
|
|
3235
|
+
action: R.LIST,
|
|
3236
|
+
type: z.EMIT,
|
|
3237
|
+
values: f
|
|
2989
3238
|
});
|
|
2990
3239
|
};
|
|
2991
|
-
|
|
3240
|
+
Hn(() => {
|
|
2992
3241
|
e.activatedRefresh && d();
|
|
2993
3242
|
});
|
|
2994
|
-
const
|
|
3243
|
+
const h = I(() => ({
|
|
2995
3244
|
formElementMap: o,
|
|
2996
3245
|
columns: n.value,
|
|
2997
3246
|
...e.searchProps
|
|
2998
|
-
})), S =
|
|
2999
|
-
var
|
|
3247
|
+
})), S = I(() => {
|
|
3248
|
+
var f, M;
|
|
3000
3249
|
return {
|
|
3001
|
-
elementMap:
|
|
3250
|
+
elementMap: a,
|
|
3002
3251
|
columns: u.value,
|
|
3003
|
-
loading:
|
|
3004
|
-
dataSource: (
|
|
3005
|
-
|
|
3252
|
+
loading: r.listLoading,
|
|
3253
|
+
dataSource: (f = r.listData) == null ? void 0 : f.dataSource,
|
|
3254
|
+
...D(e.tableProps, "operate"),
|
|
3006
3255
|
operate: {
|
|
3007
|
-
items:
|
|
3008
|
-
...(
|
|
3256
|
+
items: v,
|
|
3257
|
+
...(M = e.tableProps) == null ? void 0 : M.operate
|
|
3009
3258
|
}
|
|
3010
3259
|
};
|
|
3011
|
-
}),
|
|
3012
|
-
var
|
|
3260
|
+
}), P = I(() => {
|
|
3261
|
+
var f;
|
|
3013
3262
|
return e.paginationProps === !1 ? !1 : {
|
|
3014
|
-
total: (
|
|
3263
|
+
total: (f = r.listData) == null ? void 0 : f.total,
|
|
3015
3264
|
...e.paginationProps
|
|
3016
3265
|
};
|
|
3017
|
-
}),
|
|
3266
|
+
}), g = Y(wt()), O = Z()(q.ProListKey);
|
|
3018
3267
|
return () => {
|
|
3019
|
-
var
|
|
3020
|
-
return
|
|
3268
|
+
var f, M;
|
|
3269
|
+
return O ? i(O, $({
|
|
3021
3270
|
class: "pro-curd-list"
|
|
3022
|
-
},
|
|
3023
|
-
searchProps:
|
|
3271
|
+
}, D(e, ...g, "searchProps", "tableProps", "paginationProps"), {
|
|
3272
|
+
searchProps: h.value,
|
|
3024
3273
|
tableProps: S.value,
|
|
3025
|
-
paginationProps:
|
|
3026
|
-
onSearch:
|
|
3274
|
+
paginationProps: P.value,
|
|
3275
|
+
onSearch: b
|
|
3027
3276
|
}), {
|
|
3028
|
-
"search-end": (
|
|
3277
|
+
"search-end": (f = e.addConfig) != null && f.inSearch ? () => {
|
|
3029
3278
|
var E;
|
|
3030
3279
|
return i("div", {
|
|
3031
3280
|
class: "pro-curd-list-search-end"
|
|
3032
|
-
}, [i(
|
|
3281
|
+
}, [i(Nt, (E = e.addConfig) == null ? void 0 : E.buttonProps, null)]);
|
|
3033
3282
|
} : void 0,
|
|
3034
|
-
"table-toolbarExtra": (
|
|
3035
|
-
var
|
|
3036
|
-
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]);
|
|
3037
3286
|
} : void 0,
|
|
3038
3287
|
...t,
|
|
3039
|
-
search: t.search ? (E) => t.search(E,
|
|
3288
|
+
search: t.search ? (E) => t.search(E, h.value) : void 0,
|
|
3040
3289
|
table: t.table ? (E) => t.table(E, S.value) : void 0,
|
|
3041
|
-
pagination: t.pagination ? (E) => t.pagination(E,
|
|
3290
|
+
pagination: t.pagination ? (E) => t.pagination(E, P.value) : void 0
|
|
3042
3291
|
}) : null;
|
|
3043
3292
|
};
|
|
3044
3293
|
}
|
|
3045
|
-
}),
|
|
3294
|
+
}), no = A(() => {
|
|
3046
3295
|
const {
|
|
3047
3296
|
listProps: e
|
|
3048
|
-
} =
|
|
3049
|
-
return () => i(
|
|
3050
|
-
}),
|
|
3297
|
+
} = ce();
|
|
3298
|
+
return () => i(na, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3299
|
+
}), ra = () => ({
|
|
3051
3300
|
signName: {
|
|
3052
3301
|
type: String
|
|
3053
3302
|
}
|
|
3054
|
-
}),
|
|
3303
|
+
}), st = A({
|
|
3055
3304
|
props: {
|
|
3056
|
-
...
|
|
3305
|
+
...ra()
|
|
3057
3306
|
},
|
|
3058
3307
|
setup: (e, {
|
|
3059
3308
|
slots: t,
|
|
3060
|
-
expose:
|
|
3309
|
+
expose: a,
|
|
3061
3310
|
attrs: o
|
|
3062
3311
|
}) => {
|
|
3063
3312
|
const {
|
|
3064
|
-
elementMap:
|
|
3313
|
+
elementMap: r,
|
|
3065
3314
|
formElementMap: n,
|
|
3066
3315
|
curdState: u,
|
|
3067
|
-
formColumns:
|
|
3316
|
+
formColumns: l,
|
|
3068
3317
|
getSignColumns: s,
|
|
3069
3318
|
sendCurdEvent: d
|
|
3070
|
-
} =
|
|
3071
|
-
|
|
3072
|
-
const
|
|
3073
|
-
var
|
|
3074
|
-
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();
|
|
3075
3324
|
}, S = () => {
|
|
3076
|
-
var
|
|
3077
|
-
u.addAction = Oe.CONTINUE, (
|
|
3078
|
-
},
|
|
3325
|
+
var f;
|
|
3326
|
+
u.addAction = Oe.CONTINUE, (f = v.value) == null || f.submit();
|
|
3327
|
+
}, P = [
|
|
3079
3328
|
{
|
|
3080
|
-
value:
|
|
3329
|
+
value: ue.RESET,
|
|
3081
3330
|
label: "\u91CD\u7F6E"
|
|
3082
3331
|
},
|
|
3083
3332
|
{
|
|
3084
|
-
value:
|
|
3333
|
+
value: ue.SUBMIT,
|
|
3085
3334
|
label: "\u63D0\u4EA4",
|
|
3086
3335
|
extraProps: {
|
|
3087
3336
|
type: "primary"
|
|
3088
3337
|
}
|
|
3089
3338
|
},
|
|
3090
3339
|
{
|
|
3091
|
-
value:
|
|
3340
|
+
value: ue.CONTINUE,
|
|
3092
3341
|
label: "\u786E\u5B9A\u5E76\u7EE7\u7EED",
|
|
3093
3342
|
extraProps: {
|
|
3094
3343
|
type: "primary"
|
|
3095
3344
|
},
|
|
3096
3345
|
show: !1
|
|
3097
3346
|
}
|
|
3098
|
-
],
|
|
3099
|
-
o.onFinish || (u.mode ===
|
|
3100
|
-
action:
|
|
3101
|
-
type:
|
|
3102
|
-
values:
|
|
3347
|
+
], g = (f) => {
|
|
3348
|
+
o.onFinish || (u.mode === R.EDIT ? d({
|
|
3349
|
+
action: R.EDIT,
|
|
3350
|
+
type: z.EXECUTE,
|
|
3351
|
+
values: f
|
|
3103
3352
|
}) : d({
|
|
3104
|
-
action:
|
|
3105
|
-
type:
|
|
3106
|
-
values:
|
|
3353
|
+
action: R.ADD,
|
|
3354
|
+
type: z.EXECUTE,
|
|
3355
|
+
values: f
|
|
3107
3356
|
}));
|
|
3108
|
-
},
|
|
3109
|
-
return () =>
|
|
3110
|
-
ref:
|
|
3357
|
+
}, O = Z()(q.ProFormKey);
|
|
3358
|
+
return () => O ? i(O, $({
|
|
3359
|
+
ref: v,
|
|
3111
3360
|
class: "pro-curd-form"
|
|
3112
|
-
},
|
|
3113
|
-
elementMap: e.elementMap ||
|
|
3361
|
+
}, D(e, "operate"), {
|
|
3362
|
+
elementMap: e.elementMap || r,
|
|
3114
3363
|
formElementMap: e.formElementMap || n,
|
|
3115
|
-
columns: e.columns ||
|
|
3116
|
-
readonly: u.mode ===
|
|
3364
|
+
columns: e.columns || b.value,
|
|
3365
|
+
readonly: u.mode === R.DETAIL,
|
|
3117
3366
|
model: e.model || u.detailData,
|
|
3118
|
-
hideRequiredMark: u.mode ===
|
|
3367
|
+
hideRequiredMark: u.mode === R.DETAIL,
|
|
3119
3368
|
operate: e.operate ? {
|
|
3120
|
-
items:
|
|
3121
|
-
onSubmit:
|
|
3369
|
+
items: P,
|
|
3370
|
+
onSubmit: h,
|
|
3122
3371
|
onContinue: S,
|
|
3123
3372
|
...e.operate
|
|
3124
3373
|
} : void 0,
|
|
3125
|
-
onFinish:
|
|
3374
|
+
onFinish: g
|
|
3126
3375
|
}), t) : null;
|
|
3127
3376
|
}
|
|
3128
|
-
}),
|
|
3377
|
+
}), ro = A(() => {
|
|
3129
3378
|
const {
|
|
3130
3379
|
formProps: e
|
|
3131
|
-
} =
|
|
3132
|
-
return () => i(
|
|
3133
|
-
}),
|
|
3380
|
+
} = ce();
|
|
3381
|
+
return () => i(st, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
|
|
3382
|
+
}), aa = () => ({
|
|
3134
3383
|
signName: {
|
|
3135
3384
|
type: String
|
|
3136
3385
|
}
|
|
3137
|
-
}),
|
|
3386
|
+
}), oa = A({
|
|
3138
3387
|
props: {
|
|
3139
|
-
...
|
|
3388
|
+
...aa()
|
|
3140
3389
|
},
|
|
3141
3390
|
setup: (e, {
|
|
3142
3391
|
slots: t
|
|
3143
3392
|
}) => {
|
|
3144
3393
|
const {
|
|
3145
|
-
curdState:
|
|
3394
|
+
curdState: a,
|
|
3146
3395
|
descColumns: o,
|
|
3147
|
-
getSignColumns:
|
|
3148
|
-
} =
|
|
3149
|
-
return () => i(
|
|
3150
|
-
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,
|
|
3151
3400
|
columns: n.value
|
|
3152
3401
|
}), t);
|
|
3153
3402
|
}
|
|
3154
|
-
}),
|
|
3403
|
+
}), ao = A(() => {
|
|
3155
3404
|
const {
|
|
3156
3405
|
descProps: e
|
|
3157
|
-
} =
|
|
3158
|
-
return () => i(
|
|
3406
|
+
} = ce();
|
|
3407
|
+
return () => i(oa, $({
|
|
3159
3408
|
class: "pro-curd-desc"
|
|
3160
|
-
},
|
|
3161
|
-
}),
|
|
3409
|
+
}, D(e == null ? void 0 : e.value, "slots")), p(e == null ? void 0 : e.value, "slots"));
|
|
3410
|
+
}), Ot = () => ({
|
|
3162
3411
|
validMode: {
|
|
3163
3412
|
type: Array,
|
|
3164
|
-
default: [
|
|
3413
|
+
default: [R.ADD, R.DETAIL, R.EDIT]
|
|
3165
3414
|
},
|
|
3166
3415
|
loadingOpts: {
|
|
3167
3416
|
type: Object
|
|
@@ -3169,48 +3418,48 @@ const Lr = () => ({
|
|
|
3169
3418
|
overrideProps: {
|
|
3170
3419
|
type: Object
|
|
3171
3420
|
}
|
|
3172
|
-
}),
|
|
3421
|
+
}), bn = A({
|
|
3173
3422
|
props: {
|
|
3174
|
-
...
|
|
3423
|
+
...Ot()
|
|
3175
3424
|
},
|
|
3176
3425
|
setup: (e, {
|
|
3177
3426
|
slots: t
|
|
3178
3427
|
}) => {
|
|
3179
|
-
const
|
|
3428
|
+
const a = Z(), o = a(q.ModalKey), r = a(q.LoadingKey), {
|
|
3180
3429
|
curdState: n,
|
|
3181
3430
|
getOperate: u
|
|
3182
|
-
} =
|
|
3183
|
-
n.mode = void 0,
|
|
3184
|
-
}, s =
|
|
3431
|
+
} = ce(), l = () => {
|
|
3432
|
+
n.mode = void 0, Rt(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
|
|
3433
|
+
}, s = Y(Ot());
|
|
3185
3434
|
return () => {
|
|
3186
|
-
var
|
|
3435
|
+
var v;
|
|
3187
3436
|
const d = n.mode;
|
|
3188
|
-
return !
|
|
3437
|
+
return !he(e.validMode, (b) => b === d) || !o ? null : i(o, $({
|
|
3189
3438
|
class: "pro-curd-modal"
|
|
3190
|
-
},
|
|
3191
|
-
visible:
|
|
3192
|
-
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),
|
|
3193
3442
|
confirmLoading: n.operateLoading,
|
|
3194
|
-
maskClosable: n.mode ===
|
|
3195
|
-
footer: n.detailLoading || n.mode ===
|
|
3443
|
+
maskClosable: n.mode === R.DETAIL,
|
|
3444
|
+
footer: n.detailLoading || n.mode === R.DETAIL ? !1 : void 0
|
|
3196
3445
|
}, e.overrideProps, {
|
|
3197
|
-
onCancel:
|
|
3446
|
+
onCancel: l
|
|
3198
3447
|
}), {
|
|
3199
3448
|
default: () => {
|
|
3200
|
-
var
|
|
3201
|
-
return [n.detailLoading &&
|
|
3449
|
+
var b;
|
|
3450
|
+
return [n.detailLoading && r ? i(r, $({
|
|
3202
3451
|
loading: !0
|
|
3203
3452
|
}, e.loadingOpts), {
|
|
3204
3453
|
default: () => [i("div", {
|
|
3205
3454
|
class: "pro-curd-modal-loading-dom"
|
|
3206
3455
|
}, null)]
|
|
3207
|
-
}) : (
|
|
3456
|
+
}) : (b = t.default) == null ? void 0 : b.call(t)];
|
|
3208
3457
|
},
|
|
3209
|
-
|
|
3458
|
+
...D(t, "default")
|
|
3210
3459
|
});
|
|
3211
3460
|
};
|
|
3212
3461
|
}
|
|
3213
|
-
}),
|
|
3462
|
+
}), oo = A({
|
|
3214
3463
|
props: {
|
|
3215
3464
|
modalProps: Object,
|
|
3216
3465
|
formProps: Object
|
|
@@ -3218,143 +3467,257 @@ const Lr = () => ({
|
|
|
3218
3467
|
setup: (e, {
|
|
3219
3468
|
slots: t
|
|
3220
3469
|
}) => {
|
|
3221
|
-
const
|
|
3222
|
-
return () => i(
|
|
3470
|
+
const a = W(), o = fe(t, "modal"), r = fe(t, "form");
|
|
3471
|
+
return () => i(bn, $(e.modalProps, {
|
|
3223
3472
|
onOk: () => {
|
|
3224
3473
|
var n;
|
|
3225
|
-
(n =
|
|
3474
|
+
(n = a.value) == null || n.submit();
|
|
3226
3475
|
}
|
|
3227
3476
|
}), {
|
|
3228
|
-
default: () => [i(
|
|
3229
|
-
ref:
|
|
3230
|
-
}, e.formProps),
|
|
3477
|
+
default: () => [i(st, $({
|
|
3478
|
+
ref: a
|
|
3479
|
+
}, e.formProps), r)],
|
|
3231
3480
|
...o
|
|
3232
3481
|
});
|
|
3233
3482
|
}
|
|
3234
|
-
}),
|
|
3483
|
+
}), uo = A(() => {
|
|
3235
3484
|
const {
|
|
3236
3485
|
modalProps: e,
|
|
3237
3486
|
formProps: t
|
|
3238
|
-
} =
|
|
3239
|
-
return () => i(
|
|
3487
|
+
} = ce(), a = W();
|
|
3488
|
+
return () => i(bn, $(D(e == null ? void 0 : e.value, "slots"), {
|
|
3240
3489
|
onOk: () => {
|
|
3241
3490
|
var o;
|
|
3242
|
-
(o =
|
|
3491
|
+
(o = a.value) == null || o.submit();
|
|
3243
3492
|
}
|
|
3244
3493
|
}), {
|
|
3245
|
-
default: () => [i(
|
|
3246
|
-
ref:
|
|
3247
|
-
},
|
|
3248
|
-
...
|
|
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")
|
|
3249
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
|
+
}
|
|
3250
3608
|
});
|
|
3251
3609
|
export {
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3610
|
+
Nt as AddButton,
|
|
3611
|
+
$r as ColumnSetting,
|
|
3612
|
+
R as CurdAction,
|
|
3255
3613
|
Oe as CurdAddAction,
|
|
3256
|
-
|
|
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
|
-
|
|
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,
|
|
3287
3645
|
Fe as ProModule,
|
|
3288
|
-
|
|
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
|
-
|
|
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,
|
|
3315
3677
|
fe as filterSlotsByPrefix,
|
|
3316
3678
|
de as getColumnFormItemName,
|
|
3317
|
-
|
|
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
|
-
|
|
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
|
|
3360
3723
|
};
|