xph-crud 0.1.2 → 0.1.4

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.js CHANGED
@@ -72,7 +72,7 @@ var fr;
72
72
  function vo() {
73
73
  return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
74
74
  var e = Ee, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), f = Symbol.iterator, x = "@@iterator";
75
- function j(l) {
75
+ function R(l) {
76
76
  if (l === null || typeof l != "object")
77
77
  return null;
78
78
  var m = f && l[f] || l[x];
@@ -96,14 +96,14 @@ function vo() {
96
96
  K.unshift("Warning: " + m), Function.prototype.apply.call(console[l], console, K);
97
97
  }
98
98
  }
99
- var U = !1, V = !1, q = !1, H = !1, D = !1, R;
100
- R = Symbol.for("react.module.reference");
99
+ var U = !1, V = !1, q = !1, H = !1, j = !1, D;
100
+ D = Symbol.for("react.module.reference");
101
101
  function y(l) {
102
- return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || D || l === o || l === u || l === d || H || l === v || U || V || q || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === h || l.$$typeof === s || l.$$typeof === a || l.$$typeof === c || // This needs to include all possible module reference object
102
+ return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || j || l === o || l === u || l === d || H || l === v || U || V || q || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === h || l.$$typeof === s || l.$$typeof === a || l.$$typeof === c || // This needs to include all possible module reference object
103
103
  // types supported by any Flight configuration anywhere since
104
104
  // we don't know which Flight build this will end up being used
105
105
  // with.
106
- l.$$typeof === R || l.getModuleId !== void 0));
106
+ l.$$typeof === D || l.getModuleId !== void 0));
107
107
  }
108
108
  function C(l, m, S) {
109
109
  var I = l.displayName;
@@ -563,7 +563,7 @@ Check the top-level render call using <` + S + ">.");
563
563
  else if (St(l))
564
564
  l._store && (l._store.validated = !0);
565
565
  else if (l) {
566
- var G = j(l);
566
+ var G = R(l);
567
567
  if (typeof G == "function" && G !== l.entries)
568
568
  for (var K = G.call(l), Y; !(Y = K.next()).done; )
569
569
  St(Y.value) && sr(Y.value, m);
@@ -1265,9 +1265,9 @@ function gn(e, t, r, n, o, i) {
1265
1265
  for (i.set(e, t), i.set(t, e); ++h < a; ) {
1266
1266
  var f = e[h], x = t[h];
1267
1267
  if (n)
1268
- var j = s ? n(x, f, h, t, e, i) : n(f, x, h, e, t, i);
1269
- if (j !== void 0) {
1270
- if (j)
1268
+ var R = s ? n(x, f, h, t, e, i) : n(f, x, h, e, t, i);
1269
+ if (R !== void 0) {
1270
+ if (R)
1271
1271
  continue;
1272
1272
  p = !1;
1273
1273
  break;
@@ -1350,7 +1350,7 @@ function Ua(e, t, r, n, o, i) {
1350
1350
  return v == t && f == e;
1351
1351
  var x = !0;
1352
1352
  i.set(e, t), i.set(t, e);
1353
- for (var j = s; ++h < c; ) {
1353
+ for (var R = s; ++h < c; ) {
1354
1354
  p = a[h];
1355
1355
  var k = e[p], E = t[p];
1356
1356
  if (n)
@@ -1359,9 +1359,9 @@ function Ua(e, t, r, n, o, i) {
1359
1359
  x = !1;
1360
1360
  break;
1361
1361
  }
1362
- j || (j = p == "constructor");
1362
+ R || (R = p == "constructor");
1363
1363
  }
1364
- if (x && !j) {
1364
+ if (x && !R) {
1365
1365
  var U = e.constructor, V = t.constructor;
1366
1366
  U != V && "constructor" in e && "constructor" in t && !(typeof U == "function" && U instanceof U && typeof V == "function" && V instanceof V) && (x = !1);
1367
1367
  }
@@ -1382,8 +1382,8 @@ function qa(e, t, r, n, o, i) {
1382
1382
  if (!(r & Va)) {
1383
1383
  var v = d && kr.call(e, "__wrapped__"), f = h && kr.call(t, "__wrapped__");
1384
1384
  if (v || f) {
1385
- var x = v ? e.value() : e, j = f ? t.value() : t;
1386
- return i || (i = new Se()), o(x, j, r, n, i);
1385
+ var x = v ? e.value() : e, R = f ? t.value() : t;
1386
+ return i || (i = new Se()), o(x, R, r, n, i);
1387
1387
  }
1388
1388
  }
1389
1389
  return p ? (i || (i = new Se()), Ua(e, t, r, n, o, i)) : !1;
@@ -1743,8 +1743,8 @@ const hc = (e) => {
1743
1743
  }, []), c = Te((d) => {
1744
1744
  const h = r.current, { translateX: p, translateY: v } = s(h);
1745
1745
  let f = d.clientX - o.current, x = d.clientY - i.current;
1746
- const j = -p, k = -v, E = e.current.scrollWidth - h.offsetWidth - p, M = e.current.scrollHeight - h.offsetHeight - v;
1747
- f < j && (f = j), f > E && (f = E), x < k && (x = k), x > M && (x = M), n({ left: f, top: x });
1746
+ const R = -p, k = -v, E = e.current.scrollWidth - h.offsetWidth - p, M = e.current.scrollHeight - h.offsetHeight - v;
1747
+ f < R && (f = R), f > E && (f = E), x < k && (x = k), x > M && (x = M), n({ left: f, top: x });
1748
1748
  }, []), u = Te(() => {
1749
1749
  document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
1750
1750
  }, []);
@@ -1770,13 +1770,13 @@ const hc = (e) => {
1770
1770
  },
1771
1771
  onMaximize: (v) => {
1772
1772
  if (v === "minimize" && s(!1), v === "maximize") {
1773
- const { scrollWidth: f, scrollHeight: x } = e.current, j = Math.floor(f), k = Math.floor(x), E = Math.floor(f / 2), M = Math.floor(x / 2);
1774
- n({ width: j, height: k }), o({ top: M, left: E }), c(!0);
1773
+ const { scrollWidth: f, scrollHeight: x } = e.current, R = Math.floor(f), k = Math.floor(x), E = Math.floor(f / 2), M = Math.floor(x / 2);
1774
+ n({ width: R, height: k }), o({ top: M, left: E }), c(!0);
1775
1775
  }
1776
1776
  },
1777
1777
  onRecovery: () => {
1778
- const { top: v, left: f, width: x, height: j } = t.current;
1779
- n({ width: x, height: j }), o({ top: v, left: f }), c(!1);
1778
+ const { top: v, left: f, width: x, height: R } = t.current;
1779
+ n({ width: x, height: R }), o({ top: v, left: f }), c(!1);
1780
1780
  },
1781
1781
  onClose: () => {
1782
1782
  s(!1), c(!1), r();
@@ -1977,15 +1977,15 @@ const hc = (e) => {
1977
1977
  display: "none"
1978
1978
  }
1979
1979
  }
1980
- ), []), s = W(null), a = W(), c = W(!1), [u, d] = ee(!1), h = W(0), p = W(0), v = (H, D) => {
1981
- c.current = !0, d(!0), a.current = D;
1982
- const { clientX: R, clientY: y } = H;
1983
- h.current = R, p.current = y;
1980
+ ), []), s = W(null), a = W(), c = W(!1), [u, d] = ee(!1), h = W(0), p = W(0), v = (H, j) => {
1981
+ c.current = !0, d(!0), a.current = j;
1982
+ const { clientX: D, clientY: y } = H;
1983
+ h.current = D, p.current = y;
1984
1984
  const C = parseFloat(t.current.style.left), z = parseFloat(t.current.style.top), L = t.current.offsetWidth, _ = t.current.offsetHeight;
1985
1985
  s.current.style.display = "block", s.current.style.left = `${C - 0.5 * L}px`, s.current.style.top = `${z - 0.5 * _}px`, s.current.style.width = `${L}px`, s.current.style.height = `${_}px`;
1986
1986
  }, f = (H) => {
1987
1987
  if (c.current) {
1988
- const { clientX: D, clientY: R } = H, y = D - h.current, C = R - p.current, z = parseFloat(s.current.style.left), L = parseFloat(s.current.style.top), _ = s.current.offsetWidth, b = s.current.offsetHeight, w = r.current.width, P = r.current.height, T = e.current.scrollWidth, O = e.current.scrollHeight;
1988
+ const { clientX: j, clientY: D } = H, y = j - h.current, C = D - p.current, z = parseFloat(s.current.style.left), L = parseFloat(s.current.style.top), _ = s.current.offsetWidth, b = s.current.offsetHeight, w = r.current.width, P = r.current.height, T = e.current.scrollWidth, O = e.current.scrollHeight;
1989
1989
  let $ = _, F = b, A = z, N = L;
1990
1990
  switch (a.current) {
1991
1991
  case "lt": {
@@ -2005,15 +2005,15 @@ const hc = (e) => {
2005
2005
  break;
2006
2006
  }
2007
2007
  }
2008
- s.current.style.left = `${A}px`, s.current.style.top = `${N}px`, s.current.style.width = `${$}px`, s.current.style.height = `${F}px`, h.current = D, p.current = R;
2008
+ s.current.style.left = `${A}px`, s.current.style.top = `${N}px`, s.current.style.width = `${$}px`, s.current.style.height = `${F}px`, h.current = j, p.current = D;
2009
2009
  }
2010
2010
  }, x = () => {
2011
2011
  if (c.current) {
2012
2012
  c.current = !1, d(!1), s.current.style.display = "none";
2013
- const { left: H, top: D, width: R, height: y } = s.current.style, C = parseFloat(H) + 0.5 * parseFloat(R), z = parseFloat(D) + 0.5 * parseFloat(y), L = parseFloat(R), _ = parseFloat(y);
2013
+ const { left: H, top: j, width: D, height: y } = s.current.style, C = parseFloat(H) + 0.5 * parseFloat(D), z = parseFloat(j) + 0.5 * parseFloat(y), L = parseFloat(D), _ = parseFloat(y);
2014
2014
  o({ left: C, top: z }), n({ width: L, height: _ });
2015
2015
  }
2016
- }, j = (H) => v(H, "lt"), k = (H) => v(H, "rt"), E = (H) => v(H, "rb"), M = (H) => v(H, "lb"), U = Te((H) => {
2016
+ }, R = (H) => v(H, "lt"), k = (H) => v(H, "rt"), E = (H) => v(H, "rb"), M = (H) => v(H, "lb"), U = Te((H) => {
2017
2017
  f(H);
2018
2018
  }, []), V = Te(() => {
2019
2019
  x();
@@ -2025,7 +2025,7 @@ const hc = (e) => {
2025
2025
  }), []), {
2026
2026
  resizingState: u,
2027
2027
  DashedBox: i,
2028
- onMousedownResizeLt: j,
2028
+ onMousedownResizeLt: R,
2029
2029
  onMousedownResizeRt: k,
2030
2030
  onMousedownResizeRb: E,
2031
2031
  onMousedownResizeLb: M
@@ -2036,23 +2036,23 @@ const hc = (e) => {
2036
2036
  baseDialogProps: r
2037
2037
  }) => {
2038
2038
  const [n, o] = ee(0), i = () => {
2039
- o((D) => D + 1);
2039
+ o((j) => j + 1);
2040
2040
  };
2041
2041
  Z(() => {
2042
- const D = new ResizeObserver(i);
2043
- return D.observe(e), () => {
2044
- D.unobserve(e), D.disconnect();
2042
+ const j = new ResizeObserver(i);
2043
+ return j.observe(e), () => {
2044
+ j.unobserve(e), j.disconnect();
2045
2045
  };
2046
2046
  }, [e]);
2047
2047
  const { containerSizeTarget: s, setContainerSizeTarget: a } = Rc({
2048
2048
  container: e
2049
- }), { width: c, height: u } = r, { width: d, height: h } = t, p = d || c, v = h || u, { clientWidth: f, clientHeight: x } = s.current, j = p ? p > f ? f : p : 0, k = v ? v > x ? x : v : "unset", E = W(j), M = W(k), U = (D) => {
2050
- E.current = D.width, M.current = D.height;
2051
- }, V = W(Math.floor(f / 2)), q = W(Math.floor(x / 2)), H = (D) => {
2052
- V.current = D.left, q.current = D.top;
2049
+ }), { width: c, height: u } = r, { width: d, height: h } = t, p = d || c, v = h || u, { clientWidth: f, clientHeight: x } = s.current, R = p ? p > f ? f : p : 0, k = v ? v > x ? x : v : "unset", E = W(R), M = W(k), U = (j) => {
2050
+ E.current = j.width, M.current = j.height;
2051
+ }, V = W(Math.floor(f / 2)), q = W(Math.floor(x / 2)), H = (j) => {
2052
+ V.current = j.left, q.current = j.top;
2053
2053
  };
2054
2054
  return Z(() => {
2055
- n !== 0 && (console.log("触发了内部parentResizeRecord"), a(), U({ width: j, height: k }), H({
2055
+ n !== 0 && (console.log("触发了内部parentResizeRecord"), a(), U({ width: R, height: k }), H({
2056
2056
  left: Math.floor(f / 2),
2057
2057
  top: Math.floor(x / 2)
2058
2058
  }));
@@ -2063,7 +2063,7 @@ const hc = (e) => {
2063
2063
  initTop: q,
2064
2064
  initWidth: E,
2065
2065
  initHeight: M,
2066
- curPropsWidth: j,
2066
+ curPropsWidth: R,
2067
2067
  curPropsHeight: k,
2068
2068
  setInitPosition: H,
2069
2069
  setInitSize: U
@@ -2233,10 +2233,10 @@ const hc = (e) => {
2233
2233
  renderFooter: c,
2234
2234
  renderTitle: u,
2235
2235
  getPopperContainer: d
2236
- } = e, h = d(), [p, v] = uc(!1), [f, x] = ee(!1), { open: j, close: k } = mc(e, v, x), { footerActions: E } = pc(e, f), M = W(null), U = W(null), V = W(null), q = W(null), {
2236
+ } = e, h = d(), [p, v] = uc(!1), [f, x] = ee(!1), { open: R, close: k } = mc(e, v, x), { footerActions: E } = pc(e, f), M = W(null), U = W(null), V = W(null), q = W(null), {
2237
2237
  containerSizeTarget: H,
2238
- parentResizeRecord: D,
2239
- initLeft: R,
2238
+ parentResizeRecord: j,
2239
+ initLeft: D,
2240
2240
  initTop: y,
2241
2241
  initWidth: C,
2242
2242
  initHeight: z,
@@ -2252,7 +2252,7 @@ const hc = (e) => {
2252
2252
  setDialogChangeRecord: w
2253
2253
  }), { dialogLeft: $, dialogTop: F, setDialogPosition: A } = vc({
2254
2254
  initTop: y,
2255
- initLeft: R,
2255
+ initLeft: D,
2256
2256
  setDialogChangeRecord: w
2257
2257
  }), { dialogMaxHeight: N, contentMaxHeight: re } = _c({
2258
2258
  visible: p,
@@ -2280,14 +2280,14 @@ const hc = (e) => {
2280
2280
  setDialogSize: O,
2281
2281
  setDialogPosition: A
2282
2282
  }), Ie = () => {
2283
- console.log("触发了initDialog"), O({ width: C.current, height: z.current }), A({ left: R.current, top: y.current }), ce({ left: 160, top: 60 });
2283
+ console.log("触发了initDialog"), O({ width: C.current, height: z.current }), A({ left: D.current, top: y.current }), ce({ left: 160, top: 60 });
2284
2284
  };
2285
2285
  Z(() => {
2286
- D !== 0 && (console.log("触发了外部parentResizeRecord"), Ie());
2287
- }, [D]), Cc({
2286
+ j !== 0 && (console.log("触发了外部parentResizeRecord"), Ie());
2287
+ }, [j]), Cc({
2288
2288
  initWidth: C,
2289
2289
  initHeight: z,
2290
- initLeft: R,
2290
+ initLeft: D,
2291
2291
  initTop: y,
2292
2292
  curPropsWidth: L,
2293
2293
  curPropsHeight: _,
@@ -2324,7 +2324,7 @@ const hc = (e) => {
2324
2324
  setDialogPosition: A
2325
2325
  });
2326
2326
  return Me(t, () => ({
2327
- open: j,
2327
+ open: R,
2328
2328
  close: De,
2329
2329
  setLoading: x
2330
2330
  })), /* @__PURE__ */ g.jsxs("div", { className: Le.xphDialog, children: [
@@ -2491,8 +2491,8 @@ const Uc = [
2491
2491
  let a = o;
2492
2492
  const c = Kt(e), u = c ? Hc(e.component) + i : "";
2493
2493
  function d(f, x) {
2494
- const j = f.message || u;
2495
- return x === void 0 || nc(x) || Array.isArray(x) && x.length === 0 || typeof x == "string" && x.trim() === "" || typeof x == "object" && Reflect.has(x, "checked") && Reflect.has(x, "halfChecked") && Array.isArray(x.checked) && Array.isArray(x.halfChecked) && x.checked.length === 0 && x.halfChecked.length === 0 ? Promise.reject(j) : Promise.resolve();
2494
+ const R = f.message || u;
2495
+ return x === void 0 || nc(x) || Array.isArray(x) && x.length === 0 || typeof x == "string" && x.trim() === "" || typeof x == "object" && Reflect.has(x, "checked") && Reflect.has(x, "halfChecked") && Array.isArray(x.checked) && Array.isArray(x.halfChecked) && x.checked.length === 0 && x.halfChecked.length === 0 ? Promise.reject(R) : Promise.resolve();
2496
2496
  }
2497
2497
  const h = oe(s) ? s({ model: t }) : s;
2498
2498
  h && (!a || a.length === 0 ? a = [{ required: h, validator: d }] : a.findIndex(
@@ -2506,8 +2506,8 @@ const Uc = [
2506
2506
  if (r || (f.required = !1), c) {
2507
2507
  const { component: x } = e;
2508
2508
  Reflect.has(f, "type") || (f.type = x === "InputNumber" ? "number" : "string"), f.message = f.message || u, (x.includes("Input") || x.includes("Textarea")) && (f.whitespace = !0);
2509
- const j = n.valueFormat;
2510
- Bc(f, x, j);
2509
+ const R = n.valueFormat;
2510
+ Bc(f, x, R);
2511
2511
  }
2512
2512
  }
2513
2513
  const v = a.findIndex((f) => f.max);
@@ -2598,7 +2598,7 @@ var $n = { exports: {} };
2598
2598
  (function(r, n) {
2599
2599
  e.exports = n();
2600
2600
  })(go, function() {
2601
- var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", a = "minute", c = "hour", u = "day", d = "week", h = "month", p = "quarter", v = "year", f = "date", x = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
2601
+ var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", a = "minute", c = "hour", u = "day", d = "week", h = "month", p = "quarter", v = "year", f = "date", x = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
2602
2602
  var b = ["th", "st", "nd", "rd"], w = _ % 100;
2603
2603
  return "[" + _ + (b[(w - 20) % 10] || b[w] || b[0]) + "]";
2604
2604
  } }, M = function(_, b, w) {
@@ -2620,9 +2620,9 @@ var $n = { exports: {} };
2620
2620
  return _ === void 0;
2621
2621
  } }, V = "en", q = {};
2622
2622
  q[V] = E;
2623
- var H = "$isDayjsObject", D = function(_) {
2623
+ var H = "$isDayjsObject", j = function(_) {
2624
2624
  return _ instanceof z || !(!_ || !_[H]);
2625
- }, R = function _(b, w, P) {
2625
+ }, D = function _(b, w, P) {
2626
2626
  var T;
2627
2627
  if (!b)
2628
2628
  return V;
@@ -2638,17 +2638,17 @@ var $n = { exports: {} };
2638
2638
  }
2639
2639
  return !P && T && (V = T), T || !P && V;
2640
2640
  }, y = function(_, b) {
2641
- if (D(_))
2641
+ if (j(_))
2642
2642
  return _.clone();
2643
2643
  var w = typeof b == "object" ? b : {};
2644
2644
  return w.date = _, w.args = arguments, new z(w);
2645
2645
  }, C = U;
2646
- C.l = R, C.i = D, C.w = function(_, b) {
2646
+ C.l = D, C.i = j, C.w = function(_, b) {
2647
2647
  return y(_, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
2648
2648
  };
2649
2649
  var z = function() {
2650
2650
  function _(w) {
2651
- this.$L = R(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[H] = !0;
2651
+ this.$L = D(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[H] = !0;
2652
2652
  }
2653
2653
  var b = _.prototype;
2654
2654
  return b.parse = function(w) {
@@ -2661,7 +2661,7 @@ var $n = { exports: {} };
2661
2661
  if (T instanceof Date)
2662
2662
  return new Date(T);
2663
2663
  if (typeof T == "string" && !/Z$/i.test(T)) {
2664
- var $ = T.match(j);
2664
+ var $ = T.match(R);
2665
2665
  if ($) {
2666
2666
  var F = $[2] - 1 || 0, A = ($[7] || "0").substring(0, 3);
2667
2667
  return O ? new Date(Date.UTC($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, A)) : new Date($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, A);
@@ -2858,7 +2858,7 @@ var $n = { exports: {} };
2858
2858
  }, b.locale = function(w, P) {
2859
2859
  if (!w)
2860
2860
  return this.$L;
2861
- var T = this.clone(), O = R(w, P, !0);
2861
+ var T = this.clone(), O = D(w, P, !0);
2862
2862
  return O && (T.$L = O), T;
2863
2863
  }, b.clone = function() {
2864
2864
  return C.w(this.$d, this);
@@ -2878,7 +2878,7 @@ var $n = { exports: {} };
2878
2878
  };
2879
2879
  }), y.extend = function(_, b) {
2880
2880
  return _.$i || (_(b, z, y), _.$i = !0), y;
2881
- }, y.locale = R, y.isDayjs = D, y.unix = function(_) {
2881
+ }, y.locale = D, y.isDayjs = j, y.unix = function(_) {
2882
2882
  return y(1e3 * _);
2883
2883
  }, y.en = q[V], y.Ls = q, y.p = {}, y;
2884
2884
  });
@@ -2973,13 +2973,13 @@ const sl = (e, t, r) => {
2973
2973
  const [x] = v;
2974
2974
  if (!x || de(f) && f.length === 0 || oe(f))
2975
2975
  continue;
2976
- const { transformDateFunc: j } = t, k = (d = (u = (c = r.current) == null ? void 0 : c.get(x)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, E = k == null ? void 0 : k.valueFormat;
2976
+ const { transformDateFunc: R } = t, k = (d = (u = (c = r.current) == null ? void 0 : c.get(x)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, E = k == null ? void 0 : k.valueFormat;
2977
2977
  if (me(f)) {
2978
2978
  const M = f;
2979
- M.format && (f = j == null ? void 0 : j(M, E));
2979
+ M.format && (f = R == null ? void 0 : R(M, E));
2980
2980
  }
2981
2981
  de(f) && ((h = f[0]) != null && h.format) && ((p = f[1]) != null && p.format) && (f = f.map(
2982
- (M) => j == null ? void 0 : j(M, E)
2982
+ (M) => R == null ? void 0 : R(M, E)
2983
2983
  )), vn(f) && (f === "" ? f = void 0 : f = f.trim()), a[x] = f;
2984
2984
  }
2985
2985
  return ol(a, t);
@@ -3075,8 +3075,8 @@ const sl = (e, t, r) => {
3075
3075
  }), d = (p) => {
3076
3076
  p && !n && u(), i && i(p);
3077
3077
  }, h = () => {
3078
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3079
- return j;
3078
+ const { api: p, params: v, immediate: f, isusewatch: x, ...R } = e;
3079
+ return R;
3080
3080
  };
3081
3081
  return /* @__PURE__ */ g.jsx(
3082
3082
  Yr,
@@ -3103,8 +3103,8 @@ const sl = (e, t, r) => {
3103
3103
  }), d = (p) => {
3104
3104
  p && !n && u(), i && i(p);
3105
3105
  }, h = () => {
3106
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3107
- return j;
3106
+ const { api: p, params: v, immediate: f, isusewatch: x, ...R } = e;
3107
+ return R;
3108
3108
  };
3109
3109
  return /* @__PURE__ */ g.jsx(
3110
3110
  qr,
@@ -3145,8 +3145,8 @@ const sl = (e, t, r) => {
3145
3145
  }), d = (p) => {
3146
3146
  p && !n && u(), i && i(p);
3147
3147
  }, h = () => {
3148
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3149
- return j;
3148
+ const { api: p, params: v, immediate: f, isusewatch: x, ...R } = e;
3149
+ return R;
3150
3150
  };
3151
3151
  return /* @__PURE__ */ g.jsx(
3152
3152
  Xr,
@@ -3180,12 +3180,12 @@ const sl = (e, t, r) => {
3180
3180
  value: u = t,
3181
3181
  // 默认文件列表
3182
3182
  onChange: d
3183
- } = e, h = W(!0), p = W(0), v = W([]), [f, x] = ee([]), j = (D) => {
3184
- v.current = D, x([...D]);
3183
+ } = e, h = W(!0), p = W(0), v = W([]), [f, x] = ee([]), R = (j) => {
3184
+ v.current = j, x([...j]);
3185
3185
  }, k = () => {
3186
3186
  const {
3187
- api: D,
3188
- maxCount: R,
3187
+ api: j,
3188
+ maxCount: D,
3189
3189
  maxSize: y,
3190
3190
  openCrop: C,
3191
3191
  beforeUpload: z,
@@ -3194,49 +3194,49 @@ const sl = (e, t, r) => {
3194
3194
  ...b
3195
3195
  } = e;
3196
3196
  return b;
3197
- }, E = (D) => {
3198
- const R = D.size / 1024 / 1024 < o;
3199
- R || $t.error(`文件大小超过:${o}M, 请重试`);
3197
+ }, E = (j) => {
3198
+ const D = j.size / 1024 / 1024 < o;
3199
+ D || $t.error(`文件大小超过:${o}M, 请重试`);
3200
3200
  const y = v.current.length + p.current < n;
3201
- return y || $t.error(`文件数量不能超过${n}个`), R && y && p.current++, R && y && M(D), Ft.LIST_IGNORE;
3202
- }, M = (D) => {
3203
- s ? ($t.error("暂时不支持裁剪功能,后续兼容。。。。"), U({ file: D })) : U({ file: D });
3204
- }, U = (D) => {
3205
- r ? r({ file: D.file, ...a }).then((R) => {
3206
- j([...v.current, ...R]);
3201
+ return y || $t.error(`文件数量不能超过${n}个`), D && y && p.current++, D && y && M(j), Ft.LIST_IGNORE;
3202
+ }, M = (j) => {
3203
+ s ? ($t.error("暂时不支持裁剪功能,后续兼容。。。。"), U({ file: j })) : U({ file: j });
3204
+ }, U = (j) => {
3205
+ r ? r({ file: j.file, ...a }).then((D) => {
3206
+ R([...v.current, ...D]);
3207
3207
  }).finally(() => {
3208
3208
  p.current--;
3209
- }) : (Object.assign(D.file, {
3209
+ }) : (Object.assign(j.file, {
3210
3210
  status: "done",
3211
3211
  url: URL.createObjectURL(
3212
- new Blob([D.file], {
3213
- type: Yc(D.file.type)
3212
+ new Blob([j.file], {
3213
+ type: Yc(j.file.type)
3214
3214
  })
3215
3215
  )
3216
- }), j([...v.current, D.file]), p.current--);
3217
- }, V = (D) => {
3218
- const { file: R, fileList: y } = D, { status: C } = R;
3216
+ }), R([...v.current, j.file]), p.current--);
3217
+ }, V = (j) => {
3218
+ const { file: D, fileList: y } = j, { status: C } = D;
3219
3219
  switch (C) {
3220
3220
  case "removed": {
3221
- j([...y]);
3221
+ R([...y]);
3222
3222
  break;
3223
3223
  }
3224
3224
  }
3225
- }, q = (D) => {
3226
- const R = (C) => {
3225
+ }, q = (j) => {
3226
+ const D = (C) => {
3227
3227
  const z = C.split("/"), L = z[z.length - 1], [_] = L.split("?");
3228
3228
  return _;
3229
3229
  };
3230
3230
  return { uid: ((C) => {
3231
3231
  const z = v.current.find((L) => L.url === C);
3232
3232
  return z ? z.uid : lr();
3233
- })(D), name: R(D), url: D, status: "done" };
3233
+ })(j), name: D(j), url: j, status: "done" };
3234
3234
  }, H = () => {
3235
3235
  switch (c) {
3236
3236
  case Ce.String:
3237
- return f.map((D) => D.url).join(",");
3237
+ return f.map((j) => j.url).join(",");
3238
3238
  case Ce["String[]"]:
3239
- return f.map((D) => D.url);
3239
+ return f.map((j) => j.url);
3240
3240
  case Ce["File[]"]:
3241
3241
  return [...f];
3242
3242
  case Ce.FileList:
@@ -3244,36 +3244,36 @@ const sl = (e, t, r) => {
3244
3244
  }
3245
3245
  };
3246
3246
  return Z(() => {
3247
- const D = H();
3248
- if (it(D, u))
3247
+ const j = H();
3248
+ if (it(j, u))
3249
3249
  return;
3250
- let R = [];
3250
+ let D = [];
3251
3251
  switch (c) {
3252
3252
  case Ce.String: {
3253
- R = (u || "").split(",").filter((y) => y).map((y) => q(y));
3253
+ D = (u || "").split(",").filter((y) => y).map((y) => q(y));
3254
3254
  break;
3255
3255
  }
3256
3256
  case Ce["String[]"]: {
3257
- R = (u || []).map((y) => q(y));
3257
+ D = (u || []).map((y) => q(y));
3258
3258
  break;
3259
3259
  }
3260
3260
  case Ce["File[]"]: {
3261
- R = (u || []).map((y) => y);
3261
+ D = (u || []).map((y) => y);
3262
3262
  break;
3263
3263
  }
3264
3264
  case Ce.FileList: {
3265
- R = (u || []).map((y) => y);
3265
+ D = (u || []).map((y) => y);
3266
3266
  break;
3267
3267
  }
3268
3268
  }
3269
- j(R);
3269
+ R(D);
3270
3270
  }, [u]), Z(() => {
3271
3271
  if (h.current) {
3272
3272
  h.current = !1;
3273
3273
  return;
3274
3274
  }
3275
- const D = H();
3276
- d == null || d(D);
3275
+ const j = H();
3276
+ d == null || d(j);
3277
3277
  }, [f]), /* @__PURE__ */ g.jsx(
3278
3278
  Ft,
3279
3279
  {
@@ -3344,7 +3344,7 @@ const Lr = {
3344
3344
  n,
3345
3345
  e
3346
3346
  ), {
3347
- name: j,
3347
+ name: R,
3348
3348
  label: k,
3349
3349
  wrapperCol: E,
3350
3350
  labelCol: M,
@@ -3359,17 +3359,17 @@ const Lr = {
3359
3359
  setItemCollapse: x
3360
3360
  }));
3361
3361
  const H = () => ({
3362
- name: j,
3362
+ name: R,
3363
3363
  label: k,
3364
3364
  rules: p,
3365
3365
  wrapperCol: E,
3366
3366
  labelCol: M,
3367
3367
  valuePropName: U,
3368
3368
  initialValue: V
3369
- }), { setExtendFormComp: D } = Pn();
3370
- D(X);
3371
- const R = Kt(t), y = Jt(t), C = () => {
3372
- if (R) {
3369
+ }), { setExtendFormComp: j } = Pn();
3370
+ j(X);
3371
+ const D = Kt(t), y = Jt(t), C = () => {
3372
+ if (D) {
3373
3373
  const z = X.get(t.component);
3374
3374
  return /* @__PURE__ */ g.jsx(
3375
3375
  z,
@@ -3382,7 +3382,7 @@ const Lr = {
3382
3382
  }
3383
3383
  return y ? t.render({
3384
3384
  model: s,
3385
- name: j,
3385
+ name: R,
3386
3386
  disabled: v,
3387
3387
  methods: r,
3388
3388
  componentProps: h
@@ -3456,7 +3456,7 @@ const Lr = {
3456
3456
  setFieldsValue: v,
3457
3457
  getFieldsValue: f,
3458
3458
  resetFields: x,
3459
- validator: j,
3459
+ validator: R,
3460
3460
  scrollToField: k
3461
3461
  } = il(
3462
3462
  r,
@@ -3468,8 +3468,8 @@ const Lr = {
3468
3468
  wrapperCol: V,
3469
3469
  labelCol: q,
3470
3470
  colon: H,
3471
- disabled: D,
3472
- labelWrap: R,
3471
+ disabled: j,
3472
+ labelWrap: D,
3473
3473
  labelAlign: y,
3474
3474
  scrollToFirstError: C,
3475
3475
  size: z
@@ -3479,8 +3479,8 @@ const Lr = {
3479
3479
  wrapperCol: V,
3480
3480
  labelCol: q,
3481
3481
  colon: H,
3482
- disabled: D,
3483
- labelWrap: R,
3482
+ disabled: j,
3483
+ labelWrap: D,
3484
3484
  labelAlign: y,
3485
3485
  scrollToFirstError: C,
3486
3486
  size: z
@@ -3489,7 +3489,7 @@ const Lr = {
3489
3489
  setFieldsValue: v,
3490
3490
  getFieldsValue: f,
3491
3491
  resetFields: x,
3492
- validator: j,
3492
+ validator: R,
3493
3493
  scrollToField: k
3494
3494
  };
3495
3495
  return Me(t, () => ({
@@ -3561,26 +3561,30 @@ const Lr = {
3561
3561
  return h;
3562
3562
  })(), a = W(null), c = async () => {
3563
3563
  const { onOk: d, renderFooter: h } = s;
3564
- if (r.current.setLoading(!0), !h) {
3564
+ if (!h) {
3565
3565
  const { ok: p, data: v } = a.current;
3566
3566
  if (p) {
3567
3567
  n.current.validator().then(async (f) => {
3568
- await p({
3568
+ r.current.setLoading(!0), await p({
3569
3569
  values: n.current.getFieldsValue()
3570
- }).finally(() => {
3570
+ }).then((R) => R).finally(() => {
3571
3571
  r.current.setLoading(!1);
3572
3572
  }) !== !1 && (r.current.close(), a.current = null);
3573
3573
  });
3574
3574
  return;
3575
3575
  }
3576
- d && n.current.validator().then(async (f) => {
3577
- await d({
3578
- values: f,
3579
- data: v
3580
- }).finally(() => {
3581
- r.current.setLoading(!1);
3582
- }) !== !1 && (r.current.close(), a.current = null);
3583
- }), r.current.close(), a.current = null;
3576
+ if (d) {
3577
+ n.current.validator().then(async (f) => {
3578
+ r.current.setLoading(!0), await d({
3579
+ values: f,
3580
+ data: v
3581
+ }).then((R) => (console.log(R), R)).finally(() => {
3582
+ r.current.setLoading(!1);
3583
+ }) !== !1 && (r.current.close(), a.current = null);
3584
+ });
3585
+ return;
3586
+ }
3587
+ r.current.close(), a.current = null;
3584
3588
  }
3585
3589
  }, u = async () => {
3586
3590
  const { onCancel: d, renderFooter: h } = s;
@@ -3588,7 +3592,7 @@ const Lr = {
3588
3592
  const { cancel: p, data: v } = a.current;
3589
3593
  if (p) {
3590
3594
  if (await p({
3591
- values: n.current.getFieldsValue()
3595
+ values: n.current.getFieldsValue(!0)
3592
3596
  }) === !1)
3593
3597
  return;
3594
3598
  r.current.close(), a.current = null;
@@ -3601,6 +3605,7 @@ const Lr = {
3601
3605
  }) === !1)
3602
3606
  return;
3603
3607
  r.current.close(), a.current = null;
3608
+ return;
3604
3609
  }
3605
3610
  r.current.close(), a.current = null;
3606
3611
  }
@@ -3676,25 +3681,25 @@ const { useToken: Dl } = Je, jl = (e, t, r) => {
3676
3681
  border: "1px solid orange"
3677
3682
  },
3678
3683
  1: {
3684
+ color: "purple",
3685
+ backgroundColor: "unset",
3686
+ border: "1px solid purple"
3687
+ },
3688
+ 2: {
3679
3689
  color: "blue",
3680
3690
  backgroundColor: "unset",
3681
3691
  border: "1px solid blue"
3682
3692
  },
3683
- 2: {
3693
+ 3: {
3684
3694
  color: "green",
3685
3695
  backgroundColor: "unset",
3686
3696
  border: "1px solid green"
3687
3697
  },
3688
- 3: {
3698
+ 4: {
3689
3699
  color: "red",
3690
3700
  backgroundColor: "unset",
3691
3701
  border: "1px solid red"
3692
3702
  },
3693
- 4: {
3694
- color: "purple",
3695
- backgroundColor: "unset",
3696
- border: "1px solid purple"
3697
- },
3698
3703
  5: {
3699
3704
  color: "pink",
3700
3705
  backgroundColor: "unset",
@@ -3953,24 +3958,24 @@ function Hl(e, t) {
3953
3958
  backupsDataSource: []
3954
3959
  }), f = {
3955
3960
  model: h,
3956
- update: (R) => {
3961
+ update: (D) => {
3957
3962
  var C;
3958
- const y = { ...v.current, ...R };
3963
+ const y = { ...v.current, ...D };
3959
3964
  p(y), v.current = y, (C = t.current) == null || C.setFormLoading(y.loading);
3960
3965
  }
3961
3966
  }, x = async () => {
3962
3967
  Z(() => {
3963
- const { autoRequest: R } = e.table, { validator: y } = t.current;
3964
- R && y().then((C) => {
3968
+ const { autoRequest: D } = e.table, { validator: y } = t.current;
3969
+ D && y().then((C) => {
3965
3970
  M({ searchFormParams: C });
3966
3971
  });
3967
3972
  }, []);
3968
- }, j = async ({
3969
- searchFormParams: R,
3973
+ }, R = async ({
3974
+ searchFormParams: D,
3970
3975
  paginationParams: y
3971
3976
  }) => {
3972
3977
  const C = {
3973
- ...R,
3978
+ ...D,
3974
3979
  /** 没传paginationParams默认就是上一次 */
3975
3980
  [`${s.current}`]: d.current.current,
3976
3981
  [`${s.pageSize}`]: d.current.pageSize,
@@ -3988,16 +3993,17 @@ function Hl(e, t) {
3988
3993
  dataSource: n ? n(_) : _
3989
3994
  }), u.update({
3990
3995
  total: b,
3991
- current: L
3996
+ current: L,
3997
+ pageSize: C[`${s.pageSize}`]
3992
3998
  });
3993
3999
  }).finally(() => {
3994
4000
  f.update({ loading: !1 });
3995
4001
  });
3996
4002
  }, k = async ({
3997
- searchFormParams: R,
4003
+ searchFormParams: D,
3998
4004
  paginationParams: y
3999
4005
  }) => {
4000
- const C = { ...R };
4006
+ const C = { ...D };
4001
4007
  return r(C).then((z) => {
4002
4008
  const { list: L } = ur(a, z), _ = n ? n(L) : L;
4003
4009
  f.update({
@@ -4011,11 +4017,11 @@ function Hl(e, t) {
4011
4017
  f.update({ loading: !1 });
4012
4018
  });
4013
4019
  }, E = async ({
4014
- searchFormParams: R,
4020
+ searchFormParams: D,
4015
4021
  paginationParams: y
4016
4022
  }) => {
4017
4023
  var z;
4018
- const C = { ...R };
4024
+ const C = { ...D };
4019
4025
  if (y) {
4020
4026
  const { current: L, pageSize: _ } = y;
4021
4027
  u.update({
@@ -4047,25 +4053,25 @@ function Hl(e, t) {
4047
4053
  f.update({ loading: !1 });
4048
4054
  });
4049
4055
  }, M = async ({
4050
- searchFormParams: R,
4056
+ searchFormParams: D,
4051
4057
  paginationParams: y
4052
4058
  }) => {
4053
4059
  if (f.update({ loading: !0, selection: [] }), r)
4054
4060
  switch (!!d.current) {
4055
4061
  case !0:
4056
4062
  return o === !0 ? E({
4057
- searchFormParams: R,
4063
+ searchFormParams: D,
4058
4064
  paginationParams: y
4059
4065
  }) : o === !1 ? k({
4060
- searchFormParams: R,
4066
+ searchFormParams: D,
4061
4067
  paginationParams: y
4062
- }) : j({
4063
- searchFormParams: R,
4068
+ }) : R({
4069
+ searchFormParams: D,
4064
4070
  paginationParams: y
4065
4071
  });
4066
4072
  case !1:
4067
4073
  return k({
4068
- searchFormParams: R,
4074
+ searchFormParams: D,
4069
4075
  paginationParams: y
4070
4076
  });
4071
4077
  }
@@ -4075,31 +4081,31 @@ function Hl(e, t) {
4075
4081
  table: f,
4076
4082
  pagination: u,
4077
4083
  firstGetTableData: x,
4078
- onPaginationChange: (R, y) => {
4084
+ onPaginationChange: (D, y) => {
4079
4085
  const { validator: C } = t.current;
4080
4086
  C().then((z) => {
4081
4087
  M({
4082
4088
  searchFormParams: z,
4083
- paginationParams: { current: R, pageSize: y }
4089
+ paginationParams: { current: D, pageSize: y }
4084
4090
  });
4085
- }), c && c(R, y);
4091
+ }), c && c(D, y);
4086
4092
  },
4087
- onAllChange: async (...R) => {
4088
- const [y, C, z, L] = R, _ = [];
4093
+ onAllChange: async (...D) => {
4094
+ const [y, C, z, L] = D, _ = [];
4089
4095
  for (let b = 0; b < _.length && !_[b](); b++)
4090
4096
  ;
4091
4097
  i && i(C, z, L);
4092
4098
  },
4093
4099
  resetData: async () => {
4094
- const { resetFields: R, validator: y } = t.current;
4095
- return R().then(async () => {
4100
+ const { resetFields: D, validator: y } = t.current;
4101
+ return D().then(async () => {
4096
4102
  const C = await y();
4097
4103
  return M({ searchFormParams: C });
4098
4104
  });
4099
4105
  },
4100
4106
  resetAllData: async () => {
4101
- const { resetFields: R, validator: y } = t.current;
4102
- return R().then(async () => {
4107
+ const { resetFields: D, validator: y } = t.current;
4108
+ return D().then(async () => {
4103
4109
  const C = {};
4104
4110
  if (d.current) {
4105
4111
  const { pageSize: z } = d.current;
@@ -4109,8 +4115,8 @@ function Hl(e, t) {
4109
4115
  });
4110
4116
  },
4111
4117
  reloadData: async () => {
4112
- const { validator: R } = t.current;
4113
- return R().then((y) => M({
4118
+ const { validator: D } = t.current;
4119
+ return D().then((y) => M({
4114
4120
  searchFormParams: y
4115
4121
  }));
4116
4122
  }
@@ -4221,15 +4227,15 @@ const jn = () => {
4221
4227
  resetData: h,
4222
4228
  resetAllData: p,
4223
4229
  reloadData: v
4224
- } = Hl(e, t), { rowSelection: f } = Bl(e, s), { divRef: x, scroll: j } = Ul(e, r), { getTopToolbarBindProps: k } = Vl(e, s), E = () => {
4230
+ } = Hl(e, t), { rowSelection: f } = Bl(e, s), { divRef: x, scroll: R } = Ul(e, r), { getTopToolbarBindProps: k } = Vl(e, s), E = () => {
4225
4231
  const {
4226
4232
  autoRequest: M,
4227
4233
  api: U,
4228
4234
  formatDataSource: V,
4229
4235
  autoPagination: q,
4230
4236
  columns: H,
4231
- scroll: D,
4232
- pagination: R,
4237
+ scroll: j,
4238
+ pagination: D,
4233
4239
  rowSelection: y,
4234
4240
  onChange: C,
4235
4241
  ...z
@@ -4259,7 +4265,7 @@ const jn = () => {
4259
4265
  dataSource: s.model.dataSource,
4260
4266
  pagination: !1,
4261
4267
  rowSelection: f,
4262
- scroll: j,
4268
+ scroll: R,
4263
4269
  onChange: d
4264
4270
  }
4265
4271
  )