@vue-start/pro 0.5.20 → 0.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,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 be, isVNode as ge, mergeProps as D, ref as z, createTextVNode as tt, toRef as Jt } from "vue";
2
+ import { reduce as Q, get as f, map as x, isString as oe, forEach as _, endsWith as ht, set as re, isArray as V, size as X, pick as B, add as Qt, subtract as Zt, isFunction as W, filter as H, has as He, keys as q, isObject as Se, omit as N, some as le, isNumber as bt, head as en, split as tn, isEmpty as gt, mergeWith as nn, startsWith as rn, mapKeys as an, debounce as on, clone as un, isBoolean as me, every as cn, sortBy as St, join as Ge, findLast as ln, cloneDeep as pt } from "lodash";
3
+ import { filter as Oe, tap as Ke, merge as sn, Subject as dn } from "rxjs";
4
+ import { map as mn, tap as fn } from "rxjs/operators";
5
+ import { useEffect as ne, setReactiveValue as Pt, restorePath as Ct, isValidPath as Et, isPathHasParent as Mt, useRuleState as ke, mergeStateToData as we, convertCollection as Tt, useWatch as It, useUpdateKey as yn, useResizeObserver as ze, decimalFixed as vn, thousandDivision as hn, listToMap as bn, treeToMap as gn, getMenuTopNameMap as Sn, findTreeItem as nt, strToJson as Nt, jsonToStr as pn, useState as rt } from "@vue-start/hooks";
6
+ import { useRequestProvide as Te, isDoneRequestActor as At, isFailedRequestActor as Dt } from "@vue-start/request";
7
+ import { useDispatchStore as $t, useStore as Ot, useObservableRef as Pn, useStoreConn as Cn, shallowEqual as En, createStateUse as Mn } from "@vue-start/store";
8
+ import { useRouter as Xe, useRoute as Fe } from "vue-router";
9
+ import { css as at } from "@emotion/css";
10
+ import ot from "dayjs";
11
+ const Tn = () => ({
13
12
  elementMap: { type: Object },
14
13
  formElementMap: { type: Object },
15
14
  columns: { type: Array },
16
15
  convertColumn: { type: Function },
17
16
  columnState: { type: Object }
18
- }), Pe = An(), On = () => ({
17
+ }), pe = 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) || {}, Lr = 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
+ }), xr = (e = {}) => (t) => {
53
+ t.provide(_e, e);
54
+ }, Kt = (e) => (t, u) => {
55
+ const { requestSubject$: o } = Te(), n = new Set(x(t, (r) => oe(r) ? r : r.name));
56
+ ne(() => {
57
+ const r = o.pipe(
58
+ Oe(e),
59
+ Ke((a) => {
60
+ n.has(a.name) && u(a);
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
+ }, wr = Kt(At), Fr = Kt(Dt), Nn = (e, t, u) => {
68
+ const { requestSubject$: o, dispatchRequest: n } = Te(), r = new Set(x(e, (c) => oe(c) ? c : c.name)), a = {};
69
+ ne(() => {
70
+ const c = sn(
71
+ o.pipe(
72
+ Oe(At),
73
+ Ke((m) => {
74
+ var i, P;
75
+ r.has(m.name) && ((i = t.onSuccess) == null || i.call(t, m), (P = t.onFinish) == null || P.call(t, m), a[m.name] = void 0);
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 && _(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 = Fe(), 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) || X(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$, Ln = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", xn = { get: f, pick: B, add: Qt, subtract: Zt }, Le = (e, t) => {
135
+ if (Kn(e)) {
136
+ const u = f(t, e.name$);
137
+ return e.namePath$ ? f(u, e.namePath$) : u;
138
+ } else if (Ln(e)) {
139
+ const u = {};
140
+ return _(e, (o, n) => {
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 = Le(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 || xn, 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 = x(o, (c) => Le(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
+ }, wn = () => {
159
+ const e = $t(), { registerStoreMap: t } = Z();
160
+ return (u, o) => {
161
+ const n = f(t, u);
162
+ !n || e(u, o, !!n.persist, n.initialState);
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 || (W(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
+ }, Lt = Symbol("pro-module"), fe = () => ie(Lt), Fn = (e) => {
171
+ se(Lt, e);
172
+ }, Ye = (e) => {
320
173
  const {
321
174
  subject$: t
322
- } = ye();
323
- Q(() => {
324
- const a = t.subscribe({
325
- next: (u) => {
326
- e(u);
175
+ } = fe();
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,49 +209,49 @@ 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 = (h) => V(h) ? Ze(m, h) : Ce(m, h), P = new dn(), S = (h) => {
227
+ P.next(h);
228
+ }, v = H(e.storeKeys, (h) => He(a, h)), b = () => Q(v, (h, y) => {
229
+ const M = f(a, y);
377
230
  return {
378
231
  ...h,
379
- [v]: m(u.value, `${E.persist ? "$" : ""}${v}`) || m(o, [v, "initialState"])
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 = b(), 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 = (h) => {
238
+ const y = s[h.type], M = W(h.payload) ? h.payload(y) : h.payload;
239
+ if (Se(y)) {
240
+ Pt(s[h.type], M);
388
241
  return;
389
242
  }
390
- l[h.type] = E;
391
- }, y = Yn(), C = {
392
- dispatch: M,
393
- dispatchStore: y
243
+ s[h.type] = M;
244
+ }, d = wn(), 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 h = o.pipe(mn(() => b()), fn((y) => {
250
+ _(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();
@@ -408,134 +261,134 @@ const Ln = (e, t) => {
408
261
  }, []);
409
262
  const {
410
263
  dispatchRequest: F
411
- } = Ie(), R = (() => {
412
- const h = {}, v = ne(e.actors || [], (E, T) => ({
413
- ...E,
264
+ } = Te(), j = (() => {
265
+ const h = {}, 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 _(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));
276
+ !M.actor || (h[M.actor.name] = M, M.action && (h[M.action] = M));
424
277
  }), 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)
278
+ })(), Y = (h, ...y) => h.convertParams ? h.convertParams(...y) : h.convertParamsEx ? K(h.convertParamsEx, y) : f(y, 0), L = (h, y) => {
279
+ var M;
280
+ return h.convertData ? h.convertData(y) : h.convertDataEx ? K(h.convertDataEx, y) : (M = y.res) == null ? void 0 : M.data;
281
+ }, O = (h, ...y) => {
282
+ const M = f(j, h);
283
+ if (!M)
431
284
  return;
432
- const T = Y(E, ...v);
433
- E.loadingName && M({
434
- type: E.loadingName,
285
+ const T = Y(M, ...y);
286
+ M.loadingName && p({
287
+ type: M.loadingName,
435
288
  payload: !0
436
- }), F(E.actor, T);
289
+ }), F(M.actor, T);
437
290
  };
438
- qn(V(R), {
291
+ Nn(q(j), {
439
292
  onSuccess: (h) => {
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, h.name), M = L(y, h);
295
+ y != null && y.stateName && p({
296
+ type: y.stateName,
297
+ payload: M
298
+ }), S({
299
+ type: Pe.Success,
447
300
  payload: {
448
301
  actor: h,
449
- requestOpts: v
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, h), y.onSuccessEx && w(y.onSuccessEx, [M]);
452
305
  },
453
306
  onFailed: (h) => {
454
- var E;
455
- const v = m(R, h.name);
456
- g({
457
- type: Ce.Fail,
307
+ var M;
308
+ const y = f(j, h.name);
309
+ S({
310
+ type: Pe.Fail,
458
311
  payload: {
459
312
  actor: h,
460
- requestOpts: v
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, h), y.onFailedEx && w(y.onFailedEx, [h.err]);
463
316
  },
464
317
  onFinish: (h) => {
465
- const v = m(R, [h.name, "loadingName"]);
466
- v && M({
467
- type: v,
318
+ const y = f(j, [h.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) => {
325
+ const K = (h, y) => Le(h, {
326
+ state: s,
327
+ data: C,
328
+ args: y,
329
+ expressionMethods: c
330
+ }), w = (h, y) => {
478
331
  if (!h)
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
+ _(h, (T) => {
340
+ if (!V(T) || X(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 = x(Ae, (Yt) => Le(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 Fn({
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,
371
+ sendRequest: O,
519
372
  executeExp: K,
520
- execute: L
521
- }), a({
522
- sendEvent: g,
523
- sendRequest: D
373
+ execute: w
374
+ }), u({
375
+ sendEvent: S,
376
+ sendRequest: O
524
377
  }), () => {
525
378
  var h;
526
- return c(te, null, [G(e.elementConfigs) > 0 && i(e.elementConfigs), (h = t.default) == null ? void 0 : h.call(t)]);
379
+ return l(te, null, [X(e.elementConfigs) > 0 && i(e.elementConfigs), (h = t.default) == null ? void 0 : h.call(t)]);
527
380
  };
528
381
  }
529
- }), jt = (e) => e.formValueType || e.valueType || "text", ue = (e) => {
382
+ }), xt = (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 = xt(t), o = f(e, u);
388
+ if (!o)
536
389
  return null;
537
390
  const n = ue(t);
538
- return ge(u, {
391
+ return be(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);
549
- return n ? ge(n, {
401
+ const o = t.valueType || "text", n = f(e, o);
402
+ return n ? be(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 && !W(e) && e.elementType, Ze = (e, t) => x(t, (u) => Ce(e, u)), wt = (e, t) => {
408
+ var r;
409
+ const u = t.elementProps, o = {
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
+ `)), _((r = t.highConfig$) == null ? void 0 : r.registerPropsTrans, (a) => {
415
+ const c = f(u, a.name);
416
+ if (!(!c || ge(c))) {
417
+ if (V(c)) {
418
+ if (le(c, (m) => ge(m)))
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
+ }, Ft = (e, t) => {
436
+ const u = X(t.children) > 0 ? Ze(e, t.children) : void 0, o = t.childrenSlotName || "default", n = N(t.slots, u ? o : "");
437
+ return _(q(n), (r) => {
438
+ const a = n[r];
439
+ jn(a) ? n[r] = (...c) => {
440
+ const m = a.needParams ? {
441
+ ...a.elementProps,
442
+ params$: c
443
+ } : a.elementProps;
444
+ return Ce(e, {
445
+ ...a,
446
+ elementProps: m
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 be(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 = Ft(e, t), n = wt(e, t);
462
+ return be(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 b;
622
477
  const {
623
478
  state: t,
624
- sendEvent: a,
625
- execute: u
626
- } = ye(), {
479
+ sendEvent: u,
480
+ execute: o
481
+ } = fe(), {
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 = wt(n, r);
485
+ _((b = r.highConfig$) == null ? void 0 : b.registerEventList, (g) => {
486
+ const s = (...p) => {
487
+ const d = `${r.elementId}-${g.name}`;
488
+ u({
489
+ type: d,
490
+ payload: p
491
+ }), o(g.executeList, p);
492
+ }, C = Ct(g.name, c);
493
+ c && Et(C) && Mt(C, c) && re(c, C, s);
639
494
  });
640
- const d = I(() => {
641
- if (!o.registerStateList || G(o.registerStateList) <= 0)
495
+ const m = I(() => {
496
+ if (!a.registerStateList || X(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 = H(a.registerStateList, (p) => !p.target || p.target === "prop"), C = x(s, (p) => {
501
+ const d = p.mapName || p.name, E = f(t, p.name);
502
+ return re(g, d, E), kn(d);
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 = Ft(n, r), S = Q(H(a.registerStateList, (g) => g.target === "slot"), (g, s) => ({
506
+ ...g,
507
+ [s.mapName]: () => f(t, s.name)
508
+ }), {}), v = {
509
+ ...P,
510
+ ...S
511
+ };
512
+ return () => f(m.value, "show$") === !1 ? null : be(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
+ }, G = () => {
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]" && !ge(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
+ }), ve = 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 = G(), 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 = x(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 = H(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 = H(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 : x(e, (o) => {
590
+ const n = W(u) ? u(o) : f(o, u), r = f(t, n);
591
+ return !r || gt(r) || W(r) || !Se(r) ? o : nn(o, r, (a, c) => {
592
+ if (V(a) || V(c))
593
+ return c;
733
594
  });
734
- }), ve = (e, t) => {
735
- const a = ne(
595
+ }), ye = (e, t) => {
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 && X(t) > 0 && _(t, (n) => {
611
+ o[n] = (...r) => {
612
+ var a, c;
613
+ return (c = (a = e.value) == null ? void 0 : a[n]) == null ? void 0 : c.call(a, ...r);
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 = H(u, (a) => rn(a, o)), r = B(e, n);
618
+ return an(r, (a, c) => c.replace(o, ""));
619
+ }, jt = Symbol("pro-form-list"), kt = () => ie(jt), Ut = (e) => {
620
+ se(jt, e);
621
+ }, Wn = A({
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(),
802
- ...N(he.props, "items")
662
+ ...ut(),
663
+ ...N(ve.props, "items")
803
664
  },
804
665
  setup: (e, {
805
666
  slots: t
806
667
  }) => {
807
- const u = _()(U.FormItemKey), {
668
+ const o = G()(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
+ X(C) <= 0 || C.splice(s, 1);
680
+ }, v = (s) => {
681
+ const C = ue(s);
682
+ return C && t[C] ? t[C](s, n) : Je(a, s);
683
+ }, b = I(() => e.row ? x(e.columns, (s) => ({
684
+ rowKey: ue(s),
685
+ vNode: v(s),
686
+ col: f(s, ["extra", "col"])
687
+ })) : x(e.columns, (s) => v(s))), g = q(ut());
688
+ return () => o ? l(o, D({
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 [x(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, F, R, j, Y, L;
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 && X(e.columns) > 0 && l(te, null, [e.row ? l(ve, {
846
707
  row: e.row,
847
708
  col: e.col,
848
709
  items: b.value
849
- }, null) : b.value]), (F = t.default) == null ? void 0 : F.call(t), !r.value && c(te, null, [c("div", {
710
+ }, null) : b.value]), (F = t.default) == null ? void 0 : F.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
+ }, [((R = t.itemAdd) == null ? void 0 : R.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
+ }, [((Y = t.itemMinus) == null ? void 0 : Y.call(t)) || ((L = e.renderItemMinus) == null ? void 0 : L.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(),
918
- ...N(he.props, "items")
777
+ ...pe,
778
+ ...ct(),
779
+ ...N(ve.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), b = I(() => e.readonly), g = I(() => {
791
+ const y = we(e.columns, e.columnState, (M) => ue(M));
792
+ return e.convertColumn ? Tt(y, e.convertColumn) : y;
793
+ }), s = (y) => {
794
+ const M = Vn(y, P, e.showStateRules);
795
+ u("finish", M, y);
796
+ }, C = z();
797
+ o(ye(e.formMethods || [], C)), Hn({
937
798
  formState: i,
938
- showState: S,
939
- readonlyState: g,
940
- disableState: f,
941
- elementMap: s,
942
- formElementMap: d,
799
+ showState: P,
800
+ readonlyState: S,
801
+ disableState: v,
802
+ elementMap: c,
803
+ formElementMap: m,
943
804
  readonly: b,
944
- columns: p,
945
- formRef: P,
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();
831
+ (M = C.value) == null || M.submit();
971
832
  }, 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,
833
+ var y, M;
834
+ (M = (y = e.operate) == null ? void 0 : y.onContinue) == null || M.call(y);
835
+ }, R = {
836
+ [J.RESET]: d,
837
+ [J.SUBMIT]: E,
977
838
  [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"]) ? {
839
+ }, j = I(() => {
840
+ const y = e.operate, M = (y == null ? void 0 : y.items) || p;
841
+ return x(M, (T) => !T.onClick && !f(y == null ? void 0 : y.itemState, [T.value, "onClick"]) ? {
981
842
  ...T,
982
- onClick: m(k, T.value)
843
+ onClick: f(R, T.value)
983
844
  } : T);
984
845
  }), Y = I(() => {
985
- var v;
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
+ }), L = (y) => {
855
+ const M = ue(y);
856
+ return M && t[M] ? t[M](y, i) : Je(m, y);
857
+ }, O = I(() => e.row ? x(g.value, (y) => ({
858
+ rowKey: ue(y),
859
+ vNode: L(y),
860
+ col: f(y, ["extra", "col"])
861
+ })) : x(g.value, (y) => L(y))), K = q(ct()), w = q(N(ve.props, "items")), h = f(r, U.FormKey);
862
+ return () => h ? l(h, D({
863
+ ref: C,
1003
864
  class: e.clsName
1004
- }, N(n, "onFinish"), N(e, ...K, ...L, "onFinish", "operate"), {
865
+ }, N(n, "onFinish"), N(e, ...K, ...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 && X(g.value) > 0 && l(te, null, [e.row ? l(ve, {
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: O.value
875
+ }, null) : O.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,
878
+ items: j.value,
1018
879
  itemState: Y.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 xe;
1036
897
  (function(e) {
1037
898
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
1038
- })(Fe || (Fe = {}));
1039
- const dt = () => ({
899
+ })(xe || (xe = {}));
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: xe.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 = G()(U.ProFormKey), r = e.model || Me({}), a = new Set(e.debounceTypes), c = x(H(e.columns, (s) => {
933
+ const C = xt(s);
934
+ return a.has(C);
935
+ }), (s) => ue(s)), m = I(() => x(e.columns, (s) => ({
936
+ ...s,
937
+ formItemProps: N(s.formItemProps, "required")
938
+ }))), i = z(), P = e.formMethods || [];
939
+ u(ye(P, i));
940
+ const S = () => {
941
+ var s;
942
+ (s = i.value) == null || s.submit();
943
+ }, v = on(() => {
944
+ S();
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 b = (s, C, p) => le(p, (d) => f(s, d) !== f(C, d));
950
+ It((s, C) => {
951
+ if (e.searchMode !== xe.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 = X(e.debounceKeys) > 0 ? e.debounceKeys : c;
954
+ if (X(p) > 0 && b(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,
1001
+ readonlyState: P,
1002
+ disableState: S,
1003
+ readonly: v,
1143
1004
  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 ? [{
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 ? x(r.rules, (j) => (j.required && !j.message && (j.message = C()), j)) : r.rules : r.rules), d = Rt(r.name), E = g != null && g.pathList ? [...g.pathList, ...d] : d, F = (j) => {
1009
+ re(m, E, j);
1010
+ }, R = q(st());
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 Y = f(m, E), L = f(b, o);
1016
+ return l(e, D(N(r, ...R, "name", "rules", "slots"), {
1017
+ name: E,
1018
+ rules: p.value
1158
1019
  }), {
1159
- default: () => [l.value ? c(te, null, [w ? c(w, A({
1020
+ default: () => [s.value ? l(te, null, [L ? l(L, D({
1160
1021
  value: Y
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, [Y])]) : l(u, D(t(Y, F, 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]" && !ge(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 = G(), o = e.elementKey ? u(e.elementKey) : void 0, n = I(() => {
1056
+ const a = H(e.items, (c) => W(c.show) ? c.show() : me(c.show) ? c.show : !0);
1057
+ return x(a, (c) => He(e.itemState, c.value) ? {
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
+ }, [x(n.value, (a) => {
1068
+ const c = W(a.disabled) ? a.disabled() : a.disabled, m = W(a.loading) ? a.loading() : a.loading, i = W(a.label) ? a.label() : a.label, P = W(a.extraProps) ? a.extraProps() : a.extraProps, S = {
1069
+ ...N(a, "show", "disabled", "element"),
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 && W(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 = G(), 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
+ _(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
+ }), {})), b = (d) => zn(d, e.signName);
1127
+ ne(() => {
1128
+ a.value = x(H(r.value, (d) => {
1129
+ var E;
1130
+ return e.useSelectedStatus && He(i, d.dataIndex) ? i[d.dataIndex] : ((E = b(d)) == null ? void 0 : E.initShow) !== !1;
1131
+ }), (d) => d.dataIndex);
1132
+ }, r), It(() => {
1133
+ var d;
1134
+ m(), S(), (d = e.onColumnSelectChange) == null || d.call(e, a.value);
1135
+ }, a);
1136
+ const g = I(() => {
1137
+ const d = cn(r.value, (F) => {
1138
+ var R;
1139
+ return (R = b(F)) != null && R.disabled ? !0 : f(v.value, F.dataIndex);
1140
+ }), E = le(r.value, (F) => {
1141
+ var R;
1142
+ return (R = b(F)) != null && R.disabled ? !0 : f(v.value, F.dataIndex);
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) => {
1148
+ }), s = (d) => {
1288
1149
  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);
1150
+ (Se(d) ? (F = d.target) == null ? void 0 : F.checked : d) ? a.value = x(r.value, (R) => R.dataIndex) : a.value = x(H(r.value, (R) => {
1151
+ var j;
1152
+ return (j = b(R)) != null && j.disabled ? !0 : (P(R.dataIndex), !1);
1153
+ }), (R) => R.dataIndex);
1154
+ }, C = () => {
1155
+ a.value = x(H(r.value, (d) => {
1156
+ var E;
1157
+ return ((E = b(d)) == null ? void 0 : E.initShow) === !1 ? (P(d.dataIndex), !1) : !0;
1158
+ }), (d) => d.dataIndex);
1159
+ }, p = (d, E) => {
1160
+ var R;
1161
+ (Se(E) ? (R = E.target) == null ? void 0 : R.checked : E) ? a.value = [...a.value, d.dataIndex] : a.value = H(a.value, (j) => d.dataIndex === j ? (P(d.dataIndex), !1) : !0);
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, {
1186
+ }, [x(r.value, (d) => {
1187
+ const E = b(d), F = f(v.value, d.dataIndex, !1);
1188
+ return l(n, {
1328
1189
  checked: F,
1329
- disabled: C == null ? void 0 : C.disabled,
1330
- onChange: (k) => {
1331
- M(y, k);
1190
+ disabled: E == null ? void 0 : E.disabled,
1191
+ onChange: (R) => {
1192
+ p(d, R);
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
+ ...pe,
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: O
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 K, w;
1261
+ return ((K = e.paginationState) == null ? void 0 : K.page) && ((w = e.paginationState) == null ? void 0 : w.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + O + 1 : O + 1;
1401
1262
  }
1402
- }), d = (D, K) => {
1403
- var L;
1263
+ }), m = (O, K) => {
1264
+ var w;
1404
1265
  if (e.operateItemClickMap && e.operateItemClickMap[K.value]) {
1405
- e.operateItemClickMap[K.value](D, K);
1266
+ e.operateItemClickMap[K.value](O, K);
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),
1269
+ (w = K.onClick) == null || w.call(K, O);
1270
+ }, i = ae(t, "operate"), P = () => {
1271
+ const O = e.operate, K = x(O.items, (h) => ({
1272
+ ...f(e.operateItemState, h.value),
1412
1273
  ...h,
1413
- ...m(D.itemState, h.value)
1414
- })), L = Ct(K, (h) => h.sort);
1274
+ ...f(O.itemState, h.value)
1275
+ })), w = St(K, (h) => h.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
+ ...O.column,
1421
1282
  customRender: ({
1422
1283
  record: h
1423
1284
  }) => {
1424
- const v = x(L, (T) => ({
1285
+ const y = x(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: W(T.show) ? T.show(h) : T.show,
1288
+ disabled: W(T.disabled) ? T.disabled(h) : T.disabled,
1289
+ loading: W(T.loading) ? T.loading(h) : T.loading,
1290
+ extraProps: W(T.extraProps) ? T.extraProps(h) : T.extraProps,
1291
+ element: W(T.element) ? () => T.element(h, T) : T.element,
1292
+ onClick: () => m(h, T)
1293
+ })), M = Q(q(i), (T, de) => ({
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, h, 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: O.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 O;
1309
+ return !!((O = e.toolbar) != null && O.columnSetting);
1310
+ }), b = Jt(e, "columns"), g = I(() => {
1311
+ if (!v.value)
1451
1312
  return e.columns;
1452
- const D = ne(g.value, (K, L) => ({
1313
+ const O = Q(S.value, (K, w) => ({
1453
1314
  ...K,
1454
- [L]: !0
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 H(e.columns, (K) => f(O, K.dataIndex));
1318
+ }), s = (O) => x(O, (K) => {
1319
+ const w = {
1459
1320
  ...e.column,
1460
1321
  ...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
1322
+ }, h = e.convertColumn ? e.convertColumn(w) : w;
1323
+ return K.children && X(K.children) > 0 ? (h.children = s(K.children), h) : (K.customRender || (h.customRender = ({
1324
+ text: y
1464
1325
  }) => {
1465
1326
  var T;
1466
- return nt(r, {
1327
+ return Qe(r, {
1467
1328
  ...K,
1468
1329
  showProps: {
1469
1330
  ...K.showProps,
1470
1331
  content: ((T = K.showProps) == null ? void 0 : T.content) || e.columnEmptyText
1471
1332
  }
1472
- }, v) || v || e.columnEmptyText;
1333
+ }, y) || y || e.columnEmptyText;
1473
1334
  }), h);
1474
- }), P = I(() => {
1475
- const D = ke(p.value, e.columnState, (L) => L.dataIndex, {
1335
+ }), C = I(() => {
1336
+ const O = we(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,
1338
+ }), K = s(O);
1339
+ return e.serialNumber && K.unshift(c()), e.operate && e.operate.items && le(e.operate.items, (w) => w.show) && K.push(P()), K;
1340
+ }), p = z();
1341
+ Qn({
1342
+ columns: C,
1482
1343
  originColumns: b,
1483
- selectIdsRef: g,
1484
- tableRef: M,
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(ye(e.tableMethods || [], p));
1349
+ const d = z(), E = z(!1), F = z(), R = z(!1);
1350
+ ze(d, () => {
1351
+ E.value = !!d.value.innerText;
1352
+ }), ze(F, () => {
1353
+ R.value = !!F.value.innerText;
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(() => R.value || E.value ? `${e.clsName}-toolbar-valid` : ""), Y = q(it()), L = ae(t, "columnSetting");
1495
1356
  return () => {
1496
- var K, L;
1497
- if (!o)
1357
+ var K, 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 O = v.value ? l(Yn, (K = e.toolbar) == null ? void 0 : K.columnSetting, L) : 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", {
1368
+ }, [(w = t.toolbar) == null ? void 0 : w.call(t)]), l("div", {
1508
1369
  ref: F,
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([O]) : l(te, null, [O])])]), l(a, D({
1372
+ ref: p
1373
+ }, N(o, "class"), N(e, Y), {
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 = G()(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"
@@ -1629,65 +1490,65 @@ const lr = () => ({
1629
1490
  pageState: {
1630
1491
  type: Object
1631
1492
  }
1632
- }), gr = $({
1493
+ }), rr = A({
1633
1494
  props: {
1634
- ...br()
1495
+ ...nr()
1635
1496
  },
1636
1497
  setup: (e, {
1637
1498
  slots: t,
1638
- emit: a
1499
+ emit: u
1639
1500
  }) => {
1640
- const u = _(), n = u(U.ProSearchFormKey), r = u(U.ProTableKey), o = u(U.PaginationKey), s = e.pageState || Te({
1641
- ...hr
1501
+ const o = G(), n = o(U.ProSearchFormKey), r = o(U.ProTableKey), a = o(U.PaginationKey), c = e.pageState || Me({
1502
+ ...tr
1642
1503
  });
1643
- let d;
1504
+ let m;
1644
1505
  const i = () => {
1645
- a("search", {
1646
- ...d,
1647
- ...s
1506
+ u("search", {
1507
+ ...m,
1508
+ ...c
1648
1509
  });
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");
1510
+ }, P = (s, C) => {
1511
+ m = s, c.page = C || 1, i();
1512
+ }, S = (s, C) => {
1513
+ c.page = s, c.pageSize = C, i();
1514
+ }, v = ae(t, "search"), b = ae(t, "table"), g = ae(t, "pagination");
1654
1515
  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({
1516
+ var C, p, d, E;
1517
+ const s = t.search ? t.search({
1518
+ executeSearchWithResetPage: P,
1519
+ pageState: c
1520
+ }) : l(te, null, [n && l(n, D({
1660
1521
  class: `${e.clsName}-search`
1661
1522
  }, N(e.searchProps, "onFinish"), {
1662
- onFinish: (F) => S(F)
1663
- }), f)]);
1664
- return c("div", {
1523
+ onFinish: (F) => P(F)
1524
+ }), v)]);
1525
+ return l("div", {
1665
1526
  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({
1527
+ }, [(C = t.start) == null ? void 0 : C.call(t), !e.searchInTable && s, (p = t.divide) == null ? void 0 : p.call(t), t.table ? t.table({
1528
+ pageState: c
1529
+ }) : l(te, null, [r && l(r, D({
1669
1530
  class: `${e.clsName}-table`,
1670
1531
  paginationState: {
1671
- page: s.page,
1672
- pageSize: s.pageSize
1532
+ page: c.page,
1533
+ pageSize: c.pageSize
1673
1534
  },
1674
1535
  pagination: !1
1675
1536
  }, e.tableProps), {
1676
1537
  ...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", {
1538
+ toolbar: e.searchInTable ? () => b.toolbar ? b.toolbar(s) : s : b.toolbar
1539
+ })]), (d = t.divide2) == null ? void 0 : d.call(t), t.pagination ? t.pagination({
1540
+ executePageChange: S,
1541
+ pageState: c
1542
+ }) : l(te, null, [e.paginationProps !== !1 && a && l("div", {
1682
1543
  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)]);
1544
+ }, [l(a, D(N(me(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1545
+ page: c.page,
1546
+ pageSize: c.pageSize,
1547
+ onComposeChange: S
1548
+ }), g)])]), (E = t.end) == null ? void 0 : E.call(t)]);
1688
1549
  };
1689
1550
  }
1690
- }), yt = () => ({
1551
+ }), dt = () => ({
1691
1552
  clsName: {
1692
1553
  type: String,
1693
1554
  default: "pro-desc"
@@ -1695,42 +1556,42 @@ const lr = () => ({
1695
1556
  model: {
1696
1557
  type: Object
1697
1558
  }
1698
- }), pr = $({
1559
+ }), ar = A({
1699
1560
  props: {
1700
- ...Pe,
1701
- ...yt()
1561
+ ...pe,
1562
+ ...dt()
1702
1563
  },
1703
1564
  setup: (e, {
1704
1565
  slots: t
1705
1566
  }) => {
1706
1567
  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({
1568
+ elementMap: u
1569
+ } = Z(), o = e.elementMap || u, n = G(), r = n(U.DescriptionsKey), a = n(U.DescriptionsItemKey), c = I(() => we(e.columns, e.columnState, "dataIndex")), m = q(pe), i = q(dt());
1570
+ return () => !r || !a ? null : l(r, D({
1710
1571
  class: e.clsName
1711
- }, N(e, ...d, ...i, "model")), {
1572
+ }, N(e, ...m, ...i, "model")), {
1712
1573
  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({
1574
+ var P, S;
1575
+ return [(P = t.start) == null ? void 0 : P.call(t), x(c.value, (v) => {
1576
+ const b = v.dataIndex, g = f(e.model, b);
1577
+ return l(a, D({
1717
1578
  class: `${e.clsName}-item`
1718
- }, m(f.extra, "desc")), {
1579
+ }, f(v.extra, "desc")), {
1719
1580
  default: () => {
1720
- var l;
1721
- return [((l = t.value) == null ? void 0 : l.call(t, p, f)) || nt(u, f, p)];
1581
+ var s;
1582
+ return [((s = t.value) == null ? void 0 : s.call(t, g, v)) || Qe(o, v, g)];
1722
1583
  },
1723
1584
  label: () => {
1724
- var l;
1725
- return ((l = t.label) == null ? void 0 : l.call(t, f)) || f.title;
1585
+ var s;
1586
+ return ((s = t.label) == null ? void 0 : s.call(t, v)) || v.title;
1726
1587
  }
1727
1588
  });
1728
- }), (g = t.default) == null ? void 0 : g.call(t)];
1589
+ }), (S = t.default) == null ? void 0 : S.call(t)];
1729
1590
  },
1730
1591
  ...t
1731
1592
  });
1732
1593
  }
1733
- }), Sr = () => ({
1594
+ }), or = () => ({
1734
1595
  content: {
1735
1596
  type: [String, Number]
1736
1597
  },
@@ -1738,30 +1599,30 @@ const lr = () => ({
1738
1599
  type: [Object, Boolean]
1739
1600
  },
1740
1601
  popoverProps: Object
1741
- }), Pr = $({
1602
+ }), ur = A({
1742
1603
  inheritAttrs: !1,
1743
1604
  props: {
1744
- ...Sr()
1605
+ ...or()
1745
1606
  },
1746
1607
  setup: (e, {
1747
1608
  attrs: t
1748
1609
  }) => {
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";
1610
+ const o = G()(U.PopoverKey), n = () => {
1611
+ var r, a;
1612
+ return e.ellipsis ? e.ellipsis === !0 ? 1 : ((r = e.ellipsis) == null ? void 0 : r.rows) || ((a = e.ellipsis) == null ? void 0 : a.num) || 1 : "unset";
1752
1613
  };
1753
1614
  return () => {
1754
- const r = c("span", A({
1615
+ const r = l("span", D({
1755
1616
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
1756
1617
  style: `-webkit-line-clamp:${n()}`
1757
1618
  }, t), [e.content]);
1758
- return !e.popoverProps || !u ? r : c(u, e.popoverProps, {
1619
+ return !e.popoverProps || !o ? r : l(o, e.popoverProps, {
1759
1620
  default: () => [r],
1760
1621
  content: () => e.content
1761
1622
  });
1762
1623
  };
1763
1624
  }
1764
- }), $e = {
1625
+ }), Ie = {
1765
1626
  value: {
1766
1627
  type: [String, Number]
1767
1628
  },
@@ -1771,27 +1632,27 @@ const lr = () => ({
1771
1632
  convert: {
1772
1633
  type: Function
1773
1634
  }
1774
- }, Ue = $({
1635
+ }, Re = A({
1775
1636
  inheritAttrs: !1,
1776
1637
  props: {
1777
- ...$e
1638
+ ...Ie
1778
1639
  },
1779
1640
  setup: (e, {
1780
1641
  attrs: t
1781
1642
  }) => {
1782
- const a = I(() => {
1643
+ const u = I(() => {
1783
1644
  var r;
1784
- const u = (r = e.showProps) == null ? void 0 : r.content, n = e.value || St(e.value) ? e.value : u;
1645
+ const o = (r = e.showProps) == null ? void 0 : r.content, n = e.value || bt(e.value) ? e.value : o;
1785
1646
  return e.convert ? e.convert(n, e) : n;
1786
1647
  });
1787
- return () => c(Pr, A(q(t, "style", "class"), N(e.showProps, "content"), {
1788
- content: a.value
1648
+ return () => l(ur, D(B(t, "style", "class"), N(e.showProps, "content"), {
1649
+ content: u.value
1789
1650
  }), null);
1790
1651
  }
1791
- }), ca = $({
1652
+ }), Xr = A({
1792
1653
  inheritAttrs: !1,
1793
1654
  props: {
1794
- ...$e,
1655
+ ...Ie,
1795
1656
  decimalFixed: {
1796
1657
  type: Number,
1797
1658
  default: 0
@@ -1804,19 +1665,19 @@ const lr = () => ({
1804
1665
  setup: (e, {
1805
1666
  attrs: t
1806
1667
  }) => {
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;
1668
+ const u = I(() => {
1669
+ let o = e.value;
1670
+ return o && e.decimalFixed && (o = vn(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = hn(o)), e.convert ? e.convert(o, e) : o;
1810
1671
  });
1811
- return () => c(Ue, A(q(t, "style", "class"), {
1812
- value: a.value,
1672
+ return () => l(Re, D(B(t, "style", "class"), {
1673
+ value: u.value,
1813
1674
  showProps: e.showProps
1814
1675
  }), null);
1815
1676
  }
1816
- }), la = $({
1677
+ }), _r = A({
1817
1678
  inheritAttrs: !1,
1818
1679
  props: {
1819
- ...$e,
1680
+ ...Ie,
1820
1681
  value: {
1821
1682
  type: [String, Number, Array]
1822
1683
  },
@@ -1832,21 +1693,21 @@ const lr = () => ({
1832
1693
  setup: (e, {
1833
1694
  attrs: t
1834
1695
  }) => {
1835
- const a = I(() => Tn(e.options, (r) => r.label), void 0), u = I(() => {
1696
+ const u = I(() => bn(e.options, (r) => r.label), void 0), o = I(() => {
1836
1697
  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"), {
1698
+ let a = e.value;
1699
+ return V(r) ? a = Ge(x(r, (c) => f(u.value, c, c)), e.splitStr) : a = f(u.value, r, e.value), e.convert ? e.convert(a, e) : a;
1700
+ }), n = I(() => f(e.colorMap, e.value));
1701
+ return () => l(Re, D(B(t, "style", "class"), {
1841
1702
  style: `color:${n.value || ""}`,
1842
- value: u.value,
1703
+ value: o.value,
1843
1704
  showProps: e.showProps
1844
1705
  }), null);
1845
1706
  }
1846
- }), ia = $({
1707
+ }), Yr = A({
1847
1708
  inheritAttrs: !1,
1848
1709
  props: {
1849
- ...$e,
1710
+ ...Ie,
1850
1711
  value: {
1851
1712
  type: [String, Number, Array]
1852
1713
  },
@@ -1863,25 +1724,25 @@ const lr = () => ({
1863
1724
  setup: (e, {
1864
1725
  attrs: t
1865
1726
  }) => {
1866
- const a = I(() => {
1727
+ const u = I(() => {
1867
1728
  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"), {
1729
+ return gn(n, (a) => f(a, (r == null ? void 0 : r.label) || "label"), {
1869
1730
  value: "value",
1870
1731
  children: "children",
1871
1732
  ...r
1872
1733
  });
1873
- }), u = I(() => {
1734
+ }), o = I(() => {
1874
1735
  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;
1736
+ return V(e.value) ? n = Ge(x(e.value, (r) => f(u.value, r, r)), e.splitStr) : n = f(u.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
1876
1737
  });
1877
- return () => c(Ue, A(q(t, "style", "class"), {
1878
- value: u.value,
1738
+ return () => l(Re, D(B(t, "style", "class"), {
1739
+ value: o.value,
1879
1740
  showProps: e.showProps
1880
1741
  }), null);
1881
1742
  }
1882
- }), da = $({
1743
+ }), Jr = A({
1883
1744
  props: {
1884
- ...$e,
1745
+ ...Ie,
1885
1746
  value: {
1886
1747
  type: [String, Number, Array]
1887
1748
  },
@@ -1901,31 +1762,31 @@ const lr = () => ({
1901
1762
  setup: (e, {
1902
1763
  attrs: t
1903
1764
  }) => {
1904
- const a = (n) => n && (e.isUnix ? st.unix(n).format(e.format) : st(n).format(e.format)), u = I(() => {
1765
+ const u = (n) => n && (e.isUnix ? ot.unix(n).format(e.format) : ot(n).format(e.format)), o = I(() => {
1905
1766
  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;
1767
+ return V(e.value) ? n = Ge(x(e.value, (r) => u(r) || ""), e.splitStr) : n = u(e.value) || "", e.convert ? e.convert(n, e) : n;
1907
1768
  });
1908
- return () => c(Ue, A(q(t, "style", "class"), {
1909
- value: u.value,
1769
+ return () => l(Re, D(B(t, "style", "class"), {
1770
+ value: o.value,
1910
1771
  showProps: e.showProps
1911
1772
  }), null);
1912
1773
  }
1913
- }), ze = $((e, {
1774
+ }), Be = A((e, {
1914
1775
  slots: t
1915
1776
  }) => {
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;
1777
+ const u = z(), o = z(0);
1778
+ return ze(u, (n) => {
1779
+ var a;
1780
+ const r = (a = n[0]) == null ? void 0 : a.contentRect;
1781
+ o.value = r == null ? void 0 : r.width;
1921
1782
  }), () => {
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,
1783
+ var n, r, a;
1784
+ return l("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && l("div", {
1785
+ ref: u,
1925
1786
  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)]);
1787
+ }, [t.menus(o.value)]), (r = t.default) == null ? void 0 : r.call(t), (a = t.end) == null ? void 0 : a.call(t)]);
1927
1788
  };
1928
- }), Cr = () => ({
1789
+ }), cr = () => ({
1929
1790
  clsName: {
1930
1791
  type: String,
1931
1792
  default: "pro-layout"
@@ -1960,96 +1821,96 @@ const lr = () => ({
1960
1821
  onMenuItemClick: {
1961
1822
  type: Function
1962
1823
  }
1963
- }), fa = $({
1824
+ }), Qr = A({
1964
1825
  inheritAttrs: !1,
1965
1826
  props: {
1966
- ...Cr()
1827
+ ...cr()
1967
1828
  },
1968
1829
  setup: (e, {
1969
1830
  slots: t,
1970
- attrs: a
1831
+ attrs: u
1971
1832
  }) => {
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";
1833
+ const n = G()(U.MenusKey), r = Fe(), a = I(() => {
1834
+ var g;
1835
+ return Tt(e.menus, (s) => {
1836
+ var d, E;
1837
+ const C = ((d = e.fieldNames) == null ? void 0 : d.value) || "value", p = ((E = e.fieldNames) == null ? void 0 : E.label) || "label";
1977
1838
  return {
1978
- ...N(l, P, M),
1979
- value: m(l, P),
1980
- label: m(l, M)
1839
+ ...N(s, C, p),
1840
+ value: f(s, C),
1841
+ label: f(s, p)
1981
1842
  };
1982
1843
  }, {
1983
- children: ((p = e.fieldNames) == null ? void 0 : p.children) || "children",
1844
+ children: ((g = e.fieldNames) == null ? void 0 : g.children) || "children",
1984
1845
  childrenName: "children"
1985
1846
  });
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");
1847
+ }), c = I(() => Sn(a.value)), m = I(() => {
1848
+ var s;
1849
+ const g = ln(r.matched, (C) => !!f(c.value, C.name));
1850
+ return g ? f(c.value, g.name) : (s = e.findCurrentTopName) == null ? void 0 : s.call(e, r, c.value);
1851
+ }), i = I(() => m.value ? nt(a.value, (g) => g.value === m.value).target : null), P = I(() => {
1852
+ var g;
1853
+ return r.name && f(c.value, r.name) ? r.name : (g = e.findActiveKey) == null ? void 0 : g.call(e, r, c.value);
1854
+ }), S = (g) => {
1855
+ var C;
1856
+ const s = nt(a.value, (p) => p.value === g.value).target;
1857
+ (C = e.onMenuItemClick) == null || C.call(e, s);
1858
+ }, v = ae(t, "header"), b = ae(t, "menu");
1998
1859
  return () => {
1999
- var P, M, y;
1860
+ var C, p, d;
2000
1861
  if (!n)
2001
1862
  return null;
2002
- const p = q(a, "class"), l = {
1863
+ const g = B(u, "class"), s = {
2003
1864
  class: "pro-layout-menus",
2004
- options: o.value,
2005
- activeKey: S.value,
2006
- ...q(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
1865
+ options: a.value,
1866
+ activeKey: P.value,
1867
+ ...B(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
2007
1868
  };
2008
- return e.layout === "vertical" ? c("main", A(p, {
1869
+ return e.layout === "vertical" ? l("main", D(g, {
2009
1870
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2010
- }), [c(ze, {
1871
+ }), [l(Be, {
2011
1872
  class: `${e.clsName}-header`
2012
1873
  }, {
2013
- menus: (C) => C ? c(n, A({
2014
- style: `width:${C}px`,
1874
+ menus: (E) => E ? l(n, D({
1875
+ style: `width:${E}px`,
2015
1876
  mode: "horizontal"
2016
- }, l), b) : null,
2017
- ...f
2018
- }), c("div", {
1877
+ }, s), b) : null,
1878
+ ...v
1879
+ }), l("div", {
2019
1880
  class: `${e.clsName}-section`
2020
- }, [(P = t.default) == null ? void 0 : P.call(t)])]) : e.layout === "horizontal" ? c("main", A(p, {
1881
+ }, [(C = t.default) == null ? void 0 : C.call(t)])]) : e.layout === "horizontal" ? l("main", D(g, {
2021
1882
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2022
- }), [c(n, l, b), c("div", {
1883
+ }), [l(n, s, b), l("div", {
2023
1884
  class: `${e.clsName}-structure`
2024
- }, [c(ze, {
1885
+ }, [l(Be, {
2025
1886
  class: `${e.clsName}-header`
2026
- }, f), c("div", {
1887
+ }, v), l("div", {
2027
1888
  class: `${e.clsName}-section`
2028
- }, [(M = t.default) == null ? void 0 : M.call(t)])])]) : c("main", A(p, {
1889
+ }, [(p = t.default) == null ? void 0 : p.call(t)])])]) : l("main", D(g, {
2029
1890
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2030
- }), [c(ze, {
1891
+ }), [l(Be, {
2031
1892
  class: `${e.clsName}-header`
2032
1893
  }, {
2033
- menus: (C) => C ? c(n, A({
2034
- style: `width:${C}px`,
1894
+ menus: (E) => E ? l(n, D({
1895
+ style: `width:${E}px`,
2035
1896
  class: "pro-layout-menus",
2036
1897
  mode: "horizontal",
2037
- options: x(o.value, (F) => N(F, "children")),
2038
- activeKey: d.value
2039
- }, q(e, "convertSubMenuProps", "convertMenuItemProps"), {
2040
- onMenuItemClick: g
1898
+ options: x(a.value, (F) => N(F, "children")),
1899
+ activeKey: m.value
1900
+ }, B(e, "convertSubMenuProps", "convertMenuItemProps"), {
1901
+ onMenuItemClick: S
2041
1902
  }), b) : null,
2042
- ...f
2043
- }), c("div", {
1903
+ ...v
1904
+ }), l("div", {
2044
1905
  class: `${e.clsName}-structure`
2045
- }, [i.value && G(i.value.children) > 0 && c(n, A({
1906
+ }, [i.value && X(i.value.children) > 0 && l(n, D({
2046
1907
  options: i.value.children
2047
- }, N(l, "options")), b), c("div", {
1908
+ }, N(s, "options")), b), l("div", {
2048
1909
  class: `${e.clsName}-section`
2049
- }, [(y = t.default) == null ? void 0 : y.call(t)])])]);
1910
+ }, [(d = t.default) == null ? void 0 : d.call(t)])])]);
2050
1911
  };
2051
1912
  }
2052
- }), ma = $({
1913
+ }), Zr = A({
2053
1914
  props: {
2054
1915
  fieldNames: {
2055
1916
  type: Object,
@@ -2062,40 +1923,40 @@ const lr = () => ({
2062
1923
  },
2063
1924
  setup: (e, {
2064
1925
  slots: t,
2065
- emit: a
1926
+ emit: u
2066
1927
  }) => {
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)
1928
+ const n = G()(U.UploaderKey), r = (i) => {
1929
+ const P = Nt(i);
1930
+ if (V(P)) {
1931
+ const S = e.fieldNames;
1932
+ return x(P, (v) => ({
1933
+ ...N(v, S.id, S.name, S.size),
1934
+ id: f(v, S.id),
1935
+ name: f(v, S.name),
1936
+ size: f(v, S.size)
2076
1937
  }));
2077
1938
  }
2078
1939
  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) => {
1940
+ }, a = I(() => r(e.value)), c = I(() => r(e.modelValue)), m = (i, P) => {
1941
+ let S = "";
1942
+ i && X(i) > 0 && (S = pn(x(i, (v) => {
2082
1943
  const b = e.fieldNames;
2083
1944
  return {
2084
- [b.id]: f.id,
2085
- [b.name]: f.name,
2086
- [b.size || "size"]: f.size
1945
+ [b.id]: v.id,
1946
+ [b.name]: v.name,
1947
+ [b.size || "size"]: v.size
2087
1948
  };
2088
- }))), a(S, g);
1949
+ }))), u(P, S);
2089
1950
  };
2090
- return () => n ? c(n, A({
1951
+ return () => n ? l(n, D({
2091
1952
  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")
1953
+ value: a.value,
1954
+ "onUpdate:value": (i) => m(i, "update:value"),
1955
+ modelValue: c.value,
1956
+ "onUpdate:modelValue": (i) => m(i, "update:modelValue")
2096
1957
  }, N(e, "value", "modelValue", "fieldNames")), t) : null;
2097
1958
  }
2098
- }), ya = $({
1959
+ }), ea = A({
2099
1960
  props: {
2100
1961
  value: [String, Array],
2101
1962
  fieldNames: {
@@ -2109,66 +1970,66 @@ const lr = () => ({
2109
1970
  },
2110
1971
  setup: (e, {
2111
1972
  slots: t,
2112
- emit: a
1973
+ emit: u
2113
1974
  }) => {
2114
- const u = (o) => {
2115
- var s;
2116
- return !!m(o, ((s = e.fieldNames) == null ? void 0 : s.id) || "id");
1975
+ const o = (a) => {
1976
+ var c;
1977
+ return !!f(a, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2117
1978
  }, 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");
1979
+ let a = e.value;
1980
+ return a && oe(a) && (a = Nt(a)), a && !V(a) && Se(a) && o(a) && (a = [a]), V(a) ? x(H(a, (c) => o(c)), (c) => {
1981
+ var S, v, b;
1982
+ const m = f(c, ((S = e.fieldNames) == null ? void 0 : S.id) || "id"), i = f(c, ((v = e.fieldNames) == null ? void 0 : v.name) || "name"), P = f(c, ((b = e.fieldNames) == null ? void 0 : b.name) || "size");
2122
1983
  return {
2123
- ...s,
2124
- id: d,
2125
- size: S,
2126
- name: i || d
1984
+ ...c,
1985
+ id: m,
1986
+ size: P,
1987
+ name: i || m
2127
1988
  };
2128
1989
  }) : [];
2129
- }), r = (o) => {
2130
- a("titleClick", o);
1990
+ }), r = (a) => {
1991
+ u("titleClick", a);
2131
1992
  };
2132
1993
  return () => {
2133
- var o, s;
2134
- return c("div", {
1994
+ var a, c;
1995
+ return l("div", {
2135
1996
  class: "pro-upload-list"
2136
- }, [(o = t.start) == null ? void 0 : o.call(t), x(n.value, (d) => {
1997
+ }, [(a = t.start) == null ? void 0 : a.call(t), x(n.value, (m) => {
2137
1998
  var i;
2138
- return c("div", {
1999
+ return l("div", {
2139
2000
  class: "pro-upload-list-item"
2140
- }, [c("span", {
2001
+ }, [l("span", {
2141
2002
  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)]);
2003
+ onClick: () => r(m)
2004
+ }, [m.name]), (i = t.extra) == null ? void 0 : i.call(t, m)]);
2005
+ }), (c = t.default) == null ? void 0 : c.call(t)]);
2145
2006
  };
2146
2007
  }
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);
2008
+ }), lr = (e, t) => {
2009
+ !e || !t || gt(t) || ge(e) || _(t, (u, o) => {
2010
+ const n = Ct(o, e);
2011
+ if (!Et(n)) {
2012
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
2152
2013
  return;
2153
2014
  }
2154
- if (!$t(n, e)) {
2155
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, u, "->", n);
2015
+ if (!Mt(n, e)) {
2016
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", n);
2156
2017
  return;
2157
2018
  }
2158
- re(e, n, a);
2019
+ re(e, n, u);
2159
2020
  });
2160
- }, 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) => {
2166
- be(r, t);
2167
- }) : be(n, t);
2168
- }), e.children && G(e.children) > 0 && X(e.children, (u) => {
2169
- be(u, t);
2021
+ }, he = (e, t) => {
2022
+ lr(e, f(t, e.elementId));
2023
+ const u = f(e, ["highConfig$", "registerPropsTrans"]);
2024
+ u && X(u) > 0 && _(u, (o) => {
2025
+ const n = f(e.elementProps, o.name);
2026
+ V(n) ? _(n, (r) => {
2027
+ he(r, t);
2028
+ }) : he(n, t);
2029
+ }), e.children && X(e.children) > 0 && _(e.children, (o) => {
2030
+ he(o, t);
2170
2031
  });
2171
- }, Mr = $({
2032
+ }, sr = A({
2172
2033
  props: {
2173
2034
  initExecuteList: {
2174
2035
  type: Array
@@ -2177,98 +2038,98 @@ const lr = () => ({
2177
2038
  setup: (e) => {
2178
2039
  const {
2179
2040
  execute: t
2180
- } = ye();
2181
- return Q(() => {
2041
+ } = fe();
2042
+ return ne(() => {
2182
2043
  e.initExecuteList && t(e.initExecuteList, []);
2183
2044
  }, []), () => null;
2184
2045
  }
2185
- }), va = ({
2046
+ }), ta = ({
2186
2047
  actors: e,
2187
2048
  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;
2049
+ configDataExtra: u,
2050
+ Logic: o
2051
+ }) => A(() => {
2052
+ const n = z(), r = (m) => {
2053
+ const i = pt(m);
2054
+ return u && (V(i) ? _(i, (P) => he(P, u)) : he(i, u)), i;
2194
2055
  };
2195
- Q(() => {
2056
+ ne(() => {
2196
2057
  t && t.elementConfigs && (n.value = r(t.elementConfigs)), t != null && t.elementConfigs;
2197
2058
  }, []);
2198
- const s = _()(U.LoadingKey);
2199
- return () => n.value ? c(Ke, {
2059
+ const c = G()(U.LoadingKey);
2060
+ return () => n.value ? l($e, {
2200
2061
  initState: t == null ? void 0 : t.initState,
2201
2062
  storeKeys: t == null ? void 0 : t.storeKeys,
2202
2063
  actors: e,
2203
2064
  requests: t == null ? void 0 : t.requests,
2204
2065
  elementConfigs: n.value
2205
2066
  }, {
2206
- default: () => [c(Mr, null, null), u && c(u, null, null)]
2207
- }) : s ? c(s, {
2067
+ default: () => [l(sr, null, null), o && l(o, null, null)]
2068
+ }) : c ? l(c, {
2208
2069
  loading: !0
2209
2070
  }, {
2210
- default: () => [c("div", {
2071
+ default: () => [l("div", {
2211
2072
  class: "pro-module-loading-dom"
2212
2073
  }, null)]
2213
2074
  }) : null;
2214
- }), Yt = Bn("access", void 0, !0), Tr = () => {
2215
- const [e, t] = Yt();
2075
+ }), Wt = Mn("access", void 0, !0), ir = () => {
2076
+ const [e, t] = Wt();
2216
2077
  return { access: e, setAccess: t, delAccess: () => {
2217
2078
  t(void 0);
2218
2079
  } };
2219
- }, ha = () => {
2220
- const [e, t] = Yt();
2080
+ }, na = () => {
2081
+ const [e, t] = Wt();
2221
2082
  return [e, t, () => {
2222
2083
  t(void 0);
2223
2084
  }];
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);
2085
+ }, Ht = Symbol("logon-user"), dr = () => ie(Ht), ra = A((e, { slots: t }) => {
2086
+ const [u, o] = rt(), [n, r] = rt();
2087
+ return se(Ht, { user: u, setUser: o, per: n, setPer: r, opts: {} }), () => {
2088
+ var c;
2089
+ return (c = t.default) == null ? void 0 : c.call(t);
2229
2090
  };
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");
2091
+ }), aa = A((e, { slots: t, emit: u }) => {
2092
+ const { access: o } = ir(), n = I(() => o && o.token);
2093
+ return ne(() => {
2094
+ n.value || u("toLogin");
2234
2095
  }, n), () => {
2235
2096
  var r;
2236
2097
  return n.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
2237
2098
  };
2238
- }), pa = {
2099
+ }), oa = {
2239
2100
  Add: "add",
2240
2101
  Edit: "edit",
2241
2102
  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)
2103
+ }, mr = (e, t) => !e || !t ? !1 : V(t) ? le(t, (u) => e[u]) : e[t], fr = () => {
2104
+ const { per: e } = dr(), t = Fe();
2105
+ return (u, o) => {
2106
+ if (!u)
2246
2107
  return !1;
2247
- let n = a;
2248
- if (u != null && u.suffix) {
2108
+ let n = u;
2109
+ if (o != null && o.suffix) {
2249
2110
  const r = t.name ? t.name.toString() : "";
2250
- n = W(n) ? x(n, (o) => `${r}:${o}`) : `${r}:${n}`;
2111
+ n = V(n) ? x(n, (a) => `${r}:${a}`) : `${r}:${n}`;
2251
2112
  }
2252
- return Nr(e.buttonMap, n);
2113
+ return mr(e.buttonMap, n);
2253
2114
  };
2254
- }, Ar = () => ({
2115
+ }, yr = () => ({
2255
2116
  suffix: { type: [String, Array] },
2256
2117
  value: { type: [String, Array] }
2257
- }), Sa = $({
2118
+ }), ua = A({
2258
2119
  inheritAttrs: !1,
2259
2120
  props: {
2260
- ...Ar()
2121
+ ...yr()
2261
2122
  },
2262
2123
  setup: (e, { slots: t }) => {
2263
- const a = $r(), u = I(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0 }) : !1);
2124
+ const u = fr(), o = I(() => e.value ? u(e.value) : e.suffix ? u(e.suffix, { suffix: !0 }) : !1);
2264
2125
  return () => {
2265
2126
  var n;
2266
- return u.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
2127
+ return o.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
2267
2128
  };
2268
2129
  }
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 = () => ({
2130
+ }), Gt = Symbol("pro-curd"), ee = () => ie(Gt), vr = (e) => se(Gt, e);
2131
+ var $ = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))($ || {}), k = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(k || {}), ce = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(ce || {}), Ee = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ee || {});
2132
+ const hr = () => ({
2272
2133
  rowKey: {
2273
2134
  type: String,
2274
2135
  default: "id"
@@ -2291,424 +2152,424 @@ const Dr = () => ({
2291
2152
  modalProps: {
2292
2153
  type: Object
2293
2154
  }
2294
- }), Zt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], vt = $({
2155
+ }), Xt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = A({
2295
2156
  props: {
2296
- ...Pe,
2297
- ...Dr()
2157
+ ...pe,
2158
+ ...hr()
2298
2159
  },
2299
2160
  setup: (e, {
2300
2161
  slots: t,
2301
- expose: a
2162
+ expose: u
2302
2163
  }) => {
2303
2164
  const {
2304
- elementMap: u,
2165
+ elementMap: o,
2305
2166
  state: n,
2306
2167
  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;
2168
+ sendRequest: a
2169
+ } = fe(), c = I(() => we(e.columns, e.columnState, (L) => ue(L))), m = (L) => Je(e.formElementMap, L), i = (L, O) => Qe(o, L, O), P = (L, O) => {
2170
+ const K = H(c.value, (w) => {
2171
+ const h = f(w, ["extra", L]) || f(w, L);
2172
+ return O ? h !== !1 : h;
2312
2173
  });
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
2174
+ return St(K, (w) => f(w, ["extra", `${L}Sort`]) || f(w, `${L}Sort`));
2175
+ }, S = I(() => P("form", !0)), v = I(() => P("detail", !0)), b = I(() => P("table", !0)), g = I(() => P("search"));
2176
+ let s;
2177
+ const C = (L) => {
2178
+ a($.LIST, {
2179
+ ...s,
2180
+ ...L
2320
2181
  });
2321
- }, M = (w) => {
2182
+ }, p = (L) => {
2322
2183
  r({
2323
- type: w.action,
2324
- payload: N(w, "action", "source"),
2325
- source: w.source
2184
+ type: L.action,
2185
+ payload: N(L, "action", "source"),
2186
+ source: L.source
2326
2187
  });
2327
2188
  };
2328
- et(({
2329
- type: w,
2330
- payload: D,
2189
+ Ye(({
2190
+ type: L,
2191
+ payload: O,
2331
2192
  source: K
2332
2193
  }) => {
2333
2194
  if (K)
2334
2195
  return;
2335
- let L = w, h = D == null ? void 0 : D.type;
2336
- L === Ce.Success && (L = m(D, ["requestOpts", "action"]), h = j.SUCCESS);
2196
+ let w = L, h = O == null ? void 0 : O.type;
2197
+ w === Pe.Success && (w = f(O, ["requestOpts", "action"]), h = k.SUCCESS);
2337
2198
  const {
2338
- values: v,
2339
- record: E
2340
- } = D;
2341
- switch (L) {
2342
- case O.LIST:
2343
- h === j.EMIT && (l = v, P());
2199
+ values: y,
2200
+ record: M
2201
+ } = O;
2202
+ switch (w) {
2203
+ case $.LIST:
2204
+ h === k.EMIT && (s = y, C());
2344
2205
  return;
2345
- case O.ADD:
2346
- h === j.EXECUTE && o(O.ADD, v, n.detailData);
2206
+ case $.ADD:
2207
+ h === k.EXECUTE && a($.ADD, y, n.detailData);
2347
2208
  return;
2348
- case O.EDIT:
2349
- h === j.EXECUTE && o(O.EDIT, v, n.detailData);
2209
+ case $.EDIT:
2210
+ h === k.EXECUTE && a($.EDIT, y, n.detailData);
2350
2211
  return;
2351
- case O.DELETE:
2352
- h === j.EMIT ? o(O.DELETE, E, e.rowKey) : h === j.SUCCESS && P();
2212
+ case $.DELETE:
2213
+ h === k.EMIT ? a($.DELETE, M, e.rowKey) : h === k.SUCCESS && C();
2353
2214
  return;
2354
2215
  }
2355
- L && w === j.EXECUTE && o(L, v);
2216
+ w && L === k.EXECUTE && a(w, y);
2356
2217
  });
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,
2218
+ const d = Q(e.operates, (L, O) => ({
2219
+ ...L,
2220
+ [O.action]: O
2221
+ }), {}), E = (L) => f(d, L), F = I(() => e.listProps), R = I(() => e.formProps), j = I(() => e.descProps), Y = I(() => e.modalProps);
2222
+ return vr({
2223
+ columns: c,
2224
+ getSignColumns: P,
2225
+ getFormItemVNode: m,
2365
2226
  getItemVNode: i,
2366
- elementMap: u,
2227
+ elementMap: o,
2367
2228
  formElementMap: e.formElementMap,
2368
2229
  rowKey: e.rowKey,
2369
2230
  curdState: n,
2370
- formColumns: g,
2371
- descColumns: f,
2231
+ formColumns: S,
2232
+ descColumns: v,
2372
2233
  tableColumns: b,
2373
- searchColumns: p,
2374
- sendCurdEvent: M,
2234
+ searchColumns: g,
2235
+ sendCurdEvent: p,
2375
2236
  operates: e.operates,
2376
- getOperate: C,
2377
- refreshList: P,
2237
+ getOperate: E,
2238
+ refreshList: C,
2378
2239
  listProps: F,
2379
- formProps: k,
2380
- descProps: R,
2240
+ formProps: R,
2241
+ descProps: j,
2381
2242
  modalProps: Y
2382
- }), a({
2383
- sendCurdEvent: M,
2384
- refreshList: P
2243
+ }), u({
2244
+ sendCurdEvent: p,
2245
+ refreshList: C
2385
2246
  }), () => {
2386
- var w;
2387
- return (w = t.default) == null ? void 0 : w.call(t);
2247
+ var L;
2248
+ return (L = t.default) == null ? void 0 : L.call(t);
2388
2249
  };
2389
2250
  }
2390
- }), Xe = $({
2251
+ }), We = A({
2391
2252
  props: {
2392
- ...N(Ke.props, "state", "requests"),
2393
- ...vt.props,
2253
+ ...N($e.props, "state", "requests"),
2254
+ ...mt.props,
2394
2255
  curdState: {
2395
2256
  type: Object
2396
2257
  }
2397
2258
  },
2398
2259
  setup: (e, {
2399
2260
  slots: t,
2400
- expose: a
2261
+ expose: u
2401
2262
  }) => {
2402
2263
  const {
2403
- elementMap: u,
2264
+ elementMap: o,
2404
2265
  formElementMap: n
2405
- } = Z(), r = z(), o = z(), s = e.curdState || Te({
2266
+ } = Z(), r = z(), a = z(), c = e.curdState || Me({
2406
2267
  detailData: {}
2407
- }), d = {
2408
- [O.LIST]: {
2409
- convertParams: (f) => f,
2410
- convertData: (f) => {
2268
+ }), m = {
2269
+ [$.LIST]: {
2270
+ convertParams: (v) => v,
2271
+ convertData: (v) => {
2411
2272
  var b;
2412
- return (b = f.res) == null ? void 0 : b.data;
2273
+ return (b = v.res) == null ? void 0 : b.data;
2413
2274
  },
2414
2275
  loadingName: "listLoading",
2415
2276
  stateName: "listData"
2416
2277
  },
2417
- [O.DETAIL]: {
2418
- convertParams: (f, b) => q(f, b),
2419
- convertData: (f) => {
2278
+ [$.DETAIL]: {
2279
+ convertParams: (v, b) => B(v, b),
2280
+ convertData: (v) => {
2420
2281
  var b;
2421
- return (b = f.res) == null ? void 0 : b.data;
2282
+ return (b = v.res) == null ? void 0 : b.data;
2422
2283
  },
2423
2284
  loadingName: "detailLoading",
2424
2285
  stateName: "detailData",
2425
2286
  label: "\u8BE6\u60C5"
2426
2287
  },
2427
- [O.ADD]: {
2428
- convertParams: (f, b) => ({
2288
+ [$.ADD]: {
2289
+ convertParams: (v, b) => ({
2429
2290
  body: {
2430
2291
  ...b,
2431
- ...f
2292
+ ...v
2432
2293
  }
2433
2294
  }),
2434
2295
  loadingName: "operateLoading",
2435
2296
  label: "\u6DFB\u52A0"
2436
2297
  },
2437
- [O.EDIT]: {
2438
- convertParams: (f, b) => ({
2298
+ [$.EDIT]: {
2299
+ convertParams: (v, b) => ({
2439
2300
  body: {
2440
2301
  ...b,
2441
- ...f
2302
+ ...v
2442
2303
  }
2443
2304
  }),
2444
2305
  loadingName: "operateLoading",
2445
2306
  label: "\u7F16\u8F91"
2446
2307
  },
2447
- [O.DELETE]: {
2448
- convertParams: (f, b) => q(f, b),
2308
+ [$.DELETE]: {
2309
+ convertParams: (v, b) => B(v, b),
2449
2310
  label: "\u5220\u9664"
2450
2311
  }
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;
2312
+ }, i = x(e.operates, (v) => {
2313
+ var s;
2314
+ const b = f(m, v.action), g = ((s = e.convertOperate) == null ? void 0 : s.call(e, v, b)) || v;
2454
2315
  return {
2455
2316
  ...b,
2456
- ...p
2317
+ ...g
2457
2318
  };
2458
- }), S = H(i, (f) => f.actor), g = V(N(Ke.props, "state", "requests"));
2459
- return a({
2460
- sendCurdEvent: (f) => {
2319
+ }), P = H(i, (v) => v.actor), S = q(N($e.props, "state", "requests"));
2320
+ return u({
2321
+ sendCurdEvent: (v) => {
2461
2322
  var b;
2462
- (b = o.value) == null || b.sendCurdEvent(f);
2323
+ (b = a.value) == null || b.sendCurdEvent(v);
2463
2324
  },
2464
- refreshList: (f) => {
2325
+ refreshList: (v) => {
2465
2326
  var b;
2466
- (b = o.value) == null || b.refreshList(f);
2327
+ (b = a.value) == null || b.refreshList(v);
2467
2328
  },
2468
- sendEvent: (f) => {
2329
+ sendEvent: (v) => {
2469
2330
  var b;
2470
- (b = r.value) == null || b.sendEvent(f);
2331
+ (b = r.value) == null || b.sendEvent(v);
2471
2332
  },
2472
- sendRequest: (f, ...b) => {
2473
- var p;
2474
- (p = r.value) == null || p.sendRequest(f, ...b);
2333
+ sendRequest: (v, ...b) => {
2334
+ var g;
2335
+ (g = r.value) == null || g.sendRequest(v, ...b);
2475
2336
  }
2476
- }), () => c(Ke, A({
2337
+ }), () => l($e, D({
2477
2338
  ref: r
2478
- }, q(e, g), {
2479
- elementMap: e.elementMap || u,
2480
- state: s,
2481
- requests: S
2339
+ }, B(e, S), {
2340
+ elementMap: e.elementMap || o,
2341
+ state: c,
2342
+ requests: P
2482
2343
  }), {
2483
- default: () => [c(vt, A({
2484
- ref: o
2485
- }, N(e, ...g, "curdState", "operates", "convertOperate"), {
2344
+ default: () => [l(mt, D({
2345
+ ref: a
2346
+ }, N(e, ...S, "curdState", "operates", "convertOperate"), {
2486
2347
  formElementMap: e.formElementMap || n,
2487
2348
  operates: i
2488
2349
  }), t)]
2489
2350
  });
2490
2351
  }
2491
- }), Kr = () => ({
2352
+ }), br = () => ({
2492
2353
  defaultAddRecord: {
2493
2354
  type: Object
2494
2355
  }
2495
- }), We = $({
2356
+ }), qe = A({
2496
2357
  props: {
2497
- ...Kr()
2358
+ ...br()
2498
2359
  },
2499
2360
  setup: (e) => {
2500
2361
  var b;
2501
2362
  const {
2502
2363
  dispatch: t,
2503
- sendRequest: a
2504
- } = ye(), {
2505
- rowKey: u,
2364
+ sendRequest: u
2365
+ } = fe(), {
2366
+ rowKey: o,
2506
2367
  curdState: n,
2507
2368
  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({
2369
+ getOperate: a,
2370
+ refreshList: c
2371
+ } = ee(), m = (b = r == null ? void 0 : r.value) == null ? void 0 : b.pageState, i = (g) => {
2372
+ const s = a($.DETAIL);
2373
+ s != null && s.actor ? u($.DETAIL, g, o) : t({
2513
2374
  type: "detailData",
2514
- payload: Et(p)
2375
+ payload: pt(g)
2515
2376
  });
2516
- }, S = (p, {
2517
- record: l
2377
+ }, P = (g, {
2378
+ record: s
2518
2379
  }) => {
2519
- p === j.EMIT && (t({
2380
+ g === k.EMIT && (t({
2520
2381
  type: "mode",
2521
- payload: le.DETAIL
2522
- }), i(l));
2523
- }, g = (p) => {
2524
- p === j.EMIT ? (t({
2382
+ payload: ce.DETAIL
2383
+ }), i(s));
2384
+ }, S = (g) => {
2385
+ g === k.EMIT ? (t({
2525
2386
  type: "mode",
2526
- payload: le.ADD
2387
+ payload: ce.ADD
2527
2388
  }), t({
2528
2389
  type: "detailData",
2529
2390
  payload: e.defaultAddRecord || {}
2530
- })) : p === j.SUCCESS && (d && (d.page = 1), s(), n.addAction === Me.CONTINUE ? t({
2391
+ })) : g === k.SUCCESS && (m && (m.page = 1), c(), n.addAction === Ee.CONTINUE ? t({
2531
2392
  type: "detailData",
2532
2393
  payload: e.defaultAddRecord || {}
2533
2394
  }) : t({
2534
2395
  type: "mode",
2535
2396
  payload: void 0
2536
2397
  }));
2537
- }, f = (p, {
2538
- record: l
2398
+ }, v = (g, {
2399
+ record: s
2539
2400
  }) => {
2540
- p === j.EMIT ? (t({
2401
+ g === k.EMIT ? (t({
2541
2402
  type: "mode",
2542
- payload: le.EDIT
2543
- }), i(l)) : p === j.SUCCESS && (t({
2403
+ payload: ce.EDIT
2404
+ }), i(s)) : g === k.SUCCESS && (t({
2544
2405
  type: "mode",
2545
2406
  payload: void 0
2546
- }), s());
2407
+ }), c());
2547
2408
  };
2548
- return et(({
2549
- type: p,
2550
- payload: l,
2551
- source: P
2409
+ return Ye(({
2410
+ type: g,
2411
+ payload: s,
2412
+ source: C
2552
2413
  }) => {
2553
- if (P)
2414
+ if (C)
2554
2415
  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
2416
+ let p = g, d = s == null ? void 0 : s.type;
2417
+ const E = s == null ? void 0 : s.record;
2418
+ switch (p === Pe.Success && (p = f(s, ["requestOpts", "action"]), d = k.SUCCESS), p) {
2419
+ case $.DETAIL:
2420
+ P(d, {
2421
+ record: E
2561
2422
  });
2562
2423
  break;
2563
- case O.ADD:
2564
- g(y);
2424
+ case $.ADD:
2425
+ S(d);
2565
2426
  break;
2566
- case O.EDIT:
2567
- f(y, {
2568
- record: C
2427
+ case $.EDIT:
2428
+ v(d, {
2429
+ record: E
2569
2430
  });
2570
2431
  break;
2571
2432
  }
2572
2433
  }), () => null;
2573
2434
  }
2574
- }), Pa = $({
2435
+ }), ca = A({
2575
2436
  props: {
2576
- ...Xe.props,
2577
- ...We.props
2437
+ ...We.props,
2438
+ ...qe.props
2578
2439
  },
2579
2440
  setup: (e, {
2580
2441
  slots: t,
2581
- expose: a
2442
+ expose: u
2582
2443
  }) => {
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
2444
+ const o = z();
2445
+ u(ye(Xt, o));
2446
+ const n = q(qe.props), a = G()(U.ProCurdKey);
2447
+ return () => a ? l(a, D({
2448
+ ref: o
2588
2449
  }, N(e, n)), {
2589
2450
  default: () => {
2590
- var s;
2591
- return [c(We, q(e, n), null), (s = t.default) == null ? void 0 : s.call(t)];
2451
+ var c;
2452
+ return [l(qe, B(e, n), null), (c = t.default) == null ? void 0 : c.call(t)];
2592
2453
  }
2593
2454
  }) : null;
2594
2455
  }
2595
- }), wr = () => ({
2456
+ }), gr = () => ({
2596
2457
  defaultAddRecord: {
2597
2458
  type: Object
2598
2459
  },
2599
2460
  routeBack: {
2600
2461
  type: Function
2601
2462
  }
2602
- }), _e = $({
2463
+ }), Ve = A({
2603
2464
  props: {
2604
- ...wr()
2465
+ ...gr()
2605
2466
  },
2606
2467
  setup: (e) => {
2607
- const t = Qe(), a = Re(), {
2608
- dispatch: u,
2468
+ const t = Xe(), u = Fe(), {
2469
+ dispatch: o,
2609
2470
  sendRequest: n
2610
- } = ye(), {
2471
+ } = fe(), {
2611
2472
  rowKey: r,
2612
- curdState: o
2613
- } = ee(), s = (g) => {
2614
- g === j.PAGE && (u({
2473
+ curdState: a
2474
+ } = ee(), c = (S) => {
2475
+ S === k.PAGE && (o({
2615
2476
  type: "mode",
2616
2477
  payload: void 0
2617
- }), u({
2478
+ }), o({
2618
2479
  type: "detailData",
2619
2480
  payload: {}
2620
- }), u({
2481
+ }), o({
2621
2482
  type: "detailLoading",
2622
2483
  payload: !1
2623
- }), u({
2484
+ }), o({
2624
2485
  type: "addAction",
2625
2486
  payload: void 0
2626
2487
  }));
2627
- }, d = (g, {
2628
- record: f
2488
+ }, m = (S, {
2489
+ record: v
2629
2490
  }) => {
2630
- g === j.EMIT ? t.push({
2631
- path: `${a.path}/detail`,
2632
- query: q(f, r)
2633
- }) : g === j.PAGE && (u({
2491
+ S === k.EMIT ? t.push({
2492
+ path: `${u.path}/detail`,
2493
+ query: B(v, r)
2494
+ }) : S === k.PAGE && (o({
2634
2495
  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({
2496
+ payload: ce.DETAIL
2497
+ }), n($.DETAIL, u.query, r));
2498
+ }, i = (S) => {
2499
+ S === k.EMIT ? t.push({
2500
+ path: `${u.path}/add`
2501
+ }) : S === k.PAGE ? (o({
2641
2502
  type: "mode",
2642
- payload: le.ADD
2643
- }), u({
2503
+ payload: ce.ADD
2504
+ }), o({
2644
2505
  type: "detailData",
2645
2506
  payload: e.defaultAddRecord || {}
2646
- })) : g === j.SUCCESS && (o.addAction === Me.CONTINUE ? u({
2507
+ })) : S === k.SUCCESS && (a.addAction === Ee.CONTINUE ? o({
2647
2508
  type: "detailData",
2648
2509
  payload: e.defaultAddRecord || {}
2649
- }) : e.routeBack ? e.routeBack(O.ADD) : t.go(-1));
2650
- }, S = (g, {
2651
- record: f
2510
+ }) : e.routeBack ? e.routeBack($.ADD) : t.go(-1));
2511
+ }, P = (S, {
2512
+ record: v
2652
2513
  }) => {
2653
- g === j.EMIT ? t.push({
2654
- path: `${a.path}/edit`,
2655
- query: q(f, r)
2656
- }) : g === j.PAGE ? (u({
2514
+ S === k.EMIT ? t.push({
2515
+ path: `${u.path}/edit`,
2516
+ query: B(v, r)
2517
+ }) : S === k.PAGE ? (o({
2657
2518
  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));
2519
+ payload: ce.EDIT
2520
+ }), n($.DETAIL, u.query, r)) : S === k.SUCCESS && (e.routeBack ? e.routeBack($.EDIT) : t.go(-1));
2660
2521
  };
2661
- return et(({
2662
- type: g,
2663
- payload: f,
2522
+ return Ye(({
2523
+ type: S,
2524
+ payload: v,
2664
2525
  source: b
2665
2526
  }) => {
2666
2527
  if (b)
2667
2528
  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);
2529
+ let g = S, s = v == null ? void 0 : v.type;
2530
+ const C = v == null ? void 0 : v.record;
2531
+ switch (g === Pe.Success && (g = f(v, ["requestOpts", "action"]), s = k.SUCCESS), g) {
2532
+ case $.LIST:
2533
+ c(s);
2673
2534
  break;
2674
- case O.DETAIL:
2675
- d(l, {
2676
- record: P
2535
+ case $.DETAIL:
2536
+ m(s, {
2537
+ record: C
2677
2538
  });
2678
2539
  break;
2679
- case O.ADD:
2680
- i(l);
2540
+ case $.ADD:
2541
+ i(s);
2681
2542
  break;
2682
- case O.EDIT:
2683
- S(l, {
2684
- record: P
2543
+ case $.EDIT:
2544
+ P(s, {
2545
+ record: C
2685
2546
  });
2686
2547
  break;
2687
2548
  }
2688
2549
  }), () => null;
2689
2550
  }
2690
- }), Ca = $({
2551
+ }), la = A({
2691
2552
  props: {
2692
- ...Xe.props,
2693
- ..._e.props
2553
+ ...We.props,
2554
+ ...Ve.props
2694
2555
  },
2695
2556
  setup: (e, {
2696
2557
  slots: t,
2697
- expose: a
2558
+ expose: u
2698
2559
  }) => {
2699
- const u = z();
2700
- a(ve(Zt, u));
2701
- const n = V(_e.props);
2702
- return () => c(Xe, A({
2703
- ref: u
2560
+ const o = z();
2561
+ u(ye(Xt, o));
2562
+ const n = q(Ve.props);
2563
+ return () => l(We, D({
2564
+ ref: o
2704
2565
  }, N(e, n)), {
2705
2566
  default: () => {
2706
2567
  var r;
2707
- return [c(_e, q(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
2568
+ return [l(Ve, B(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
2708
2569
  }
2709
2570
  });
2710
2571
  }
2711
- }), ht = $({
2572
+ }), ft = A({
2712
2573
  props: {
2713
2574
  buttonProps: Object
2714
2575
  },
@@ -2716,159 +2577,159 @@ const Dr = () => ({
2716
2577
  slots: t
2717
2578
  }) => {
2718
2579
  const {
2719
- getOperate: a,
2720
- sendCurdEvent: u
2721
- } = ee(), n = a(O.ADD), r = () => {
2580
+ getOperate: u,
2581
+ sendCurdEvent: o
2582
+ } = ee(), n = u($.ADD), r = () => {
2722
2583
  if (n != null && n.onClick) {
2723
2584
  n.onClick();
2724
2585
  return;
2725
2586
  }
2726
- u({
2727
- action: O.ADD,
2728
- type: j.EMIT
2587
+ o({
2588
+ action: $.ADD,
2589
+ type: k.EMIT
2729
2590
  });
2730
- }, s = _()(U.ButtonKey);
2731
- return () => n != null && n.show ? t.default ? t.default(n, r) : s ? c(s, A({
2591
+ }, c = G()(U.ButtonKey);
2592
+ return () => n != null && n.show ? t.default ? t.default(n, r) : c ? l(c, D({
2732
2593
  class: "pro-curd-add-button",
2733
- disabled: B(n.disabled) ? n.disabled() : n.disabled
2594
+ disabled: W(n.disabled) ? n.disabled() : n.disabled
2734
2595
  }, e.buttonProps, {
2735
2596
  onClick: r
2736
2597
  }), {
2737
2598
  default: () => [n.label]
2738
2599
  }) : null : null;
2739
2600
  }
2740
- }), bt = () => ({
2601
+ }), yt = () => ({
2741
2602
  addConfig: {
2742
2603
  type: Object,
2743
2604
  default: {
2744
2605
  inSearch: !0
2745
2606
  }
2746
2607
  }
2747
- }), xr = $({
2608
+ }), Sr = A({
2748
2609
  props: {
2749
- ...gr.props,
2750
- ...bt()
2610
+ ...rr.props,
2611
+ ...yt()
2751
2612
  },
2752
2613
  setup: (e, {
2753
2614
  slots: t
2754
2615
  }) => {
2755
2616
  const {
2756
- elementMap: a,
2757
- formElementMap: u,
2617
+ elementMap: u,
2618
+ formElementMap: o,
2758
2619
  curdState: n,
2759
2620
  searchColumns: r,
2760
- tableColumns: o,
2761
- sendCurdEvent: s,
2762
- operates: d
2621
+ tableColumns: a,
2622
+ sendCurdEvent: c,
2623
+ operates: m
2763
2624
  } = 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;
2625
+ H(m, (p) => {
2626
+ const d = p.action;
2627
+ return d === $.DETAIL || d === $.EDIT || d === $.DELETE || p.tableOperate;
2767
2628
  }),
2768
- (M) => {
2769
- const y = {
2770
- ...q(M, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2771
- value: M.action
2629
+ (p) => {
2630
+ const d = {
2631
+ ...B(p, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2632
+ value: p.action
2772
2633
  };
2773
- return y.onClick || (y.onClick = (C) => {
2774
- s({
2775
- action: M.action,
2776
- type: j.EMIT,
2777
- record: C
2634
+ return d.onClick || (d.onClick = (E) => {
2635
+ c({
2636
+ action: p.action,
2637
+ type: k.EMIT,
2638
+ record: E
2778
2639
  });
2779
- }), y;
2640
+ }), d;
2780
2641
  }
2781
- ), S = (M) => {
2782
- s({
2783
- action: O.LIST,
2784
- type: j.EMIT,
2785
- values: M
2642
+ ), P = (p) => {
2643
+ c({
2644
+ action: $.LIST,
2645
+ type: k.EMIT,
2646
+ values: p
2786
2647
  });
2787
- }, g = I(() => ({
2788
- formElementMap: u,
2648
+ }, S = I(() => ({
2649
+ formElementMap: o,
2789
2650
  columns: r.value,
2790
2651
  ...e.searchProps
2791
- })), f = I(() => {
2792
- var M, y;
2652
+ })), v = I(() => {
2653
+ var p, d;
2793
2654
  return {
2794
- elementMap: a,
2795
- columns: o.value,
2655
+ elementMap: u,
2656
+ columns: a.value,
2796
2657
  loading: n.listLoading,
2797
- dataSource: (M = n.listData) == null ? void 0 : M.dataSource,
2658
+ dataSource: (p = n.listData) == null ? void 0 : p.dataSource,
2798
2659
  ...N(e.tableProps, "operate"),
2799
2660
  operate: {
2800
2661
  items: i,
2801
- ...(y = e.tableProps) == null ? void 0 : y.operate
2662
+ ...(d = e.tableProps) == null ? void 0 : d.operate
2802
2663
  }
2803
2664
  };
2804
2665
  }), b = I(() => {
2805
- var M;
2666
+ var p;
2806
2667
  return e.paginationProps === !1 ? !1 : {
2807
- total: (M = n.listData) == null ? void 0 : M.total,
2668
+ total: (p = n.listData) == null ? void 0 : p.total,
2808
2669
  ...e.paginationProps
2809
2670
  };
2810
- }), p = V(bt()), P = _()(U.ProListKey);
2671
+ }), g = q(yt()), C = G()(U.ProListKey);
2811
2672
  return () => {
2812
- var M, y;
2813
- return P ? c(P, A({
2673
+ var p, d;
2674
+ return C ? l(C, D({
2814
2675
  class: "pro-curd-list"
2815
- }, N(e, ...p, "searchProps", "tableProps", "paginationProps"), {
2816
- searchProps: g.value,
2817
- tableProps: f.value,
2676
+ }, N(e, ...g, "searchProps", "tableProps", "paginationProps"), {
2677
+ searchProps: S.value,
2678
+ tableProps: v.value,
2818
2679
  paginationProps: b.value,
2819
- onSearch: S
2680
+ onSearch: P
2820
2681
  }), {
2821
- "search-end": (M = e.addConfig) != null && M.inSearch ? () => {
2822
- var C;
2823
- return c("div", {
2682
+ "search-end": (p = e.addConfig) != null && p.inSearch ? () => {
2683
+ var E;
2684
+ return l("div", {
2824
2685
  class: "pro-curd-list-search-end"
2825
- }, [c(ht, (C = e.addConfig) == null ? void 0 : C.buttonProps, null)]);
2686
+ }, [l(ft, (E = e.addConfig) == null ? void 0 : E.buttonProps, null)]);
2826
2687
  } : void 0,
2827
- "table-toolbarExtra": (y = e.addConfig) != null && y.inTable ? (C) => {
2688
+ "table-toolbarExtra": (d = e.addConfig) != null && d.inTable ? (E) => {
2828
2689
  var F;
2829
- return c(te, null, [c(ht, (F = e.addConfig) == null ? void 0 : F.buttonProps, null), C]);
2690
+ return l(te, null, [l(ft, (F = e.addConfig) == null ? void 0 : F.buttonProps, null), E]);
2830
2691
  } : void 0,
2831
2692
  ...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
2693
+ search: t.search ? (E) => t.search(E, S.value) : void 0,
2694
+ table: t.table ? (E) => t.table(E, v.value) : void 0,
2695
+ pagination: t.pagination ? (E) => t.pagination(E, b.value) : void 0
2835
2696
  }) : null;
2836
2697
  };
2837
2698
  }
2838
- }), Ea = $(() => {
2699
+ }), sa = A(() => {
2839
2700
  const {
2840
2701
  listProps: e
2841
2702
  } = ee();
2842
- return () => c(xr, N(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2843
- }), Lr = () => ({
2703
+ return () => l(Sr, N(e == null ? void 0 : e.value, "slots"), f(e == null ? void 0 : e.value, "slots"));
2704
+ }), pr = () => ({
2844
2705
  signName: {
2845
2706
  type: String
2846
2707
  }
2847
- }), at = $({
2708
+ }), et = A({
2848
2709
  props: {
2849
- ...Lr()
2710
+ ...pr()
2850
2711
  },
2851
2712
  setup: (e, {
2852
2713
  slots: t,
2853
- expose: a,
2854
- attrs: u
2714
+ expose: u,
2715
+ attrs: o
2855
2716
  }) => {
2856
2717
  const {
2857
2718
  elementMap: n,
2858
2719
  formElementMap: r,
2859
- curdState: o,
2860
- formColumns: s,
2861
- getSignColumns: d,
2720
+ curdState: a,
2721
+ formColumns: c,
2722
+ getSignColumns: m,
2862
2723
  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();
2724
+ } = ee(), P = z();
2725
+ u(ye(e.formMethods || [], P));
2726
+ const S = I(() => e.signName ? m(e.signName) : c.value), v = () => {
2727
+ var d;
2728
+ a.addAction = Ee.NORMAL, (d = P.value) == null || d.submit();
2868
2729
  }, b = () => {
2869
- var y;
2870
- o.addAction = Me.CONTINUE, (y = S.value) == null || y.submit();
2871
- }, p = [
2730
+ var d;
2731
+ a.addAction = Ee.CONTINUE, (d = P.value) == null || d.submit();
2732
+ }, g = [
2872
2733
  {
2873
2734
  value: J.RESET,
2874
2735
  label: "\u91CD\u7F6E"
@@ -2888,73 +2749,73 @@ const Dr = () => ({
2888
2749
  },
2889
2750
  show: !1
2890
2751
  }
2891
- ], l = (y) => {
2892
- u.onFinish || (o.mode === O.EDIT ? i({
2893
- action: O.EDIT,
2894
- type: j.EXECUTE,
2895
- values: y
2752
+ ], s = (d) => {
2753
+ o.onFinish || (a.mode === $.EDIT ? i({
2754
+ action: $.EDIT,
2755
+ type: k.EXECUTE,
2756
+ values: d
2896
2757
  }) : i({
2897
- action: O.ADD,
2898
- type: j.EXECUTE,
2899
- values: y
2758
+ action: $.ADD,
2759
+ type: k.EXECUTE,
2760
+ values: d
2900
2761
  }));
2901
- }, M = _()(U.ProFormKey);
2902
- return () => M ? c(M, A({
2903
- ref: S,
2762
+ }, p = G()(U.ProFormKey);
2763
+ return () => p ? l(p, D({
2764
+ ref: P,
2904
2765
  class: "pro-curd-form"
2905
2766
  }, N(e, "operate"), {
2906
2767
  elementMap: e.elementMap || n,
2907
2768
  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,
2769
+ columns: e.columns || S.value,
2770
+ readonly: a.mode === $.DETAIL,
2771
+ model: e.model || a.detailData,
2772
+ hideRequiredMark: a.mode === $.DETAIL,
2912
2773
  operate: e.operate ? {
2913
- items: p,
2914
- onSubmit: f,
2774
+ items: g,
2775
+ onSubmit: v,
2915
2776
  onContinue: b,
2916
2777
  ...e.operate
2917
2778
  } : void 0,
2918
- onFinish: l
2779
+ onFinish: s
2919
2780
  }), t) : null;
2920
2781
  }
2921
- }), Ma = $(() => {
2782
+ }), ia = A(() => {
2922
2783
  const {
2923
2784
  formProps: e
2924
2785
  } = ee();
2925
- return () => c(at, N(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2926
- }), Fr = () => ({
2786
+ return () => l(et, N(e == null ? void 0 : e.value, "slots"), f(e == null ? void 0 : e.value, "slots"));
2787
+ }), Pr = () => ({
2927
2788
  signName: {
2928
2789
  type: String
2929
2790
  }
2930
- }), kr = $({
2791
+ }), Cr = A({
2931
2792
  props: {
2932
- ...Fr()
2793
+ ...Pr()
2933
2794
  },
2934
2795
  setup: (e, {
2935
2796
  slots: t
2936
2797
  }) => {
2937
2798
  const {
2938
- curdState: a,
2939
- descColumns: u,
2799
+ curdState: u,
2800
+ descColumns: o,
2940
2801
  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,
2802
+ } = ee(), r = I(() => e.signName ? n(e.signName) : o.value);
2803
+ return () => l(ar, D(N(e, "signName", "model", "columns"), {
2804
+ model: e.model || u.detailData,
2944
2805
  columns: r.value
2945
2806
  }), t);
2946
2807
  }
2947
- }), Ta = $(() => {
2808
+ }), da = A(() => {
2948
2809
  const {
2949
2810
  descProps: e
2950
2811
  } = ee();
2951
- return () => c(kr, A({
2812
+ return () => l(Cr, D({
2952
2813
  class: "pro-curd-desc"
2953
- }, N(e == null ? void 0 : e.value, "slots")), m(e == null ? void 0 : e.value, "slots"));
2954
- }), gt = () => ({
2814
+ }, N(e == null ? void 0 : e.value, "slots")), f(e == null ? void 0 : e.value, "slots"));
2815
+ }), vt = () => ({
2955
2816
  validMode: {
2956
2817
  type: Array,
2957
- default: [O.ADD, O.DETAIL, O.EDIT]
2818
+ default: [$.ADD, $.DETAIL, $.EDIT]
2958
2819
  },
2959
2820
  loadingOpts: {
2960
2821
  type: Object
@@ -2962,48 +2823,48 @@ const Dr = () => ({
2962
2823
  overrideProps: {
2963
2824
  type: Object
2964
2825
  }
2965
- }), en = $({
2826
+ }), _t = A({
2966
2827
  props: {
2967
- ...gt()
2828
+ ...vt()
2968
2829
  },
2969
2830
  setup: (e, {
2970
2831
  slots: t
2971
2832
  }) => {
2972
- const a = _(), u = a(U.ModalKey), n = a(U.LoadingKey), {
2833
+ const u = G(), o = u(U.ModalKey), n = u(U.LoadingKey), {
2973
2834
  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());
2835
+ getOperate: a
2836
+ } = ee(), c = () => {
2837
+ r.mode = void 0, Pt(r.detailData, {}), r.detailLoading = !1, r.addAction = void 0;
2838
+ }, m = q(vt());
2978
2839
  return () => {
2979
- var S;
2840
+ var P;
2980
2841
  const i = r.mode;
2981
- return !ie(e.validMode, (g) => g === i) || !u ? null : c(u, A({
2842
+ return !le(e.validMode, (S) => S === i) || !o ? null : l(o, D({
2982
2843
  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),
2844
+ }, N(e, m), {
2845
+ visible: le(e.validMode, (S) => S === i),
2846
+ title: e.title || ((P = a(r.mode)) == null ? void 0 : P.label),
2986
2847
  confirmLoading: r.operateLoading,
2987
- maskClosable: r.mode === O.DETAIL,
2988
- footer: r.mode === O.DETAIL ? !1 : void 0
2848
+ maskClosable: r.mode === $.DETAIL,
2849
+ footer: r.mode === $.DETAIL ? !1 : void 0
2989
2850
  }, e.overrideProps, {
2990
- onCancel: s
2851
+ onCancel: c
2991
2852
  }), {
2992
2853
  default: () => {
2993
- var g;
2994
- return [r.detailLoading && n ? c(n, A({
2854
+ var S;
2855
+ return [r.detailLoading && n ? l(n, D({
2995
2856
  loading: !0
2996
2857
  }, e.loadingOpts), {
2997
- default: () => [c("div", {
2858
+ default: () => [l("div", {
2998
2859
  class: "pro-curd-modal-loading-dom"
2999
2860
  }, null)]
3000
- }) : (g = t.default) == null ? void 0 : g.call(t)];
2861
+ }) : (S = t.default) == null ? void 0 : S.call(t)];
3001
2862
  },
3002
2863
  ...N(t, "default")
3003
2864
  });
3004
2865
  };
3005
2866
  }
3006
- }), Ia = $({
2867
+ }), ma = A({
3007
2868
  props: {
3008
2869
  modalProps: Object,
3009
2870
  formProps: Object
@@ -3011,129 +2872,129 @@ const Dr = () => ({
3011
2872
  setup: (e, {
3012
2873
  slots: t
3013
2874
  }) => {
3014
- const a = z(), u = ae(t, "modal"), n = ae(t, "form");
3015
- return () => c(en, A(e.modalProps, {
2875
+ const u = z(), o = ae(t, "modal"), n = ae(t, "form");
2876
+ return () => l(_t, D(e.modalProps, {
3016
2877
  onOk: () => {
3017
2878
  var r;
3018
- (r = a.value) == null || r.submit();
2879
+ (r = u.value) == null || r.submit();
3019
2880
  }
3020
2881
  }), {
3021
- default: () => [c(at, A({
3022
- ref: a
2882
+ default: () => [l(et, D({
2883
+ ref: u
3023
2884
  }, e.formProps), n)],
3024
- ...u
2885
+ ...o
3025
2886
  });
3026
2887
  }
3027
- }), Na = $(() => {
2888
+ }), fa = A(() => {
3028
2889
  const {
3029
2890
  modalProps: e,
3030
2891
  formProps: t
3031
- } = ee(), a = z();
3032
- return () => c(en, A(N(e == null ? void 0 : e.value, "slots"), {
2892
+ } = ee(), u = z();
2893
+ return () => l(_t, D(N(e == null ? void 0 : e.value, "slots"), {
3033
2894
  onOk: () => {
3034
- var u;
3035
- (u = a.value) == null || u.submit();
2895
+ var o;
2896
+ (o = u.value) == null || o.submit();
3036
2897
  }
3037
2898
  }), {
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")
2899
+ default: () => [l(et, D({
2900
+ ref: u
2901
+ }, N(t == null ? void 0 : t.value, "slots")), f(t == null ? void 0 : t.value, "slots"))],
2902
+ ...f(e == null ? void 0 : e.value, "slots")
3042
2903
  });
3043
2904
  });
3044
2905
  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,
2906
+ ft as AddButton,
2907
+ Yn as ColumnSetting,
2908
+ $ as CurdAction,
2909
+ Ee as CurdAddAction,
2910
+ ce as CurdCurrentMode,
2911
+ Xt as CurdMethods,
2912
+ k as CurdSubAction,
3052
2913
  U as ElementKeys,
3053
2914
  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,
3074
- 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,
3097
- ve as createExpose,
3098
- ea as createExposeObj,
3099
- oa as createFormItemCompFn,
3100
- va as createModule,
3101
- Hr as createProConfig,
3102
- hr as defaultPage,
2915
+ Vr as FormRulePrefixMap,
2916
+ ra as LogonUser,
2917
+ Ht as LogonUserKey,
2918
+ aa as MustLogon,
2919
+ oa as PerSuffix,
2920
+ ua as Permission,
2921
+ Lr as ProConfig,
2922
+ We as ProCurd,
2923
+ Cr as ProCurdDesc,
2924
+ da as ProCurdDescConnect,
2925
+ et as ProCurdForm,
2926
+ ia as ProCurdFormConnect,
2927
+ Sr as ProCurdList,
2928
+ sa as ProCurdListConnect,
2929
+ _t as ProCurdModal,
2930
+ ma as ProCurdModalForm,
2931
+ fa as ProCurdModalFormConnect,
2932
+ ar as ProDesc,
2933
+ qr as ProForm,
2934
+ Br as ProFormList,
2935
+ ve as ProGrid,
2936
+ Qr as ProLayout,
2937
+ rr as ProList,
2938
+ ca as ProModalCurd,
2939
+ $e as ProModule,
2940
+ Vt as ProOperate,
2941
+ Gr as ProPage,
2942
+ la as ProPageCurd,
2943
+ zr as ProSearchForm,
2944
+ Jr as ProShowDate,
2945
+ Xr as ProShowDigit,
2946
+ _r as ProShowOptions,
2947
+ Re as ProShowText,
2948
+ Yr as ProShowTree,
2949
+ Hr as ProTable,
2950
+ ur as ProTypography,
2951
+ Zr as ProUploaderText,
2952
+ Pe as RequestAction,
2953
+ xe as SearchMode,
2954
+ ea as UploadList,
2955
+ Un as Wrapper,
2956
+ Rt as convertPathToList,
2957
+ An as convertResData,
2958
+ ye as createExpose,
2959
+ Ur as createExposeObj,
2960
+ Wr as createFormItemCompFn,
2961
+ ta as createModule,
2962
+ xr as createProConfig,
2963
+ tr as defaultPage,
3103
2964
  ae as filterSlotsByPrefix,
3104
2965
  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,
2966
+ xt as getColumnValueType,
2967
+ kn as getFirstPropName,
2968
+ Je as getFormItemEl,
2969
+ Qe as getItemEl,
2970
+ zn as getSignValue,
2971
+ Vn as getValidValues,
2972
+ jn as isValidConfig,
2973
+ kr as mergeStateToList,
2974
+ pe as proBaseProps,
2975
+ vr as provideProCurd,
2976
+ Ut as provideProFormList,
2977
+ Fn as provideProModule,
2978
+ Ce as renderElement,
2979
+ Ze as renderElements,
2980
+ ir as useAccess,
2981
+ na as useAccessMgr,
2982
+ Nn as useComposeRequestActor,
2983
+ Rr as useDispatchMeta,
2984
+ wn as useDispatchStore,
2985
+ wr as useDoneRequestActor,
2986
+ Fr as useFailedRequestActor,
2987
+ G as useGetCompByKey,
2988
+ fr as useHasPer,
2989
+ dr as useLogonUser,
2990
+ Dn as useMetaRegister,
2991
+ Ye as useModuleEvent,
3131
2992
  Z as useProConfig,
3132
2993
  ee as useProCurd,
3133
- Gt as useProForm,
3134
- zt as useProFormList,
3135
- ye as useProModule,
3136
- Wn as useProRouter,
3137
- fr as useProTable,
3138
- Qr as useReadStore
2994
+ qt as useProForm,
2995
+ kt as useProFormList,
2996
+ fe as useProModule,
2997
+ $n as useProRouter,
2998
+ Jn as useProTable,
2999
+ jr as useReadStore
3139
3000
  };