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