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.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.mjs +275 -276
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +26 -26
- package/dist/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
28
|
-
const { token: o } = Y.useToken(),
|
|
29
|
-
|
|
27
|
+
var g, z;
|
|
28
|
+
const { token: o } = Y.useToken(), b = P(null);
|
|
29
|
+
h(() => {
|
|
30
30
|
var l;
|
|
31
|
-
f((l =
|
|
31
|
+
f((l = b.current) == null ? void 0 : l.clientHeight);
|
|
32
32
|
}, []);
|
|
33
|
-
const
|
|
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]),
|
|
44
|
+
}), [s]), w = {
|
|
45
45
|
size: 26,
|
|
46
46
|
color: o.colorPrimary
|
|
47
|
-
}, [a] = i.useForm(),
|
|
48
|
-
var
|
|
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 (
|
|
51
|
-
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
|
-
|
|
55
|
+
h(() => {
|
|
56
56
|
a.setFieldsValue({
|
|
57
|
-
...
|
|
58
|
-
...
|
|
59
|
-
stylesScope:
|
|
57
|
+
...x,
|
|
58
|
+
...y,
|
|
59
|
+
stylesScope: H === "global"
|
|
60
60
|
});
|
|
61
|
-
}, []);
|
|
61
|
+
}, [y, x]);
|
|
62
62
|
const k = () => {
|
|
63
63
|
a.setFieldsValue({
|
|
64
|
-
...
|
|
64
|
+
...x,
|
|
65
65
|
stylesScope: !1
|
|
66
66
|
});
|
|
67
67
|
}, F = ie({
|
|
68
|
-
defaultSize:
|
|
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
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
}, []), /* @__PURE__ */ e.jsx("div", { style:
|
|
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, { ...
|
|
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(
|
|
183
|
-
/* @__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",
|