@vue-start/pro 0.5.31 → 0.5.32

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