@vue-start/pro 0.5.20 → 0.5.22

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