@vue-start/pro 0.5.25 → 0.5.27

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