@vue-start/pro 0.5.19 → 0.5.21

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