bitz-react-admin-ui 2.6.2 → 2.6.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/_virtual/dayjs.min.mjs +2 -5
- 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/ActionCol/index.mjs +19 -19
- package/dist/components/BitzTable/Store/index.d.ts +0 -7
- package/dist/components/BitzTable/Store/index.mjs +149 -147
- package/dist/components/BitzTable/Table/index.mjs +309 -318
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +45 -74
- package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.11/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
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import G from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
3
|
+
import N from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
4
4
|
import W from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
5
5
|
import E from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
6
6
|
import A from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
@@ -13,24 +13,24 @@ 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
|
|
17
|
-
import
|
|
18
|
-
import { forwardRef as
|
|
19
|
-
import { BitzToolBarContext as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
const
|
|
16
|
+
import { Form as n, Radio as p, Row as Z, Col as P, Button as q } from "antd";
|
|
17
|
+
import Q from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
18
|
+
import { forwardRef as U, useRef as v, useEffect as x, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
|
|
19
|
+
import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
|
|
20
|
+
import s from "./RadioCard.mjs";
|
|
21
|
+
import le from "./ScopeSwitch.mjs";
|
|
22
|
+
import se from "../../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
23
|
+
const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
24
24
|
...t,
|
|
25
25
|
label: `${t.label}(默认)`
|
|
26
|
-
} : t),
|
|
26
|
+
} : t), ie = U(({ display: l, postHeight: d }, t) => {
|
|
27
27
|
var j, g;
|
|
28
|
-
const { token: o } = Y.useToken(),
|
|
28
|
+
const { token: o } = Y.useToken(), y = v(null);
|
|
29
29
|
x(() => {
|
|
30
30
|
var r;
|
|
31
|
-
d((r =
|
|
31
|
+
d((r = y.current) == null ? void 0 : r.clientHeight);
|
|
32
32
|
}, []);
|
|
33
|
-
const C =
|
|
33
|
+
const C = X(() => ({
|
|
34
34
|
display: "flex",
|
|
35
35
|
width: l ? "100%" : 0,
|
|
36
36
|
pointerEvents: l ? "auto" : "none",
|
|
@@ -41,30 +41,30 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
41
41
|
left: 0,
|
|
42
42
|
right: 0
|
|
43
43
|
}
|
|
44
|
-
}), [l]),
|
|
44
|
+
}), [l]), S = {
|
|
45
45
|
size: 26,
|
|
46
46
|
color: o.colorPrimary
|
|
47
|
-
}, [a] =
|
|
47
|
+
}, [a] = n.useForm(), w = (j = h(M).Table) == null ? void 0 : j.stylesScope, { defaultTableSize: H, stylesConfig: R, defaultTableStylesConfig: b } = h(O), i = (g = h(re).config) == null ? void 0 : g.stylesConfig, u = (r, c) => {
|
|
48
48
|
var z, I;
|
|
49
49
|
let m = c;
|
|
50
|
-
return (z =
|
|
51
|
-
disabled: (I =
|
|
50
|
+
return (z = i == null ? void 0 : i[r]) != null && z.disabled && (m = Q(c, "disabledControl")), {
|
|
51
|
+
disabled: (I = i == null ? void 0 : i[r]) == null ? void 0 : I.disabled,
|
|
52
52
|
className: m
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
x(() => {
|
|
56
56
|
a.setFieldsValue({
|
|
57
|
-
...
|
|
57
|
+
...b,
|
|
58
58
|
...R,
|
|
59
59
|
stylesScope: w === "global"
|
|
60
60
|
});
|
|
61
61
|
}, []);
|
|
62
62
|
const k = () => {
|
|
63
63
|
a.setFieldsValue({
|
|
64
|
-
...
|
|
64
|
+
...b,
|
|
65
65
|
stylesScope: !1
|
|
66
66
|
});
|
|
67
|
-
},
|
|
67
|
+
}, T = te({
|
|
68
68
|
defaultSize: H,
|
|
69
69
|
items: [
|
|
70
70
|
{
|
|
@@ -85,23 +85,23 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
85
85
|
{
|
|
86
86
|
key: "lg",
|
|
87
87
|
label: "宽松",
|
|
88
|
-
icon:
|
|
88
|
+
icon: G
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: "xl",
|
|
92
92
|
label: "特宽松",
|
|
93
|
-
icon:
|
|
93
|
+
icon: N
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
_(t, () => ({
|
|
98
98
|
getFormInstance: () => a
|
|
99
99
|
}));
|
|
100
|
-
const
|
|
100
|
+
const f = v(null), [B, F] = ee("auto");
|
|
101
101
|
return x(() => {
|
|
102
|
-
|
|
103
|
-
}, []), /* @__PURE__ */ e.jsx("div", { style: C, ref:
|
|
104
|
-
|
|
102
|
+
f && F(f.current.clientWidth + 10);
|
|
103
|
+
}, []), /* @__PURE__ */ e.jsx("div", { style: C, ref: y, children: /* @__PURE__ */ e.jsxs(
|
|
104
|
+
n,
|
|
105
105
|
{
|
|
106
106
|
form: a,
|
|
107
107
|
style: { width: "100%" },
|
|
@@ -110,14 +110,14 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
110
110
|
colon: !1,
|
|
111
111
|
className: "stylesConfigFormContent",
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */ e.jsx(
|
|
114
|
-
/* @__PURE__ */ e.jsx(
|
|
115
|
-
|
|
113
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(p.Group, { ...u("size", "sizeRadioGroup"), children: T.map(({ key: r, label: c, icon: m }) => /* @__PURE__ */ e.jsx(s, { label: c, value: r, children: /* @__PURE__ */ e.jsx(m, { ...S }) }, r)) }) }),
|
|
114
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
|
|
115
|
+
p.Group,
|
|
116
116
|
{
|
|
117
117
|
...u("bordered", "splitBorderRadioGroup"),
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */ e.jsx(
|
|
120
|
-
/* @__PURE__ */ e.jsx(
|
|
119
|
+
/* @__PURE__ */ e.jsx(s, { label: "无分割线", value: "hide", children: /* @__PURE__ */ e.jsx(V, { size: 26, color: o.colorPrimaryHover }) }),
|
|
120
|
+
/* @__PURE__ */ e.jsx(s, { label: "行分割线", value: "row", children: /* @__PURE__ */ e.jsx(
|
|
121
121
|
D,
|
|
122
122
|
{
|
|
123
123
|
size: 26,
|
|
@@ -129,7 +129,7 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
) }),
|
|
132
|
-
/* @__PURE__ */ e.jsx(
|
|
132
|
+
/* @__PURE__ */ e.jsx(s, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
|
|
133
133
|
J,
|
|
134
134
|
{
|
|
135
135
|
size: 26,
|
|
@@ -141,7 +141,7 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
) }),
|
|
144
|
-
/* @__PURE__ */ e.jsx(
|
|
144
|
+
/* @__PURE__ */ e.jsx(s, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
|
|
145
145
|
$,
|
|
146
146
|
{
|
|
147
147
|
size: 26,
|
|
@@ -156,15 +156,15 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
) }),
|
|
159
|
-
/* @__PURE__ */ e.jsx(
|
|
160
|
-
/* @__PURE__ */ e.jsx(
|
|
159
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [
|
|
160
|
+
/* @__PURE__ */ e.jsx(s, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
|
|
161
161
|
K,
|
|
162
162
|
{
|
|
163
163
|
size: 26,
|
|
164
164
|
color: [o.colorPrimaryHover, o.colorPrimary]
|
|
165
165
|
}
|
|
166
166
|
) }),
|
|
167
|
-
/* @__PURE__ */ e.jsx(
|
|
167
|
+
/* @__PURE__ */ e.jsx(s, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
|
|
168
168
|
L,
|
|
169
169
|
{
|
|
170
170
|
size: 26,
|
|
@@ -172,42 +172,13 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
172
172
|
}
|
|
173
173
|
) })
|
|
174
174
|
] }) }),
|
|
175
|
-
/* @__PURE__ */ e.
|
|
176
|
-
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
labelCol: { span: 6 },
|
|
180
|
-
name: "pageSize",
|
|
181
|
-
tooltip: "默认展示10条,可设置的展示条数范围:5-100条",
|
|
182
|
-
className: "pageSize",
|
|
183
|
-
children: /* @__PURE__ */ e.jsx(Z, { min: 5, max: 100, style: { width: 202 }, precision: 0 })
|
|
184
|
-
}
|
|
185
|
-
),
|
|
186
|
-
/* @__PURE__ */ e.jsx(
|
|
187
|
-
s.Item,
|
|
188
|
-
{
|
|
189
|
-
label: "数据排序方式",
|
|
190
|
-
labelCol: { span: 6 },
|
|
191
|
-
name: "orderBy",
|
|
192
|
-
className: "orderBy",
|
|
193
|
-
children: /* @__PURE__ */ e.jsx(
|
|
194
|
-
q,
|
|
195
|
-
{
|
|
196
|
-
options: [
|
|
197
|
-
{ label: "时间升序", value: "asc" },
|
|
198
|
-
{ label: "时间倒序", value: "desc" }
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
)
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
/* @__PURE__ */ e.jsxs(Q, { gutter: 16, className: "scopeAndReset", children: [
|
|
205
|
-
/* @__PURE__ */ e.jsx(v, { ref: p, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(s.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(ie, {}) }) }),
|
|
206
|
-
/* @__PURE__ */ e.jsx(v, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
|
|
207
|
-
U,
|
|
175
|
+
/* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
|
|
176
|
+
/* @__PURE__ */ e.jsx(P, { ref: f, style: { width: B }, className: "scope", children: /* @__PURE__ */ e.jsx(n.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
|
|
177
|
+
/* @__PURE__ */ e.jsx(P, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
|
|
178
|
+
q,
|
|
208
179
|
{
|
|
209
180
|
type: "link",
|
|
210
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
181
|
+
icon: /* @__PURE__ */ e.jsx(se, {}),
|
|
211
182
|
size: "small",
|
|
212
183
|
onClick: k,
|
|
213
184
|
children: "重置"
|
|
@@ -217,7 +188,7 @@ const ne = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
217
188
|
]
|
|
218
189
|
}
|
|
219
190
|
) });
|
|
220
|
-
}),
|
|
191
|
+
}), Re = oe(ie);
|
|
221
192
|
export {
|
|
222
|
-
|
|
193
|
+
Re as default
|
|
223
194
|
};
|