bitz-react-admin-ui 2.10.4 → 2.10.6

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.
@@ -13,9 +13,9 @@ import L from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
13
13
  import { BitzConfigContext as M } from "../../../../BitzConfigProvider/context.mjs";
14
14
  import { BitzTableContext as O } from "../../../Store/index.mjs";
15
15
  import Y from "../../../../BitzTheme/index.mjs";
16
- import { Form as i, Radio as u, Row as Z, Col as I, Button as q } from "antd";
16
+ import { Form as i, Radio as u, Row as Z, Col as S, Button as q } from "antd";
17
17
  import Q from "../../../../../node_modules/classnames/index.mjs";
18
- import { forwardRef as U, useRef as S, useEffect as p, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
18
+ import { forwardRef as U, useRef as P, useEffect as h, useMemo as X, useContext as j, useImperativeHandle as _, useState as ee, memo as oe } from "react";
19
19
  import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
20
20
  import r from "./RadioCard.mjs";
21
21
  import le from "./ScopeSwitch.mjs";
@@ -24,13 +24,13 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
24
24
  ...n,
25
25
  label: `${n.label}(默认)`
26
26
  } : n), ne = U(({ display: s, postHeight: f }, n) => {
27
- var y, g;
28
- const { token: o } = Y.useToken(), j = S(null);
29
- p(() => {
27
+ var g, z;
28
+ const { token: o } = Y.useToken(), b = P(null);
29
+ h(() => {
30
30
  var l;
31
- f((l = j.current) == null ? void 0 : l.clientHeight);
31
+ f((l = b.current) == null ? void 0 : l.clientHeight);
32
32
  }, []);
33
- const P = X(() => ({
33
+ const C = X(() => ({
34
34
  display: "flex",
35
35
  width: s ? "100%" : 0,
36
36
  pointerEvents: s ? "auto" : "none",
@@ -41,31 +41,31 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
41
41
  left: 0,
42
42
  right: 0
43
43
  }
44
- }), [s]), C = {
44
+ }), [s]), w = {
45
45
  size: 26,
46
46
  color: o.colorPrimary
47
- }, [a] = i.useForm(), w = (y = h(M).Table) == null ? void 0 : y.stylesScope, { defaultTableSize: H, stylesConfig: R, defaultTableStylesConfig: b } = h(O), t = (g = h(re).config) == null ? void 0 : g.stylesConfig, c = (l, m) => {
48
- var z, v;
47
+ }, [a] = i.useForm(), H = (g = j(M).Table) == null ? void 0 : g.stylesScope, { defaultTableSize: R, stylesConfig: y, defaultTableStylesConfig: x } = j(O), t = (z = j(re).config) == null ? void 0 : z.stylesConfig, c = (l, m) => {
48
+ var v, I;
49
49
  let d = m;
50
- return (z = t == null ? void 0 : t[l]) != null && z.disabled && (d = Q(m, "disabledControl")), {
51
- disabled: (v = t == null ? void 0 : t[l]) == null ? void 0 : v.disabled,
50
+ return (v = t == null ? void 0 : t[l]) != null && v.disabled && (d = Q(m, "disabledControl")), {
51
+ disabled: (I = t == null ? void 0 : t[l]) == null ? void 0 : I.disabled,
52
52
  className: d
53
53
  };
54
54
  };
55
- p(() => {
55
+ h(() => {
56
56
  a.setFieldsValue({
57
- ...b,
58
- ...R,
59
- stylesScope: w === "global"
57
+ ...x,
58
+ ...y,
59
+ stylesScope: H === "global"
60
60
  });
61
- }, []);
61
+ }, [y, x]);
62
62
  const k = () => {
63
63
  a.setFieldsValue({
64
- ...b,
64
+ ...x,
65
65
  stylesScope: !1
66
66
  });
67
67
  }, F = ie({
68
- defaultSize: H,
68
+ defaultSize: R,
69
69
  items: [
70
70
  {
71
71
  key: "xs",
@@ -97,10 +97,10 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
97
97
  _(n, () => ({
98
98
  getFormInstance: () => a
99
99
  }));
100
- const x = S(null), [T, G] = ee("auto");
101
- return p(() => {
102
- x && G(x.current.clientWidth + 10);
103
- }, []), /* @__PURE__ */ e.jsx("div", { style: P, ref: j, children: /* @__PURE__ */ e.jsxs(
100
+ const p = P(null), [T, G] = ee("auto");
101
+ return h(() => {
102
+ p && G(p.current.clientWidth + 10);
103
+ }, []), /* @__PURE__ */ e.jsx("div", { style: C, ref: b, children: /* @__PURE__ */ e.jsxs(
104
104
  i,
105
105
  {
106
106
  form: a,
@@ -110,7 +110,7 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
110
110
  colon: !1,
111
111
  className: "stylesConfigFormContent",
112
112
  children: [
113
- /* @__PURE__ */ e.jsx(i.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: F.map(({ key: l, label: m, icon: d }) => /* @__PURE__ */ e.jsx(r, { label: m, value: l, children: /* @__PURE__ */ e.jsx(d, { ...C }) }, l)) }) }),
113
+ /* @__PURE__ */ e.jsx(i.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: F.map(({ key: l, label: m, icon: d }) => /* @__PURE__ */ e.jsx(r, { label: m, value: l, children: /* @__PURE__ */ e.jsx(d, { ...w }) }, l)) }) }),
114
114
  /* @__PURE__ */ e.jsx(i.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
115
115
  u.Group,
116
116
  {
@@ -179,8 +179,8 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
179
179
  /* @__PURE__ */ e.jsx(r, { label: "100条", value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
180
180
  ] }) }),
181
181
  /* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
182
- /* @__PURE__ */ e.jsx(I, { ref: x, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
183
- /* @__PURE__ */ e.jsx(I, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
182
+ /* @__PURE__ */ e.jsx(S, { ref: p, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
183
+ /* @__PURE__ */ e.jsx(S, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
184
184
  q,
185
185
  {
186
186
  type: "link",