@vue-start/pro 0.5.29 → 0.5.30

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