@vue-start/pro 0.5.13 → 0.5.14

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
@@ -2,7 +2,7 @@ var Ut = Object.defineProperty;
2
2
  var qt = (e, t, o) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var ae = (e, t, o) => (qt(e, typeof t != "symbol" ? t + "" : t, o), o);
4
4
  import { defineComponent as I, provide as se, inject as re, ref as z, computed as C, h as me, isVNode as Te, reactive as be, createVNode as i, Fragment as Q, mergeProps as T, createTextVNode as Je, toRef as Bt } from "vue";
5
- import { reduce as X, get as g, isFunction as B, map as $, isString as pe, forEach as Se, size as Y, set as ce, pick as q, omit as M, isArray as G, some as ue, keys as V, head as Vt, isObject as fe, filter as H, split as zt, isEmpty as _t, mergeWith as Gt, startsWith as Ht, mapKeys as Wt, debounce as Xt, clone as Yt, isBoolean as le, has as dt, every as Jt, sortBy as mt, isNumber as Qt, join as Be, findLast as Qe, cloneDeep as Zt } from "lodash";
5
+ import { reduce as X, get as g, isFunction as q, map as $, isString as pe, forEach as Se, size as Y, set as ce, pick as B, omit as M, isArray as G, some as ue, keys as V, head as Vt, isObject as fe, filter as H, split as zt, isEmpty as _t, mergeWith as Gt, startsWith as Ht, mapKeys as Wt, debounce as Xt, clone as Yt, isBoolean as le, has as dt, every as Jt, sortBy as mt, isNumber as Qt, join as Be, findLast as Qe, cloneDeep as Zt } from "lodash";
6
6
  import { Observable as en, filter as Me, tap as Ie, merge as tn, Subject as nn } from "rxjs";
7
7
  import { useEffect as te, useState as je, setReactiveValue as ft, useRuleState as Ke, useWatch as yt, useUpdateKey as an, useResizeObserver as Ue, decimalFixed as rn, thousandDivision as on, listToMap as un, treeToMap as sn, convertTreeData as cn, getMenuTopNameMap as ln, findTreeItem as Ze, strToJson as vt, jsonToStr as dn } from "@vue-start/hooks";
8
8
  import { useRequestProvide as Pe, isDoneRequestActor as ht, isFailedRequestActor as gt } from "@vue-start/request";
@@ -26,12 +26,12 @@ const vn = () => ({
26
26
  ...hn()
27
27
  },
28
28
  setup: (e, { slots: t }) => {
29
- const o = X(e.registerStores, (s, m) => ({ ...s, [m.key]: m }), {}), u = X(e.registerActors, (s, m) => ({ ...s, [m.actor.name]: m }), {}), n = X(e.registerMetas, (s, m) => ({ ...s, [m.actorName]: m }), {});
29
+ const o = X(e.registerStores, (s, f) => ({ ...s, [f.key]: f }), {}), u = X(e.registerActors, (s, f) => ({ ...s, [f.actor.name]: f }), {}), n = X(e.registerMetas, (s, f) => ({ ...s, [f.actorName]: f }), {});
30
30
  $n(n, u);
31
- const { dispatchRequest: a } = Pe(), r = (s, m, d) => {
31
+ const { dispatchRequest: a } = Pe(), r = (s, f, d) => {
32
32
  const b = g(u, s);
33
33
  if (!!b)
34
- return a(b.actor, m, d);
34
+ return a(b.actor, f, d);
35
35
  };
36
36
  return se(ze, {
37
37
  elementMap: e.elementMap,
@@ -179,15 +179,15 @@ const Cn = (e, t) => {
179
179
  ), pt = () => {
180
180
  const e = De();
181
181
  return (t, o, u, n) => {
182
- const a = `${u ? "$" : ""}${t}`, r = B(n) ? n() : n;
182
+ const a = `${u ? "$" : ""}${t}`, r = q(n) ? n() : n;
183
183
  bt.with(
184
- (s = r) => B(o) ? o(s) : o,
184
+ (s = r) => q(o) ? o(s) : o,
185
185
  { key: a }
186
186
  ).invoke(e);
187
187
  };
188
188
  }, Nn = (e, t, o) => {
189
- const u = `${o ? "$" : ""}${e}`, n = B(t) ? t() : t, a = De(), r = (d) => bt.with(
190
- (b = n) => B(d) ? d(b) : d,
189
+ const u = `${o ? "$" : ""}${e}`, n = q(t) ? t() : t, a = De(), r = (d) => bt.with(
190
+ (b = n) => q(d) ? d(b) : d,
191
191
  { key: u }
192
192
  ).invoke(a), s = Oe.from(a, (d) => g(d, [u], n));
193
193
  return [Cn(s), r];
@@ -213,22 +213,22 @@ const Cn = (e, t) => {
213
213
  const s = tn(
214
214
  u.pipe(
215
215
  Me(ht),
216
- Ie((m) => {
216
+ Ie((f) => {
217
217
  var d, b;
218
- a.has(m.name) && ((d = t.onSuccess) == null || d.call(t, m), (b = t.onFinish) == null || b.call(t, m), r[m.name] = void 0);
218
+ a.has(f.name) && ((d = t.onSuccess) == null || d.call(t, f), (b = t.onFinish) == null || b.call(t, f), r[f.name] = void 0);
219
219
  })
220
220
  ),
221
221
  u.pipe(
222
222
  Me(gt),
223
- Ie((m) => {
223
+ Ie((f) => {
224
224
  var d, b;
225
- a.has(m.name) && ((d = t.onFailed) == null || d.call(t, m), (b = t.onFinish) == null || b.call(t, m), r[m.name] = void 0);
225
+ a.has(f.name) && ((d = t.onFailed) == null || d.call(t, f), (b = t.onFinish) == null || b.call(t, f), r[f.name] = void 0);
226
226
  })
227
227
  )
228
228
  ).subscribe();
229
229
  return () => {
230
- s.unsubscribe(), o && Se(r, (m) => {
231
- m && n({ ...m, stage: "CANCEL" });
230
+ s.unsubscribe(), o && Se(r, (f) => {
231
+ f && n({ ...f, stage: "CANCEL" });
232
232
  });
233
233
  };
234
234
  }, []);
@@ -257,8 +257,8 @@ const Cn = (e, t) => {
257
257
  const s = g(e, r.name);
258
258
  if (!s)
259
259
  return;
260
- const m = s.storeName || r.name, d = An(r, s.convertData, s.convertPath);
261
- u(m, d, !1, void 0);
260
+ const f = s.storeName || r.name, d = An(r, s.convertData, s.convertPath);
261
+ u(f, d, !1, void 0);
262
262
  })
263
263
  ).subscribe();
264
264
  return () => {
@@ -305,13 +305,13 @@ const Cn = (e, t) => {
305
305
  return;
306
306
  }
307
307
  !r.elementType || (a.isFun ? ce(u, a.name, (...s) => {
308
- const m = a.needParams ? {
308
+ const f = a.needParams ? {
309
309
  ...r.elementProps,
310
310
  params$: s
311
311
  } : r.elementProps;
312
312
  return ve(e, {
313
313
  ...r,
314
- elementProps: m
314
+ elementProps: f
315
315
  });
316
316
  }) : ce(u, a.name, ve(e, r)));
317
317
  }
@@ -320,14 +320,14 @@ const Cn = (e, t) => {
320
320
  const o = Y(t.children) > 0 ? Ge(e, t.children) : void 0, u = t.childrenSlotName || "default", n = M(t.slots, o ? u : "");
321
321
  return Se(V(n), (a) => {
322
322
  const r = n[a];
323
- r && !B(r) && r.elementType && (n[a] = (...s) => {
324
- const m = r.needParams ? {
323
+ r && !q(r) && r.elementType && (n[a] = (...s) => {
324
+ const f = r.needParams ? {
325
325
  ...r.elementProps,
326
326
  params$: s
327
327
  } : r.elementProps;
328
328
  return ve(e, {
329
329
  ...r,
330
- elementProps: m
330
+ elementProps: f
331
331
  });
332
332
  });
333
333
  }), {
@@ -371,21 +371,21 @@ const Cn = (e, t) => {
371
371
  payload: l
372
372
  });
373
373
  }
374
- }), {}), m = C(() => {
374
+ }), {}), f = C(() => {
375
375
  if (!a.registerStateList || Y(a.registerStateList) <= 0)
376
376
  return;
377
377
  const y = {
378
378
  ...r
379
379
  }, c = $(a.registerStateList, (l) => {
380
- const v = l.mapName || l.name, f = g(t, l.name);
381
- return ce(y, v, f), Kn(v);
380
+ const v = l.mapName || l.name, m = g(t, l.name);
381
+ return ce(y, v, m), Kn(v);
382
382
  });
383
- return q(y, c);
383
+ return B(y, c);
384
384
  }), d = g(u, n.elementType) || n.elementType, b = Tt(u, n);
385
- return () => g(m.value, "show$") === !1 ? null : me(d, {
385
+ return () => g(f.value, "show$") === !1 ? null : me(d, {
386
386
  key: n.elementId,
387
387
  ...r,
388
- ...M(m.value, "show$"),
388
+ ...M(f.value, "show$"),
389
389
  ...s
390
390
  }, b);
391
391
  }
@@ -430,14 +430,14 @@ const Cn = (e, t) => {
430
430
  const u = (c) => G(c) ? Ge(e.elementMap, c) : ve(e.elementMap, c), n = new nn(), a = (c) => {
431
431
  n.next(c);
432
432
  }, r = e.state || be({}), s = (c) => {
433
- const l = r[c.type], v = B(c.payload) ? c.payload(l) : c.payload;
433
+ const l = r[c.type], v = q(c.payload) ? c.payload(l) : c.payload;
434
434
  if (fe(l)) {
435
435
  ft(r[c.type], v);
436
436
  return;
437
437
  }
438
438
  r[c.type] = v;
439
439
  }, {
440
- dispatchRequest: m
440
+ dispatchRequest: f
441
441
  } = Pe(), d = X(e.requests, (c, l) => {
442
442
  var v;
443
443
  return {
@@ -451,15 +451,15 @@ const Cn = (e, t) => {
451
451
  const v = g(d, c) || g(b, c);
452
452
  if (!v)
453
453
  return;
454
- let f;
455
- v.convertParams ? f = v.convertParams(...l) : f = g(l, 0), v.loadingName && s({
454
+ let m;
455
+ v.convertParams ? m = v.convertParams(...l) : m = g(l, 0), v.loadingName && s({
456
456
  type: v.loadingName,
457
457
  payload: !0
458
- }), m(v.actor, f);
458
+ }), f(v.actor, m);
459
459
  };
460
460
  return On(V(d), {
461
461
  onSuccess: (c) => {
462
- var v, f;
462
+ var v, m;
463
463
  const l = g(d, c.name);
464
464
  if (l != null && l.stateName) {
465
465
  const p = l.convertData ? l.convertData(c) : (v = c.res) == null ? void 0 : v.data;
@@ -474,7 +474,7 @@ const Cn = (e, t) => {
474
474
  actor: c,
475
475
  requestOpts: l
476
476
  }
477
- }), (f = l.onSuccess) == null || f.call(l, c);
477
+ }), (m = l.onSuccess) == null || m.call(l, c);
478
478
  },
479
479
  onFailed: (c) => {
480
480
  var v;
@@ -520,7 +520,7 @@ const Cn = (e, t) => {
520
520
  const { registerStoreMap: t } = ne(), o = g(t, e), u = `${o != null && o.persist ? "$" : ""}${o == null ? void 0 : o.key}`;
521
521
  return En(Mn((a) => {
522
522
  const r = g(a, u);
523
- return r || (B(o == null ? void 0 : o.initialState) ? o == null ? void 0 : o.initialState() : o == null ? void 0 : o.initialState);
523
+ return r || (q(o == null ? void 0 : o.initialState) ? o == null ? void 0 : o.initialState() : o == null ? void 0 : o.initialState);
524
524
  }));
525
525
  }, It = Dn("access", void 0, !0), kn = () => {
526
526
  const [e, t] = It();
@@ -649,8 +649,8 @@ const Bn = () => ({
649
649
  if (!!e)
650
650
  return G(e) ? e : e && pe(e) && e.indexOf(".") > 0 ? zt(e, ".") : [e];
651
651
  }, Ae = (e, t, o) => !t || !o ? e : $(e, (u) => {
652
- const n = B(o) ? o(u) : g(u, o), a = g(t, n);
653
- return !a || _t(a) || B(a) || !fe(a) ? u : Gt(u, a, (r, s) => {
652
+ const n = q(o) ? o(u) : g(u, o), a = g(t, n);
653
+ return !a || _t(a) || q(a) || !fe(a) ? u : Gt(u, a, (r, s) => {
654
654
  if (G(r) || G(s))
655
655
  return s;
656
656
  });
@@ -676,7 +676,7 @@ const Bn = () => ({
676
676
  };
677
677
  }), u;
678
678
  }, zn = (e, t) => g(e, ["extra", t]) || g(e, t), ee = (e, t) => {
679
- const o = V(e), u = `${t}-`, n = H(o, (r) => Ht(r, u)), a = q(e, n);
679
+ const o = V(e), u = `${t}-`, n = H(o, (r) => Ht(r, u)), a = B(e, n);
680
680
  return Wt(a, (r, s) => s.replace(u, ""));
681
681
  }, Ot = Symbol("pro-form-list"), At = () => re(Ot), $t = (e) => {
682
682
  se(Ot, e);
@@ -713,30 +713,30 @@ const Bn = () => ({
713
713
  const u = _()(j.FormItemKey), {
714
714
  formState: n,
715
715
  readonly: a
716
- } = Lt(), r = At(), s = Dt(e.name), m = r != null && r.pathList ? [...r.pathList, ...s] : s, d = () => {
717
- let y = g(n, m);
716
+ } = Lt(), r = At(), s = Dt(e.name), f = r != null && r.pathList ? [...r.pathList, ...s] : s, d = () => {
717
+ let y = g(n, f);
718
718
  G(y) || (y = []), y.push({
719
719
  [e.rowKey]: new Date().valueOf()
720
- }), ce(n, m, y);
720
+ }), ce(n, f, y);
721
721
  }, b = (y) => {
722
- const c = g(n, m);
722
+ const c = g(n, f);
723
723
  Y(c) <= 0 || c.splice(y, 1);
724
724
  };
725
725
  return () => u ? i(u, M(e, "rowKey"), {
726
726
  default: () => {
727
727
  var y;
728
- return [$(g(n, m), (c, l) => i(_n, {
728
+ return [$(g(n, f), (c, l) => i(_n, {
729
729
  key: c[e.rowKey] || l,
730
- pathList: [...m, l]
730
+ pathList: [...f, l]
731
731
  }, {
732
732
  default: () => {
733
- var v, f, p;
733
+ var v, m, p;
734
734
  return [i("div", {
735
735
  class: "pro-form-list-item"
736
736
  }, [(v = t.default) == null ? void 0 : v.call(t), !a.value && i(Q, null, [i("div", {
737
737
  class: "pro-form-list-item-add",
738
738
  onClick: d
739
- }, [(f = t.itemAdd) == null ? void 0 : f.call(t)]), i("div", {
739
+ }, [(m = t.itemAdd) == null ? void 0 : m.call(t)]), i("div", {
740
740
  class: "pro-form-list-item-minus",
741
741
  onClick: () => b(l)
742
742
  }, [(p = t.itemMinus) == null ? void 0 : p.call(t)])])])];
@@ -817,7 +817,7 @@ const nt = () => ({
817
817
  const {
818
818
  elementMap: a,
819
819
  formElementMap: r
820
- } = ne(), s = e.elementMap || a, m = e.formElementMap || r, d = e.model || be({}), b = Ke(d, e.showStateRules, e.showState), y = Ke(d, e.readonlyStateRules, e.readonlyState), c = Ke(d, e.disableStateRules, e.disableState), l = C(() => e.readonly), v = C(() => Ae(e.columns, e.columnState, (E) => ie(E))), f = (E) => {
820
+ } = ne(), s = e.elementMap || a, f = e.formElementMap || r, d = e.model || be({}), b = Ke(d, e.showStateRules, e.showState), y = Ke(d, e.readonlyStateRules, e.readonlyState), c = Ke(d, e.disableStateRules, e.disableState), l = C(() => e.readonly), v = C(() => Ae(e.columns, e.columnState, (E) => ie(E))), m = (E) => {
821
821
  const F = Vn(E, b, e.showStateRules);
822
822
  o("finish", F, E);
823
823
  }, p = z();
@@ -827,7 +827,7 @@ const nt = () => ({
827
827
  readonlyState: y,
828
828
  disableState: c,
829
829
  elementMap: s,
830
- formElementMap: m,
830
+ formElementMap: f,
831
831
  readonly: l,
832
832
  columns: v,
833
833
  formRef: p,
@@ -880,7 +880,7 @@ const nt = () => ({
880
880
  };
881
881
  }), K = (E) => {
882
882
  const F = ie(E);
883
- return F && t[F] ? t[F](E, d) : Ct(m, E, e.needRules);
883
+ return F && t[F] ? t[F](E, d) : Ct(f, E, e.needRules);
884
884
  }, D = C(() => e.row ? $(v.value, (E) => ({
885
885
  rowKey: ie(E),
886
886
  vNode: K(E),
@@ -891,11 +891,11 @@ const nt = () => ({
891
891
  class: e.clsName
892
892
  }, M(n, "onFinish"), M(e, ...O, ...A, "onFinish", "operate"), {
893
893
  model: d,
894
- onFinish: f
894
+ onFinish: m
895
895
  }), {
896
896
  default: () => {
897
897
  var E, F, w;
898
- return [(E = t.start) == null ? void 0 : E.call(t), m && Y(v.value) > 0 && i(Q, null, [e.row ? i(we, {
898
+ return [(E = t.start) == null ? void 0 : E.call(t), f && Y(v.value) > 0 && i(Q, null, [e.row ? i(we, {
899
899
  row: e.row,
900
900
  col: e.col,
901
901
  items: D.value
@@ -956,29 +956,29 @@ const at = () => ({
956
956
  slots: t,
957
957
  expose: o
958
958
  }) => {
959
- const n = _()(j.ProFormKey), a = e.model || be({}), r = new Set(e.debounceTypes), s = $(H(e.columns, (f) => {
960
- const p = Pt(f);
959
+ const n = _()(j.ProFormKey), a = e.model || be({}), r = new Set(e.debounceTypes), s = $(H(e.columns, (m) => {
960
+ const p = Pt(m);
961
961
  return r.has(p);
962
- }), (f) => ie(f)), m = C(() => $(e.columns, (f) => ({
963
- ...f,
964
- formItemProps: M(f.formItemProps, "required")
962
+ }), (m) => ie(m)), f = C(() => $(e.columns, (m) => ({
963
+ ...m,
964
+ formItemProps: M(m.formItemProps, "required")
965
965
  }))), d = z(), b = e.formMethods || [];
966
966
  o(de(b, d));
967
967
  const y = () => {
968
- var f;
969
- (f = d.value) == null || f.submit();
968
+ var m;
969
+ (m = d.value) == null || m.submit();
970
970
  }, c = Xt(() => {
971
971
  y();
972
972
  }, e.debounceTime);
973
973
  te(() => {
974
974
  e.initEmit && y();
975
975
  }, []);
976
- const l = (f, p, P) => ue(P, (h) => g(f, h) !== g(p, h));
977
- yt((f, p) => {
976
+ const l = (m, p, P) => ue(P, (h) => g(m, h) !== g(p, h));
977
+ yt((m, p) => {
978
978
  if (e.searchMode !== Ne.AUTO)
979
979
  return;
980
980
  const P = Y(e.debounceKeys) > 0 ? e.debounceKeys : s;
981
- if (Y(P) > 0 && l(f, p, P)) {
981
+ if (Y(P) > 0 && l(m, p, P)) {
982
982
  c();
983
983
  return;
984
984
  }
@@ -989,7 +989,7 @@ const at = () => ({
989
989
  ref: d,
990
990
  class: "pro-search-form"
991
991
  }, M(e, v, "columns"), {
992
- columns: m.value,
992
+ columns: f.value,
993
993
  model: a
994
994
  }), t) : null;
995
995
  }
@@ -1023,28 +1023,28 @@ const at = () => ({
1023
1023
  const {
1024
1024
  formExtraMap: s
1025
1025
  } = ne(), {
1026
- formState: m,
1026
+ formState: f,
1027
1027
  showState: d,
1028
1028
  readonlyState: b,
1029
1029
  disableState: y,
1030
1030
  readonly: c,
1031
1031
  elementMap: l
1032
- } = Lt(), v = At(), f = C(() => le(a.readonly) ? a.readonly : le(b[a.name]) ? b[a.name] : c.value), p = () => `${g(s == null ? void 0 : s.rulePrefixMap, u) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, P = C(() => s != null && s.rulePrefixMap ? a.required === !0 && !a.rules ? [{
1032
+ } = Lt(), v = At(), m = C(() => le(a.readonly) ? a.readonly : le(b[a.name]) ? b[a.name] : c.value), p = () => `${g(s == null ? void 0 : s.rulePrefixMap, u) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, P = C(() => s != null && s.rulePrefixMap ? a.required === !0 && !a.rules ? [{
1033
1033
  required: !0,
1034
1034
  message: p()
1035
1035
  }] : a.rules ? $(a.rules, (U) => (U.required && !U.message && (U.message = p()), U)) : a.rules : a.rules), h = Dt(a.name), S = v != null && v.pathList ? [...v.pathList, ...h] : h, k = (U) => {
1036
- ce(m, S, U);
1036
+ ce(f, S, U);
1037
1037
  }, R = V(rt());
1038
1038
  return () => {
1039
1039
  const U = g(d, S);
1040
1040
  if (le(U) && !U)
1041
1041
  return null;
1042
- const Z = g(m, S), K = g(l, u);
1042
+ const Z = g(f, S), K = g(l, u);
1043
1043
  return i(e, T(M(a, ...R, "name", "rules", "slots"), {
1044
1044
  name: S,
1045
1045
  rules: P.value
1046
1046
  }), {
1047
- default: () => [f.value ? i(Q, null, [K ? i(K, T({
1047
+ default: () => [m.value ? i(Q, null, [K ? i(K, T({
1048
1048
  value: Z
1049
1049
  }, a.fieldProps, {
1050
1050
  showProps: a.showProps
@@ -1080,7 +1080,7 @@ const Xn = () => ({
1080
1080
  slots: t
1081
1081
  }) => {
1082
1082
  const o = _(), u = e.elementKey ? o(e.elementKey) : void 0, n = C(() => {
1083
- const r = H(e.items, (s) => B(s.show) ? s.show() : le(s.show) ? s.show : !0);
1083
+ const r = H(e.items, (s) => q(s.show) ? s.show() : le(s.show) ? s.show : !0);
1084
1084
  return $(r, (s) => dt(e.itemState, s.value) ? {
1085
1085
  ...s,
1086
1086
  ...g(e.itemState, s.value)
@@ -1092,13 +1092,13 @@ const Xn = () => ({
1092
1092
  return () => i("div", {
1093
1093
  class: e.clsName
1094
1094
  }, [$(n.value, (r) => {
1095
- const s = B(r.disabled) ? r.disabled() : r.disabled, m = B(r.loading) ? r.loading() : r.loading, d = B(r.label) ? r.label() : r.label, b = B(r.extraProps) ? r.extraProps() : r.extraProps, y = {
1095
+ const s = q(r.disabled) ? r.disabled() : r.disabled, f = q(r.loading) ? r.loading() : r.loading, d = q(r.label) ? r.label() : r.label, b = q(r.extraProps) ? r.extraProps() : r.extraProps, y = {
1096
1096
  ...M(r, "show", "disabled", "element"),
1097
1097
  disabled: s
1098
1098
  };
1099
- return r.element && B(r.element) ? r.element(y) : t[r.value] ? t[r.value](y) : u ? i(u, T({
1099
+ return r.element && q(r.element) ? r.element(y) : t[r.value] ? t[r.value](y) : u ? i(u, T({
1100
1100
  disabled: s,
1101
- loading: m,
1101
+ loading: f,
1102
1102
  onClick: () => a(r)
1103
1103
  }, b), Wn(d) ? d : {
1104
1104
  default: () => [d]
@@ -1139,7 +1139,7 @@ const Xn = () => ({
1139
1139
  const o = _(), u = o(j.PopoverKey), n = o(j.CheckboxKey), {
1140
1140
  originColumns: a,
1141
1141
  selectIdsRef: r
1142
- } = Qn(), [s, m] = an();
1142
+ } = Qn(), [s, f] = an();
1143
1143
  let d = {};
1144
1144
  const b = (h) => {
1145
1145
  d[h] = !1;
@@ -1158,7 +1158,7 @@ const Xn = () => ({
1158
1158
  }), (h) => h.dataIndex);
1159
1159
  }, a), yt(() => {
1160
1160
  var h;
1161
- m(), y(), (h = e.onColumnSelectChange) == null || h.call(e, r.value);
1161
+ f(), y(), (h = e.onColumnSelectChange) == null || h.call(e, r.value);
1162
1162
  }, r);
1163
1163
  const v = C(() => {
1164
1164
  const h = Jt(a.value, (k) => {
@@ -1172,7 +1172,7 @@ const Xn = () => ({
1172
1172
  checked: h,
1173
1173
  indeterminate: h ? !1 : S
1174
1174
  };
1175
- }), f = (h) => {
1175
+ }), m = (h) => {
1176
1176
  var k;
1177
1177
  (fe(h) ? (k = h.target) == null ? void 0 : k.checked : h) ? r.value = $(a.value, (R) => R.dataIndex) : r.value = $(H(a.value, (R) => {
1178
1178
  var U;
@@ -1202,7 +1202,7 @@ const Xn = () => ({
1202
1202
  key: s.value,
1203
1203
  checked: v.value.checked,
1204
1204
  indeterminate: v.value.indeterminate,
1205
- onChange: f
1205
+ onChange: m
1206
1206
  }, {
1207
1207
  default: () => [Je("\u5217\u5C55\u793A")]
1208
1208
  }), i("a", {
@@ -1287,7 +1287,7 @@ const Xn = () => ({
1287
1287
  var O, A;
1288
1288
  return ((O = e.paginationState) == null ? void 0 : O.page) && ((A = e.paginationState) == null ? void 0 : A.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + D + 1 : D + 1;
1289
1289
  }
1290
- }), m = (D, O) => {
1290
+ }), f = (D, O) => {
1291
1291
  var A;
1292
1292
  if (e.operateItemClickMap && e.operateItemClickMap[O.value]) {
1293
1293
  e.operateItemClickMap[O.value](D, O);
@@ -1311,12 +1311,12 @@ const Xn = () => ({
1311
1311
  }) => {
1312
1312
  const E = $(A, (w) => ({
1313
1313
  ...w,
1314
- show: B(w.show) ? w.show(L) : w.show,
1315
- disabled: B(w.disabled) ? w.disabled(L) : w.disabled,
1316
- loading: B(w.loading) ? w.loading(L) : w.loading,
1317
- extraProps: B(w.extraProps) ? w.extraProps(L) : w.extraProps,
1318
- element: B(w.element) ? () => w.element(L, w) : w.element,
1319
- onClick: () => m(L, w)
1314
+ show: q(w.show) ? w.show(L) : w.show,
1315
+ disabled: q(w.disabled) ? w.disabled(L) : w.disabled,
1316
+ loading: q(w.loading) ? w.loading(L) : w.loading,
1317
+ extraProps: q(w.extraProps) ? w.extraProps(L) : w.extraProps,
1318
+ element: q(w.element) ? () => w.element(L, w) : w.element,
1319
+ onClick: () => f(L, w)
1320
1320
  })), F = X(V(d), (w, Xe) => ({
1321
1321
  ...w,
1322
1322
  [Xe]: (jt) => {
@@ -1342,12 +1342,12 @@ const Xn = () => ({
1342
1342
  [A]: !0
1343
1343
  }), {});
1344
1344
  return H(e.columns, (O) => g(D, O.dataIndex));
1345
- }), f = (D) => $(D, (O) => {
1345
+ }), m = (D) => $(D, (O) => {
1346
1346
  const A = {
1347
1347
  ...e.column,
1348
1348
  ...O
1349
1349
  };
1350
- return O.children && Y(O.children) > 0 ? (A.children = f(O.children), A) : (O.customRender || (A.customRender = ({
1350
+ return O.children && Y(O.children) > 0 ? (A.children = m(O.children), A) : (O.customRender || (A.customRender = ({
1351
1351
  text: L
1352
1352
  }) => {
1353
1353
  var F;
@@ -1360,7 +1360,7 @@ const Xn = () => ({
1360
1360
  }, L) || L || e.columnEmptyText;
1361
1361
  }), A);
1362
1362
  }), p = C(() => {
1363
- const D = Ae(v.value, e.columnState, (A) => A.dataIndex), O = f(D);
1363
+ const D = Ae(v.value, e.columnState, (A) => A.dataIndex), O = m(D);
1364
1364
  return e.serialNumber && O.unshift(s()), e.operate && e.operate.items && ue(e.operate.items, (A) => A.show) && O.push(b()), O;
1365
1365
  }), P = z();
1366
1366
  Zn({
@@ -1385,7 +1385,7 @@ const Xn = () => ({
1385
1385
  const D = c.value ? i(Jn, (O = e.toolbar) == null ? void 0 : O.columnSetting, K) : null;
1386
1386
  return i("div", T({
1387
1387
  class: e.clsName
1388
- }, q(u, "class")), [i("div", {
1388
+ }, B(u, "class")), [i("div", {
1389
1389
  class: `${e.clsName}-toolbar ${U.value}`
1390
1390
  }, [i("div", {
1391
1391
  ref: h,
@@ -1459,24 +1459,24 @@ const Xn = () => ({
1459
1459
  emit: o
1460
1460
  }) => {
1461
1461
  const n = _()(j.LoadingKey), a = z(), r = z(0);
1462
- Ue(a, (m) => {
1462
+ Ue(a, (f) => {
1463
1463
  var b;
1464
1464
  if (!e.fillMode)
1465
1465
  return;
1466
- const d = (b = m[0]) == null ? void 0 : b.contentRect;
1466
+ const d = (b = f[0]) == null ? void 0 : b.contentRect;
1467
1467
  r.value = d == null ? void 0 : d.height;
1468
1468
  });
1469
1469
  const s = V(xe.props);
1470
1470
  return () => {
1471
1471
  var b, y, c, l;
1472
- const m = e.title || t.title || e.subTitle || t.subTitle || t.extra, d = !!t.footer;
1472
+ const f = e.title || t.title || e.subTitle || t.subTitle || t.extra, d = !!t.footer;
1473
1473
  return i("div", {
1474
1474
  class: "pro-page"
1475
- }, [(b = t.start) == null ? void 0 : b.call(t), m && i(xe, T(q(e, s), {
1475
+ }, [(b = t.start) == null ? void 0 : b.call(t), f && i(xe, T(B(e, s), {
1476
1476
  onBack: () => {
1477
1477
  o("back");
1478
1478
  }
1479
- }), q(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && n ? i(n, T({
1479
+ }), B(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && n ? i(n, T({
1480
1480
  loading: !0
1481
1481
  }, e.loadingOpts), {
1482
1482
  default: () => [i("div", {
@@ -1527,20 +1527,20 @@ const Xn = () => ({
1527
1527
  const u = _(), n = u(j.ProSearchFormKey), a = u(j.ProTableKey), r = u(j.PaginationKey), s = e.pageState || be({
1528
1528
  ...na
1529
1529
  });
1530
- let m;
1530
+ let f;
1531
1531
  const d = () => {
1532
1532
  o("search", {
1533
- ...m,
1533
+ ...f,
1534
1534
  ...s
1535
1535
  });
1536
- }, b = (f, p) => {
1537
- m = f, s.page = p || 1, d();
1538
- }, y = (f, p) => {
1539
- s.page = f, s.pageSize = p, d();
1536
+ }, b = (m, p) => {
1537
+ f = m, s.page = p || 1, d();
1538
+ }, y = (m, p) => {
1539
+ s.page = m, s.pageSize = p, d();
1540
1540
  }, c = ee(t, "search"), l = ee(t, "table"), v = ee(t, "pagination");
1541
1541
  return () => {
1542
1542
  var p, P, h, S;
1543
- const f = t.search ? t.search({
1543
+ const m = t.search ? t.search({
1544
1544
  executeSearchWithResetPage: b,
1545
1545
  pageState: s
1546
1546
  }) : i(Q, null, [n && i(n, T({
@@ -1550,7 +1550,7 @@ const Xn = () => ({
1550
1550
  }), c)]);
1551
1551
  return i("div", {
1552
1552
  class: e.clsName
1553
- }, [(p = t.start) == null ? void 0 : p.call(t), !e.searchInTable && f, (P = t.divide) == null ? void 0 : P.call(t), t.table ? t.table({
1553
+ }, [(p = t.start) == null ? void 0 : p.call(t), !e.searchInTable && m, (P = t.divide) == null ? void 0 : P.call(t), t.table ? t.table({
1554
1554
  pageState: s
1555
1555
  }) : i(Q, null, [a && i(a, T({
1556
1556
  class: `${e.clsName}-table`,
@@ -1561,7 +1561,7 @@ const Xn = () => ({
1561
1561
  pagination: !1
1562
1562
  }, e.tableProps), {
1563
1563
  ...l,
1564
- toolbar: e.searchInTable ? () => l.toolbar ? l.toolbar(f) : f : l.toolbar
1564
+ toolbar: e.searchInTable ? () => l.toolbar ? l.toolbar(m) : m : l.toolbar
1565
1565
  })]), (h = t.divide2) == null ? void 0 : h.call(t), t.pagination ? t.pagination({
1566
1566
  executePageChange: y,
1567
1567
  pageState: s
@@ -1592,10 +1592,10 @@ const Xn = () => ({
1592
1592
  }) => {
1593
1593
  const {
1594
1594
  elementMap: o
1595
- } = ne(), u = e.elementMap || o, n = _(), a = n(j.DescriptionsKey), r = n(j.DescriptionsItemKey), s = C(() => Ae(e.columns, e.columnState, "dataIndex")), m = V(ye), d = V(ut());
1595
+ } = ne(), u = e.elementMap || o, n = _(), a = n(j.DescriptionsKey), r = n(j.DescriptionsItemKey), s = C(() => Ae(e.columns, e.columnState, "dataIndex")), f = V(ye), d = V(ut());
1596
1596
  return () => !a || !r ? null : i(a, T({
1597
1597
  class: e.clsName
1598
- }, M(e, ...m, ...d, "model")), {
1598
+ }, M(e, ...f, ...d, "model")), {
1599
1599
  default: () => {
1600
1600
  var b, y;
1601
1601
  return [(b = t.start) == null ? void 0 : b.call(t), $(s.value, (c) => {
@@ -1604,12 +1604,12 @@ const Xn = () => ({
1604
1604
  class: `${e.clsName}-item`
1605
1605
  }, g(c.extra, "desc")), {
1606
1606
  default: () => {
1607
- var f;
1608
- return [((f = t.value) == null ? void 0 : f.call(t, v, c)) || _e(u, c, v)];
1607
+ var m;
1608
+ return [((m = t.value) == null ? void 0 : m.call(t, v, c)) || _e(u, c, v)];
1609
1609
  },
1610
1610
  label: () => {
1611
- var f;
1612
- return ((f = t.label) == null ? void 0 : f.call(t, c)) || c.title;
1611
+ var m;
1612
+ return ((m = t.label) == null ? void 0 : m.call(t, c)) || c.title;
1613
1613
  }
1614
1614
  });
1615
1615
  }), (y = t.default) == null ? void 0 : y.call(t)];
@@ -1671,7 +1671,7 @@ const Xn = () => ({
1671
1671
  const u = (a = e.showProps) == null ? void 0 : a.content, n = e.value || Qt(e.value) ? e.value : u;
1672
1672
  return e.convert ? e.convert(n, e) : n;
1673
1673
  });
1674
- return () => i(sa, T(q(t, "style", "class"), M(e.showProps, "content"), {
1674
+ return () => i(sa, T(B(t, "style", "class"), M(e.showProps, "content"), {
1675
1675
  content: o.value
1676
1676
  }), null);
1677
1677
  }
@@ -1695,7 +1695,7 @@ const Xn = () => ({
1695
1695
  let u = e.value;
1696
1696
  return u && e.decimalFixed && (u = rn(u, e.decimalFixed || 2)), u && e.thousandDivision && (u = on(u)), e.convert ? e.convert(u, e) : u;
1697
1697
  });
1698
- return () => i($e, T(q(t, "style", "class"), {
1698
+ return () => i($e, T(B(t, "style", "class"), {
1699
1699
  value: o.value,
1700
1700
  showProps: e.showProps
1701
1701
  }), null);
@@ -1724,7 +1724,7 @@ const Xn = () => ({
1724
1724
  let r = e.value;
1725
1725
  return G(a) ? r = Be($(a, (s) => g(o.value, s, s)), e.splitStr) : r = g(o.value, a, e.value), e.convert ? e.convert(r, e) : r;
1726
1726
  }), n = C(() => g(e.colorMap, e.value));
1727
- return () => i($e, T(q(t, "style", "class"), {
1727
+ return () => i($e, T(B(t, "style", "class"), {
1728
1728
  style: `color:${n.value || ""}`,
1729
1729
  value: u.value,
1730
1730
  showProps: e.showProps
@@ -1761,7 +1761,7 @@ const Xn = () => ({
1761
1761
  let n = e.value;
1762
1762
  return G(e.value) ? n = Be($(e.value, (a) => g(o.value, a, a)), e.splitStr) : n = g(o.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
1763
1763
  });
1764
- return () => i($e, T(q(t, "style", "class"), {
1764
+ return () => i($e, T(B(t, "style", "class"), {
1765
1765
  value: u.value,
1766
1766
  showProps: e.showProps
1767
1767
  }), null);
@@ -1792,7 +1792,7 @@ const Xn = () => ({
1792
1792
  let n = e.value;
1793
1793
  return G(e.value) ? n = Be($(e.value, (a) => o(a) || ""), e.splitStr) : n = o(e.value) || "", e.convert ? e.convert(n, e) : n;
1794
1794
  });
1795
- return () => i($e, T(q(t, "style", "class"), {
1795
+ return () => i($e, T(B(t, "style", "class"), {
1796
1796
  value: u.value,
1797
1797
  showProps: e.showProps
1798
1798
  }), null);
@@ -1848,40 +1848,40 @@ const Xn = () => ({
1848
1848
  }) => {
1849
1849
  const n = _()(j.MenusKey), a = Ve(), r = C(() => {
1850
1850
  var v;
1851
- return cn(e.menus, (f) => {
1851
+ return cn(e.menus, (m) => {
1852
1852
  var h, S;
1853
1853
  const p = ((h = e.fieldNames) == null ? void 0 : h.value) || "value", P = ((S = e.fieldNames) == null ? void 0 : S.label) || "label";
1854
1854
  return {
1855
- ...M(f, p, P),
1856
- value: g(f, p),
1857
- label: g(f, P)
1855
+ ...M(m, p, P),
1856
+ value: g(m, p),
1857
+ label: g(m, P)
1858
1858
  };
1859
1859
  }, {
1860
1860
  children: ((v = e.fieldNames) == null ? void 0 : v.children) || "children",
1861
1861
  childrenName: "children"
1862
1862
  });
1863
- }), s = C(() => ln(r.value)), m = C(() => {
1864
- var f;
1863
+ }), s = C(() => ln(r.value)), f = C(() => {
1864
+ var m;
1865
1865
  const v = Qe(a.matched, (p) => !!g(s.value, p.name));
1866
- return v ? g(s.value, v.name) : (f = e.findCurrentTopName) == null ? void 0 : f.call(e, a, s.value);
1867
- }), d = C(() => m.value ? Ze(r.value, (v) => v.value === m.value).target : null), b = C(() => {
1868
- var f;
1866
+ return v ? g(s.value, v.name) : (m = e.findCurrentTopName) == null ? void 0 : m.call(e, a, s.value);
1867
+ }), d = C(() => f.value ? Ze(r.value, (v) => v.value === f.value).target : null), b = C(() => {
1868
+ var m;
1869
1869
  const v = Qe(a.matched, (p) => !!g(s.value, p.name));
1870
- return v ? v.name : (f = e.findActiveKey) == null ? void 0 : f.call(e, a, s.value);
1870
+ return v ? v.name : (m = e.findActiveKey) == null ? void 0 : m.call(e, a, s.value);
1871
1871
  }), y = (v) => {
1872
1872
  var p;
1873
- const f = Ze(r.value, (P) => P.value === v.value).target;
1874
- (p = e.onMenuItemClick) == null || p.call(e, f);
1873
+ const m = Ze(r.value, (P) => P.value === v.value).target;
1874
+ (p = e.onMenuItemClick) == null || p.call(e, m);
1875
1875
  }, c = ee(t, "header"), l = ee(t, "menu");
1876
1876
  return () => {
1877
1877
  var p, P, h;
1878
1878
  if (!n)
1879
1879
  return null;
1880
- const v = q(o, "class"), f = {
1880
+ const v = B(o, "class"), m = {
1881
1881
  class: "pro-layout-menus",
1882
1882
  options: r.value,
1883
1883
  activeKey: b.value,
1884
- ...q(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
1884
+ ...B(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
1885
1885
  };
1886
1886
  return e.layout === "vertical" ? i("main", T(v, {
1887
1887
  class: `${e.clsName} ${e.clsName}-${e.layout}`
@@ -1890,13 +1890,13 @@ const Xn = () => ({
1890
1890
  }, {
1891
1891
  menus: () => i(n, T({
1892
1892
  mode: "horizontal"
1893
- }, f), l),
1893
+ }, m), l),
1894
1894
  ...c
1895
1895
  }), i("div", {
1896
1896
  class: `${e.clsName}-section`
1897
1897
  }, [(p = t.default) == null ? void 0 : p.call(t)])]) : e.layout === "horizontal" ? i("main", T(v, {
1898
1898
  class: `${e.clsName} ${e.clsName}-${e.layout}`
1899
- }), [i(n, f, l), i("div", {
1899
+ }), [i(n, m, l), i("div", {
1900
1900
  class: `${e.clsName}-structure`
1901
1901
  }, [i(ke, {
1902
1902
  class: `${e.clsName}-header`
@@ -1911,8 +1911,8 @@ const Xn = () => ({
1911
1911
  class: "pro-layout-menus",
1912
1912
  mode: "horizontal",
1913
1913
  options: $(r.value, (S) => M(S, "children")),
1914
- activeKey: m.value
1915
- }, q(e, "convertSubMenuProps", "convertMenuItemProps"), {
1914
+ activeKey: f.value
1915
+ }, B(e, "convertSubMenuProps", "convertMenuItemProps"), {
1916
1916
  onMenuItemClick: y
1917
1917
  }), l),
1918
1918
  ...c
@@ -1920,7 +1920,7 @@ const Xn = () => ({
1920
1920
  class: `${e.clsName}-structure`
1921
1921
  }, [d.value && Y(d.value.children) > 0 && i(n, T({
1922
1922
  options: d.value.children
1923
- }, M(f, "options")), l), i("div", {
1923
+ }, M(m, "options")), l), i("div", {
1924
1924
  class: `${e.clsName}-section`
1925
1925
  }, [(h = t.default) == null ? void 0 : h.call(t)])])]);
1926
1926
  };
@@ -1952,7 +1952,7 @@ const Xn = () => ({
1952
1952
  }));
1953
1953
  }
1954
1954
  return [];
1955
- }, r = C(() => a(e.value)), s = C(() => a(e.modelValue)), m = (d, b) => {
1955
+ }, r = C(() => a(e.value)), s = C(() => a(e.modelValue)), f = (d, b) => {
1956
1956
  let y = "";
1957
1957
  d && Y(d) > 0 && (y = dn($(d, (c) => {
1958
1958
  const l = e.fieldNames;
@@ -1966,9 +1966,9 @@ const Xn = () => ({
1966
1966
  return () => n ? i(n, T({
1967
1967
  class: "pro-uploader-text",
1968
1968
  value: r.value,
1969
- "onUpdate:value": (d) => m(d, "update:value"),
1969
+ "onUpdate:value": (d) => f(d, "update:value"),
1970
1970
  modelValue: s.value,
1971
- "onUpdate:modelValue": (d) => m(d, "update:modelValue")
1971
+ "onUpdate:modelValue": (d) => f(d, "update:modelValue")
1972
1972
  }, M(e, "value", "modelValue", "fieldNames")), t) : null;
1973
1973
  }
1974
1974
  }), Qa = I({
@@ -1994,12 +1994,12 @@ const Xn = () => ({
1994
1994
  let r = e.value;
1995
1995
  return r && pe(r) && (r = vt(r)), r && !G(r) && fe(r) && u(r) && (r = [r]), G(r) ? $(H(r, (s) => u(s)), (s) => {
1996
1996
  var y, c, l;
1997
- const m = g(s, ((y = e.fieldNames) == null ? void 0 : y.id) || "id"), d = g(s, ((c = e.fieldNames) == null ? void 0 : c.name) || "name"), b = g(s, ((l = e.fieldNames) == null ? void 0 : l.name) || "size");
1997
+ const f = g(s, ((y = e.fieldNames) == null ? void 0 : y.id) || "id"), d = g(s, ((c = e.fieldNames) == null ? void 0 : c.name) || "name"), b = g(s, ((l = e.fieldNames) == null ? void 0 : l.name) || "size");
1998
1998
  return {
1999
1999
  ...s,
2000
- id: m,
2000
+ id: f,
2001
2001
  size: b,
2002
- name: d || m
2002
+ name: d || f
2003
2003
  };
2004
2004
  }) : [];
2005
2005
  }), a = (r) => {
@@ -2009,14 +2009,14 @@ const Xn = () => ({
2009
2009
  var r, s;
2010
2010
  return i("div", {
2011
2011
  class: "pro-upload-list"
2012
- }, [(r = t.start) == null ? void 0 : r.call(t), $(n.value, (m) => {
2012
+ }, [(r = t.start) == null ? void 0 : r.call(t), $(n.value, (f) => {
2013
2013
  var d;
2014
2014
  return i("div", {
2015
2015
  class: "pro-upload-list-item"
2016
2016
  }, [i("span", {
2017
2017
  class: "pro-upload-list-item-title",
2018
- onClick: () => a(m)
2019
- }, [m.name]), (d = t.extra) == null ? void 0 : d.call(t, m)]);
2018
+ onClick: () => a(f)
2019
+ }, [f.name]), (d = t.extra) == null ? void 0 : d.call(t, f)]);
2020
2020
  }), (s = t.default) == null ? void 0 : s.call(t)]);
2021
2021
  };
2022
2022
  }
@@ -2059,17 +2059,17 @@ const ia = () => ({
2059
2059
  state: n,
2060
2060
  sendEvent: a,
2061
2061
  sendRequest: r
2062
- } = Ce(), s = C(() => Ae(e.columns, e.columnState, (K) => ie(K))), m = (K, D = !0) => Ct(e.formElementMap, K, D), d = (K, D) => _e(u, K, D), b = (K, D) => {
2062
+ } = Ce(), s = C(() => Ae(e.columns, e.columnState, (K) => ie(K))), f = (K, D = !0) => Ct(e.formElementMap, K, D), d = (K, D) => _e(u, K, D), b = (K, D) => {
2063
2063
  const O = H(s.value, (A) => {
2064
2064
  const L = g(A, ["extra", K]) || g(A, K);
2065
2065
  return D ? L !== !1 : L;
2066
2066
  });
2067
2067
  return mt(O, (A) => g(A, ["extra", `${K}Sort`]) || g(A, `${K}Sort`));
2068
2068
  }, y = C(() => b("form", !0)), c = C(() => b("detail", !0)), l = C(() => b("table", !0)), v = C(() => b("search"));
2069
- let f;
2069
+ let m;
2070
2070
  const p = (K) => {
2071
2071
  r(N.LIST, {
2072
- ...f,
2072
+ ...m,
2073
2073
  ...K
2074
2074
  });
2075
2075
  }, P = (K) => {
@@ -2094,7 +2094,7 @@ const ia = () => ({
2094
2094
  } = D;
2095
2095
  switch (A) {
2096
2096
  case N.LIST:
2097
- L === x.EMIT && (f = E, p());
2097
+ L === x.EMIT && (m = E, p());
2098
2098
  return;
2099
2099
  case N.ADD:
2100
2100
  L === x.EXECUTE && r(N.ADD, E, n.detailData);
@@ -2115,7 +2115,7 @@ const ia = () => ({
2115
2115
  return la({
2116
2116
  columns: s,
2117
2117
  getSignColumns: b,
2118
- getFormItemVNode: m,
2118
+ getFormItemVNode: f,
2119
2119
  getItemVNode: d,
2120
2120
  elementMap: u,
2121
2121
  formElementMap: e.formElementMap,
@@ -2158,7 +2158,7 @@ const ia = () => ({
2158
2158
  formElementMap: n
2159
2159
  } = ne(), a = z(), r = z(), s = e.curdState || be({
2160
2160
  detailData: {}
2161
- }), m = {
2161
+ }), f = {
2162
2162
  [N.LIST]: {
2163
2163
  convertParams: (c) => c,
2164
2164
  convertData: (c) => {
@@ -2169,7 +2169,7 @@ const ia = () => ({
2169
2169
  stateName: "listData"
2170
2170
  },
2171
2171
  [N.DETAIL]: {
2172
- convertParams: (c, l) => q(c, l),
2172
+ convertParams: (c, l) => B(c, l),
2173
2173
  convertData: (c) => {
2174
2174
  var l;
2175
2175
  return (l = c.res) == null ? void 0 : l.data;
@@ -2199,16 +2199,16 @@ const ia = () => ({
2199
2199
  label: "\u7F16\u8F91"
2200
2200
  },
2201
2201
  [N.DELETE]: {
2202
- convertParams: (c, l) => q(c, l),
2202
+ convertParams: (c, l) => B(c, l),
2203
2203
  label: "\u5220\u9664"
2204
2204
  }
2205
2205
  }, d = $(e.operates, (c) => {
2206
- var p;
2207
- const v = {
2208
- ...g(m, c.action),
2209
- ...c
2206
+ var m;
2207
+ const l = g(f, c.action), v = ((m = e.convertOperate) == null ? void 0 : m.call(e, c, l)) || c;
2208
+ return {
2209
+ ...l,
2210
+ ...v
2210
2211
  };
2211
- return ((p = e.convertOperate) == null ? void 0 : p.call(e, v)) || v;
2212
2212
  }), b = H(d, (c) => c.actor), y = V(M(Le.props, "state", "requests"));
2213
2213
  return o({
2214
2214
  sendCurdEvent: (c) => {
@@ -2229,7 +2229,7 @@ const ia = () => ({
2229
2229
  }
2230
2230
  }), () => i(Le, T({
2231
2231
  ref: a
2232
- }, q(e, y), {
2232
+ }, B(e, y), {
2233
2233
  elementMap: e.elementMap || u,
2234
2234
  state: s,
2235
2235
  requests: b
@@ -2261,19 +2261,19 @@ const ia = () => ({
2261
2261
  listProps: a,
2262
2262
  getOperate: r,
2263
2263
  refreshList: s
2264
- } = J(), m = (l = a == null ? void 0 : a.value) == null ? void 0 : l.pageState, d = (v) => {
2265
- const f = r(N.DETAIL);
2266
- f != null && f.actor ? o(N.DETAIL, v, u) : t({
2264
+ } = J(), f = (l = a == null ? void 0 : a.value) == null ? void 0 : l.pageState, d = (v) => {
2265
+ const m = r(N.DETAIL);
2266
+ m != null && m.actor ? o(N.DETAIL, v, u) : t({
2267
2267
  type: "detailData",
2268
2268
  payload: Zt(v)
2269
2269
  });
2270
2270
  }, b = (v, {
2271
- record: f
2271
+ record: m
2272
2272
  }) => {
2273
2273
  v === x.EMIT && (t({
2274
2274
  type: "mode",
2275
2275
  payload: oe.DETAIL
2276
- }), d(f));
2276
+ }), d(m));
2277
2277
  }, y = (v) => {
2278
2278
  v === x.EMIT ? (t({
2279
2279
  type: "mode",
@@ -2281,7 +2281,7 @@ const ia = () => ({
2281
2281
  }), t({
2282
2282
  type: "detailData",
2283
2283
  payload: e.defaultAddRecord || {}
2284
- })) : v === x.SUCCESS && (m && (m.page = 1), s(), n.addAction === ge.CONTINUE ? t({
2284
+ })) : v === x.SUCCESS && (f && (f.page = 1), s(), n.addAction === ge.CONTINUE ? t({
2285
2285
  type: "detailData",
2286
2286
  payload: e.defaultAddRecord || {}
2287
2287
  }) : t({
@@ -2289,26 +2289,26 @@ const ia = () => ({
2289
2289
  payload: void 0
2290
2290
  }));
2291
2291
  }, c = (v, {
2292
- record: f
2292
+ record: m
2293
2293
  }) => {
2294
2294
  v === x.EMIT ? (t({
2295
2295
  type: "mode",
2296
2296
  payload: oe.EDIT
2297
- }), d(f)) : v === x.SUCCESS && (t({
2297
+ }), d(m)) : v === x.SUCCESS && (t({
2298
2298
  type: "mode",
2299
2299
  payload: void 0
2300
2300
  }), s());
2301
2301
  };
2302
2302
  return He(({
2303
2303
  type: v,
2304
- payload: f,
2304
+ payload: m,
2305
2305
  source: p
2306
2306
  }) => {
2307
2307
  if (p)
2308
2308
  return;
2309
- let P = v, h = f == null ? void 0 : f.type;
2310
- const S = f == null ? void 0 : f.record;
2311
- switch (P === he.Success && (P = g(f, ["requestOpts", "action"]), h = x.SUCCESS), P) {
2309
+ let P = v, h = m == null ? void 0 : m.type;
2310
+ const S = m == null ? void 0 : m.record;
2311
+ switch (P === he.Success && (P = g(m, ["requestOpts", "action"]), h = x.SUCCESS), P) {
2312
2312
  case N.DETAIL:
2313
2313
  b(h, {
2314
2314
  record: S
@@ -2342,7 +2342,7 @@ const ia = () => ({
2342
2342
  }, M(e, n)), {
2343
2343
  default: () => {
2344
2344
  var s;
2345
- return [i(Re, q(e, n), null), (s = t.default) == null ? void 0 : s.call(t)];
2345
+ return [i(Re, B(e, n), null), (s = t.default) == null ? void 0 : s.call(t)];
2346
2346
  }
2347
2347
  }) : null;
2348
2348
  }
@@ -2378,12 +2378,12 @@ const ia = () => ({
2378
2378
  type: "addAction",
2379
2379
  payload: void 0
2380
2380
  }));
2381
- }, m = (y, {
2381
+ }, f = (y, {
2382
2382
  record: c
2383
2383
  }) => {
2384
2384
  y === x.EMIT ? t.push({
2385
2385
  path: `${o.path}/detail`,
2386
- query: q(c, a)
2386
+ query: B(c, a)
2387
2387
  }) : y === x.PAGE && (u({
2388
2388
  type: "mode",
2389
2389
  payload: oe.DETAIL
@@ -2406,7 +2406,7 @@ const ia = () => ({
2406
2406
  }) => {
2407
2407
  y === x.EMIT ? t.push({
2408
2408
  path: `${o.path}/edit`,
2409
- query: q(c, a)
2409
+ query: B(c, a)
2410
2410
  }) : y === x.PAGE ? (u({
2411
2411
  type: "mode",
2412
2412
  payload: oe.EDIT
@@ -2419,22 +2419,22 @@ const ia = () => ({
2419
2419
  }) => {
2420
2420
  if (l)
2421
2421
  return;
2422
- let v = y, f = c == null ? void 0 : c.type;
2422
+ let v = y, m = c == null ? void 0 : c.type;
2423
2423
  const p = c == null ? void 0 : c.record;
2424
- switch (v === he.Success && (v = g(c, ["requestOpts", "action"]), f = x.SUCCESS), v) {
2424
+ switch (v === he.Success && (v = g(c, ["requestOpts", "action"]), m = x.SUCCESS), v) {
2425
2425
  case N.LIST:
2426
- s(f);
2426
+ s(m);
2427
2427
  break;
2428
2428
  case N.DETAIL:
2429
- m(f, {
2429
+ f(m, {
2430
2430
  record: p
2431
2431
  });
2432
2432
  break;
2433
2433
  case N.ADD:
2434
- d(f);
2434
+ d(m);
2435
2435
  break;
2436
2436
  case N.EDIT:
2437
- b(f, {
2437
+ b(m, {
2438
2438
  record: p
2439
2439
  });
2440
2440
  break;
@@ -2458,7 +2458,7 @@ const ia = () => ({
2458
2458
  }, M(e, n)), {
2459
2459
  default: () => {
2460
2460
  var a;
2461
- return [i(Fe, q(e, n), null), (a = t.default) == null ? void 0 : a.call(t)];
2461
+ return [i(Fe, B(e, n), null), (a = t.default) == null ? void 0 : a.call(t)];
2462
2462
  }
2463
2463
  });
2464
2464
  }
@@ -2483,7 +2483,8 @@ const ia = () => ({
2483
2483
  });
2484
2484
  }, s = _()(j.ButtonKey);
2485
2485
  return () => n != null && n.show ? t.default ? t.default(n, a) : s ? i(s, T({
2486
- class: "pro-curd-add-button"
2486
+ class: "pro-curd-add-button",
2487
+ disabled: q(n.disabled) ? n.disabled() : n.disabled
2487
2488
  }, e.buttonProps, {
2488
2489
  onClick: a
2489
2490
  }), {
@@ -2512,15 +2513,15 @@ const ia = () => ({
2512
2513
  searchColumns: a,
2513
2514
  tableColumns: r,
2514
2515
  sendCurdEvent: s,
2515
- operates: m
2516
+ operates: f
2516
2517
  } = J(), d = $(
2517
- H(m, (P) => {
2518
+ H(f, (P) => {
2518
2519
  const h = P.action;
2519
2520
  return h === N.DETAIL || h === N.EDIT || h === N.DELETE || P.tableOperate;
2520
2521
  }),
2521
2522
  (P) => {
2522
2523
  const h = {
2523
- ...q(P, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2524
+ ...B(P, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2524
2525
  value: P.action
2525
2526
  };
2526
2527
  return h.onClick || (h.onClick = (S) => {
@@ -2573,7 +2574,9 @@ const ia = () => ({
2573
2574
  }), {
2574
2575
  "search-end": (P = e.addConfig) != null && P.inSearch ? () => {
2575
2576
  var S;
2576
- return i(ct, (S = e.addConfig) == null ? void 0 : S.buttonProps, null);
2577
+ return i("div", {
2578
+ class: "pro-curd-list-search-end"
2579
+ }, [i(ct, (S = e.addConfig) == null ? void 0 : S.buttonProps, null)]);
2577
2580
  } : void 0,
2578
2581
  "table-toolbarExtra": (h = e.addConfig) != null && h.inTable ? (S) => {
2579
2582
  var k;
@@ -2609,11 +2612,11 @@ const ia = () => ({
2609
2612
  formElementMap: a,
2610
2613
  curdState: r,
2611
2614
  formColumns: s,
2612
- getSignColumns: m,
2615
+ getSignColumns: f,
2613
2616
  sendCurdEvent: d
2614
2617
  } = J(), b = z();
2615
2618
  o(de(e.formMethods || [], b));
2616
- const y = C(() => e.signName ? m(e.signName) : s.value), c = () => {
2619
+ const y = C(() => e.signName ? f(e.signName) : s.value), c = () => {
2617
2620
  var h;
2618
2621
  r.addAction = ge.NORMAL, (h = b.value) == null || h.submit();
2619
2622
  }, l = () => {
@@ -2639,7 +2642,7 @@ const ia = () => ({
2639
2642
  },
2640
2643
  show: !1
2641
2644
  }
2642
- ], f = (h) => {
2645
+ ], m = (h) => {
2643
2646
  u.onFinish || (r.mode === N.EDIT ? d({
2644
2647
  action: N.EDIT,
2645
2648
  type: x.EXECUTE,
@@ -2666,7 +2669,7 @@ const ia = () => ({
2666
2669
  onContinue: l,
2667
2670
  ...e.operate
2668
2671
  } : void 0,
2669
- onFinish: f
2672
+ onFinish: m
2670
2673
  }), t) : null;
2671
2674
  }
2672
2675
  }), nr = I(() => {
@@ -2725,13 +2728,13 @@ const ia = () => ({
2725
2728
  getOperate: r
2726
2729
  } = J(), s = () => {
2727
2730
  a.mode = void 0, ft(a.detailData, {}), a.detailLoading = !1, a.addAction = void 0;
2728
- }, m = V(it());
2731
+ }, f = V(it());
2729
2732
  return () => {
2730
2733
  var b;
2731
2734
  const d = a.mode;
2732
2735
  return !ue(e.validMode, (y) => y === d) || !u ? null : i(u, T({
2733
2736
  class: "pro-curd-modal"
2734
- }, M(e, m), {
2737
+ }, M(e, f), {
2735
2738
  visible: ue(e.validMode, (y) => y === d),
2736
2739
  title: e.title || ((b = r(a.mode)) == null ? void 0 : b.label),
2737
2740
  confirmLoading: a.operateLoading,