@vue-start/pro 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +38 -5
- package/dist/index.es.js +1194 -1227
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { reduce as
|
|
6
|
-
import { Observable as
|
|
7
|
-
import { useEffect as
|
|
8
|
-
import { useRequestProvide as
|
|
9
|
-
import { map as sn, distinctUntilChanged as
|
|
10
|
-
import { useRoute as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
1
|
+
var Lt = Object.defineProperty;
|
|
2
|
+
var Kt = (e, t, r) => t in e ? Lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var ee = (e, t, r) => (Kt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import { defineComponent as T, provide as oe, inject as te, ref as U, computed as D, h as le, isVNode as Se, reactive as ye, createVNode as i, Fragment as Y, mergeProps as I, createTextVNode as He, toRef as xt } from "vue";
|
|
5
|
+
import { reduce as H, get as h, isFunction as F, map as L, isString as Ne, forEach as ve, size as W, set as se, pick as R, omit as M, isArray as V, some as ae, keys as j, head as Rt, isObject as Pe, filter as B, split as Ft, isEmpty as kt, mergeWith as jt, startsWith as Ut, mapKeys as qt, has as je, debounce as Bt, clone as Vt, isBoolean as ne, every as zt, sortBy as st, isNumber as _t, join as Ue, findLast as We, cloneDeep as Gt } from "lodash";
|
|
6
|
+
import { Observable as Ht, filter as Ee, tap as Ce, merge as Wt, Subject as Xt } from "rxjs";
|
|
7
|
+
import { useEffect as Q, useState as ke, setReactiveValue as ut, useRuleState as $e, useWatch as ct, useUpdateKey as Yt, useResizeObserver as Jt, decimalFixed as Qt, thousandDivision as Zt, listToMap as en, treeToMap as tn, convertTreeData as nn, getMenuTopNameMap as rn, findTreeItem as Xe, strToJson as an, jsonToStr as on } from "@vue-start/hooks";
|
|
8
|
+
import { useRequestProvide as he, isDoneRequestActor as lt, isFailedRequestActor as it } from "@vue-start/request";
|
|
9
|
+
import { map as sn, distinctUntilChanged as un } from "rxjs/operators";
|
|
10
|
+
import { useRoute as qe, useRouter as cn } from "vue-router";
|
|
11
|
+
import Ye from "dayjs";
|
|
12
|
+
const ln = () => ({
|
|
13
13
|
elementMap: { type: Object },
|
|
14
14
|
formElementMap: { type: Object },
|
|
15
15
|
columns: { type: Array },
|
|
16
16
|
columnState: { type: Object }
|
|
17
|
-
}),
|
|
17
|
+
}), ie = ln(), dn = () => ({
|
|
18
18
|
elementMap: { type: Object },
|
|
19
19
|
formElementMap: { type: Object },
|
|
20
20
|
formExtraMap: { type: Object },
|
|
21
21
|
registerStores: { type: Array },
|
|
22
22
|
registerActors: { type: Array },
|
|
23
23
|
registerMetas: { type: Array }
|
|
24
|
-
}),
|
|
24
|
+
}), Be = Symbol("pro-config"), Z = () => te(Be) || {}, Pr = T({
|
|
25
25
|
props: {
|
|
26
|
-
...
|
|
26
|
+
...dn()
|
|
27
27
|
},
|
|
28
28
|
setup: (e, { slots: t }) => {
|
|
29
|
-
const r =
|
|
30
|
-
Nn(a,
|
|
31
|
-
const { dispatchRequest: n } =
|
|
32
|
-
const
|
|
33
|
-
if (!!
|
|
34
|
-
return n(
|
|
29
|
+
const r = H(e.registerStores, (u, y) => ({ ...u, [y.key]: y }), {}), s = H(e.registerActors, (u, y) => ({ ...u, [y.actor.name]: y }), {}), a = H(e.registerMetas, (u, y) => ({ ...u, [y.actorName]: y }), {});
|
|
30
|
+
Nn(a, s);
|
|
31
|
+
const { dispatchRequest: n } = he(), o = (u, y, f) => {
|
|
32
|
+
const g = h(s, u);
|
|
33
|
+
if (!!g)
|
|
34
|
+
return n(g.actor, y, f);
|
|
35
35
|
};
|
|
36
|
-
return oe(
|
|
36
|
+
return oe(Be, {
|
|
37
37
|
elementMap: e.elementMap,
|
|
38
38
|
formElementMap: e.formElementMap,
|
|
39
39
|
formExtraMap: e.formExtraMap,
|
|
40
40
|
registerStoreMap: r,
|
|
41
|
-
registerActorMap:
|
|
41
|
+
registerActorMap: s,
|
|
42
42
|
registerMetaMap: a,
|
|
43
|
-
dispatchRequest:
|
|
43
|
+
dispatchRequest: o
|
|
44
44
|
}), () => {
|
|
45
|
-
var
|
|
46
|
-
return (
|
|
45
|
+
var u;
|
|
46
|
+
return (u = t.default) == null ? void 0 : u.call(t);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
50
|
-
t.provide(
|
|
51
|
-
}, fn = Object.prototype.hasOwnProperty,
|
|
52
|
-
if (
|
|
49
|
+
}), Er = (e = {}) => (t) => {
|
|
50
|
+
t.provide(Be, e);
|
|
51
|
+
}, fn = Object.prototype.hasOwnProperty, Je = (e, t) => e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t, mn = (e, t) => {
|
|
52
|
+
if (Je(e, t))
|
|
53
53
|
return !0;
|
|
54
54
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
55
55
|
return !1;
|
|
56
|
-
const r = Object.keys(e),
|
|
57
|
-
if (r.length !==
|
|
56
|
+
const r = Object.keys(e), s = Object.keys(t);
|
|
57
|
+
if (r.length !== s.length)
|
|
58
58
|
return !1;
|
|
59
59
|
for (let a = 0; a < r.length; a++)
|
|
60
|
-
if (!fn.call(t, r[a]) || !
|
|
60
|
+
if (!fn.call(t, r[a]) || !Je(e[r[a]], t[r[a]]))
|
|
61
61
|
return !1;
|
|
62
62
|
return !0;
|
|
63
|
-
},
|
|
64
|
-
const a = typeof e == "function" ? e(
|
|
63
|
+
}, yn = "$store", Ie = () => te(yn), vn = (e, t) => (r = {}, s) => {
|
|
64
|
+
const a = typeof e == "function" ? e(s) : e;
|
|
65
65
|
if (a === "")
|
|
66
66
|
return r;
|
|
67
|
-
const n = t(r[a],
|
|
68
|
-
for (const
|
|
69
|
-
|
|
70
|
-
return typeof n < "u" && (
|
|
67
|
+
const n = t(r[a], s), o = {};
|
|
68
|
+
for (const u in r)
|
|
69
|
+
u !== a && (o[u] = r[u]);
|
|
70
|
+
return typeof n < "u" && (o[a] = n), o;
|
|
71
71
|
};
|
|
72
|
-
class
|
|
72
|
+
class hn {
|
|
73
73
|
constructor(t) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
ee(this, "group");
|
|
75
|
+
ee(this, "name");
|
|
76
|
+
ee(this, "stage");
|
|
77
|
+
ee(this, "effect");
|
|
78
|
+
ee(this, "arg");
|
|
79
|
+
ee(this, "opts");
|
|
80
80
|
this.group = t.group || "UN_GROUPED", this.name = t.name || "UN_NAMED", this.stage = t.stage, this.effect = t.effect, this.arg = t.arg || {}, this.opts = t.opts || {};
|
|
81
81
|
}
|
|
82
82
|
static of(t) {
|
|
@@ -105,7 +105,7 @@ class gn {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
effectOn(t, r) {
|
|
108
|
-
return this.effectWith(
|
|
108
|
+
return this.effectWith(vn(t, r));
|
|
109
109
|
}
|
|
110
110
|
with(t, r) {
|
|
111
111
|
return new this.constructor({
|
|
@@ -134,220 +134,220 @@ class gn {
|
|
|
134
134
|
return t.group === this.group;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
class
|
|
138
|
-
constructor(r,
|
|
137
|
+
class De extends Ht {
|
|
138
|
+
constructor(r, s, a = mn) {
|
|
139
139
|
super((n) => this.state$.pipe(
|
|
140
|
-
sn((
|
|
141
|
-
const
|
|
142
|
-
return a(
|
|
140
|
+
sn((o) => {
|
|
141
|
+
const u = this.mapper(o);
|
|
142
|
+
return a(u, this._value) || (this._value = u), this._value;
|
|
143
143
|
}),
|
|
144
|
-
|
|
144
|
+
un()
|
|
145
145
|
).subscribe(n));
|
|
146
|
-
|
|
147
|
-
this.state$ = r, this.mapper =
|
|
146
|
+
ee(this, "_value");
|
|
147
|
+
this.state$ = r, this.mapper = s;
|
|
148
148
|
}
|
|
149
|
-
static from(r,
|
|
150
|
-
return new
|
|
149
|
+
static from(r, s) {
|
|
150
|
+
return new De(r, s, s.equalFn);
|
|
151
151
|
}
|
|
152
152
|
get value() {
|
|
153
153
|
return typeof this._value > "u" && (this._value = this.mapper(this.state$.value)), this._value;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
const [r,
|
|
158
|
-
return
|
|
156
|
+
const gn = (e, t) => {
|
|
157
|
+
const [r, s] = ke(t || e.value);
|
|
158
|
+
return Q(() => {
|
|
159
159
|
const a = e.subscribe((n) => {
|
|
160
|
-
|
|
160
|
+
s(n);
|
|
161
161
|
});
|
|
162
162
|
return () => {
|
|
163
163
|
a && a.unsubscribe();
|
|
164
164
|
};
|
|
165
165
|
}, void 0), r;
|
|
166
|
-
},
|
|
167
|
-
const r =
|
|
168
|
-
return
|
|
169
|
-
const
|
|
166
|
+
}, pn = (e, t) => {
|
|
167
|
+
const r = U(t || e.value);
|
|
168
|
+
return Q(() => {
|
|
169
|
+
const s = e.subscribe((a) => {
|
|
170
170
|
r.value = a;
|
|
171
171
|
});
|
|
172
172
|
return () => {
|
|
173
|
-
|
|
173
|
+
s && s.unsubscribe();
|
|
174
174
|
};
|
|
175
175
|
}, []), r;
|
|
176
|
-
},
|
|
176
|
+
}, bn = (e, t) => De.from(e, t), Sn = (e) => bn(Ie(), e || ((t) => t)), Pn = hn.of("state"), dt = Pn.named("update").effectOn(
|
|
177
177
|
(e) => e.opts.key,
|
|
178
178
|
(e, t) => t.arg(e)
|
|
179
|
-
),
|
|
180
|
-
const e =
|
|
181
|
-
return (t, r,
|
|
182
|
-
const n = `${
|
|
183
|
-
|
|
184
|
-
(
|
|
179
|
+
), ft = () => {
|
|
180
|
+
const e = Ie();
|
|
181
|
+
return (t, r, s, a) => {
|
|
182
|
+
const n = `${s ? "$" : ""}${t}`, o = F(a) ? a() : a;
|
|
183
|
+
dt.with(
|
|
184
|
+
(u = o) => F(r) ? r(u) : r,
|
|
185
185
|
{ key: n }
|
|
186
186
|
).invoke(e);
|
|
187
187
|
};
|
|
188
|
-
},
|
|
189
|
-
const
|
|
190
|
-
(
|
|
191
|
-
{ key:
|
|
192
|
-
).invoke(n),
|
|
193
|
-
return [
|
|
194
|
-
},
|
|
195
|
-
const [
|
|
196
|
-
return [
|
|
197
|
-
},
|
|
198
|
-
const { requestSubject$:
|
|
199
|
-
|
|
200
|
-
const n =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
a.has(
|
|
188
|
+
}, En = (e, t, r) => {
|
|
189
|
+
const s = `${r ? "$" : ""}${e}`, a = F(t) ? t() : t, n = Ie(), o = (f) => dt.with(
|
|
190
|
+
(g = a) => F(f) ? f(g) : f,
|
|
191
|
+
{ key: s }
|
|
192
|
+
).invoke(n), u = De.from(n, (f) => h(f, [s], a));
|
|
193
|
+
return [gn(u), o];
|
|
194
|
+
}, Cn = (e, t, r = !1) => () => {
|
|
195
|
+
const [s, a] = En(e, t, r);
|
|
196
|
+
return [s, a];
|
|
197
|
+
}, mt = (e) => (t, r) => {
|
|
198
|
+
const { requestSubject$: s } = he(), a = new Set(L(t, (n) => Ne(n) ? n : n.name));
|
|
199
|
+
Q(() => {
|
|
200
|
+
const n = s.pipe(
|
|
201
|
+
Ee(e),
|
|
202
|
+
Ce((o) => {
|
|
203
|
+
a.has(o.name) && r(o);
|
|
204
204
|
})
|
|
205
205
|
).subscribe();
|
|
206
206
|
return () => {
|
|
207
207
|
n.unsubscribe();
|
|
208
208
|
};
|
|
209
209
|
}, []);
|
|
210
|
-
},
|
|
211
|
-
const { requestSubject$:
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
var f,
|
|
218
|
-
n.has(
|
|
210
|
+
}, Cr = mt(lt), Mr = mt(it), Mn = (e, t, r) => {
|
|
211
|
+
const { requestSubject$: s, dispatchRequest: a } = he(), n = new Set(L(e, (u) => Ne(u) ? u : u.name)), o = {};
|
|
212
|
+
Q(() => {
|
|
213
|
+
const u = Wt(
|
|
214
|
+
s.pipe(
|
|
215
|
+
Ee(lt),
|
|
216
|
+
Ce((y) => {
|
|
217
|
+
var f, g;
|
|
218
|
+
n.has(y.name) && ((f = t.onSuccess) == null || f.call(t, y), (g = t.onFinish) == null || g.call(t, y), o[y.name] = void 0);
|
|
219
219
|
})
|
|
220
220
|
),
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
var f,
|
|
225
|
-
n.has(
|
|
221
|
+
s.pipe(
|
|
222
|
+
Ee(it),
|
|
223
|
+
Ce((y) => {
|
|
224
|
+
var f, g;
|
|
225
|
+
n.has(y.name) && ((f = t.onFailed) == null || f.call(t, y), (g = t.onFinish) == null || g.call(t, y), o[y.name] = void 0);
|
|
226
226
|
})
|
|
227
227
|
)
|
|
228
228
|
).subscribe();
|
|
229
229
|
return () => {
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
u.unsubscribe(), r && ve(o, (y) => {
|
|
231
|
+
y && a({ ...y, stage: "CANCEL" });
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
234
|
}, []);
|
|
235
|
-
},
|
|
235
|
+
}, Tn = (e, t, r) => {
|
|
236
236
|
var a;
|
|
237
|
-
const
|
|
238
|
-
return t ? t(
|
|
239
|
-
},
|
|
240
|
-
const e =
|
|
241
|
-
return (
|
|
242
|
-
const a =
|
|
237
|
+
const s = (a = e.res) == null ? void 0 : a.data;
|
|
238
|
+
return t ? t(s, e) : r ? h(s, r) : s;
|
|
239
|
+
}, Tr = () => {
|
|
240
|
+
const e = Ie(), { registerMetaMap: t, dispatchRequest: r } = Z();
|
|
241
|
+
return (s) => {
|
|
242
|
+
const a = h(t, s);
|
|
243
243
|
if (!a)
|
|
244
244
|
return;
|
|
245
|
-
const n = a.storeName ||
|
|
246
|
-
|
|
245
|
+
const n = a.storeName || s;
|
|
246
|
+
h(e.value, n) || r(s, a.initParams || {});
|
|
247
247
|
};
|
|
248
248
|
}, Nn = (e, t) => {
|
|
249
|
-
const { requestSubject$: r } =
|
|
250
|
-
const
|
|
251
|
-
return !!(
|
|
249
|
+
const { requestSubject$: r } = he(), s = ft(), a = (n) => {
|
|
250
|
+
const o = h(e, n.name), u = h(t, n.name);
|
|
251
|
+
return !!(o && u && u.actor);
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
Q(() => {
|
|
254
254
|
const n = r.pipe(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
255
|
+
Ee(a),
|
|
256
|
+
Ce((o) => {
|
|
257
|
+
const u = h(e, o.name);
|
|
258
|
+
if (!u)
|
|
259
259
|
return;
|
|
260
|
-
const
|
|
261
|
-
|
|
260
|
+
const y = u.storeName || o.name, f = Tn(o, u.convertData, u.convertPath);
|
|
261
|
+
s(y, f, !1, void 0);
|
|
262
262
|
})
|
|
263
263
|
).subscribe();
|
|
264
264
|
return () => {
|
|
265
265
|
n.unsubscribe();
|
|
266
266
|
};
|
|
267
267
|
}, []);
|
|
268
|
-
},
|
|
268
|
+
}, yt = (e) => e.formValueType || e.valueType || "text", ue = (e) => {
|
|
269
269
|
var t;
|
|
270
270
|
return ((t = e.formItemProps) == null ? void 0 : t.name) || e.dataIndex;
|
|
271
|
-
},
|
|
272
|
-
var
|
|
273
|
-
const
|
|
271
|
+
}, vt = (e, t, r = !0) => {
|
|
272
|
+
var u;
|
|
273
|
+
const s = yt(t), a = h(e, s);
|
|
274
274
|
if (!a)
|
|
275
275
|
return null;
|
|
276
|
-
const n =
|
|
277
|
-
return
|
|
276
|
+
const n = ue(t), o = r ? t.formItemProps : M(t.formItemProps, "rules");
|
|
277
|
+
return le(a, {
|
|
278
278
|
key: n,
|
|
279
279
|
name: n,
|
|
280
280
|
label: t.title,
|
|
281
|
-
...
|
|
282
|
-
fieldProps:
|
|
281
|
+
...o,
|
|
282
|
+
fieldProps: M(t.formFieldProps, "slots"),
|
|
283
283
|
showProps: t.showProps
|
|
284
|
-
}, (
|
|
285
|
-
},
|
|
284
|
+
}, (u = t.formFieldProps) == null ? void 0 : u.slots);
|
|
285
|
+
}, Ve = (e, t, r) => {
|
|
286
286
|
var n;
|
|
287
|
-
const
|
|
288
|
-
return a ?
|
|
289
|
-
...
|
|
287
|
+
const s = t.valueType || "text", a = h(e, s);
|
|
288
|
+
return a ? le(a, {
|
|
289
|
+
...M(t.formFieldProps, "slots"),
|
|
290
290
|
showProps: t.showProps,
|
|
291
291
|
value: r
|
|
292
292
|
}, (n = t.formFieldProps) == null ? void 0 : n.slots) : null;
|
|
293
|
-
},
|
|
293
|
+
}, ze = (e, t) => L(t, (r) => de(e, r)), ht = (e, t) => {
|
|
294
294
|
var a;
|
|
295
|
-
const r = t.elementProps,
|
|
295
|
+
const r = t.elementProps, s = {
|
|
296
296
|
...t.elementProps
|
|
297
297
|
};
|
|
298
|
-
return
|
|
299
|
-
const
|
|
300
|
-
if (!(!
|
|
301
|
-
if (
|
|
302
|
-
if (ae(
|
|
298
|
+
return ve((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (n) => {
|
|
299
|
+
const o = h(r, n.name);
|
|
300
|
+
if (!(!o || Se(o))) {
|
|
301
|
+
if (V(o)) {
|
|
302
|
+
if (ae(o, (u) => Se(u)))
|
|
303
303
|
return;
|
|
304
|
-
|
|
304
|
+
se(s, n.name, ze(e, o));
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
|
-
!
|
|
308
|
-
const
|
|
309
|
-
...
|
|
310
|
-
params$:
|
|
311
|
-
} :
|
|
312
|
-
return
|
|
313
|
-
...
|
|
314
|
-
elementProps:
|
|
307
|
+
!o.elementType || (n.isFun ? se(s, n.name, (...u) => {
|
|
308
|
+
const y = n.needParams ? {
|
|
309
|
+
...o.elementProps,
|
|
310
|
+
params$: u
|
|
311
|
+
} : o.elementProps;
|
|
312
|
+
return de(e, {
|
|
313
|
+
...o,
|
|
314
|
+
elementProps: y
|
|
315
315
|
});
|
|
316
|
-
}) :
|
|
316
|
+
}) : se(s, n.name, de(e, o)));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
319
|
-
},
|
|
320
|
-
const r = W(t.children) > 0 ?
|
|
321
|
-
return
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
...
|
|
326
|
-
params$:
|
|
327
|
-
} :
|
|
328
|
-
return
|
|
329
|
-
...
|
|
330
|
-
elementProps:
|
|
318
|
+
}), s;
|
|
319
|
+
}, gt = (e, t) => {
|
|
320
|
+
const r = W(t.children) > 0 ? ze(e, t.children) : void 0, s = t.childrenSlotName || "default", a = M(t.slots, r ? s : "");
|
|
321
|
+
return ve(j(a), (n) => {
|
|
322
|
+
const o = a[n];
|
|
323
|
+
o && !F(o) && o.elementType && (a[n] = (...u) => {
|
|
324
|
+
const y = o.needParams ? {
|
|
325
|
+
...o.elementProps,
|
|
326
|
+
params$: u
|
|
327
|
+
} : o.elementProps;
|
|
328
|
+
return de(e, {
|
|
329
|
+
...o,
|
|
330
|
+
elementProps: y
|
|
331
331
|
});
|
|
332
332
|
});
|
|
333
333
|
}), {
|
|
334
|
-
[
|
|
334
|
+
[s]: r ? () => r : void 0,
|
|
335
335
|
...a
|
|
336
336
|
};
|
|
337
|
-
},
|
|
338
|
-
const r =
|
|
337
|
+
}, de = (e, t) => {
|
|
338
|
+
const r = h(e, t.elementType) || t.elementType;
|
|
339
339
|
if (t.highConfig$)
|
|
340
|
-
return
|
|
340
|
+
return le(Dn, {
|
|
341
341
|
key: t.elementId,
|
|
342
342
|
elementMap: e,
|
|
343
343
|
elementConfig: t
|
|
344
344
|
});
|
|
345
|
-
const
|
|
346
|
-
return
|
|
345
|
+
const s = gt(e, t), a = ht(e, t);
|
|
346
|
+
return le(r, {
|
|
347
347
|
key: t.elementId,
|
|
348
348
|
...a
|
|
349
|
-
},
|
|
350
|
-
},
|
|
349
|
+
}, s);
|
|
350
|
+
}, In = (e) => V(e) ? Rt(e) : Ne(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Dn = T({
|
|
351
351
|
props: {
|
|
352
352
|
elementMap: {
|
|
353
353
|
type: Object
|
|
@@ -360,53 +360,53 @@ const bn = (e, t) => {
|
|
|
360
360
|
const {
|
|
361
361
|
state: t,
|
|
362
362
|
sendEvent: r
|
|
363
|
-
} =
|
|
364
|
-
elementMap:
|
|
363
|
+
} = ge(), {
|
|
364
|
+
elementMap: s,
|
|
365
365
|
elementConfig: a
|
|
366
|
-
} = e, n = a.highConfig$,
|
|
367
|
-
...
|
|
366
|
+
} = e, n = a.highConfig$, o = ht(s, a), u = H(n.registerEventList, (m, c) => ({
|
|
367
|
+
...m,
|
|
368
368
|
[c.name]: (...l) => {
|
|
369
369
|
r({
|
|
370
370
|
type: c.sendEventName || a.elementId,
|
|
371
371
|
payload: l
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
}), {}),
|
|
374
|
+
}), {}), y = D(() => {
|
|
375
375
|
if (!n.registerStateList || W(n.registerStateList) <= 0)
|
|
376
376
|
return;
|
|
377
|
-
const
|
|
378
|
-
...
|
|
379
|
-
}, c =
|
|
380
|
-
const
|
|
381
|
-
return
|
|
377
|
+
const m = {
|
|
378
|
+
...o
|
|
379
|
+
}, c = L(n.registerStateList, (l) => {
|
|
380
|
+
const d = l.mapName || l.name, v = h(t, l.name);
|
|
381
|
+
return se(m, d, v), In(d);
|
|
382
382
|
});
|
|
383
|
-
return R(
|
|
384
|
-
}), f =
|
|
385
|
-
return () =>
|
|
383
|
+
return R(m, c);
|
|
384
|
+
}), f = h(s, a.elementType) || a.elementType, g = gt(s, a);
|
|
385
|
+
return () => h(y.value, "show$") === !1 ? null : le(f, {
|
|
386
386
|
key: a.elementId,
|
|
387
|
-
...
|
|
388
|
-
...
|
|
389
|
-
...
|
|
390
|
-
},
|
|
387
|
+
...o,
|
|
388
|
+
...M(y.value, "show$"),
|
|
389
|
+
...u
|
|
390
|
+
}, g);
|
|
391
391
|
}
|
|
392
|
-
}),
|
|
393
|
-
oe(
|
|
394
|
-
},
|
|
392
|
+
}), pt = Symbol("pro-module"), ge = () => te(pt), An = (e) => {
|
|
393
|
+
oe(pt, e);
|
|
394
|
+
}, _e = (e) => {
|
|
395
395
|
const {
|
|
396
396
|
subject$: t
|
|
397
|
-
} =
|
|
398
|
-
|
|
397
|
+
} = ge();
|
|
398
|
+
Q(() => {
|
|
399
399
|
const r = t.subscribe({
|
|
400
|
-
next: (
|
|
401
|
-
e(
|
|
400
|
+
next: (s) => {
|
|
401
|
+
e(s);
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
404
|
return () => r.unsubscribe();
|
|
405
405
|
}, []);
|
|
406
|
-
},
|
|
406
|
+
}, fe = {
|
|
407
407
|
Success: "request-success$",
|
|
408
408
|
Fail: "request-fail$"
|
|
409
|
-
},
|
|
409
|
+
}, On = () => ({
|
|
410
410
|
state: {
|
|
411
411
|
type: Object
|
|
412
412
|
},
|
|
@@ -419,162 +419,162 @@ const bn = (e, t) => {
|
|
|
419
419
|
requests: {
|
|
420
420
|
type: Array
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), we = T({
|
|
423
423
|
props: {
|
|
424
|
-
|
|
424
|
+
...On()
|
|
425
425
|
},
|
|
426
426
|
setup: (e, {
|
|
427
427
|
slots: t,
|
|
428
428
|
expose: r
|
|
429
429
|
}) => {
|
|
430
|
-
const
|
|
430
|
+
const s = (c) => V(c) ? ze(e.elementMap, c) : de(e.elementMap, c), a = new Xt(), n = (c) => {
|
|
431
431
|
a.next(c);
|
|
432
|
-
},
|
|
433
|
-
const l =
|
|
434
|
-
if (
|
|
435
|
-
|
|
432
|
+
}, o = e.state || ye({}), u = (c) => {
|
|
433
|
+
const l = o[c.type], d = F(c.payload) ? c.payload(l) : c.payload;
|
|
434
|
+
if (Pe(l)) {
|
|
435
|
+
ut(o[c.type], d);
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
|
-
|
|
438
|
+
o[c.type] = d;
|
|
439
439
|
}, {
|
|
440
|
-
dispatchRequest:
|
|
441
|
-
} =
|
|
442
|
-
var
|
|
440
|
+
dispatchRequest: y
|
|
441
|
+
} = he(), f = H(e.requests, (c, l) => {
|
|
442
|
+
var d;
|
|
443
443
|
return {
|
|
444
444
|
...c,
|
|
445
|
-
[(
|
|
445
|
+
[(d = l.actor) == null ? void 0 : d.name]: l
|
|
446
446
|
};
|
|
447
|
-
}, {}),
|
|
447
|
+
}, {}), g = H(e.requests, (c, l) => ({
|
|
448
448
|
...c,
|
|
449
449
|
[l.action]: l
|
|
450
|
-
}), {}),
|
|
451
|
-
const
|
|
452
|
-
if (!
|
|
450
|
+
}), {}), m = (c, ...l) => {
|
|
451
|
+
const d = h(f, c) || h(g, c);
|
|
452
|
+
if (!d)
|
|
453
453
|
return;
|
|
454
|
-
let
|
|
455
|
-
|
|
456
|
-
type:
|
|
454
|
+
let v;
|
|
455
|
+
d.convertParams ? v = d.convertParams(...l) : v = h(l, 0), d.loadingName && u({
|
|
456
|
+
type: d.loadingName,
|
|
457
457
|
payload: !0
|
|
458
|
-
}), d
|
|
458
|
+
}), y(d.actor, v);
|
|
459
459
|
};
|
|
460
|
-
return
|
|
460
|
+
return Mn(j(f), {
|
|
461
461
|
onSuccess: (c) => {
|
|
462
|
-
var
|
|
463
|
-
const l =
|
|
462
|
+
var d, v;
|
|
463
|
+
const l = h(f, c.name);
|
|
464
464
|
if (l != null && l.stateName) {
|
|
465
|
-
const
|
|
466
|
-
|
|
465
|
+
const b = l.convertData ? l.convertData(c) : (d = c.res) == null ? void 0 : d.data;
|
|
466
|
+
u({
|
|
467
467
|
type: l.stateName,
|
|
468
|
-
payload:
|
|
468
|
+
payload: b
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
n({
|
|
472
|
-
type:
|
|
472
|
+
type: fe.Success,
|
|
473
473
|
payload: {
|
|
474
474
|
actor: c,
|
|
475
475
|
requestOpts: l
|
|
476
476
|
}
|
|
477
|
-
}), (
|
|
477
|
+
}), (v = l.onSuccess) == null || v.call(l, c);
|
|
478
478
|
},
|
|
479
479
|
onFailed: (c) => {
|
|
480
|
-
var
|
|
481
|
-
const l =
|
|
480
|
+
var d;
|
|
481
|
+
const l = h(f, c.name);
|
|
482
482
|
n({
|
|
483
|
-
type:
|
|
483
|
+
type: fe.Fail,
|
|
484
484
|
payload: {
|
|
485
485
|
actor: c,
|
|
486
486
|
requestOpts: l
|
|
487
487
|
}
|
|
488
|
-
}), (
|
|
488
|
+
}), (d = l.onFailed) == null || d.call(l, c);
|
|
489
489
|
},
|
|
490
490
|
onFinish: (c) => {
|
|
491
|
-
const l =
|
|
492
|
-
l &&
|
|
491
|
+
const l = h(f, [c.name, "loadingName"]);
|
|
492
|
+
l && u({
|
|
493
493
|
type: l,
|
|
494
494
|
payload: !1
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
}, !0),
|
|
497
|
+
}, !0), An({
|
|
498
498
|
elementMap: e.elementMap,
|
|
499
499
|
subject$: a,
|
|
500
500
|
sendEvent: n,
|
|
501
|
-
state:
|
|
502
|
-
dispatch:
|
|
501
|
+
state: o,
|
|
502
|
+
dispatch: u,
|
|
503
503
|
requests: e.requests,
|
|
504
|
-
sendRequest:
|
|
504
|
+
sendRequest: m
|
|
505
505
|
}), r({
|
|
506
506
|
sendEvent: n,
|
|
507
|
-
sendRequest:
|
|
507
|
+
sendRequest: m
|
|
508
508
|
}), () => {
|
|
509
509
|
var c;
|
|
510
|
-
return i(Y, null, [W(e.elementConfigs) > 0 &&
|
|
510
|
+
return i(Y, null, [W(e.elementConfigs) > 0 && s(e.elementConfigs), (c = t.default) == null ? void 0 : c.call(t)]);
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
514
|
-
const e =
|
|
515
|
-
return (r,
|
|
516
|
-
const a =
|
|
517
|
-
!a || e(r,
|
|
513
|
+
}), Nr = () => {
|
|
514
|
+
const e = ft(), { registerStoreMap: t } = Z();
|
|
515
|
+
return (r, s) => {
|
|
516
|
+
const a = h(t, r);
|
|
517
|
+
!a || e(r, s, !!a.persist, a.initialState);
|
|
518
518
|
};
|
|
519
|
-
},
|
|
520
|
-
const { registerStoreMap: t } =
|
|
521
|
-
return Sn(
|
|
522
|
-
const
|
|
523
|
-
return
|
|
519
|
+
}, Ir = (e) => {
|
|
520
|
+
const { registerStoreMap: t } = Z(), r = h(t, e), s = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
|
|
521
|
+
return pn(Sn((n) => {
|
|
522
|
+
const o = h(n, s);
|
|
523
|
+
return o || (F(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
|
|
524
524
|
}));
|
|
525
|
-
},
|
|
526
|
-
const [e, t] =
|
|
525
|
+
}, bt = Cn("access", void 0, !0), $n = () => {
|
|
526
|
+
const [e, t] = bt();
|
|
527
527
|
return { access: e, setAccess: t, delAccess: () => {
|
|
528
528
|
t(void 0);
|
|
529
529
|
} };
|
|
530
|
-
},
|
|
531
|
-
const [e, t] =
|
|
530
|
+
}, Dr = () => {
|
|
531
|
+
const [e, t] = bt();
|
|
532
532
|
return [e, t, () => {
|
|
533
533
|
t(void 0);
|
|
534
534
|
}];
|
|
535
|
-
},
|
|
536
|
-
const [r,
|
|
537
|
-
return oe(
|
|
538
|
-
var
|
|
539
|
-
return (
|
|
535
|
+
}, St = Symbol("logon-user"), wn = () => te(St), Ar = T((e, { slots: t }) => {
|
|
536
|
+
const [r, s] = ke(), [a, n] = ke();
|
|
537
|
+
return oe(St, { user: r, setUser: s, per: a, setPer: n, opts: {} }), () => {
|
|
538
|
+
var u;
|
|
539
|
+
return (u = t.default) == null ? void 0 : u.call(t);
|
|
540
540
|
};
|
|
541
|
-
}),
|
|
542
|
-
const { access:
|
|
543
|
-
return
|
|
541
|
+
}), Or = T((e, { slots: t, emit: r }) => {
|
|
542
|
+
const { access: s } = $n(), a = D(() => s && s.token);
|
|
543
|
+
return Q(() => {
|
|
544
544
|
a.value || r("toLogin");
|
|
545
545
|
}, a), () => {
|
|
546
546
|
var n;
|
|
547
547
|
return a.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
|
|
548
548
|
};
|
|
549
|
-
}),
|
|
549
|
+
}), $r = {
|
|
550
550
|
Add: "add",
|
|
551
551
|
Edit: "edit",
|
|
552
552
|
Delete: "delete"
|
|
553
|
-
}, Ln = (e, t) => !e || !t ? !1 :
|
|
554
|
-
const { per: e } = wn(), t =
|
|
555
|
-
return (r,
|
|
553
|
+
}, Ln = (e, t) => !e || !t ? !1 : V(t) ? ae(t, (r) => e[r]) : e[t], Kn = () => {
|
|
554
|
+
const { per: e } = wn(), t = qe();
|
|
555
|
+
return (r, s) => {
|
|
556
556
|
if (!r)
|
|
557
557
|
return !1;
|
|
558
558
|
let a = r;
|
|
559
|
-
if (
|
|
559
|
+
if (s != null && s.suffix) {
|
|
560
560
|
const n = t.name ? t.name.toString() : "";
|
|
561
|
-
a =
|
|
561
|
+
a = V(a) ? L(a, (o) => `${n}:${o}`) : `${n}:${a}`;
|
|
562
562
|
}
|
|
563
563
|
return Ln(e.buttonMap, a);
|
|
564
564
|
};
|
|
565
565
|
}, xn = () => ({
|
|
566
566
|
suffix: { type: [String, Array] },
|
|
567
567
|
value: { type: [String, Array] }
|
|
568
|
-
}),
|
|
568
|
+
}), wr = T({
|
|
569
569
|
inheritAttrs: !1,
|
|
570
570
|
props: {
|
|
571
571
|
...xn()
|
|
572
572
|
},
|
|
573
573
|
setup: (e, { slots: t }) => {
|
|
574
|
-
const r =
|
|
574
|
+
const r = Kn(), s = D(() => e.value ? r(e.value) : e.suffix ? r(e.suffix, { suffix: !0 }) : !1);
|
|
575
575
|
return () => {
|
|
576
576
|
var a;
|
|
577
|
-
return
|
|
577
|
+
return s.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
580
|
}), k = {
|
|
@@ -588,22 +588,21 @@ const bn = (e, t) => {
|
|
|
588
588
|
PaginationKey: "Pagination$",
|
|
589
589
|
PopoverKey: "Popover$",
|
|
590
590
|
CheckboxKey: "Checkbox$",
|
|
591
|
-
|
|
592
|
-
MenuSubKey: "MenuSub$",
|
|
593
|
-
MenuItemKey: "MenuItem$",
|
|
591
|
+
MenusKey: "Menus$",
|
|
594
592
|
ModalKey: "Modal$",
|
|
595
593
|
FormKey: "Form$",
|
|
596
594
|
FormItemKey: "FormItem$",
|
|
597
595
|
TableKey: "Table$",
|
|
596
|
+
UploaderKey: "Uploader$",
|
|
598
597
|
ProFormKey: "ProForm$",
|
|
599
598
|
ProSearchFormKey: "ProSearchForm$",
|
|
600
599
|
ProTableKey: "ProTable$"
|
|
601
|
-
},
|
|
602
|
-
const { elementMap: e } =
|
|
603
|
-
return (t) =>
|
|
600
|
+
}, _ = () => {
|
|
601
|
+
const { elementMap: e } = Z();
|
|
602
|
+
return (t) => h(e, t);
|
|
604
603
|
};
|
|
605
|
-
function
|
|
606
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
604
|
+
function Rn(e) {
|
|
605
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
|
|
607
606
|
}
|
|
608
607
|
const Fn = () => ({
|
|
609
608
|
row: {
|
|
@@ -616,15 +615,15 @@ const Fn = () => ({
|
|
|
616
615
|
items: {
|
|
617
616
|
type: Array
|
|
618
617
|
}
|
|
619
|
-
}),
|
|
618
|
+
}), Le = T({
|
|
620
619
|
props: {
|
|
621
620
|
...Fn()
|
|
622
621
|
},
|
|
623
622
|
setup: (e) => {
|
|
624
|
-
const t =
|
|
623
|
+
const t = _(), r = t(k.RowKey), s = t(k.ColKey);
|
|
625
624
|
return () => {
|
|
626
625
|
let a;
|
|
627
|
-
return !r || !
|
|
626
|
+
return !r || !s ? null : i(r, e.row, Rn(a = L(e.items, (n) => i(s, I({
|
|
628
627
|
key: n.rowKey
|
|
629
628
|
}, e.col, n.col), {
|
|
630
629
|
default: () => [n.vNode]
|
|
@@ -633,52 +632,52 @@ const Fn = () => ({
|
|
|
633
632
|
});
|
|
634
633
|
};
|
|
635
634
|
}
|
|
636
|
-
}),
|
|
635
|
+
}), kn = (e, t, r) => {
|
|
637
636
|
if (t) {
|
|
638
|
-
const
|
|
639
|
-
return
|
|
637
|
+
const s = B(j(t), (a) => !t[a]);
|
|
638
|
+
return M(e, s);
|
|
640
639
|
}
|
|
641
640
|
if (r) {
|
|
642
|
-
const
|
|
643
|
-
return
|
|
641
|
+
const s = B(j(r), (a) => !r[a](e));
|
|
642
|
+
return M(e, s);
|
|
644
643
|
}
|
|
645
644
|
return e;
|
|
646
|
-
},
|
|
645
|
+
}, Pt = (e) => {
|
|
647
646
|
if (!!e)
|
|
648
|
-
return
|
|
649
|
-
},
|
|
650
|
-
const a =
|
|
651
|
-
return !n ||
|
|
652
|
-
if (
|
|
653
|
-
return
|
|
647
|
+
return V(e) ? e : e && Ne(e) && e.indexOf(".") > 0 ? Ft(e, ".") : [e];
|
|
648
|
+
}, Ae = (e, t, r) => !t || !r ? e : L(e, (s) => {
|
|
649
|
+
const a = F(r) ? r(s) : h(s, r), n = h(t, a);
|
|
650
|
+
return !n || kt(n) || F(n) || !Pe(n) ? s : jt(s, n, (o, u) => {
|
|
651
|
+
if (V(o) || V(u))
|
|
652
|
+
return u;
|
|
654
653
|
});
|
|
655
654
|
}), ce = (e, t) => {
|
|
656
|
-
const r =
|
|
655
|
+
const r = H(
|
|
657
656
|
e,
|
|
658
|
-
(
|
|
659
|
-
...
|
|
657
|
+
(s, a) => ({
|
|
658
|
+
...s,
|
|
660
659
|
[a]: (...n) => {
|
|
661
|
-
var
|
|
662
|
-
return (
|
|
660
|
+
var o, u;
|
|
661
|
+
return (u = (o = t.value) == null ? void 0 : o[a]) == null ? void 0 : u.call(o, ...n);
|
|
663
662
|
}
|
|
664
663
|
}),
|
|
665
664
|
{}
|
|
666
665
|
);
|
|
667
666
|
return r.originRef = t, r;
|
|
668
|
-
},
|
|
669
|
-
const
|
|
670
|
-
return t && W(t) > 0 &&
|
|
671
|
-
|
|
672
|
-
var
|
|
673
|
-
return (
|
|
667
|
+
}, Lr = (e, t, r) => {
|
|
668
|
+
const s = { originRef: e, ...r };
|
|
669
|
+
return t && W(t) > 0 && ve(t, (a) => {
|
|
670
|
+
s[a] = (...n) => {
|
|
671
|
+
var o, u;
|
|
672
|
+
return (u = (o = e.value) == null ? void 0 : o[a]) == null ? void 0 : u.call(o, ...n);
|
|
674
673
|
};
|
|
675
|
-
}),
|
|
676
|
-
},
|
|
677
|
-
const r =
|
|
678
|
-
return
|
|
679
|
-
},
|
|
680
|
-
oe(
|
|
681
|
-
}, Un =
|
|
674
|
+
}), s;
|
|
675
|
+
}, jn = (e, t) => h(e, ["extra", t]) || h(e, t), J = (e, t) => {
|
|
676
|
+
const r = j(e), s = `${t}-`, a = B(r, (o) => Ut(o, s)), n = R(e, a);
|
|
677
|
+
return qt(n, (o, u) => u.replace(s, ""));
|
|
678
|
+
}, Et = Symbol("pro-form-list"), Ct = () => te(Et), Mt = (e) => {
|
|
679
|
+
oe(Et, e);
|
|
680
|
+
}, Un = T({
|
|
682
681
|
props: {
|
|
683
682
|
pathList: {
|
|
684
683
|
type: Array
|
|
@@ -686,13 +685,13 @@ const Fn = () => ({
|
|
|
686
685
|
},
|
|
687
686
|
setup: (e, {
|
|
688
687
|
slots: t
|
|
689
|
-
}) => (
|
|
688
|
+
}) => (Mt({
|
|
690
689
|
pathList: e.pathList
|
|
691
690
|
}), () => {
|
|
692
691
|
var r;
|
|
693
692
|
return (r = t.default) == null ? void 0 : r.call(t);
|
|
694
693
|
})
|
|
695
|
-
}),
|
|
694
|
+
}), qn = () => ({
|
|
696
695
|
rowKey: {
|
|
697
696
|
type: String,
|
|
698
697
|
default: "id"
|
|
@@ -701,59 +700,59 @@ const Fn = () => ({
|
|
|
701
700
|
type: [String, Number, Array],
|
|
702
701
|
required: !0
|
|
703
702
|
}
|
|
704
|
-
}),
|
|
703
|
+
}), Kr = T({
|
|
705
704
|
props: {
|
|
706
|
-
...
|
|
705
|
+
...qn()
|
|
707
706
|
},
|
|
708
707
|
setup: (e, {
|
|
709
708
|
slots: t
|
|
710
709
|
}) => {
|
|
711
|
-
const
|
|
710
|
+
const s = _()(k.FormItemKey), {
|
|
712
711
|
formState: a,
|
|
713
712
|
readonly: n
|
|
714
|
-
} =
|
|
715
|
-
let
|
|
716
|
-
|
|
713
|
+
} = Nt(), o = Ct(), u = Pt(e.name), y = o != null && o.pathList ? [...o.pathList, ...u] : u, f = () => {
|
|
714
|
+
let m = h(a, y);
|
|
715
|
+
V(m) || (m = []), m.push({
|
|
717
716
|
[e.rowKey]: new Date().valueOf()
|
|
718
|
-
}),
|
|
719
|
-
},
|
|
720
|
-
const c =
|
|
721
|
-
W(c) <= 0 || c.splice(
|
|
717
|
+
}), se(a, y, m);
|
|
718
|
+
}, g = (m) => {
|
|
719
|
+
const c = h(a, y);
|
|
720
|
+
W(c) <= 0 || c.splice(m, 1);
|
|
722
721
|
};
|
|
723
|
-
return () =>
|
|
722
|
+
return () => s ? i(s, M(e, "rowKey"), {
|
|
724
723
|
default: () => {
|
|
725
|
-
var
|
|
726
|
-
return [
|
|
724
|
+
var m;
|
|
725
|
+
return [L(h(a, y), (c, l) => i(Un, {
|
|
727
726
|
key: c[e.rowKey] || l,
|
|
728
|
-
pathList: [...
|
|
727
|
+
pathList: [...y, l]
|
|
729
728
|
}, {
|
|
730
729
|
default: () => {
|
|
731
|
-
var
|
|
730
|
+
var d, v, b;
|
|
732
731
|
return [i("div", {
|
|
733
732
|
class: "pro-form-list-item"
|
|
734
|
-
}, [(
|
|
733
|
+
}, [(d = t.default) == null ? void 0 : d.call(t), !n.value && i(Y, null, [i("div", {
|
|
735
734
|
class: "pro-form-list-item-add",
|
|
736
735
|
onClick: f
|
|
737
|
-
}, [(
|
|
736
|
+
}, [(v = t.itemAdd) == null ? void 0 : v.call(t)]), i("div", {
|
|
738
737
|
class: "pro-form-list-item-minus",
|
|
739
|
-
onClick: () =>
|
|
740
|
-
}, [(
|
|
738
|
+
onClick: () => g(l)
|
|
739
|
+
}, [(b = t.itemMinus) == null ? void 0 : b.call(t)])])])];
|
|
741
740
|
}
|
|
742
741
|
})), !n.value && i("div", {
|
|
743
742
|
class: "pro-form-list-add",
|
|
744
743
|
onClick: f
|
|
745
|
-
}, [(
|
|
744
|
+
}, [(m = t.add) == null ? void 0 : m.call(t)])];
|
|
746
745
|
}
|
|
747
746
|
}) : null;
|
|
748
747
|
}
|
|
749
|
-
}),
|
|
750
|
-
oe(
|
|
748
|
+
}), Tt = Symbol("pro-form"), Nt = () => te(Tt), Bn = (e) => {
|
|
749
|
+
oe(Tt, e);
|
|
751
750
|
};
|
|
752
|
-
let
|
|
751
|
+
let G;
|
|
753
752
|
(function(e) {
|
|
754
753
|
e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
|
|
755
|
-
})(
|
|
756
|
-
const
|
|
754
|
+
})(G || (G = {}));
|
|
755
|
+
const Qe = () => ({
|
|
757
756
|
clsName: {
|
|
758
757
|
type: String,
|
|
759
758
|
default: "pro-form"
|
|
@@ -799,97 +798,97 @@ const tt = () => ({
|
|
|
799
798
|
formMethods: {
|
|
800
799
|
type: Array
|
|
801
800
|
}
|
|
802
|
-
}),
|
|
801
|
+
}), Vn = T({
|
|
803
802
|
inheritAttrs: !1,
|
|
804
803
|
props: {
|
|
805
|
-
...
|
|
806
|
-
...
|
|
807
|
-
...
|
|
804
|
+
...ie,
|
|
805
|
+
...Qe(),
|
|
806
|
+
...M(Le.props, "items")
|
|
808
807
|
},
|
|
809
808
|
setup: (e, {
|
|
810
809
|
slots: t,
|
|
811
810
|
emit: r,
|
|
812
|
-
expose:
|
|
811
|
+
expose: s,
|
|
813
812
|
attrs: a
|
|
814
813
|
}) => {
|
|
815
814
|
const {
|
|
816
815
|
elementMap: n,
|
|
817
|
-
formElementMap:
|
|
818
|
-
} =
|
|
819
|
-
const
|
|
820
|
-
r("finish",
|
|
821
|
-
},
|
|
822
|
-
|
|
816
|
+
formElementMap: o
|
|
817
|
+
} = Z(), u = e.elementMap || n, y = e.formElementMap || o, f = e.model || ye({}), g = $e(f, e.showStateRules, e.showState), m = $e(f, e.readonlyStateRules, e.readonlyState), c = $e(f, e.disableStateRules, e.disableState), l = D(() => e.readonly), d = D(() => Ae(e.columns, e.columnState, (P) => ue(P))), v = (P) => {
|
|
818
|
+
const N = kn(P, g, e.showStateRules);
|
|
819
|
+
r("finish", N, P);
|
|
820
|
+
}, b = U();
|
|
821
|
+
s(ce(e.formMethods || [], b)), Bn({
|
|
823
822
|
formState: f,
|
|
824
|
-
showState:
|
|
825
|
-
readonlyState:
|
|
823
|
+
showState: g,
|
|
824
|
+
readonlyState: m,
|
|
826
825
|
disableState: c,
|
|
827
|
-
elementMap:
|
|
828
|
-
formElementMap:
|
|
826
|
+
elementMap: u,
|
|
827
|
+
formElementMap: y,
|
|
829
828
|
readonly: l,
|
|
830
|
-
columns:
|
|
831
|
-
formRef:
|
|
829
|
+
columns: d,
|
|
830
|
+
formRef: b,
|
|
832
831
|
...e.provideExtra
|
|
833
832
|
});
|
|
834
|
-
const
|
|
835
|
-
value:
|
|
833
|
+
const w = [{
|
|
834
|
+
value: G.RESET,
|
|
836
835
|
label: "\u91CD\u7F6E"
|
|
837
836
|
}, {
|
|
838
|
-
value:
|
|
837
|
+
value: G.SUBMIT,
|
|
839
838
|
label: "\u63D0\u4EA4",
|
|
840
839
|
extraProps: {
|
|
841
840
|
type: "primary"
|
|
842
841
|
}
|
|
843
|
-
}],
|
|
844
|
-
const P = e.operate,
|
|
845
|
-
return
|
|
842
|
+
}], p = D(() => {
|
|
843
|
+
const P = e.operate, N = (P == null ? void 0 : P.items) || w;
|
|
844
|
+
return L(N, (S) => (!S.onClick && !h(P == null ? void 0 : P.itemState, [S.value, "onClick"]) && (S.value === G.RESET ? S.onClick = () => {
|
|
846
845
|
var x;
|
|
847
846
|
if (P != null && P.onReset) {
|
|
848
847
|
P.onReset();
|
|
849
848
|
return;
|
|
850
849
|
}
|
|
851
|
-
(x =
|
|
852
|
-
} :
|
|
850
|
+
(x = b.value) == null || x.resetFields();
|
|
851
|
+
} : S.value === G.SUBMIT ? S.onClick = () => {
|
|
853
852
|
var x;
|
|
854
853
|
if (P != null && P.onSubmit) {
|
|
855
854
|
P.onSubmit();
|
|
856
855
|
return;
|
|
857
856
|
}
|
|
858
|
-
(x =
|
|
859
|
-
} :
|
|
857
|
+
(x = b.value) == null || x.submit();
|
|
858
|
+
} : S.value === G.CONTINUE && (P == null ? void 0 : P.onContinue) && (S.onClick = () => {
|
|
860
859
|
P.onContinue();
|
|
861
|
-
})),
|
|
862
|
-
}),
|
|
863
|
-
const
|
|
864
|
-
return
|
|
860
|
+
})), S.value === G.SUBMIT && !je(S, "loading") && (S.loading = e.submitLoading), S));
|
|
861
|
+
}), C = (P) => {
|
|
862
|
+
const N = ue(P);
|
|
863
|
+
return N && t[N] ? t[N](P, f) : vt(y, P, e.needRules);
|
|
865
864
|
};
|
|
866
|
-
|
|
867
|
-
const O =
|
|
868
|
-
return () => $ ? i($,
|
|
869
|
-
ref:
|
|
865
|
+
Mt({});
|
|
866
|
+
const O = j(Qe()), E = j(M(Le.props, "items")), $ = h(n, k.FormKey);
|
|
867
|
+
return () => $ ? i($, I({
|
|
868
|
+
ref: b,
|
|
870
869
|
class: e.clsName
|
|
871
|
-
},
|
|
870
|
+
}, M(a, "onFinish"), M(e, ...O, ...E, "onFinish", "operate"), {
|
|
872
871
|
model: f,
|
|
873
|
-
onFinish:
|
|
872
|
+
onFinish: v
|
|
874
873
|
}), {
|
|
875
874
|
default: () => {
|
|
876
|
-
var P,
|
|
877
|
-
return [(P = t.start) == null ? void 0 : P.call(t),
|
|
875
|
+
var P, N, S;
|
|
876
|
+
return [(P = t.start) == null ? void 0 : P.call(t), y && W(d.value) > 0 && i(Y, null, [e.row ? i(Le, {
|
|
878
877
|
row: e.row,
|
|
879
878
|
col: e.col,
|
|
880
|
-
items:
|
|
881
|
-
rowKey:
|
|
882
|
-
vNode:
|
|
883
|
-
col:
|
|
879
|
+
items: L(d.value, (x) => ({
|
|
880
|
+
rowKey: ue(x),
|
|
881
|
+
vNode: C(x),
|
|
882
|
+
col: h(x, ["extra", "col"])
|
|
884
883
|
}))
|
|
885
|
-
}, null) :
|
|
884
|
+
}, null) : L(d.value, (x) => C(x))]), (N = t.default) == null ? void 0 : N.call(t), e.operate && i(It, I({
|
|
886
885
|
clsName: `${e.clsName}-operate`,
|
|
887
|
-
items:
|
|
888
|
-
},
|
|
886
|
+
items: p.value
|
|
887
|
+
}, M(e.operate, "items", "onReset", "onSubmit", "onContinue")), null), (S = t.end) == null ? void 0 : S.call(t)];
|
|
889
888
|
}
|
|
890
889
|
}) : null;
|
|
891
890
|
}
|
|
892
|
-
}),
|
|
891
|
+
}), xr = {
|
|
893
892
|
text: "\u8BF7\u8F93\u5165",
|
|
894
893
|
digit: "\u8BF7\u8F93\u5165",
|
|
895
894
|
select: "\u8BF7\u9009\u62E9",
|
|
@@ -901,11 +900,11 @@ const tt = () => ({
|
|
|
901
900
|
date: "\u8BF7\u9009\u62E9",
|
|
902
901
|
time: "\u8BF7\u9009\u62E9"
|
|
903
902
|
};
|
|
904
|
-
let
|
|
903
|
+
let Me;
|
|
905
904
|
(function(e) {
|
|
906
905
|
e.AUTO = "AUTO", e.MANUAL = "MANUAL";
|
|
907
|
-
})(
|
|
908
|
-
const
|
|
906
|
+
})(Me || (Me = {}));
|
|
907
|
+
const Ze = () => ({
|
|
909
908
|
clsName: {
|
|
910
909
|
type: String,
|
|
911
910
|
default: "pro-search-form"
|
|
@@ -916,7 +915,7 @@ const nt = () => ({
|
|
|
916
915
|
},
|
|
917
916
|
searchMode: {
|
|
918
917
|
type: String,
|
|
919
|
-
default:
|
|
918
|
+
default: Me.AUTO
|
|
920
919
|
},
|
|
921
920
|
debounceKeys: {
|
|
922
921
|
type: Array
|
|
@@ -929,9 +928,9 @@ const nt = () => ({
|
|
|
929
928
|
type: Number,
|
|
930
929
|
default: 800
|
|
931
930
|
}
|
|
932
|
-
}),
|
|
931
|
+
}), Rr = T({
|
|
933
932
|
props: {
|
|
934
|
-
...
|
|
933
|
+
...Ze(),
|
|
935
934
|
needRules: {
|
|
936
935
|
type: Boolean,
|
|
937
936
|
default: !1
|
|
@@ -941,39 +940,39 @@ const nt = () => ({
|
|
|
941
940
|
slots: t,
|
|
942
941
|
expose: r
|
|
943
942
|
}) => {
|
|
944
|
-
const a =
|
|
945
|
-
const
|
|
946
|
-
return
|
|
947
|
-
}), (
|
|
948
|
-
r(ce(f,
|
|
949
|
-
const
|
|
950
|
-
var
|
|
951
|
-
(
|
|
952
|
-
},
|
|
953
|
-
|
|
943
|
+
const a = _()(k.ProFormKey), n = e.model || ye({}), o = new Set(e.debounceTypes), u = L(B(e.columns, (d) => {
|
|
944
|
+
const v = yt(d);
|
|
945
|
+
return o.has(v);
|
|
946
|
+
}), (d) => ue(d)), y = U(), f = e.formMethods || [];
|
|
947
|
+
r(ce(f, y));
|
|
948
|
+
const g = () => {
|
|
949
|
+
var d;
|
|
950
|
+
(d = y.value) == null || d.submit();
|
|
951
|
+
}, m = Bt(() => {
|
|
952
|
+
g();
|
|
954
953
|
}, e.debounceTime);
|
|
955
|
-
|
|
956
|
-
e.initEmit &&
|
|
954
|
+
Q(() => {
|
|
955
|
+
e.initEmit && g();
|
|
957
956
|
}, []);
|
|
958
|
-
const c = (
|
|
959
|
-
|
|
960
|
-
if (e.searchMode !==
|
|
957
|
+
const c = (d, v, b) => ae(b, (w) => h(d, w) !== h(v, w));
|
|
958
|
+
ct((d, v) => {
|
|
959
|
+
if (e.searchMode !== Me.AUTO)
|
|
961
960
|
return;
|
|
962
|
-
const
|
|
963
|
-
if (W(
|
|
964
|
-
|
|
961
|
+
const b = W(e.debounceKeys) > 0 ? e.debounceKeys : u;
|
|
962
|
+
if (W(b) > 0 && c(d, v, b)) {
|
|
963
|
+
m();
|
|
965
964
|
return;
|
|
966
965
|
}
|
|
967
|
-
|
|
968
|
-
}, () =>
|
|
969
|
-
const l =
|
|
970
|
-
return () => a ? i(a,
|
|
971
|
-
ref:
|
|
972
|
-
},
|
|
966
|
+
g();
|
|
967
|
+
}, () => Vt(n));
|
|
968
|
+
const l = j(M(Ze(), "clsName", "columns"));
|
|
969
|
+
return () => a ? i(a, I({
|
|
970
|
+
ref: y
|
|
971
|
+
}, M(e, l), {
|
|
973
972
|
model: n
|
|
974
973
|
}), t) : null;
|
|
975
974
|
}
|
|
976
|
-
}),
|
|
975
|
+
}), et = () => ({
|
|
977
976
|
readonly: {
|
|
978
977
|
type: Boolean,
|
|
979
978
|
default: void 0
|
|
@@ -987,57 +986,57 @@ const nt = () => ({
|
|
|
987
986
|
slots: {
|
|
988
987
|
type: Object
|
|
989
988
|
}
|
|
990
|
-
}),
|
|
989
|
+
}), Fr = (e, t) => ({
|
|
991
990
|
InputComp: r,
|
|
992
|
-
valueType:
|
|
991
|
+
valueType: s,
|
|
993
992
|
name: a
|
|
994
|
-
}) =>
|
|
993
|
+
}) => T({
|
|
995
994
|
name: a,
|
|
996
995
|
props: {
|
|
997
996
|
...e.props,
|
|
998
|
-
...
|
|
997
|
+
...et()
|
|
999
998
|
},
|
|
1000
999
|
setup: (n, {
|
|
1001
|
-
slots:
|
|
1000
|
+
slots: o
|
|
1002
1001
|
}) => {
|
|
1003
1002
|
const {
|
|
1004
|
-
formExtraMap:
|
|
1005
|
-
} =
|
|
1006
|
-
formState:
|
|
1003
|
+
formExtraMap: u
|
|
1004
|
+
} = Z(), {
|
|
1005
|
+
formState: y,
|
|
1007
1006
|
showState: f,
|
|
1008
|
-
readonlyState:
|
|
1009
|
-
disableState:
|
|
1007
|
+
readonlyState: g,
|
|
1008
|
+
disableState: m,
|
|
1010
1009
|
readonly: c,
|
|
1011
1010
|
elementMap: l
|
|
1012
|
-
} =
|
|
1011
|
+
} = Nt(), d = Ct(), v = D(() => ne(n.readonly) ? n.readonly : ne(g[n.name]) ? g[n.name] : c.value), b = () => `${h(u == null ? void 0 : u.rulePrefixMap, s) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, w = D(() => u != null && u.rulePrefixMap ? n.required === !0 && !n.rules ? [{
|
|
1013
1012
|
required: !0,
|
|
1014
|
-
message:
|
|
1015
|
-
}] : n.rules ?
|
|
1016
|
-
|
|
1017
|
-
}, E =
|
|
1013
|
+
message: b()
|
|
1014
|
+
}] : n.rules ? L(n.rules, ($) => ($.required && !$.message && ($.message = b()), $)) : n.rules : n.rules), p = Pt(n.name), C = d != null && d.pathList ? [...d.pathList, ...p] : p, O = ($) => {
|
|
1015
|
+
se(y, C, $);
|
|
1016
|
+
}, E = j(et());
|
|
1018
1017
|
return () => {
|
|
1019
|
-
const $ =
|
|
1018
|
+
const $ = h(f, C);
|
|
1020
1019
|
if (ne($) && !$)
|
|
1021
1020
|
return null;
|
|
1022
|
-
const P =
|
|
1023
|
-
return i(e,
|
|
1024
|
-
name:
|
|
1025
|
-
rules:
|
|
1021
|
+
const P = h(y, C), N = h(l, s);
|
|
1022
|
+
return i(e, I(M(n, ...E, "name", "rules", "slots"), {
|
|
1023
|
+
name: C,
|
|
1024
|
+
rules: w.value
|
|
1026
1025
|
}), {
|
|
1027
|
-
default: () => [
|
|
1026
|
+
default: () => [v.value ? i(Y, null, [N ? i(N, I({
|
|
1028
1027
|
value: P
|
|
1029
1028
|
}, n.fieldProps, {
|
|
1030
1029
|
showProps: n.showProps
|
|
1031
|
-
}),
|
|
1030
|
+
}), o) : i("span", null, [P])]) : i(r, I(t(P, O, h(m, C)), n.fieldProps), o)],
|
|
1032
1031
|
...n.slots
|
|
1033
1032
|
});
|
|
1034
1033
|
};
|
|
1035
1034
|
}
|
|
1036
1035
|
});
|
|
1037
1036
|
function zn(e) {
|
|
1038
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1037
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
|
|
1039
1038
|
}
|
|
1040
|
-
const
|
|
1039
|
+
const _n = () => ({
|
|
1041
1040
|
clsName: {
|
|
1042
1041
|
type: String,
|
|
1043
1042
|
default: "pro-operate"
|
|
@@ -1052,43 +1051,43 @@ const Gn = () => ({
|
|
|
1052
1051
|
type: String,
|
|
1053
1052
|
default: k.ButtonKey
|
|
1054
1053
|
}
|
|
1055
|
-
}),
|
|
1054
|
+
}), It = T({
|
|
1056
1055
|
props: {
|
|
1057
|
-
...
|
|
1056
|
+
..._n()
|
|
1058
1057
|
},
|
|
1059
1058
|
setup: (e, {
|
|
1060
1059
|
slots: t
|
|
1061
1060
|
}) => {
|
|
1062
|
-
const r =
|
|
1063
|
-
const
|
|
1064
|
-
return
|
|
1065
|
-
...
|
|
1066
|
-
...
|
|
1067
|
-
} :
|
|
1068
|
-
}), n = (
|
|
1069
|
-
var
|
|
1070
|
-
(
|
|
1061
|
+
const r = _(), s = e.elementKey ? r(e.elementKey) : void 0, a = D(() => {
|
|
1062
|
+
const o = B(e.items, (u) => F(u.show) ? u.show() : ne(u.show) ? u.show : !0);
|
|
1063
|
+
return L(o, (u) => je(e.itemState, u.value) ? {
|
|
1064
|
+
...u,
|
|
1065
|
+
...h(e.itemState, u.value)
|
|
1066
|
+
} : u);
|
|
1067
|
+
}), n = (o) => {
|
|
1068
|
+
var u;
|
|
1069
|
+
(u = o.onClick) == null || u.call(o, o.value);
|
|
1071
1070
|
};
|
|
1072
1071
|
return () => i("div", {
|
|
1073
1072
|
class: e.clsName
|
|
1074
|
-
}, [
|
|
1075
|
-
const
|
|
1076
|
-
...
|
|
1077
|
-
disabled:
|
|
1073
|
+
}, [L(a.value, (o) => {
|
|
1074
|
+
const u = F(o.disabled) ? o.disabled() : o.disabled, y = F(o.loading) ? o.loading() : o.loading, f = F(o.label) ? o.label() : o.label, g = F(o.extraProps) ? o.extraProps() : o.extraProps, m = {
|
|
1075
|
+
...M(o, "show", "disabled", "element"),
|
|
1076
|
+
disabled: u
|
|
1078
1077
|
};
|
|
1079
|
-
return
|
|
1080
|
-
disabled:
|
|
1081
|
-
loading:
|
|
1082
|
-
onClick: () => n(
|
|
1083
|
-
},
|
|
1078
|
+
return o.element && F(o.element) ? o.element(m) : t[o.value] ? t[o.value](m) : s ? i(s, I({
|
|
1079
|
+
disabled: u,
|
|
1080
|
+
loading: y,
|
|
1081
|
+
onClick: () => n(o)
|
|
1082
|
+
}, g), zn(f) ? f : {
|
|
1084
1083
|
default: () => [f]
|
|
1085
1084
|
}) : i("div", {
|
|
1086
1085
|
class: `${e.clsName}-item`,
|
|
1087
|
-
onClick: () => n(
|
|
1086
|
+
onClick: () => n(o)
|
|
1088
1087
|
}, [f]);
|
|
1089
1088
|
})]);
|
|
1090
1089
|
}
|
|
1091
|
-
}),
|
|
1090
|
+
}), Gn = () => ({
|
|
1092
1091
|
clsName: {
|
|
1093
1092
|
type: String,
|
|
1094
1093
|
default: "pro-table-toolbar-column"
|
|
@@ -1105,104 +1104,104 @@ const Gn = () => ({
|
|
|
1105
1104
|
onColumnSelectChange: {
|
|
1106
1105
|
type: Function
|
|
1107
1106
|
}
|
|
1108
|
-
}),
|
|
1107
|
+
}), Hn = T({
|
|
1109
1108
|
props: {
|
|
1110
|
-
...
|
|
1109
|
+
...Gn()
|
|
1111
1110
|
},
|
|
1112
1111
|
setup: (e, {
|
|
1113
1112
|
slots: t
|
|
1114
1113
|
}) => {
|
|
1115
|
-
const r =
|
|
1114
|
+
const r = _(), s = r(k.PopoverKey), a = r(k.CheckboxKey), {
|
|
1116
1115
|
originColumns: n,
|
|
1117
|
-
selectIdsRef:
|
|
1118
|
-
} =
|
|
1116
|
+
selectIdsRef: o
|
|
1117
|
+
} = Wn(), [u, y] = Yt();
|
|
1119
1118
|
let f = {};
|
|
1120
|
-
const
|
|
1121
|
-
f[
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1124
|
-
f[
|
|
1119
|
+
const g = (p) => {
|
|
1120
|
+
f[p] = !1;
|
|
1121
|
+
}, m = () => {
|
|
1122
|
+
ve(o.value, (p) => {
|
|
1123
|
+
f[p] = !0;
|
|
1125
1124
|
});
|
|
1126
|
-
}, c =
|
|
1127
|
-
...
|
|
1128
|
-
[
|
|
1129
|
-
}), {})), l = (
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
var
|
|
1133
|
-
return e.useSelectedStatus &&
|
|
1134
|
-
}), (
|
|
1135
|
-
}, n),
|
|
1136
|
-
var
|
|
1137
|
-
|
|
1138
|
-
},
|
|
1139
|
-
const
|
|
1140
|
-
const
|
|
1125
|
+
}, c = D(() => H(o.value, (p, C) => ({
|
|
1126
|
+
...p,
|
|
1127
|
+
[C]: !0
|
|
1128
|
+
}), {})), l = (p) => jn(p, e.signName);
|
|
1129
|
+
Q(() => {
|
|
1130
|
+
o.value = L(B(n.value, (p) => {
|
|
1131
|
+
var C;
|
|
1132
|
+
return e.useSelectedStatus && je(f, p.dataIndex) ? f[p.dataIndex] : ((C = l(p)) == null ? void 0 : C.initShow) !== !1;
|
|
1133
|
+
}), (p) => p.dataIndex);
|
|
1134
|
+
}, n), ct(() => {
|
|
1135
|
+
var p;
|
|
1136
|
+
y(), m(), (p = e.onColumnSelectChange) == null || p.call(e, o.value);
|
|
1137
|
+
}, o);
|
|
1138
|
+
const d = D(() => {
|
|
1139
|
+
const p = zt(n.value, (O) => {
|
|
1141
1140
|
var E;
|
|
1142
|
-
return (E = l(O)) != null && E.disabled ? !0 :
|
|
1143
|
-
}),
|
|
1141
|
+
return (E = l(O)) != null && E.disabled ? !0 : h(c.value, O.dataIndex);
|
|
1142
|
+
}), C = ae(n.value, (O) => {
|
|
1144
1143
|
var E;
|
|
1145
|
-
return (E = l(O)) != null && E.disabled ? !0 :
|
|
1144
|
+
return (E = l(O)) != null && E.disabled ? !0 : h(c.value, O.dataIndex);
|
|
1146
1145
|
});
|
|
1147
1146
|
return {
|
|
1148
|
-
checked:
|
|
1149
|
-
indeterminate:
|
|
1147
|
+
checked: p,
|
|
1148
|
+
indeterminate: p ? !1 : C
|
|
1150
1149
|
};
|
|
1151
|
-
}),
|
|
1150
|
+
}), v = (p) => {
|
|
1152
1151
|
var O;
|
|
1153
|
-
(
|
|
1152
|
+
(Pe(p) ? (O = p.target) == null ? void 0 : O.checked : p) ? o.value = L(n.value, (E) => E.dataIndex) : o.value = L(B(n.value, (E) => {
|
|
1154
1153
|
var $;
|
|
1155
|
-
return ($ = l(E)) != null && $.disabled ? !0 : (
|
|
1154
|
+
return ($ = l(E)) != null && $.disabled ? !0 : (g(E.dataIndex), !1);
|
|
1156
1155
|
}), (E) => E.dataIndex);
|
|
1157
|
-
},
|
|
1158
|
-
|
|
1159
|
-
var
|
|
1160
|
-
return ((
|
|
1161
|
-
}), (
|
|
1162
|
-
},
|
|
1156
|
+
}, b = () => {
|
|
1157
|
+
o.value = L(B(n.value, (p) => {
|
|
1158
|
+
var C;
|
|
1159
|
+
return ((C = l(p)) == null ? void 0 : C.initShow) === !1 ? (g(p.dataIndex), !1) : !0;
|
|
1160
|
+
}), (p) => p.dataIndex);
|
|
1161
|
+
}, w = (p, C) => {
|
|
1163
1162
|
var E;
|
|
1164
|
-
(
|
|
1163
|
+
(Pe(C) ? (E = C.target) == null ? void 0 : E.checked : C) ? o.value = [...o.value, p.dataIndex] : o.value = B(o.value, ($) => p.dataIndex === $ ? (g(p.dataIndex), !1) : !0);
|
|
1165
1164
|
};
|
|
1166
|
-
return () =>
|
|
1165
|
+
return () => s ? i(s, I({
|
|
1167
1166
|
trigger: "click"
|
|
1168
1167
|
}, e.popoverProps), {
|
|
1169
1168
|
default: () => {
|
|
1170
|
-
var
|
|
1171
|
-
return [((
|
|
1169
|
+
var p;
|
|
1170
|
+
return [((p = t.default) == null ? void 0 : p.call(t)) || "\u5217\u8BBE\u7F6E"];
|
|
1172
1171
|
},
|
|
1173
1172
|
content: () => i("div", {
|
|
1174
1173
|
class: `${e.clsName}`
|
|
1175
1174
|
}, [i("div", {
|
|
1176
1175
|
class: `${e.clsName}-header`
|
|
1177
1176
|
}, [i(a, {
|
|
1178
|
-
checked:
|
|
1179
|
-
indeterminate:
|
|
1180
|
-
onChange:
|
|
1177
|
+
checked: d.value.checked,
|
|
1178
|
+
indeterminate: d.value.indeterminate,
|
|
1179
|
+
onChange: v
|
|
1181
1180
|
}, {
|
|
1182
|
-
default: () => [
|
|
1181
|
+
default: () => [He("\u5217\u5C55\u793A")]
|
|
1183
1182
|
}), i("a", {
|
|
1184
|
-
onClick:
|
|
1185
|
-
}, [
|
|
1186
|
-
key:
|
|
1183
|
+
onClick: b
|
|
1184
|
+
}, [He("\u91CD\u7F6E")])]), i("div", {
|
|
1185
|
+
key: u.value,
|
|
1187
1186
|
class: `${e.clsName}-list`
|
|
1188
|
-
}, [
|
|
1189
|
-
const
|
|
1187
|
+
}, [L(n.value, (p) => {
|
|
1188
|
+
const C = l(p), O = h(c.value, p.dataIndex, !1);
|
|
1190
1189
|
return i(a, {
|
|
1191
1190
|
checked: O,
|
|
1192
|
-
disabled:
|
|
1191
|
+
disabled: C == null ? void 0 : C.disabled,
|
|
1193
1192
|
onChange: (E) => {
|
|
1194
|
-
|
|
1193
|
+
w(p, E);
|
|
1195
1194
|
}
|
|
1196
1195
|
}, {
|
|
1197
|
-
default: () => [
|
|
1196
|
+
default: () => [p.title]
|
|
1198
1197
|
});
|
|
1199
1198
|
})])]),
|
|
1200
|
-
...
|
|
1199
|
+
...M(t, "default")
|
|
1201
1200
|
}) : null;
|
|
1202
1201
|
}
|
|
1203
|
-
}),
|
|
1204
|
-
oe(
|
|
1205
|
-
},
|
|
1202
|
+
}), Dt = Symbol("pro-table"), Wn = () => te(Dt), Xn = (e) => {
|
|
1203
|
+
oe(Dt, e);
|
|
1204
|
+
}, tt = () => ({
|
|
1206
1205
|
clsName: {
|
|
1207
1206
|
type: String,
|
|
1208
1207
|
default: "pro-table"
|
|
@@ -1231,21 +1230,21 @@ const Gn = () => ({
|
|
|
1231
1230
|
tableMethods: {
|
|
1232
1231
|
type: Array
|
|
1233
1232
|
}
|
|
1234
|
-
}),
|
|
1233
|
+
}), kr = T({
|
|
1235
1234
|
inheritAttrs: !1,
|
|
1236
1235
|
props: {
|
|
1237
|
-
...
|
|
1238
|
-
...
|
|
1236
|
+
...ie,
|
|
1237
|
+
...tt()
|
|
1239
1238
|
},
|
|
1240
1239
|
setup: (e, {
|
|
1241
1240
|
slots: t,
|
|
1242
1241
|
expose: r,
|
|
1243
|
-
attrs:
|
|
1242
|
+
attrs: s,
|
|
1244
1243
|
emit: a
|
|
1245
1244
|
}) => {
|
|
1246
1245
|
const {
|
|
1247
1246
|
elementMap: n
|
|
1248
|
-
} =
|
|
1247
|
+
} = Z(), o = e.elementMap || n, u = h(n, k.TableKey), y = () => ({
|
|
1249
1248
|
title: "\u5E8F\u53F7",
|
|
1250
1249
|
dataIndex: "serialNumber",
|
|
1251
1250
|
width: 80,
|
|
@@ -1257,11 +1256,11 @@ const Gn = () => ({
|
|
|
1257
1256
|
var E, $;
|
|
1258
1257
|
return ((E = e.paginationState) == null ? void 0 : E.page) && (($ = e.paginationState) == null ? void 0 : $.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + O + 1 : O + 1;
|
|
1259
1258
|
}
|
|
1260
|
-
}), f =
|
|
1261
|
-
const O = e.operate, E =
|
|
1259
|
+
}), f = J(t, "operate"), g = () => {
|
|
1260
|
+
const O = e.operate, E = L(O.items, (P) => ({
|
|
1262
1261
|
...P,
|
|
1263
|
-
...
|
|
1264
|
-
})), $ =
|
|
1262
|
+
...h(O.itemState, P.value)
|
|
1263
|
+
})), $ = st(E, (P) => P.sort);
|
|
1265
1264
|
return {
|
|
1266
1265
|
...e.column,
|
|
1267
1266
|
title: "\u64CD\u4F5C",
|
|
@@ -1271,91 +1270,91 @@ const Gn = () => ({
|
|
|
1271
1270
|
customRender: ({
|
|
1272
1271
|
record: P
|
|
1273
1272
|
}) => {
|
|
1274
|
-
const
|
|
1275
|
-
...
|
|
1276
|
-
value:
|
|
1277
|
-
label:
|
|
1278
|
-
show:
|
|
1279
|
-
disabled:
|
|
1280
|
-
loading:
|
|
1281
|
-
extraProps:
|
|
1273
|
+
const N = L($, (S) => ({
|
|
1274
|
+
...S,
|
|
1275
|
+
value: S.value,
|
|
1276
|
+
label: S.label,
|
|
1277
|
+
show: F(S.show) ? S.show(P) : S.show,
|
|
1278
|
+
disabled: F(S.disabled) ? S.disabled(P) : S.disabled,
|
|
1279
|
+
loading: F(S.loading) ? S.loading(P) : S.loading,
|
|
1280
|
+
extraProps: F(S.extraProps) ? S.extraProps(P) : S.extraProps,
|
|
1282
1281
|
onClick: () => {
|
|
1283
1282
|
var x;
|
|
1284
|
-
(x =
|
|
1283
|
+
(x = S.onClick) == null || x.call(S, P);
|
|
1285
1284
|
},
|
|
1286
|
-
element:
|
|
1285
|
+
element: F(S.element) ? () => S.element(P, S) : S.element
|
|
1287
1286
|
}));
|
|
1288
|
-
return i(
|
|
1287
|
+
return i(It, {
|
|
1289
1288
|
clsName: O.clsName || `${e.clsName}-operate`,
|
|
1290
|
-
items:
|
|
1289
|
+
items: N,
|
|
1291
1290
|
elementKey: O.elementKey
|
|
1292
|
-
},
|
|
1293
|
-
...
|
|
1294
|
-
[x]: (
|
|
1295
|
-
var
|
|
1296
|
-
return (
|
|
1291
|
+
}, H(j(f), (S, x) => ({
|
|
1292
|
+
...S,
|
|
1293
|
+
[x]: (q) => {
|
|
1294
|
+
var z;
|
|
1295
|
+
return (z = f[x]) == null ? void 0 : z.call(f, P, q);
|
|
1297
1296
|
}
|
|
1298
1297
|
}), {}));
|
|
1299
1298
|
}
|
|
1300
1299
|
};
|
|
1301
|
-
},
|
|
1300
|
+
}, m = U([]), c = D(() => {
|
|
1302
1301
|
var O;
|
|
1303
1302
|
return !!((O = e.toolbar) != null && O.columnSetting);
|
|
1304
|
-
}), l =
|
|
1303
|
+
}), l = xt(e, "columns"), d = D(() => {
|
|
1305
1304
|
if (!c.value)
|
|
1306
1305
|
return e.columns;
|
|
1307
|
-
const O =
|
|
1306
|
+
const O = H(m.value, (E, $) => ({
|
|
1308
1307
|
...E,
|
|
1309
1308
|
[$]: !0
|
|
1310
1309
|
}), {});
|
|
1311
|
-
return B(e.columns, (E) =>
|
|
1312
|
-
}),
|
|
1310
|
+
return B(e.columns, (E) => h(O, E.dataIndex));
|
|
1311
|
+
}), v = (O) => L(O, (E) => {
|
|
1313
1312
|
const $ = {
|
|
1314
1313
|
...e.column,
|
|
1315
1314
|
...E
|
|
1316
1315
|
};
|
|
1317
|
-
return E.children && W(E.children) > 0 ? ($.children =
|
|
1316
|
+
return E.children && W(E.children) > 0 ? ($.children = v(E.children), $) : (E.customRender || ($.customRender = ({
|
|
1318
1317
|
text: P
|
|
1319
1318
|
}) => {
|
|
1320
|
-
var
|
|
1321
|
-
return
|
|
1319
|
+
var S;
|
|
1320
|
+
return Ve(o, {
|
|
1322
1321
|
...E,
|
|
1323
1322
|
showProps: {
|
|
1324
1323
|
...E.showProps,
|
|
1325
|
-
content: ((
|
|
1324
|
+
content: ((S = E.showProps) == null ? void 0 : S.content) || e.columnEmptyText
|
|
1326
1325
|
}
|
|
1327
1326
|
}, P) || P || e.columnEmptyText;
|
|
1328
1327
|
}), $);
|
|
1329
|
-
}),
|
|
1330
|
-
const O =
|
|
1331
|
-
return e.serialNumber && E.unshift(
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
columns:
|
|
1328
|
+
}), b = D(() => {
|
|
1329
|
+
const O = Ae(d.value, e.columnState, ($) => $.dataIndex), E = v(O);
|
|
1330
|
+
return e.serialNumber && E.unshift(y()), e.operate && e.operate.items && ae(e.operate.items, ($) => $.show) && E.push(g()), E;
|
|
1331
|
+
}), w = U();
|
|
1332
|
+
Xn({
|
|
1333
|
+
columns: b,
|
|
1335
1334
|
originColumns: l,
|
|
1336
|
-
selectIdsRef:
|
|
1337
|
-
tableRef:
|
|
1335
|
+
selectIdsRef: m,
|
|
1336
|
+
tableRef: w,
|
|
1338
1337
|
toolbar: e.toolbar,
|
|
1339
1338
|
...e.provideExtra
|
|
1340
|
-
}), r(ce(e.tableMethods || [],
|
|
1341
|
-
const
|
|
1339
|
+
}), r(ce(e.tableMethods || [], w));
|
|
1340
|
+
const p = j(tt()), C = J(t, "columnSetting");
|
|
1342
1341
|
return () => {
|
|
1343
1342
|
var E;
|
|
1344
|
-
if (!
|
|
1343
|
+
if (!u)
|
|
1345
1344
|
return null;
|
|
1346
1345
|
const O = t.toolbar ? t.toolbar() : void 0;
|
|
1347
|
-
return i("div",
|
|
1346
|
+
return i("div", I({
|
|
1348
1347
|
class: e.clsName
|
|
1349
|
-
}, R(
|
|
1348
|
+
}, R(s, "class")), [(O || c.value) && i("div", {
|
|
1350
1349
|
class: `${e.clsName}-toolbar`
|
|
1351
|
-
}, [O, c.value && i(
|
|
1352
|
-
ref:
|
|
1353
|
-
},
|
|
1354
|
-
columns:
|
|
1350
|
+
}, [O, c.value && i(Hn, (E = e.toolbar) == null ? void 0 : E.columnSetting, C)]), i(u, I({
|
|
1351
|
+
ref: w
|
|
1352
|
+
}, M(s, "class"), M(e, p), {
|
|
1353
|
+
columns: b.value
|
|
1355
1354
|
}), t)]);
|
|
1356
1355
|
};
|
|
1357
1356
|
}
|
|
1358
|
-
}),
|
|
1357
|
+
}), Yn = () => ({
|
|
1359
1358
|
title: {
|
|
1360
1359
|
type: String
|
|
1361
1360
|
},
|
|
@@ -1367,19 +1366,19 @@ const Gn = () => ({
|
|
|
1367
1366
|
type: Boolean,
|
|
1368
1367
|
default: !0
|
|
1369
1368
|
}
|
|
1370
|
-
}),
|
|
1369
|
+
}), Ke = T({
|
|
1371
1370
|
props: {
|
|
1372
|
-
...
|
|
1371
|
+
...Yn()
|
|
1373
1372
|
},
|
|
1374
1373
|
setup: (e, {
|
|
1375
1374
|
slots: t,
|
|
1376
1375
|
emit: r
|
|
1377
1376
|
}) => () => {
|
|
1378
|
-
var a, n,
|
|
1379
|
-
const
|
|
1377
|
+
var a, n, o, u;
|
|
1378
|
+
const s = e.hideWhileNoHistory && ((n = (a = window.history) == null ? void 0 : a.state) == null ? void 0 : n.back) || e.hideWhileNoHistory === !1;
|
|
1380
1379
|
return i("div", {
|
|
1381
1380
|
class: "pro-page-header"
|
|
1382
|
-
}, [e.showBack &&
|
|
1381
|
+
}, [e.showBack && s && i("div", {
|
|
1383
1382
|
class: "pro-page-header-back",
|
|
1384
1383
|
onClick: () => {
|
|
1385
1384
|
r("back");
|
|
@@ -1390,11 +1389,11 @@ const Gn = () => ({
|
|
|
1390
1389
|
class: "pro-page-header-sub-title"
|
|
1391
1390
|
}, [t.subTitle ? t.subTitle() : e.subTitle]), i("div", {
|
|
1392
1391
|
class: "pro-page-header-space"
|
|
1393
|
-
}, [(
|
|
1392
|
+
}, [(o = t.space) == null ? void 0 : o.call(t)]), i("div", {
|
|
1394
1393
|
class: "pro-page-header-extra"
|
|
1395
|
-
}, [(
|
|
1394
|
+
}, [(u = t.extra) == null ? void 0 : u.call(t)])]);
|
|
1396
1395
|
}
|
|
1397
|
-
}),
|
|
1396
|
+
}), Jn = () => ({
|
|
1398
1397
|
loading: {
|
|
1399
1398
|
type: Boolean,
|
|
1400
1399
|
default: !1
|
|
@@ -1404,34 +1403,34 @@ const Gn = () => ({
|
|
|
1404
1403
|
type: Boolean,
|
|
1405
1404
|
default: !0
|
|
1406
1405
|
}
|
|
1407
|
-
}),
|
|
1406
|
+
}), jr = T({
|
|
1408
1407
|
props: {
|
|
1409
|
-
...
|
|
1410
|
-
...
|
|
1408
|
+
...Ke.props,
|
|
1409
|
+
...Jn()
|
|
1411
1410
|
},
|
|
1412
1411
|
setup: (e, {
|
|
1413
1412
|
slots: t,
|
|
1414
1413
|
emit: r
|
|
1415
1414
|
}) => {
|
|
1416
|
-
const a =
|
|
1417
|
-
|
|
1418
|
-
var
|
|
1415
|
+
const a = _()(k.LoadingKey), n = U(), o = U(0);
|
|
1416
|
+
Jt(n, (y) => {
|
|
1417
|
+
var g;
|
|
1419
1418
|
if (!e.fillMode)
|
|
1420
1419
|
return;
|
|
1421
|
-
const f = (
|
|
1422
|
-
|
|
1420
|
+
const f = (g = y[0]) == null ? void 0 : g.contentRect;
|
|
1421
|
+
o.value = f == null ? void 0 : f.height;
|
|
1423
1422
|
});
|
|
1424
|
-
const
|
|
1423
|
+
const u = j(Ke.props);
|
|
1425
1424
|
return () => {
|
|
1426
|
-
var
|
|
1427
|
-
const
|
|
1425
|
+
var g, m, c, l;
|
|
1426
|
+
const y = e.title || t.title || e.subTitle || t.subTitle || t.extra, f = !!t.footer;
|
|
1428
1427
|
return i("div", {
|
|
1429
1428
|
class: "pro-page"
|
|
1430
|
-
}, [(
|
|
1429
|
+
}, [(g = t.start) == null ? void 0 : g.call(t), y && i(Ke, I(R(e, u), {
|
|
1431
1430
|
onBack: () => {
|
|
1432
1431
|
r("back");
|
|
1433
1432
|
}
|
|
1434
|
-
}), R(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && a ? i(a,
|
|
1433
|
+
}), R(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && a ? i(a, I({
|
|
1435
1434
|
loading: !0
|
|
1436
1435
|
}, e.loadingOpts), {
|
|
1437
1436
|
default: () => [i("div", {
|
|
@@ -1439,17 +1438,17 @@ const Gn = () => ({
|
|
|
1439
1438
|
}, null)]
|
|
1440
1439
|
}) : i("div", {
|
|
1441
1440
|
ref: n,
|
|
1442
|
-
style: e.fillMode &&
|
|
1441
|
+
style: e.fillMode && o.value > 0 ? `height:${o.value};overflow-y:auto` : "",
|
|
1443
1442
|
class: "pro-page-content"
|
|
1444
|
-
}, [e.fillMode ? i(Y, null, [
|
|
1443
|
+
}, [e.fillMode ? i(Y, null, [o.value > 0 && ((m = t.default) == null ? void 0 : m.call(t))]) : (c = t.default) == null ? void 0 : c.call(t)]), !e.loading && f && i("div", {
|
|
1445
1444
|
class: "pro-page-footer"
|
|
1446
1445
|
}, [(l = t.footer) == null ? void 0 : l.call(t)])]);
|
|
1447
1446
|
};
|
|
1448
1447
|
}
|
|
1449
|
-
}),
|
|
1448
|
+
}), Qn = Object.freeze({
|
|
1450
1449
|
page: 1,
|
|
1451
1450
|
pageSize: 10
|
|
1452
|
-
}),
|
|
1451
|
+
}), Zn = () => ({
|
|
1453
1452
|
clsName: {
|
|
1454
1453
|
type: String,
|
|
1455
1454
|
default: "pro-list"
|
|
@@ -1467,59 +1466,59 @@ const Gn = () => ({
|
|
|
1467
1466
|
pageState: {
|
|
1468
1467
|
type: Object
|
|
1469
1468
|
}
|
|
1470
|
-
}),
|
|
1469
|
+
}), nt = T({
|
|
1471
1470
|
props: {
|
|
1472
|
-
...
|
|
1471
|
+
...Zn()
|
|
1473
1472
|
},
|
|
1474
1473
|
setup: (e, {
|
|
1475
1474
|
slots: t,
|
|
1476
1475
|
emit: r
|
|
1477
1476
|
}) => {
|
|
1478
|
-
const
|
|
1479
|
-
...
|
|
1477
|
+
const s = _(), a = s(k.ProSearchFormKey), n = s(k.ProTableKey), o = s(k.PaginationKey), u = e.pageState || ye({
|
|
1478
|
+
...Qn
|
|
1480
1479
|
});
|
|
1481
|
-
let
|
|
1480
|
+
let y;
|
|
1482
1481
|
const f = () => {
|
|
1483
1482
|
r("search", {
|
|
1484
|
-
...
|
|
1485
|
-
...
|
|
1483
|
+
...y,
|
|
1484
|
+
...u
|
|
1486
1485
|
});
|
|
1487
|
-
},
|
|
1488
|
-
|
|
1489
|
-
},
|
|
1490
|
-
|
|
1491
|
-
}, c =
|
|
1486
|
+
}, g = (v, b) => {
|
|
1487
|
+
y = v, u.page = b || 1, f();
|
|
1488
|
+
}, m = (v, b) => {
|
|
1489
|
+
u.page = v, u.pageSize = b, f();
|
|
1490
|
+
}, c = J(t, "search"), l = J(t, "table"), d = J(t, "pagination");
|
|
1492
1491
|
return () => {
|
|
1493
|
-
var
|
|
1494
|
-
return i(Y, null, [(
|
|
1495
|
-
executeSearchWithResetPage:
|
|
1496
|
-
pageState:
|
|
1497
|
-
}) : i(Y, null, [a && i(a,
|
|
1492
|
+
var v, b, w, p;
|
|
1493
|
+
return i(Y, null, [(v = t.start) == null ? void 0 : v.call(t), t.search ? t.search({
|
|
1494
|
+
executeSearchWithResetPage: g,
|
|
1495
|
+
pageState: u
|
|
1496
|
+
}) : i(Y, null, [a && i(a, I({
|
|
1498
1497
|
clsName: `${e.clsName}-search`
|
|
1499
|
-
},
|
|
1500
|
-
onFinish: (
|
|
1501
|
-
}), c)]), (
|
|
1502
|
-
pageState:
|
|
1503
|
-
}) : i(Y, null, [n && i(n,
|
|
1498
|
+
}, M(e.searchProps, "onFinish"), {
|
|
1499
|
+
onFinish: (C) => g(C)
|
|
1500
|
+
}), c)]), (b = t.divide) == null ? void 0 : b.call(t), t.table ? t.table({
|
|
1501
|
+
pageState: u
|
|
1502
|
+
}) : i(Y, null, [n && i(n, I({
|
|
1504
1503
|
clsName: `${e.clsName}-table`,
|
|
1505
1504
|
paginationState: {
|
|
1506
|
-
page:
|
|
1507
|
-
pageSize:
|
|
1505
|
+
page: u.page,
|
|
1506
|
+
pageSize: u.pageSize
|
|
1508
1507
|
},
|
|
1509
1508
|
pagination: !1
|
|
1510
|
-
}, e.tableProps), l)]), (
|
|
1511
|
-
executePageChange:
|
|
1512
|
-
pageState:
|
|
1513
|
-
}) : i(Y, null, [e.paginationProps !== !1 &&
|
|
1509
|
+
}, e.tableProps), l)]), (w = t.divide2) == null ? void 0 : w.call(t), t.pagination ? t.pagination({
|
|
1510
|
+
executePageChange: m,
|
|
1511
|
+
pageState: u
|
|
1512
|
+
}) : i(Y, null, [e.paginationProps !== !1 && o && i("div", {
|
|
1514
1513
|
class: `${e.clsName}-pagination`
|
|
1515
|
-
}, [i(
|
|
1516
|
-
page:
|
|
1517
|
-
pageSize:
|
|
1518
|
-
onComposeChange:
|
|
1519
|
-
}),
|
|
1514
|
+
}, [i(o, I(M(ne(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
|
|
1515
|
+
page: u.page,
|
|
1516
|
+
pageSize: u.pageSize,
|
|
1517
|
+
onComposeChange: m
|
|
1518
|
+
}), d)])]), (p = t.end) == null ? void 0 : p.call(t)]);
|
|
1520
1519
|
};
|
|
1521
1520
|
}
|
|
1522
|
-
}),
|
|
1521
|
+
}), rt = () => ({
|
|
1523
1522
|
clsName: {
|
|
1524
1523
|
type: String,
|
|
1525
1524
|
default: "pro-desc"
|
|
@@ -1527,42 +1526,42 @@ const Gn = () => ({
|
|
|
1527
1526
|
model: {
|
|
1528
1527
|
type: Object
|
|
1529
1528
|
}
|
|
1530
|
-
}),
|
|
1529
|
+
}), er = T({
|
|
1531
1530
|
props: {
|
|
1532
|
-
...
|
|
1533
|
-
...
|
|
1531
|
+
...ie,
|
|
1532
|
+
...rt()
|
|
1534
1533
|
},
|
|
1535
1534
|
setup: (e, {
|
|
1536
1535
|
slots: t
|
|
1537
1536
|
}) => {
|
|
1538
1537
|
const {
|
|
1539
1538
|
elementMap: r
|
|
1540
|
-
} =
|
|
1541
|
-
return () => !n || !
|
|
1539
|
+
} = Z(), s = e.elementMap || r, a = _(), n = a(k.DescriptionsKey), o = a(k.DescriptionsItemKey), u = D(() => Ae(e.columns, e.columnState, "dataIndex")), y = j(ie), f = j(rt());
|
|
1540
|
+
return () => !n || !o ? null : i(n, I({
|
|
1542
1541
|
class: e.clsName
|
|
1543
|
-
},
|
|
1542
|
+
}, M(e, ...y, ...f, "model")), {
|
|
1544
1543
|
default: () => {
|
|
1545
|
-
var
|
|
1546
|
-
return [(
|
|
1547
|
-
const l = c.dataIndex,
|
|
1548
|
-
return i(
|
|
1544
|
+
var g, m;
|
|
1545
|
+
return [(g = t.start) == null ? void 0 : g.call(t), L(u.value, (c) => {
|
|
1546
|
+
const l = c.dataIndex, d = h(e.model, l);
|
|
1547
|
+
return i(o, I({
|
|
1549
1548
|
class: `${e.clsName}-item`
|
|
1550
|
-
},
|
|
1549
|
+
}, h(c.extra, "desc")), {
|
|
1551
1550
|
default: () => {
|
|
1552
|
-
var
|
|
1553
|
-
return [((
|
|
1551
|
+
var v;
|
|
1552
|
+
return [((v = t.value) == null ? void 0 : v.call(t, d, c)) || Ve(s, c, d)];
|
|
1554
1553
|
},
|
|
1555
1554
|
label: () => {
|
|
1556
|
-
var
|
|
1557
|
-
return ((
|
|
1555
|
+
var v;
|
|
1556
|
+
return ((v = t.label) == null ? void 0 : v.call(t, c)) || c.title;
|
|
1558
1557
|
}
|
|
1559
1558
|
});
|
|
1560
|
-
}), (
|
|
1559
|
+
}), (m = t.default) == null ? void 0 : m.call(t)];
|
|
1561
1560
|
},
|
|
1562
1561
|
...t
|
|
1563
1562
|
});
|
|
1564
1563
|
}
|
|
1565
|
-
}),
|
|
1564
|
+
}), tr = () => ({
|
|
1566
1565
|
content: {
|
|
1567
1566
|
type: [String, Number]
|
|
1568
1567
|
},
|
|
@@ -1570,24 +1569,24 @@ const Gn = () => ({
|
|
|
1570
1569
|
type: [Object, Boolean]
|
|
1571
1570
|
},
|
|
1572
1571
|
popoverProps: Object
|
|
1573
|
-
}),
|
|
1572
|
+
}), nr = T({
|
|
1574
1573
|
inheritAttrs: !1,
|
|
1575
1574
|
props: {
|
|
1576
|
-
...
|
|
1575
|
+
...tr()
|
|
1577
1576
|
},
|
|
1578
1577
|
setup: (e, {
|
|
1579
1578
|
attrs: t
|
|
1580
1579
|
}) => {
|
|
1581
|
-
const
|
|
1582
|
-
var n,
|
|
1583
|
-
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((n = e.ellipsis) == null ? void 0 : n.rows) || ((
|
|
1580
|
+
const s = _()(k.PopoverKey), a = () => {
|
|
1581
|
+
var n, o;
|
|
1582
|
+
return e.ellipsis ? e.ellipsis === !0 ? 1 : ((n = e.ellipsis) == null ? void 0 : n.rows) || ((o = e.ellipsis) == null ? void 0 : o.num) || 1 : "unset";
|
|
1584
1583
|
};
|
|
1585
1584
|
return () => {
|
|
1586
|
-
const n = i("span",
|
|
1585
|
+
const n = i("span", I({
|
|
1587
1586
|
class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
|
|
1588
1587
|
style: `-webkit-line-clamp:${a()}`
|
|
1589
1588
|
}, t), [e.content]);
|
|
1590
|
-
return !e.popoverProps || !
|
|
1589
|
+
return !e.popoverProps || !s ? n : i(s, e.popoverProps, {
|
|
1591
1590
|
default: () => [n],
|
|
1592
1591
|
content: () => e.content
|
|
1593
1592
|
});
|
|
@@ -1603,7 +1602,7 @@ const Gn = () => ({
|
|
|
1603
1602
|
convert: {
|
|
1604
1603
|
type: Function
|
|
1605
1604
|
}
|
|
1606
|
-
},
|
|
1605
|
+
}, Oe = T({
|
|
1607
1606
|
inheritAttrs: !1,
|
|
1608
1607
|
props: {
|
|
1609
1608
|
...pe
|
|
@@ -1611,16 +1610,16 @@ const Gn = () => ({
|
|
|
1611
1610
|
setup: (e, {
|
|
1612
1611
|
attrs: t
|
|
1613
1612
|
}) => {
|
|
1614
|
-
const r =
|
|
1613
|
+
const r = D(() => {
|
|
1615
1614
|
var n;
|
|
1616
|
-
const
|
|
1615
|
+
const s = (n = e.showProps) == null ? void 0 : n.content, a = e.value || _t(e.value) ? e.value : s;
|
|
1617
1616
|
return e.convert ? e.convert(a, e) : a;
|
|
1618
1617
|
});
|
|
1619
|
-
return () => i(
|
|
1618
|
+
return () => i(nr, I(R(t, "style", "class"), M(e.showProps, "content"), {
|
|
1620
1619
|
content: r.value
|
|
1621
1620
|
}), null);
|
|
1622
1621
|
}
|
|
1623
|
-
}),
|
|
1622
|
+
}), Ur = T({
|
|
1624
1623
|
inheritAttrs: !1,
|
|
1625
1624
|
props: {
|
|
1626
1625
|
...pe,
|
|
@@ -1636,16 +1635,16 @@ const Gn = () => ({
|
|
|
1636
1635
|
setup: (e, {
|
|
1637
1636
|
attrs: t
|
|
1638
1637
|
}) => {
|
|
1639
|
-
const r =
|
|
1640
|
-
let
|
|
1641
|
-
return
|
|
1638
|
+
const r = D(() => {
|
|
1639
|
+
let s = e.value;
|
|
1640
|
+
return s && e.decimalFixed && (s = Qt(s, e.decimalFixed || 2)), s && e.thousandDivision && (s = Zt(s)), e.convert ? e.convert(s, e) : s;
|
|
1642
1641
|
});
|
|
1643
|
-
return () => i(
|
|
1642
|
+
return () => i(Oe, I(R(t, "style", "class"), {
|
|
1644
1643
|
value: r.value,
|
|
1645
1644
|
showProps: e.showProps
|
|
1646
1645
|
}), null);
|
|
1647
1646
|
}
|
|
1648
|
-
}),
|
|
1647
|
+
}), qr = T({
|
|
1649
1648
|
inheritAttrs: !1,
|
|
1650
1649
|
props: {
|
|
1651
1650
|
...pe,
|
|
@@ -1664,18 +1663,18 @@ const Gn = () => ({
|
|
|
1664
1663
|
setup: (e, {
|
|
1665
1664
|
attrs: t
|
|
1666
1665
|
}) => {
|
|
1667
|
-
const r =
|
|
1666
|
+
const r = D(() => en(e.options, (n) => n.label), void 0), s = D(() => {
|
|
1668
1667
|
const n = e.value;
|
|
1669
|
-
let
|
|
1670
|
-
return
|
|
1671
|
-
}), a =
|
|
1672
|
-
return () => i(
|
|
1668
|
+
let o = e.value;
|
|
1669
|
+
return V(n) ? o = Ue(L(n, (u) => h(r.value, u, u)), e.splitStr) : o = h(r.value, n, e.value), e.convert ? e.convert(o, e) : o;
|
|
1670
|
+
}), a = D(() => h(e.colorMap, e.value));
|
|
1671
|
+
return () => i(Oe, I(R(t, "style", "class"), {
|
|
1673
1672
|
style: `color:${a.value || ""}`,
|
|
1674
|
-
value:
|
|
1673
|
+
value: s.value,
|
|
1675
1674
|
showProps: e.showProps
|
|
1676
1675
|
}), null);
|
|
1677
1676
|
}
|
|
1678
|
-
}),
|
|
1677
|
+
}), Br = T({
|
|
1679
1678
|
inheritAttrs: !1,
|
|
1680
1679
|
props: {
|
|
1681
1680
|
...pe,
|
|
@@ -1695,23 +1694,23 @@ const Gn = () => ({
|
|
|
1695
1694
|
setup: (e, {
|
|
1696
1695
|
attrs: t
|
|
1697
1696
|
}) => {
|
|
1698
|
-
const r =
|
|
1697
|
+
const r = D(() => {
|
|
1699
1698
|
const a = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
|
|
1700
|
-
return
|
|
1699
|
+
return tn(a, (o) => h(o, (n == null ? void 0 : n.label) || "label"), {
|
|
1701
1700
|
value: "value",
|
|
1702
1701
|
children: "children",
|
|
1703
1702
|
...n
|
|
1704
1703
|
});
|
|
1705
|
-
}),
|
|
1704
|
+
}), s = D(() => {
|
|
1706
1705
|
let a = e.value;
|
|
1707
|
-
return
|
|
1706
|
+
return V(e.value) ? a = Ue(L(e.value, (n) => h(r.value, n, n)), e.splitStr) : a = h(r.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
|
|
1708
1707
|
});
|
|
1709
|
-
return () => i(
|
|
1710
|
-
value:
|
|
1708
|
+
return () => i(Oe, I(R(t, "style", "class"), {
|
|
1709
|
+
value: s.value,
|
|
1711
1710
|
showProps: e.showProps
|
|
1712
1711
|
}), null);
|
|
1713
1712
|
}
|
|
1714
|
-
}),
|
|
1713
|
+
}), Vr = T({
|
|
1715
1714
|
props: {
|
|
1716
1715
|
...pe,
|
|
1717
1716
|
value: {
|
|
@@ -1733,117 +1732,21 @@ const Gn = () => ({
|
|
|
1733
1732
|
setup: (e, {
|
|
1734
1733
|
attrs: t
|
|
1735
1734
|
}) => {
|
|
1736
|
-
const r = (a) => a && (e.isUnix ?
|
|
1735
|
+
const r = (a) => a && (e.isUnix ? Ye.unix(a).format(e.format) : Ye(a).format(e.format)), s = D(() => {
|
|
1737
1736
|
let a = e.value;
|
|
1738
|
-
return
|
|
1737
|
+
return V(e.value) ? a = Ue(L(e.value, (n) => r(n) || ""), e.splitStr) : a = r(e.value) || "", e.convert ? e.convert(a, e) : a;
|
|
1739
1738
|
});
|
|
1740
|
-
return () => i(
|
|
1741
|
-
value:
|
|
1739
|
+
return () => i(Oe, I(R(t, "style", "class"), {
|
|
1740
|
+
value: s.value,
|
|
1742
1741
|
showProps: e.showProps
|
|
1743
1742
|
}), null);
|
|
1744
1743
|
}
|
|
1745
|
-
}),
|
|
1744
|
+
}), xe = T((e, {
|
|
1746
1745
|
slots: t
|
|
1747
1746
|
}) => () => {
|
|
1748
|
-
var r,
|
|
1749
|
-
return i("header", null, [(r = t.start) == null ? void 0 : r.call(t), (
|
|
1750
|
-
})
|
|
1751
|
-
function ar(e) {
|
|
1752
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !de(e);
|
|
1753
|
-
}
|
|
1754
|
-
const We = {
|
|
1755
|
-
convertSubMenuParams: {
|
|
1756
|
-
type: Function
|
|
1757
|
-
},
|
|
1758
|
-
convertMenuItemParams: {
|
|
1759
|
-
type: Function
|
|
1760
|
-
},
|
|
1761
|
-
subMenuSlots: {
|
|
1762
|
-
type: Object
|
|
1763
|
-
},
|
|
1764
|
-
menuItemSlots: {
|
|
1765
|
-
type: Object
|
|
1766
|
-
},
|
|
1767
|
-
onMenuItemClick: {
|
|
1768
|
-
type: Function
|
|
1769
|
-
}
|
|
1770
|
-
}, Ke = F(We), Kt = M({
|
|
1771
|
-
inheritAttrs: !1,
|
|
1772
|
-
props: {
|
|
1773
|
-
menu: Object,
|
|
1774
|
-
...We
|
|
1775
|
-
},
|
|
1776
|
-
setup: (e) => {
|
|
1777
|
-
const t = G(), r = t(k.MenuSubKey), o = t(k.MenuItemKey), a = () => {
|
|
1778
|
-
var s;
|
|
1779
|
-
(s = e.onMenuItemClick) == null || s.call(e, e.menu);
|
|
1780
|
-
}, n = V(F(e.subMenuSlots), (s, d) => ({
|
|
1781
|
-
...s,
|
|
1782
|
-
[d]: () => {
|
|
1783
|
-
var f, v;
|
|
1784
|
-
return (v = (f = e.subMenuSlots)[d]) == null ? void 0 : v.call(f, e.menu);
|
|
1785
|
-
}
|
|
1786
|
-
}), {}), u = V(F(e.menuItemSlots), (s, d) => ({
|
|
1787
|
-
...s,
|
|
1788
|
-
[d]: () => {
|
|
1789
|
-
var f, v;
|
|
1790
|
-
return (v = (f = e.menuItemSlots)[d]) == null ? void 0 : v.call(f, e.menu);
|
|
1791
|
-
}
|
|
1792
|
-
}), {});
|
|
1793
|
-
return () => {
|
|
1794
|
-
var s, d, f;
|
|
1795
|
-
return ((s = e.menu) == null ? void 0 : s.children) && W(e.menu.children) > 0 ? r ? i(r, (d = e.convertSubMenuParams) == null ? void 0 : d.call(e, e.menu), {
|
|
1796
|
-
default: () => [K(e.menu.children, (v) => i(Kt, C({
|
|
1797
|
-
menu: v
|
|
1798
|
-
}, R(e, Ke)), null))],
|
|
1799
|
-
...n
|
|
1800
|
-
}) : null : o ? i(o, C((f = e.convertMenuItemParams) == null ? void 0 : f.call(e, e.menu), {
|
|
1801
|
-
onClick: a
|
|
1802
|
-
}), u) : null;
|
|
1803
|
-
};
|
|
1804
|
-
}
|
|
1805
|
-
}), or = () => ({
|
|
1806
|
-
clsName: {
|
|
1807
|
-
type: String,
|
|
1808
|
-
default: "pro-layout-menus"
|
|
1809
|
-
},
|
|
1810
|
-
menus: {
|
|
1811
|
-
type: Array
|
|
1812
|
-
},
|
|
1813
|
-
mode: {
|
|
1814
|
-
type: String,
|
|
1815
|
-
default: "vertical"
|
|
1816
|
-
},
|
|
1817
|
-
activeKey: {
|
|
1818
|
-
type: String
|
|
1819
|
-
},
|
|
1820
|
-
openKeys: {
|
|
1821
|
-
type: Array
|
|
1822
|
-
},
|
|
1823
|
-
convertMenuParams: {
|
|
1824
|
-
type: Function
|
|
1825
|
-
},
|
|
1826
|
-
...We
|
|
1827
|
-
}), le = M({
|
|
1828
|
-
inheritAttrs: !1,
|
|
1829
|
-
props: {
|
|
1830
|
-
...or()
|
|
1831
|
-
},
|
|
1832
|
-
setup: (e) => {
|
|
1833
|
-
const r = G()(k.MenuKey);
|
|
1834
|
-
return () => {
|
|
1835
|
-
var a;
|
|
1836
|
-
let o;
|
|
1837
|
-
return r ? i(r, C({
|
|
1838
|
-
class: e.clsName
|
|
1839
|
-
}, (a = e.convertMenuParams) == null ? void 0 : a.call(e, R(e, "mode", "activeKey", "openKeys", "collapse"))), ar(o = K(e.menus, (n) => i(Kt, C({
|
|
1840
|
-
menu: n
|
|
1841
|
-
}, R(e, Ke)), null))) ? o : {
|
|
1842
|
-
default: () => [o]
|
|
1843
|
-
}) : null;
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
}), ur = () => ({
|
|
1747
|
+
var r, s, a, n;
|
|
1748
|
+
return i("header", null, [(r = t.start) == null ? void 0 : r.call(t), (s = t.menus) == null ? void 0 : s.call(t), (a = t.default) == null ? void 0 : a.call(t), (n = t.end) == null ? void 0 : n.call(t)]);
|
|
1749
|
+
}), rr = () => ({
|
|
1847
1750
|
clsName: {
|
|
1848
1751
|
type: String,
|
|
1849
1752
|
default: "pro-layout"
|
|
@@ -1869,92 +1772,154 @@ const We = {
|
|
|
1869
1772
|
label: "label"
|
|
1870
1773
|
}
|
|
1871
1774
|
},
|
|
1872
|
-
|
|
1873
|
-
|
|
1775
|
+
convertSubMenuProps: {
|
|
1776
|
+
type: Function
|
|
1777
|
+
},
|
|
1778
|
+
convertMenuItemProps: {
|
|
1779
|
+
type: Function
|
|
1780
|
+
},
|
|
1781
|
+
onMenuItemClick: {
|
|
1782
|
+
type: Function
|
|
1783
|
+
}
|
|
1784
|
+
}), zr = T({
|
|
1874
1785
|
inheritAttrs: !1,
|
|
1875
1786
|
props: {
|
|
1876
|
-
...
|
|
1787
|
+
...rr()
|
|
1877
1788
|
},
|
|
1878
1789
|
setup: (e, {
|
|
1879
1790
|
slots: t,
|
|
1880
1791
|
attrs: r
|
|
1881
1792
|
}) => {
|
|
1882
|
-
const
|
|
1883
|
-
var
|
|
1884
|
-
return {
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1793
|
+
const a = _()(k.MenusKey), n = qe(), o = D(() => {
|
|
1794
|
+
var d;
|
|
1795
|
+
return nn(e.menus, (v) => {
|
|
1796
|
+
var p, C;
|
|
1797
|
+
const b = ((p = e.fieldNames) == null ? void 0 : p.value) || "value", w = ((C = e.fieldNames) == null ? void 0 : C.label) || "label";
|
|
1798
|
+
return {
|
|
1799
|
+
...M(v, b, w),
|
|
1800
|
+
value: h(v, b),
|
|
1801
|
+
label: h(v, w)
|
|
1802
|
+
};
|
|
1803
|
+
}, {
|
|
1804
|
+
children: ((d = e.fieldNames) == null ? void 0 : d.children) || "children",
|
|
1805
|
+
childrenName: "children"
|
|
1806
|
+
});
|
|
1807
|
+
}), u = D(() => rn(o.value)), y = D(() => {
|
|
1808
|
+
var v;
|
|
1809
|
+
const d = We(n.matched, (b) => !!h(u.value, b.name));
|
|
1810
|
+
return d ? h(u.value, d.name) : (v = e.findCurrentTopName) == null ? void 0 : v.call(e, n, u.value);
|
|
1811
|
+
}), f = D(() => y.value ? Xe(o.value, (d) => d.value === y.value).target : null), g = D(() => {
|
|
1812
|
+
var v;
|
|
1813
|
+
const d = We(n.matched, (b) => !!h(u.value, b.name));
|
|
1814
|
+
return d ? d.name : (v = e.findActiveKey) == null ? void 0 : v.call(e, n, u.value);
|
|
1815
|
+
}), m = (d) => {
|
|
1816
|
+
var b;
|
|
1817
|
+
const v = Xe(o.value, (w) => w.value === d.value).target;
|
|
1818
|
+
(b = e.onMenuItemClick) == null || b.call(e, v);
|
|
1819
|
+
}, c = J(t, "header"), l = J(t, "menu");
|
|
1902
1820
|
return () => {
|
|
1903
|
-
var
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1821
|
+
var b, w, p;
|
|
1822
|
+
if (!a)
|
|
1823
|
+
return null;
|
|
1824
|
+
const d = R(r, "class"), v = {
|
|
1825
|
+
class: "pro-layout-menus",
|
|
1826
|
+
options: o.value,
|
|
1827
|
+
activeKey: g.value,
|
|
1828
|
+
...R(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
|
|
1907
1829
|
};
|
|
1908
|
-
return e.layout === "vertical" ? i("main",
|
|
1830
|
+
return e.layout === "vertical" ? i("main", I(d, {
|
|
1909
1831
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1910
|
-
}), [i(
|
|
1832
|
+
}), [i(xe, {
|
|
1911
1833
|
class: `${e.clsName}-header`
|
|
1912
1834
|
}, {
|
|
1913
|
-
menus: () => i(
|
|
1914
|
-
mode: "horizontal"
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
}, l), null),
|
|
1918
|
-
...y
|
|
1835
|
+
menus: () => i(a, I({
|
|
1836
|
+
mode: "horizontal"
|
|
1837
|
+
}, v), l),
|
|
1838
|
+
...c
|
|
1919
1839
|
}), i("div", {
|
|
1920
1840
|
class: `${e.clsName}-section`
|
|
1921
|
-
}, [(
|
|
1841
|
+
}, [(b = t.default) == null ? void 0 : b.call(t)])]) : e.layout === "horizontal" ? i("main", I(d, {
|
|
1922
1842
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1923
|
-
}), [i(
|
|
1924
|
-
menus: n.value,
|
|
1925
|
-
activeKey: f.value
|
|
1926
|
-
}, l), null), i("div", {
|
|
1843
|
+
}), [i(a, v, l), i("div", {
|
|
1927
1844
|
class: `${e.clsName}-structure`
|
|
1928
|
-
}, [i(
|
|
1845
|
+
}, [i(xe, {
|
|
1929
1846
|
class: `${e.clsName}-header`
|
|
1930
|
-
},
|
|
1847
|
+
}, c), i("div", {
|
|
1931
1848
|
class: `${e.clsName}-section`
|
|
1932
|
-
}, [(
|
|
1849
|
+
}, [(w = t.default) == null ? void 0 : w.call(t)])])]) : i("main", I(d, {
|
|
1933
1850
|
class: `${e.clsName} ${e.clsName}-${e.layout}`
|
|
1934
|
-
}), [i(
|
|
1851
|
+
}), [i(xe, {
|
|
1935
1852
|
class: `${e.clsName}-header`
|
|
1936
1853
|
}, {
|
|
1937
|
-
menus: () => i(
|
|
1854
|
+
menus: () => i(a, I({
|
|
1855
|
+
class: "pro-layout-menus",
|
|
1938
1856
|
mode: "horizontal",
|
|
1939
|
-
|
|
1940
|
-
activeKey:
|
|
1941
|
-
},
|
|
1942
|
-
onMenuItemClick:
|
|
1943
|
-
}),
|
|
1944
|
-
...
|
|
1857
|
+
options: L(o.value, (C) => M(C, "children")),
|
|
1858
|
+
activeKey: y.value
|
|
1859
|
+
}, R(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
1860
|
+
onMenuItemClick: m
|
|
1861
|
+
}), l),
|
|
1862
|
+
...c
|
|
1945
1863
|
}), i("div", {
|
|
1946
1864
|
class: `${e.clsName}-structure`
|
|
1947
|
-
}, [
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
}, l), null), i("div", {
|
|
1865
|
+
}, [f.value && W(f.value.children) > 0 && i(a, I({
|
|
1866
|
+
options: f.value.children
|
|
1867
|
+
}, M(v, "options")), l), i("div", {
|
|
1951
1868
|
class: `${e.clsName}-section`
|
|
1952
|
-
}, [(
|
|
1869
|
+
}, [(p = t.default) == null ? void 0 : p.call(t)])])]);
|
|
1953
1870
|
};
|
|
1954
1871
|
}
|
|
1955
|
-
}),
|
|
1956
|
-
|
|
1957
|
-
|
|
1872
|
+
}), _r = T({
|
|
1873
|
+
props: {
|
|
1874
|
+
fieldNames: {
|
|
1875
|
+
type: Object,
|
|
1876
|
+
default: {
|
|
1877
|
+
id: "id",
|
|
1878
|
+
name: "name",
|
|
1879
|
+
size: "size"
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
setup: (e, {
|
|
1884
|
+
slots: t,
|
|
1885
|
+
emit: r
|
|
1886
|
+
}) => {
|
|
1887
|
+
const a = _()(k.UploaderKey), n = (f) => {
|
|
1888
|
+
const g = an(f);
|
|
1889
|
+
if (V(g)) {
|
|
1890
|
+
const m = e.fieldNames;
|
|
1891
|
+
return L(g, (c) => ({
|
|
1892
|
+
...M(c, m.id, m.name, m.size),
|
|
1893
|
+
id: h(c, m.id),
|
|
1894
|
+
name: h(c, m.name),
|
|
1895
|
+
size: h(c, m.size)
|
|
1896
|
+
}));
|
|
1897
|
+
}
|
|
1898
|
+
return [];
|
|
1899
|
+
}, o = D(() => n(e.value)), u = D(() => n(e.modelValue)), y = (f, g) => {
|
|
1900
|
+
let m = "";
|
|
1901
|
+
f && W(f) > 0 && (m = on(L(f, (c) => {
|
|
1902
|
+
const l = e.fieldNames;
|
|
1903
|
+
return {
|
|
1904
|
+
[l.id]: c.id,
|
|
1905
|
+
[l.name]: c.name,
|
|
1906
|
+
[l.size || "size"]: c.size
|
|
1907
|
+
};
|
|
1908
|
+
}))), r(g, m);
|
|
1909
|
+
};
|
|
1910
|
+
return () => a ? i(a, I({
|
|
1911
|
+
value: o.value,
|
|
1912
|
+
"onUpdate:value": (f) => y(f, "update:value"),
|
|
1913
|
+
modelValue: u.value,
|
|
1914
|
+
"onUpdate:modelValue": (f) => y(f, "update:modelValue")
|
|
1915
|
+
}, M(e, "value", "modelValue", "fieldNames")), t) : null;
|
|
1916
|
+
}
|
|
1917
|
+
}), Gr = T({
|
|
1918
|
+
props: {},
|
|
1919
|
+
setup: () => () => i("div", null, null)
|
|
1920
|
+
}), At = Symbol("pro-curd"), X = () => te(At), ar = (e) => oe(At, e);
|
|
1921
|
+
var A = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(A || {}), K = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(K || {}), re = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(re || {}), me = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(me || {});
|
|
1922
|
+
const or = () => ({
|
|
1958
1923
|
rowKey: {
|
|
1959
1924
|
type: String,
|
|
1960
1925
|
default: "id"
|
|
@@ -1974,106 +1939,106 @@ const cr = () => ({
|
|
|
1974
1939
|
modalProps: {
|
|
1975
1940
|
type: Object
|
|
1976
1941
|
}
|
|
1977
|
-
}),
|
|
1942
|
+
}), Ot = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], at = T({
|
|
1978
1943
|
props: {
|
|
1979
|
-
...
|
|
1980
|
-
...
|
|
1944
|
+
...ie,
|
|
1945
|
+
...or()
|
|
1981
1946
|
},
|
|
1982
1947
|
setup: (e, {
|
|
1983
1948
|
slots: t,
|
|
1984
1949
|
expose: r
|
|
1985
1950
|
}) => {
|
|
1986
1951
|
const {
|
|
1987
|
-
elementMap:
|
|
1952
|
+
elementMap: s,
|
|
1988
1953
|
state: a,
|
|
1989
1954
|
sendEvent: n,
|
|
1990
|
-
sendRequest:
|
|
1991
|
-
} =
|
|
1992
|
-
const x = B(
|
|
1993
|
-
const
|
|
1994
|
-
return
|
|
1955
|
+
sendRequest: o
|
|
1956
|
+
} = ge(), u = D(() => Ae(e.columns, e.columnState, (N) => ue(N))), y = (N, S = !0) => vt(e.formElementMap, N, S), f = (N, S) => Ve(s, N, S), g = (N, S) => {
|
|
1957
|
+
const x = B(u.value, (q) => {
|
|
1958
|
+
const z = h(q, ["extra", N]) || h(q, N);
|
|
1959
|
+
return S ? z !== !1 : z;
|
|
1995
1960
|
});
|
|
1996
|
-
return
|
|
1997
|
-
},
|
|
1998
|
-
let
|
|
1999
|
-
const
|
|
2000
|
-
|
|
2001
|
-
...
|
|
2002
|
-
...
|
|
1961
|
+
return st(x, (q) => h(q, ["extra", `${N}Sort`]) || h(q, `${N}Sort`));
|
|
1962
|
+
}, m = D(() => g("form", !0)), c = D(() => g("detail", !0)), l = D(() => g("table", !0)), d = D(() => g("search"));
|
|
1963
|
+
let v;
|
|
1964
|
+
const b = (N) => {
|
|
1965
|
+
o(A.LIST, {
|
|
1966
|
+
...v,
|
|
1967
|
+
...N
|
|
2003
1968
|
});
|
|
2004
|
-
},
|
|
1969
|
+
}, w = (N) => {
|
|
2005
1970
|
n({
|
|
2006
|
-
type:
|
|
2007
|
-
payload:
|
|
2008
|
-
source:
|
|
1971
|
+
type: N.action,
|
|
1972
|
+
payload: M(N, "action", "source"),
|
|
1973
|
+
source: N.source
|
|
2009
1974
|
});
|
|
2010
1975
|
};
|
|
2011
|
-
|
|
2012
|
-
type:
|
|
2013
|
-
payload:
|
|
1976
|
+
_e(({
|
|
1977
|
+
type: N,
|
|
1978
|
+
payload: S,
|
|
2014
1979
|
source: x
|
|
2015
1980
|
}) => {
|
|
2016
1981
|
if (x)
|
|
2017
1982
|
return;
|
|
2018
|
-
let
|
|
2019
|
-
|
|
1983
|
+
let q = N, z = S == null ? void 0 : S.type;
|
|
1984
|
+
q === fe.Success && (q = h(S, ["requestOpts", "action"]), z = K.SUCCESS);
|
|
2020
1985
|
const {
|
|
2021
|
-
values:
|
|
2022
|
-
record:
|
|
2023
|
-
} =
|
|
2024
|
-
switch (
|
|
2025
|
-
case
|
|
2026
|
-
|
|
1986
|
+
values: be,
|
|
1987
|
+
record: wt
|
|
1988
|
+
} = S;
|
|
1989
|
+
switch (q) {
|
|
1990
|
+
case A.LIST:
|
|
1991
|
+
z === K.EMIT && (v = be, b());
|
|
2027
1992
|
return;
|
|
2028
|
-
case
|
|
2029
|
-
|
|
1993
|
+
case A.ADD:
|
|
1994
|
+
z === K.EXECUTE && o(A.ADD, be, a.detailData);
|
|
2030
1995
|
return;
|
|
2031
|
-
case
|
|
2032
|
-
|
|
1996
|
+
case A.EDIT:
|
|
1997
|
+
z === K.EXECUTE && o(A.EDIT, be, a.detailData);
|
|
2033
1998
|
return;
|
|
2034
|
-
case
|
|
2035
|
-
|
|
1999
|
+
case A.DELETE:
|
|
2000
|
+
z === K.EMIT ? o(A.DELETE, wt, e.rowKey) : z === K.SUCCESS && b();
|
|
2036
2001
|
return;
|
|
2037
2002
|
}
|
|
2038
|
-
|
|
2003
|
+
q && N === K.EXECUTE && o(q, be);
|
|
2039
2004
|
});
|
|
2040
|
-
const
|
|
2041
|
-
...
|
|
2042
|
-
[
|
|
2043
|
-
}), {}),
|
|
2044
|
-
return
|
|
2045
|
-
columns:
|
|
2046
|
-
getSignColumns:
|
|
2047
|
-
getFormItemVNode:
|
|
2005
|
+
const p = H(e.operates, (N, S) => ({
|
|
2006
|
+
...N,
|
|
2007
|
+
[S.action]: S
|
|
2008
|
+
}), {}), C = (N) => h(p, N), O = D(() => e.listProps), E = D(() => e.formProps), $ = D(() => e.descProps), P = D(() => e.modalProps);
|
|
2009
|
+
return ar({
|
|
2010
|
+
columns: u,
|
|
2011
|
+
getSignColumns: g,
|
|
2012
|
+
getFormItemVNode: y,
|
|
2048
2013
|
getItemVNode: f,
|
|
2049
|
-
elementMap:
|
|
2014
|
+
elementMap: s,
|
|
2050
2015
|
formElementMap: e.formElementMap,
|
|
2051
2016
|
rowKey: e.rowKey,
|
|
2052
2017
|
curdState: a,
|
|
2053
|
-
formColumns:
|
|
2018
|
+
formColumns: m,
|
|
2054
2019
|
descColumns: c,
|
|
2055
2020
|
tableColumns: l,
|
|
2056
|
-
searchColumns:
|
|
2057
|
-
sendCurdEvent:
|
|
2021
|
+
searchColumns: d,
|
|
2022
|
+
sendCurdEvent: w,
|
|
2058
2023
|
operates: e.operates,
|
|
2059
|
-
getOperate:
|
|
2060
|
-
refreshList:
|
|
2024
|
+
getOperate: C,
|
|
2025
|
+
refreshList: b,
|
|
2061
2026
|
listProps: O,
|
|
2062
2027
|
formProps: E,
|
|
2063
2028
|
descProps: $,
|
|
2064
2029
|
modalProps: P
|
|
2065
2030
|
}), r({
|
|
2066
|
-
sendCurdEvent:
|
|
2067
|
-
refreshList:
|
|
2031
|
+
sendCurdEvent: w,
|
|
2032
|
+
refreshList: b
|
|
2068
2033
|
}), () => {
|
|
2069
|
-
var
|
|
2070
|
-
return (
|
|
2034
|
+
var N;
|
|
2035
|
+
return (N = t.default) == null ? void 0 : N.call(t);
|
|
2071
2036
|
};
|
|
2072
2037
|
}
|
|
2073
|
-
}),
|
|
2038
|
+
}), Te = T({
|
|
2074
2039
|
props: {
|
|
2075
|
-
...
|
|
2076
|
-
...
|
|
2040
|
+
...M(we.props, "state", "requests"),
|
|
2041
|
+
...at.props,
|
|
2077
2042
|
curdState: {
|
|
2078
2043
|
type: Object
|
|
2079
2044
|
}
|
|
@@ -2083,12 +2048,12 @@ const cr = () => ({
|
|
|
2083
2048
|
expose: r
|
|
2084
2049
|
}) => {
|
|
2085
2050
|
const {
|
|
2086
|
-
elementMap:
|
|
2051
|
+
elementMap: s,
|
|
2087
2052
|
formElementMap: a
|
|
2088
|
-
} =
|
|
2053
|
+
} = Z(), n = U(), o = U(), u = e.curdState || ye({
|
|
2089
2054
|
detailData: {}
|
|
2090
|
-
}),
|
|
2091
|
-
[
|
|
2055
|
+
}), y = {
|
|
2056
|
+
[A.LIST]: {
|
|
2092
2057
|
convertParams: (c) => c,
|
|
2093
2058
|
convertData: (c) => {
|
|
2094
2059
|
var l;
|
|
@@ -2097,7 +2062,7 @@ const cr = () => ({
|
|
|
2097
2062
|
loadingName: "listLoading",
|
|
2098
2063
|
stateName: "listData"
|
|
2099
2064
|
},
|
|
2100
|
-
[
|
|
2065
|
+
[A.DETAIL]: {
|
|
2101
2066
|
convertParams: (c, l) => R(c, l),
|
|
2102
2067
|
convertData: (c) => {
|
|
2103
2068
|
var l;
|
|
@@ -2107,7 +2072,7 @@ const cr = () => ({
|
|
|
2107
2072
|
stateName: "detailData",
|
|
2108
2073
|
label: "\u8BE6\u60C5"
|
|
2109
2074
|
},
|
|
2110
|
-
[
|
|
2075
|
+
[A.ADD]: {
|
|
2111
2076
|
convertParams: (c, l) => ({
|
|
2112
2077
|
body: {
|
|
2113
2078
|
...l,
|
|
@@ -2117,7 +2082,7 @@ const cr = () => ({
|
|
|
2117
2082
|
loadingName: "operateLoading",
|
|
2118
2083
|
label: "\u6DFB\u52A0"
|
|
2119
2084
|
},
|
|
2120
|
-
[
|
|
2085
|
+
[A.EDIT]: {
|
|
2121
2086
|
convertParams: (c, l) => ({
|
|
2122
2087
|
body: {
|
|
2123
2088
|
...l,
|
|
@@ -2127,269 +2092,269 @@ const cr = () => ({
|
|
|
2127
2092
|
loadingName: "operateLoading",
|
|
2128
2093
|
label: "\u7F16\u8F91"
|
|
2129
2094
|
},
|
|
2130
|
-
[
|
|
2095
|
+
[A.DELETE]: {
|
|
2131
2096
|
convertParams: (c, l) => R(c, l),
|
|
2132
2097
|
label: "\u5220\u9664"
|
|
2133
2098
|
}
|
|
2134
|
-
}, f =
|
|
2135
|
-
...
|
|
2099
|
+
}, f = L(e.operates, (c) => ({
|
|
2100
|
+
...h(y, c.action),
|
|
2136
2101
|
...c
|
|
2137
|
-
})),
|
|
2102
|
+
})), g = B(f, (c) => c.actor), m = j(M(we.props, "state", "requests"));
|
|
2138
2103
|
return r({
|
|
2139
2104
|
sendCurdEvent: (c) => {
|
|
2140
2105
|
var l;
|
|
2141
|
-
(l =
|
|
2106
|
+
(l = o.value) == null || l.sendCurdEvent(c);
|
|
2142
2107
|
},
|
|
2143
2108
|
refreshList: (c) => {
|
|
2144
2109
|
var l;
|
|
2145
|
-
(l =
|
|
2110
|
+
(l = o.value) == null || l.refreshList(c);
|
|
2146
2111
|
},
|
|
2147
2112
|
sendEvent: (c) => {
|
|
2148
2113
|
var l;
|
|
2149
2114
|
(l = n.value) == null || l.sendEvent(c);
|
|
2150
2115
|
},
|
|
2151
2116
|
sendRequest: (c, ...l) => {
|
|
2152
|
-
var
|
|
2153
|
-
(
|
|
2117
|
+
var d;
|
|
2118
|
+
(d = n.value) == null || d.sendRequest(c, ...l);
|
|
2154
2119
|
}
|
|
2155
|
-
}), () => i(
|
|
2120
|
+
}), () => i(we, I({
|
|
2156
2121
|
ref: n
|
|
2157
|
-
}, R(e,
|
|
2158
|
-
elementMap: e.elementMap ||
|
|
2159
|
-
state:
|
|
2160
|
-
requests:
|
|
2122
|
+
}, R(e, m), {
|
|
2123
|
+
elementMap: e.elementMap || s,
|
|
2124
|
+
state: u,
|
|
2125
|
+
requests: g
|
|
2161
2126
|
}), {
|
|
2162
|
-
default: () => [i(
|
|
2163
|
-
ref:
|
|
2164
|
-
},
|
|
2127
|
+
default: () => [i(at, I({
|
|
2128
|
+
ref: o
|
|
2129
|
+
}, M(e, ...m, "curdState", "operates"), {
|
|
2165
2130
|
formElementMap: e.formElementMap || a,
|
|
2166
2131
|
operates: f
|
|
2167
2132
|
}), t)]
|
|
2168
2133
|
});
|
|
2169
2134
|
}
|
|
2170
|
-
}),
|
|
2135
|
+
}), sr = () => ({
|
|
2171
2136
|
defaultAddRecord: {
|
|
2172
2137
|
type: Object
|
|
2173
2138
|
}
|
|
2174
|
-
}),
|
|
2139
|
+
}), Re = T({
|
|
2175
2140
|
props: {
|
|
2176
|
-
...
|
|
2141
|
+
...sr()
|
|
2177
2142
|
},
|
|
2178
2143
|
setup: (e) => {
|
|
2179
2144
|
var l;
|
|
2180
2145
|
const {
|
|
2181
2146
|
dispatch: t,
|
|
2182
2147
|
sendRequest: r
|
|
2183
|
-
} =
|
|
2184
|
-
rowKey:
|
|
2148
|
+
} = ge(), {
|
|
2149
|
+
rowKey: s,
|
|
2185
2150
|
curdState: a,
|
|
2186
2151
|
listProps: n,
|
|
2187
|
-
getOperate:
|
|
2188
|
-
refreshList:
|
|
2189
|
-
} = X(),
|
|
2190
|
-
const
|
|
2191
|
-
|
|
2152
|
+
getOperate: o,
|
|
2153
|
+
refreshList: u
|
|
2154
|
+
} = X(), y = (l = n == null ? void 0 : n.value) == null ? void 0 : l.pageState, f = (d) => {
|
|
2155
|
+
const v = o(A.DETAIL);
|
|
2156
|
+
v != null && v.actor ? r(A.DETAIL, d, s) : t({
|
|
2192
2157
|
type: "detailData",
|
|
2193
|
-
payload:
|
|
2158
|
+
payload: Gt(d)
|
|
2194
2159
|
});
|
|
2195
|
-
},
|
|
2196
|
-
record:
|
|
2160
|
+
}, g = (d, {
|
|
2161
|
+
record: v
|
|
2197
2162
|
}) => {
|
|
2198
|
-
|
|
2163
|
+
d === K.EMIT && (t({
|
|
2199
2164
|
type: "mode",
|
|
2200
2165
|
payload: re.DETAIL
|
|
2201
|
-
}), f(
|
|
2202
|
-
},
|
|
2203
|
-
|
|
2166
|
+
}), f(v));
|
|
2167
|
+
}, m = (d) => {
|
|
2168
|
+
d === K.EMIT ? (t({
|
|
2204
2169
|
type: "mode",
|
|
2205
2170
|
payload: re.ADD
|
|
2206
2171
|
}), t({
|
|
2207
2172
|
type: "detailData",
|
|
2208
2173
|
payload: e.defaultAddRecord || {}
|
|
2209
|
-
})) :
|
|
2174
|
+
})) : d === K.SUCCESS && (y && (y.page = 1), u(), a.addAction === me.CONTINUE ? t({
|
|
2210
2175
|
type: "detailData",
|
|
2211
2176
|
payload: e.defaultAddRecord || {}
|
|
2212
2177
|
}) : t({
|
|
2213
2178
|
type: "mode",
|
|
2214
2179
|
payload: void 0
|
|
2215
2180
|
}));
|
|
2216
|
-
}, c = (
|
|
2217
|
-
record:
|
|
2181
|
+
}, c = (d, {
|
|
2182
|
+
record: v
|
|
2218
2183
|
}) => {
|
|
2219
|
-
|
|
2184
|
+
d === K.EMIT ? (t({
|
|
2220
2185
|
type: "mode",
|
|
2221
2186
|
payload: re.EDIT
|
|
2222
|
-
}), f(
|
|
2187
|
+
}), f(v)) : d === K.SUCCESS && (t({
|
|
2223
2188
|
type: "mode",
|
|
2224
2189
|
payload: void 0
|
|
2225
|
-
}),
|
|
2190
|
+
}), u());
|
|
2226
2191
|
};
|
|
2227
|
-
return
|
|
2228
|
-
type:
|
|
2229
|
-
payload:
|
|
2230
|
-
source:
|
|
2192
|
+
return _e(({
|
|
2193
|
+
type: d,
|
|
2194
|
+
payload: v,
|
|
2195
|
+
source: b
|
|
2231
2196
|
}) => {
|
|
2232
|
-
if (
|
|
2197
|
+
if (b)
|
|
2233
2198
|
return;
|
|
2234
|
-
let
|
|
2235
|
-
const
|
|
2236
|
-
switch (
|
|
2237
|
-
case
|
|
2238
|
-
|
|
2239
|
-
record:
|
|
2199
|
+
let w = d, p = v == null ? void 0 : v.type;
|
|
2200
|
+
const C = v == null ? void 0 : v.record;
|
|
2201
|
+
switch (w === fe.Success && (w = h(v, ["requestOpts", "action"]), p = K.SUCCESS), w) {
|
|
2202
|
+
case A.DETAIL:
|
|
2203
|
+
g(p, {
|
|
2204
|
+
record: C
|
|
2240
2205
|
});
|
|
2241
2206
|
break;
|
|
2242
|
-
case
|
|
2243
|
-
|
|
2207
|
+
case A.ADD:
|
|
2208
|
+
m(p);
|
|
2244
2209
|
break;
|
|
2245
|
-
case
|
|
2246
|
-
c(
|
|
2247
|
-
record:
|
|
2210
|
+
case A.EDIT:
|
|
2211
|
+
c(p, {
|
|
2212
|
+
record: C
|
|
2248
2213
|
});
|
|
2249
2214
|
break;
|
|
2250
2215
|
}
|
|
2251
2216
|
}), () => null;
|
|
2252
2217
|
}
|
|
2253
|
-
}),
|
|
2218
|
+
}), Hr = T({
|
|
2254
2219
|
props: {
|
|
2255
|
-
...
|
|
2256
|
-
...
|
|
2220
|
+
...Te.props,
|
|
2221
|
+
...Re.props
|
|
2257
2222
|
},
|
|
2258
2223
|
setup: (e, {
|
|
2259
2224
|
slots: t,
|
|
2260
2225
|
expose: r
|
|
2261
2226
|
}) => {
|
|
2262
|
-
const
|
|
2263
|
-
r(ce(
|
|
2264
|
-
const a =
|
|
2265
|
-
return () => i(
|
|
2266
|
-
ref:
|
|
2267
|
-
},
|
|
2227
|
+
const s = U();
|
|
2228
|
+
r(ce(Ot, s));
|
|
2229
|
+
const a = j(Re.props);
|
|
2230
|
+
return () => i(Te, I({
|
|
2231
|
+
ref: s
|
|
2232
|
+
}, M(e, a)), {
|
|
2268
2233
|
default: () => {
|
|
2269
2234
|
var n;
|
|
2270
|
-
return [i(
|
|
2235
|
+
return [i(Re, R(e, a), null), (n = t.default) == null ? void 0 : n.call(t)];
|
|
2271
2236
|
}
|
|
2272
2237
|
});
|
|
2273
2238
|
}
|
|
2274
|
-
}),
|
|
2239
|
+
}), ur = () => ({
|
|
2275
2240
|
defaultAddRecord: {
|
|
2276
2241
|
type: Object
|
|
2277
2242
|
},
|
|
2278
2243
|
routeBack: {
|
|
2279
2244
|
type: Function
|
|
2280
2245
|
}
|
|
2281
|
-
}),
|
|
2246
|
+
}), Fe = T({
|
|
2282
2247
|
props: {
|
|
2283
|
-
...
|
|
2248
|
+
...ur()
|
|
2284
2249
|
},
|
|
2285
2250
|
setup: (e) => {
|
|
2286
|
-
const t =
|
|
2287
|
-
dispatch:
|
|
2251
|
+
const t = cn(), r = qe(), {
|
|
2252
|
+
dispatch: s,
|
|
2288
2253
|
sendRequest: a
|
|
2289
|
-
} =
|
|
2254
|
+
} = ge(), {
|
|
2290
2255
|
rowKey: n,
|
|
2291
|
-
curdState:
|
|
2292
|
-
} = X(),
|
|
2293
|
-
|
|
2256
|
+
curdState: o
|
|
2257
|
+
} = X(), u = (m) => {
|
|
2258
|
+
m === K.PAGE && (s({
|
|
2294
2259
|
type: "mode",
|
|
2295
2260
|
payload: void 0
|
|
2296
|
-
}),
|
|
2261
|
+
}), s({
|
|
2297
2262
|
type: "detailData",
|
|
2298
2263
|
payload: {}
|
|
2299
|
-
}),
|
|
2264
|
+
}), s({
|
|
2300
2265
|
type: "detailLoading",
|
|
2301
2266
|
payload: !1
|
|
2302
|
-
}),
|
|
2267
|
+
}), s({
|
|
2303
2268
|
type: "addAction",
|
|
2304
2269
|
payload: void 0
|
|
2305
2270
|
}));
|
|
2306
|
-
},
|
|
2271
|
+
}, y = (m, {
|
|
2307
2272
|
record: c
|
|
2308
2273
|
}) => {
|
|
2309
|
-
|
|
2274
|
+
m === K.EMIT ? t.push({
|
|
2310
2275
|
path: `${r.path}/detail`,
|
|
2311
2276
|
query: R(c, n)
|
|
2312
|
-
}) :
|
|
2277
|
+
}) : m === K.PAGE && (s({
|
|
2313
2278
|
type: "mode",
|
|
2314
2279
|
payload: re.DETAIL
|
|
2315
|
-
}), a(
|
|
2316
|
-
}, f = (
|
|
2317
|
-
|
|
2280
|
+
}), a(A.DETAIL, r.query, n));
|
|
2281
|
+
}, f = (m) => {
|
|
2282
|
+
m === K.EMIT ? t.push({
|
|
2318
2283
|
path: `${r.path}/add`
|
|
2319
|
-
}) :
|
|
2284
|
+
}) : m === K.PAGE ? (s({
|
|
2320
2285
|
type: "mode",
|
|
2321
2286
|
payload: re.ADD
|
|
2322
|
-
}),
|
|
2287
|
+
}), s({
|
|
2323
2288
|
type: "detailData",
|
|
2324
2289
|
payload: e.defaultAddRecord || {}
|
|
2325
|
-
})) :
|
|
2290
|
+
})) : m === K.SUCCESS && (o.addAction === me.CONTINUE ? s({
|
|
2326
2291
|
type: "detailData",
|
|
2327
2292
|
payload: e.defaultAddRecord || {}
|
|
2328
|
-
}) : e.routeBack ? e.routeBack(
|
|
2329
|
-
},
|
|
2293
|
+
}) : e.routeBack ? e.routeBack(A.ADD) : t.go(-1));
|
|
2294
|
+
}, g = (m, {
|
|
2330
2295
|
record: c
|
|
2331
2296
|
}) => {
|
|
2332
|
-
|
|
2297
|
+
m === K.EMIT ? t.push({
|
|
2333
2298
|
path: `${r.path}/edit`,
|
|
2334
2299
|
query: R(c, n)
|
|
2335
|
-
}) :
|
|
2300
|
+
}) : m === K.PAGE ? (s({
|
|
2336
2301
|
type: "mode",
|
|
2337
2302
|
payload: re.EDIT
|
|
2338
|
-
}), a(
|
|
2303
|
+
}), a(A.DETAIL, r.query, n)) : m === K.SUCCESS && (e.routeBack ? e.routeBack(A.EDIT) : t.go(-1));
|
|
2339
2304
|
};
|
|
2340
|
-
return
|
|
2341
|
-
type:
|
|
2305
|
+
return _e(({
|
|
2306
|
+
type: m,
|
|
2342
2307
|
payload: c,
|
|
2343
2308
|
source: l
|
|
2344
2309
|
}) => {
|
|
2345
2310
|
if (l)
|
|
2346
2311
|
return;
|
|
2347
|
-
let
|
|
2348
|
-
const
|
|
2349
|
-
switch (
|
|
2350
|
-
case
|
|
2351
|
-
|
|
2312
|
+
let d = m, v = c == null ? void 0 : c.type;
|
|
2313
|
+
const b = c == null ? void 0 : c.record;
|
|
2314
|
+
switch (d === fe.Success && (d = h(c, ["requestOpts", "action"]), v = K.SUCCESS), d) {
|
|
2315
|
+
case A.LIST:
|
|
2316
|
+
u(v);
|
|
2352
2317
|
break;
|
|
2353
|
-
case
|
|
2354
|
-
|
|
2355
|
-
record:
|
|
2318
|
+
case A.DETAIL:
|
|
2319
|
+
y(v, {
|
|
2320
|
+
record: b
|
|
2356
2321
|
});
|
|
2357
2322
|
break;
|
|
2358
|
-
case
|
|
2359
|
-
f(
|
|
2323
|
+
case A.ADD:
|
|
2324
|
+
f(v);
|
|
2360
2325
|
break;
|
|
2361
|
-
case
|
|
2362
|
-
v
|
|
2363
|
-
record:
|
|
2326
|
+
case A.EDIT:
|
|
2327
|
+
g(v, {
|
|
2328
|
+
record: b
|
|
2364
2329
|
});
|
|
2365
2330
|
break;
|
|
2366
2331
|
}
|
|
2367
2332
|
}), () => null;
|
|
2368
2333
|
}
|
|
2369
|
-
}),
|
|
2334
|
+
}), Wr = T({
|
|
2370
2335
|
props: {
|
|
2371
|
-
...
|
|
2372
|
-
...
|
|
2336
|
+
...Te.props,
|
|
2337
|
+
...Fe.props
|
|
2373
2338
|
},
|
|
2374
2339
|
setup: (e, {
|
|
2375
2340
|
slots: t,
|
|
2376
2341
|
expose: r
|
|
2377
2342
|
}) => {
|
|
2378
|
-
const
|
|
2379
|
-
r(ce(
|
|
2380
|
-
const a =
|
|
2381
|
-
return () => i(
|
|
2382
|
-
ref:
|
|
2383
|
-
},
|
|
2343
|
+
const s = U();
|
|
2344
|
+
r(ce(Ot, s));
|
|
2345
|
+
const a = j(Fe.props);
|
|
2346
|
+
return () => i(Te, I({
|
|
2347
|
+
ref: s
|
|
2348
|
+
}, M(e, a)), {
|
|
2384
2349
|
default: () => {
|
|
2385
2350
|
var n;
|
|
2386
|
-
return [i(
|
|
2351
|
+
return [i(Fe, R(e, a), null), (n = t.default) == null ? void 0 : n.call(t)];
|
|
2387
2352
|
}
|
|
2388
2353
|
});
|
|
2389
2354
|
}
|
|
2390
|
-
}),
|
|
2355
|
+
}), cr = T({
|
|
2391
2356
|
props: {
|
|
2392
|
-
...
|
|
2357
|
+
...nt.props,
|
|
2393
2358
|
clsName: {
|
|
2394
2359
|
type: String,
|
|
2395
2360
|
default: "pro-curd-list"
|
|
@@ -2400,76 +2365,76 @@ const cr = () => ({
|
|
|
2400
2365
|
}) => {
|
|
2401
2366
|
const {
|
|
2402
2367
|
elementMap: r,
|
|
2403
|
-
formElementMap:
|
|
2368
|
+
formElementMap: s,
|
|
2404
2369
|
curdState: a,
|
|
2405
2370
|
searchColumns: n,
|
|
2406
|
-
tableColumns:
|
|
2407
|
-
sendCurdEvent:
|
|
2408
|
-
operates:
|
|
2409
|
-
} = X(), f =
|
|
2410
|
-
B(
|
|
2411
|
-
const c =
|
|
2412
|
-
return c ===
|
|
2371
|
+
tableColumns: o,
|
|
2372
|
+
sendCurdEvent: u,
|
|
2373
|
+
operates: y
|
|
2374
|
+
} = X(), f = L(
|
|
2375
|
+
B(y, (m) => {
|
|
2376
|
+
const c = m.action;
|
|
2377
|
+
return c === A.DETAIL || c === A.EDIT || c === A.DELETE || m.tableOperate;
|
|
2413
2378
|
}),
|
|
2414
|
-
(
|
|
2379
|
+
(m) => {
|
|
2415
2380
|
const c = {
|
|
2416
|
-
...R(
|
|
2417
|
-
value:
|
|
2381
|
+
...R(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
|
|
2382
|
+
value: m.action
|
|
2418
2383
|
};
|
|
2419
2384
|
return c.onClick || (c.onClick = (l) => {
|
|
2420
|
-
|
|
2421
|
-
action:
|
|
2422
|
-
type:
|
|
2385
|
+
u({
|
|
2386
|
+
action: m.action,
|
|
2387
|
+
type: K.EMIT,
|
|
2423
2388
|
record: l
|
|
2424
2389
|
});
|
|
2425
2390
|
}), c;
|
|
2426
2391
|
}
|
|
2427
|
-
),
|
|
2428
|
-
|
|
2429
|
-
action:
|
|
2430
|
-
type:
|
|
2431
|
-
values:
|
|
2392
|
+
), g = (m) => {
|
|
2393
|
+
u({
|
|
2394
|
+
action: A.LIST,
|
|
2395
|
+
type: K.EMIT,
|
|
2396
|
+
values: m
|
|
2432
2397
|
});
|
|
2433
2398
|
};
|
|
2434
2399
|
return () => {
|
|
2435
|
-
var
|
|
2436
|
-
const
|
|
2437
|
-
formElementMap:
|
|
2400
|
+
var w, p;
|
|
2401
|
+
const m = e.searchProps, c = {
|
|
2402
|
+
formElementMap: s,
|
|
2438
2403
|
columns: n.value,
|
|
2439
|
-
...
|
|
2440
|
-
}, l = e.tableProps,
|
|
2404
|
+
...m
|
|
2405
|
+
}, l = e.tableProps, d = {
|
|
2441
2406
|
elementMap: r,
|
|
2442
|
-
columns:
|
|
2407
|
+
columns: o.value,
|
|
2443
2408
|
loading: a.listLoading,
|
|
2444
|
-
dataSource: (
|
|
2445
|
-
...
|
|
2409
|
+
dataSource: (w = a.listData) == null ? void 0 : w.dataSource,
|
|
2410
|
+
...M(l, "operate"),
|
|
2446
2411
|
operate: {
|
|
2447
2412
|
items: f,
|
|
2448
2413
|
...l == null ? void 0 : l.operate
|
|
2449
2414
|
}
|
|
2450
|
-
},
|
|
2451
|
-
total: (
|
|
2452
|
-
...ne(
|
|
2415
|
+
}, v = e.paginationProps, b = {
|
|
2416
|
+
total: (p = a.listData) == null ? void 0 : p.total,
|
|
2417
|
+
...ne(v) ? {} : v
|
|
2453
2418
|
};
|
|
2454
|
-
return i(
|
|
2419
|
+
return i(nt, I(M(e, "searchProps", "tableProps", "paginationProps"), {
|
|
2455
2420
|
searchProps: c,
|
|
2456
|
-
tableProps:
|
|
2457
|
-
paginationProps:
|
|
2458
|
-
onSearch:
|
|
2421
|
+
tableProps: d,
|
|
2422
|
+
paginationProps: v === !1 ? !1 : b,
|
|
2423
|
+
onSearch: g
|
|
2459
2424
|
}), {
|
|
2460
2425
|
...t,
|
|
2461
|
-
search: t.search ? (
|
|
2462
|
-
table: t.table ? (
|
|
2463
|
-
pagination: t.pagination ? (
|
|
2426
|
+
search: t.search ? (C) => t.search(C, c) : void 0,
|
|
2427
|
+
table: t.table ? (C) => t.table(C, d) : void 0,
|
|
2428
|
+
pagination: t.pagination ? (C) => t.pagination(C, b) : void 0
|
|
2464
2429
|
});
|
|
2465
2430
|
};
|
|
2466
2431
|
}
|
|
2467
|
-
}),
|
|
2432
|
+
}), Xr = T(() => {
|
|
2468
2433
|
const {
|
|
2469
2434
|
listProps: e
|
|
2470
2435
|
} = X();
|
|
2471
|
-
return () => i(
|
|
2472
|
-
}),
|
|
2436
|
+
return () => i(cr, M(e == null ? void 0 : e.value, "slots"), h(e == null ? void 0 : e.value, "slots"));
|
|
2437
|
+
}), lr = () => ({
|
|
2473
2438
|
clsName: {
|
|
2474
2439
|
type: String,
|
|
2475
2440
|
default: "pro-curd-form"
|
|
@@ -2477,85 +2442,85 @@ const cr = () => ({
|
|
|
2477
2442
|
signName: {
|
|
2478
2443
|
type: String
|
|
2479
2444
|
}
|
|
2480
|
-
}),
|
|
2445
|
+
}), Ge = T({
|
|
2481
2446
|
props: {
|
|
2482
|
-
...
|
|
2447
|
+
...lr()
|
|
2483
2448
|
},
|
|
2484
2449
|
setup: (e, {
|
|
2485
2450
|
slots: t,
|
|
2486
2451
|
expose: r,
|
|
2487
|
-
attrs:
|
|
2452
|
+
attrs: s
|
|
2488
2453
|
}) => {
|
|
2489
2454
|
const {
|
|
2490
2455
|
elementMap: a,
|
|
2491
2456
|
formElementMap: n,
|
|
2492
|
-
curdState:
|
|
2493
|
-
formColumns:
|
|
2494
|
-
getSignColumns:
|
|
2457
|
+
curdState: o,
|
|
2458
|
+
formColumns: u,
|
|
2459
|
+
getSignColumns: y,
|
|
2495
2460
|
sendCurdEvent: f
|
|
2496
|
-
} = X(),
|
|
2497
|
-
r(ce(e.formMethods || [],
|
|
2498
|
-
const
|
|
2499
|
-
var
|
|
2500
|
-
|
|
2461
|
+
} = X(), g = U();
|
|
2462
|
+
r(ce(e.formMethods || [], g));
|
|
2463
|
+
const m = D(() => e.signName ? y(e.signName) : u.value), c = () => {
|
|
2464
|
+
var b;
|
|
2465
|
+
o.addAction = me.NORMAL, (b = g.value) == null || b.submit();
|
|
2501
2466
|
}, l = () => {
|
|
2502
|
-
var
|
|
2503
|
-
|
|
2504
|
-
},
|
|
2467
|
+
var b;
|
|
2468
|
+
o.addAction = me.CONTINUE, (b = g.value) == null || b.submit();
|
|
2469
|
+
}, d = [
|
|
2505
2470
|
{
|
|
2506
|
-
value:
|
|
2471
|
+
value: G.RESET,
|
|
2507
2472
|
label: "\u91CD\u7F6E"
|
|
2508
2473
|
},
|
|
2509
2474
|
{
|
|
2510
|
-
value:
|
|
2475
|
+
value: G.SUBMIT,
|
|
2511
2476
|
label: "\u63D0\u4EA4",
|
|
2512
2477
|
extraProps: {
|
|
2513
2478
|
type: "primary"
|
|
2514
2479
|
}
|
|
2515
2480
|
},
|
|
2516
2481
|
{
|
|
2517
|
-
value:
|
|
2482
|
+
value: G.CONTINUE,
|
|
2518
2483
|
label: "\u786E\u5B9A\u5E76\u7EE7\u7EED",
|
|
2519
2484
|
extraProps: {
|
|
2520
2485
|
type: "primary"
|
|
2521
2486
|
},
|
|
2522
2487
|
show: !1
|
|
2523
2488
|
}
|
|
2524
|
-
],
|
|
2525
|
-
|
|
2526
|
-
action:
|
|
2527
|
-
type:
|
|
2528
|
-
values:
|
|
2489
|
+
], v = (b) => {
|
|
2490
|
+
s.onFinish || (o.mode === A.EDIT ? f({
|
|
2491
|
+
action: A.EDIT,
|
|
2492
|
+
type: K.EXECUTE,
|
|
2493
|
+
values: b
|
|
2529
2494
|
}) : f({
|
|
2530
|
-
action:
|
|
2531
|
-
type:
|
|
2532
|
-
values:
|
|
2495
|
+
action: A.ADD,
|
|
2496
|
+
type: K.EXECUTE,
|
|
2497
|
+
values: b
|
|
2533
2498
|
}));
|
|
2534
2499
|
};
|
|
2535
|
-
return () => i(
|
|
2536
|
-
ref:
|
|
2537
|
-
},
|
|
2500
|
+
return () => i(Vn, I({
|
|
2501
|
+
ref: g
|
|
2502
|
+
}, M(e, "operate"), {
|
|
2538
2503
|
elementMap: e.elementMap || a,
|
|
2539
2504
|
formElementMap: e.formElementMap || n,
|
|
2540
|
-
columns: e.columns ||
|
|
2541
|
-
readonly:
|
|
2542
|
-
model: e.model ||
|
|
2543
|
-
hideRequiredMark:
|
|
2505
|
+
columns: e.columns || m.value,
|
|
2506
|
+
readonly: o.mode === A.DETAIL,
|
|
2507
|
+
model: e.model || o.detailData,
|
|
2508
|
+
hideRequiredMark: o.mode === A.DETAIL,
|
|
2544
2509
|
operate: e.operate ? {
|
|
2545
|
-
items:
|
|
2510
|
+
items: d,
|
|
2546
2511
|
onSubmit: c,
|
|
2547
2512
|
onContinue: l,
|
|
2548
2513
|
...e.operate
|
|
2549
2514
|
} : void 0,
|
|
2550
|
-
onFinish:
|
|
2515
|
+
onFinish: v
|
|
2551
2516
|
}), t);
|
|
2552
2517
|
}
|
|
2553
|
-
}),
|
|
2518
|
+
}), Yr = T(() => {
|
|
2554
2519
|
const {
|
|
2555
2520
|
formProps: e
|
|
2556
2521
|
} = X();
|
|
2557
|
-
return () => i(
|
|
2558
|
-
}),
|
|
2522
|
+
return () => i(Ge, M(e == null ? void 0 : e.value, "slots"), h(e == null ? void 0 : e.value, "slots"));
|
|
2523
|
+
}), ir = () => ({
|
|
2559
2524
|
clsName: {
|
|
2560
2525
|
type: String,
|
|
2561
2526
|
default: "pro-curd-desc"
|
|
@@ -2563,75 +2528,75 @@ const cr = () => ({
|
|
|
2563
2528
|
signName: {
|
|
2564
2529
|
type: String
|
|
2565
2530
|
}
|
|
2566
|
-
}),
|
|
2531
|
+
}), dr = T({
|
|
2567
2532
|
props: {
|
|
2568
|
-
...
|
|
2533
|
+
...ir()
|
|
2569
2534
|
},
|
|
2570
2535
|
setup: (e, {
|
|
2571
2536
|
slots: t
|
|
2572
2537
|
}) => {
|
|
2573
2538
|
const {
|
|
2574
2539
|
curdState: r,
|
|
2575
|
-
descColumns:
|
|
2540
|
+
descColumns: s,
|
|
2576
2541
|
getSignColumns: a
|
|
2577
|
-
} = X(), n =
|
|
2578
|
-
return () => i(
|
|
2542
|
+
} = X(), n = D(() => e.signName ? a(e.signName) : s.value);
|
|
2543
|
+
return () => i(er, I(M(e, "signName", "model", "columns"), {
|
|
2579
2544
|
model: e.model || r.detailData,
|
|
2580
2545
|
columns: n.value
|
|
2581
2546
|
}), t);
|
|
2582
2547
|
}
|
|
2583
|
-
}),
|
|
2548
|
+
}), Jr = T(() => {
|
|
2584
2549
|
const {
|
|
2585
2550
|
descProps: e
|
|
2586
2551
|
} = X();
|
|
2587
|
-
return () => i(
|
|
2588
|
-
}),
|
|
2552
|
+
return () => i(dr, M(e == null ? void 0 : e.value, "slots"), h(e == null ? void 0 : e.value, "slots"));
|
|
2553
|
+
}), ot = () => ({
|
|
2589
2554
|
clsName: {
|
|
2590
2555
|
type: String,
|
|
2591
2556
|
default: "pro-curd-modal"
|
|
2592
2557
|
},
|
|
2593
2558
|
validMode: {
|
|
2594
2559
|
type: Array,
|
|
2595
|
-
default: [
|
|
2560
|
+
default: [A.ADD, A.DETAIL, A.EDIT]
|
|
2596
2561
|
}
|
|
2597
|
-
}),
|
|
2562
|
+
}), $t = T({
|
|
2598
2563
|
props: {
|
|
2599
|
-
...
|
|
2564
|
+
...ot()
|
|
2600
2565
|
},
|
|
2601
2566
|
setup: (e, {
|
|
2602
2567
|
slots: t
|
|
2603
2568
|
}) => {
|
|
2604
|
-
const r =
|
|
2569
|
+
const r = _(), s = r(k.ModalKey), a = r(k.LoadingKey), {
|
|
2605
2570
|
curdState: n,
|
|
2606
|
-
getOperate:
|
|
2607
|
-
} = X(),
|
|
2608
|
-
n.mode = void 0,
|
|
2609
|
-
},
|
|
2571
|
+
getOperate: o
|
|
2572
|
+
} = X(), u = () => {
|
|
2573
|
+
n.mode = void 0, ut(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
|
|
2574
|
+
}, y = j(ot());
|
|
2610
2575
|
return () => {
|
|
2611
|
-
var
|
|
2576
|
+
var g;
|
|
2612
2577
|
const f = n.mode;
|
|
2613
|
-
return !ae(e.validMode, (
|
|
2614
|
-
visible: ae(e.validMode, (
|
|
2615
|
-
title: e.title || ((
|
|
2578
|
+
return !ae(e.validMode, (m) => m === f) || !s ? null : i(s, I(M(e, y), {
|
|
2579
|
+
visible: ae(e.validMode, (m) => m === f),
|
|
2580
|
+
title: e.title || ((g = o(n.mode)) == null ? void 0 : g.label),
|
|
2616
2581
|
confirmLoading: n.operateLoading,
|
|
2617
|
-
maskClosable: n.mode ===
|
|
2618
|
-
onCancel:
|
|
2582
|
+
maskClosable: n.mode === A.DETAIL,
|
|
2583
|
+
onCancel: u
|
|
2619
2584
|
}), {
|
|
2620
2585
|
default: () => {
|
|
2621
|
-
var
|
|
2586
|
+
var m;
|
|
2622
2587
|
return [n.detailLoading && a ? i(a, {
|
|
2623
2588
|
loading: !0
|
|
2624
2589
|
}, {
|
|
2625
2590
|
default: () => [i("div", {
|
|
2626
2591
|
class: `${e.clsName}-loading-dom`
|
|
2627
2592
|
}, null)]
|
|
2628
|
-
}) : (
|
|
2593
|
+
}) : (m = t.default) == null ? void 0 : m.call(t)];
|
|
2629
2594
|
},
|
|
2630
|
-
...
|
|
2595
|
+
...M(t, "default")
|
|
2631
2596
|
});
|
|
2632
2597
|
};
|
|
2633
2598
|
}
|
|
2634
|
-
}),
|
|
2599
|
+
}), Qr = T({
|
|
2635
2600
|
props: {
|
|
2636
2601
|
modalProps: Object,
|
|
2637
2602
|
formProps: Object
|
|
@@ -2639,123 +2604,125 @@ const cr = () => ({
|
|
|
2639
2604
|
setup: (e, {
|
|
2640
2605
|
slots: t
|
|
2641
2606
|
}) => {
|
|
2642
|
-
const r =
|
|
2643
|
-
return () => i(
|
|
2607
|
+
const r = U(), s = J(t, "modal"), a = J(t, "form");
|
|
2608
|
+
return () => i($t, I(e.modalProps, {
|
|
2644
2609
|
onOk: () => {
|
|
2645
2610
|
var n;
|
|
2646
2611
|
(n = r.value) == null || n.submit();
|
|
2647
2612
|
}
|
|
2648
2613
|
}), {
|
|
2649
|
-
default: () => [i(
|
|
2614
|
+
default: () => [i(Ge, I({
|
|
2650
2615
|
ref: r
|
|
2651
2616
|
}, e.formProps), a)],
|
|
2652
|
-
...
|
|
2617
|
+
...s
|
|
2653
2618
|
});
|
|
2654
2619
|
}
|
|
2655
|
-
}),
|
|
2620
|
+
}), Zr = T(() => {
|
|
2656
2621
|
const {
|
|
2657
2622
|
modalProps: e,
|
|
2658
2623
|
formProps: t
|
|
2659
|
-
} = X(), r =
|
|
2660
|
-
return () => i(
|
|
2624
|
+
} = X(), r = U();
|
|
2625
|
+
return () => i($t, I(M(e == null ? void 0 : e.value, "slots"), {
|
|
2661
2626
|
onOk: () => {
|
|
2662
|
-
var
|
|
2663
|
-
(
|
|
2627
|
+
var s;
|
|
2628
|
+
(s = r.value) == null || s.submit();
|
|
2664
2629
|
}
|
|
2665
2630
|
}), {
|
|
2666
|
-
default: () => [i(
|
|
2631
|
+
default: () => [i(Ge, I({
|
|
2667
2632
|
ref: r
|
|
2668
|
-
},
|
|
2669
|
-
...
|
|
2633
|
+
}, M(t == null ? void 0 : t.value, "slots")), h(t == null ? void 0 : t.value, "slots"))],
|
|
2634
|
+
...h(e == null ? void 0 : e.value, "slots")
|
|
2670
2635
|
});
|
|
2671
2636
|
});
|
|
2672
2637
|
export {
|
|
2673
|
-
|
|
2674
|
-
|
|
2638
|
+
A as CurdAction,
|
|
2639
|
+
me as CurdAddAction,
|
|
2675
2640
|
re as CurdCurrentMode,
|
|
2676
|
-
|
|
2677
|
-
|
|
2641
|
+
Ot as CurdMethods,
|
|
2642
|
+
K as CurdSubAction,
|
|
2678
2643
|
k as ElementKeys,
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2644
|
+
G as FormAction,
|
|
2645
|
+
xr as FormRulePrefixMap,
|
|
2646
|
+
Ar as LogonUser,
|
|
2647
|
+
St as LogonUserKey,
|
|
2648
|
+
Or as MustLogon,
|
|
2649
|
+
Ke as PageHeader,
|
|
2650
|
+
$r as PerSuffix,
|
|
2651
|
+
wr as Permission,
|
|
2652
|
+
Pr as ProConfig,
|
|
2653
|
+
Te as ProCurd,
|
|
2654
|
+
dr as ProCurdDesc,
|
|
2655
|
+
Jr as ProCurdDescConnect,
|
|
2656
|
+
Ge as ProCurdForm,
|
|
2657
|
+
Yr as ProCurdFormConnect,
|
|
2658
|
+
cr as ProCurdList,
|
|
2659
|
+
Xr as ProCurdListConnect,
|
|
2660
|
+
$t as ProCurdModal,
|
|
2661
|
+
Qr as ProCurdModalForm,
|
|
2662
|
+
Zr as ProCurdModalFormConnect,
|
|
2663
|
+
er as ProDesc,
|
|
2664
|
+
Vn as ProForm,
|
|
2665
|
+
Kr as ProFormList,
|
|
2666
|
+
Le as ProGrid,
|
|
2667
|
+
zr as ProLayout,
|
|
2668
|
+
nt as ProList,
|
|
2669
|
+
Hr as ProModalCurd,
|
|
2670
|
+
we as ProModule,
|
|
2671
|
+
It as ProOperate,
|
|
2672
|
+
jr as ProPage,
|
|
2673
|
+
Wr as ProPageCurd,
|
|
2674
|
+
Rr as ProSearchForm,
|
|
2675
|
+
Vr as ProShowDate,
|
|
2676
|
+
Ur as ProShowDigit,
|
|
2677
|
+
qr as ProShowOptions,
|
|
2678
|
+
Oe as ProShowText,
|
|
2679
|
+
Br as ProShowTree,
|
|
2680
|
+
kr as ProTable,
|
|
2681
|
+
nr as ProTypography,
|
|
2682
|
+
_r as ProUploaderText,
|
|
2683
|
+
fe as RequestAction,
|
|
2684
|
+
Me as SearchMode,
|
|
2685
|
+
Gr as UploadList,
|
|
2686
|
+
Dn as Wrapper,
|
|
2687
|
+
Pt as convertPathToList,
|
|
2688
|
+
Tn as convertResData,
|
|
2722
2689
|
ce as createExpose,
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2690
|
+
Lr as createExposeObj,
|
|
2691
|
+
Fr as createFormItemCompFn,
|
|
2692
|
+
Er as createProConfig,
|
|
2693
|
+
Qn as defaultPage,
|
|
2694
|
+
J as filterSlotsByPrefix,
|
|
2695
|
+
ue as getColumnFormItemName,
|
|
2696
|
+
yt as getColumnValueType,
|
|
2697
|
+
In as getFirstPropName,
|
|
2698
|
+
vt as getFormItemEl,
|
|
2699
|
+
Ve as getItemEl,
|
|
2700
|
+
jn as getSignValue,
|
|
2701
|
+
kn as getValidValues,
|
|
2702
|
+
Ae as mergeStateToList,
|
|
2703
|
+
ie as proBaseProps,
|
|
2704
|
+
ar as provideProCurd,
|
|
2705
|
+
Mt as provideProFormList,
|
|
2706
|
+
An as provideProModule,
|
|
2707
|
+
de as renderElement,
|
|
2708
|
+
ze as renderElements,
|
|
2709
|
+
$n as useAccess,
|
|
2710
|
+
Dr as useAccessMgr,
|
|
2711
|
+
Mn as useComposeRequestActor,
|
|
2712
|
+
Tr as useDispatchMeta,
|
|
2713
|
+
Nr as useDispatchStore,
|
|
2714
|
+
Cr as useDoneRequestActor,
|
|
2715
|
+
Mr as useFailedRequestActor,
|
|
2716
|
+
_ as useGetCompByKey,
|
|
2717
|
+
Kn as useHasPer,
|
|
2751
2718
|
wn as useLogonUser,
|
|
2752
2719
|
Nn as useMetaRegister,
|
|
2753
|
-
|
|
2754
|
-
|
|
2720
|
+
_e as useModuleEvent,
|
|
2721
|
+
Z as useProConfig,
|
|
2755
2722
|
X as useProCurd,
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2723
|
+
Nt as useProForm,
|
|
2724
|
+
Ct as useProFormList,
|
|
2725
|
+
ge as useProModule,
|
|
2726
|
+
Wn as useProTable,
|
|
2727
|
+
Ir as useReadStore
|
|
2761
2728
|
};
|