bitz-react-admin-ui 2.8.5 → 2.9.1
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/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/_virtual/lodash.mjs +4 -0
- package/dist/components/BitzTable/Store/utils/index.d.ts +3 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +26 -38
- package/dist/components/BitzTable/Table/index.mjs +433 -430
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +144 -142
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +55 -49
- package/dist/components/BitzTable/ToolBar/index.d.ts +3 -0
- package/dist/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/lodash/lodash.mjs +3680 -0
- package/dist/node_modules/lodash-es/_SetCache.mjs +13 -0
- package/dist/node_modules/lodash-es/_arrayIncludes.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayIncludesWith.mjs +9 -0
- package/dist/node_modules/lodash-es/_arraySome.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseFindIndex.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseForOwn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseHasIn.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseIndexOf.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.mjs +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.mjs +31 -0
- package/dist/node_modules/lodash-es/_baseIsNaN.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseIteratee.mjs +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.mjs +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.mjs +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseUniq.mjs +34 -0
- package/dist/node_modules/lodash-es/_cacheHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_createSet.mjs +10 -0
- package/dist/node_modules/lodash-es/_equalArrays.mjs +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.mjs +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.mjs +36 -0
- package/dist/node_modules/lodash-es/_getMatchData.mjs +12 -0
- package/dist/node_modules/lodash-es/_hasPath.mjs +19 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.mjs +8 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.mjs +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_setToArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_strictIndexOf.mjs +9 -0
- package/dist/node_modules/lodash-es/hasIn.mjs +8 -0
- package/dist/node_modules/lodash-es/isNil.mjs +6 -0
- package/dist/node_modules/lodash-es/mapValues.mjs +12 -0
- package/dist/node_modules/lodash-es/noop.mjs +5 -0
- package/dist/node_modules/lodash-es/property.mjs +10 -0
- package/dist/node_modules/lodash-es/uniq.mjs +7 -0
- package/dist/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import B from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
3
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";
|
|
@@ -13,46 +13,46 @@ 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
|
|
16
|
+
import { Form as i, Radio as u, Row as Z, Col as I, 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 S, useEffect as p, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
|
|
19
19
|
import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
|
|
20
|
-
import
|
|
20
|
+
import r from "./RadioCard.mjs";
|
|
21
21
|
import le from "./ScopeSwitch.mjs";
|
|
22
22
|
import se from "../../../../../node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
23
|
-
const
|
|
24
|
-
...
|
|
25
|
-
label: `${
|
|
26
|
-
} :
|
|
27
|
-
var
|
|
28
|
-
const { token: o } = Y.useToken(),
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
23
|
+
const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
24
|
+
...n,
|
|
25
|
+
label: `${n.label}(默认)`
|
|
26
|
+
} : n), ne = U(({ display: s, postHeight: f }, n) => {
|
|
27
|
+
var y, g;
|
|
28
|
+
const { token: o } = Y.useToken(), j = S(null);
|
|
29
|
+
p(() => {
|
|
30
|
+
var l;
|
|
31
|
+
f((l = j.current) == null ? void 0 : l.clientHeight);
|
|
32
32
|
}, []);
|
|
33
|
-
const
|
|
33
|
+
const P = X(() => ({
|
|
34
34
|
display: "flex",
|
|
35
|
-
width:
|
|
36
|
-
pointerEvents:
|
|
37
|
-
opacity:
|
|
38
|
-
overflow:
|
|
39
|
-
...
|
|
35
|
+
width: s ? "100%" : 0,
|
|
36
|
+
pointerEvents: s ? "auto" : "none",
|
|
37
|
+
opacity: s ? 1 : 0,
|
|
38
|
+
overflow: s ? "inherit" : "hidden",
|
|
39
|
+
...s ? {} : {
|
|
40
40
|
position: "absolute",
|
|
41
41
|
left: 0,
|
|
42
42
|
right: 0
|
|
43
43
|
}
|
|
44
|
-
}), [
|
|
44
|
+
}), [s]), C = {
|
|
45
45
|
size: 26,
|
|
46
46
|
color: o.colorPrimary
|
|
47
|
-
}, [a] =
|
|
48
|
-
var z,
|
|
49
|
-
let
|
|
50
|
-
return (z =
|
|
51
|
-
disabled: (
|
|
52
|
-
className:
|
|
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;
|
|
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,
|
|
52
|
+
className: d
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
p(() => {
|
|
56
56
|
a.setFieldsValue({
|
|
57
57
|
...b,
|
|
58
58
|
...R,
|
|
@@ -64,7 +64,7 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
64
64
|
...b,
|
|
65
65
|
stylesScope: !1
|
|
66
66
|
});
|
|
67
|
-
},
|
|
67
|
+
}, F = ie({
|
|
68
68
|
defaultSize: H,
|
|
69
69
|
items: [
|
|
70
70
|
{
|
|
@@ -85,7 +85,7 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
85
85
|
{
|
|
86
86
|
key: "lg",
|
|
87
87
|
label: "宽松",
|
|
88
|
-
icon:
|
|
88
|
+
icon: B
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: "xl",
|
|
@@ -94,14 +94,14 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
});
|
|
97
|
-
_(
|
|
97
|
+
_(n, () => ({
|
|
98
98
|
getFormInstance: () => a
|
|
99
99
|
}));
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
}, []), /* @__PURE__ */ e.jsx("div", { style:
|
|
104
|
-
|
|
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(
|
|
104
|
+
i,
|
|
105
105
|
{
|
|
106
106
|
form: a,
|
|
107
107
|
style: { width: "100%" },
|
|
@@ -110,14 +110,14 @@ const te = ({ 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(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)) }) }),
|
|
114
|
+
/* @__PURE__ */ e.jsx(i.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
|
|
115
|
+
u.Group,
|
|
116
116
|
{
|
|
117
|
-
...
|
|
117
|
+
...c("bordered", "splitBorderRadioGroup"),
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */ e.jsx(
|
|
120
|
-
/* @__PURE__ */ e.jsx(
|
|
119
|
+
/* @__PURE__ */ e.jsx(r, { label: "无分割线", value: "hide", children: /* @__PURE__ */ e.jsx(V, { size: 26, color: o.colorPrimaryHover }) }),
|
|
120
|
+
/* @__PURE__ */ e.jsx(r, { label: "行分割线", value: "row", children: /* @__PURE__ */ e.jsx(
|
|
121
121
|
D,
|
|
122
122
|
{
|
|
123
123
|
size: 26,
|
|
@@ -129,7 +129,7 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
) }),
|
|
132
|
-
/* @__PURE__ */ e.jsx(
|
|
132
|
+
/* @__PURE__ */ e.jsx(r, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
|
|
133
133
|
J,
|
|
134
134
|
{
|
|
135
135
|
size: 26,
|
|
@@ -141,7 +141,7 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
) }),
|
|
144
|
-
/* @__PURE__ */ e.jsx(
|
|
144
|
+
/* @__PURE__ */ e.jsx(r, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
|
|
145
145
|
$,
|
|
146
146
|
{
|
|
147
147
|
size: 26,
|
|
@@ -156,15 +156,15 @@ const te = ({ 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(i.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("zebra", "zebraRadioGroup"), children: [
|
|
160
|
+
/* @__PURE__ */ e.jsx(r, { 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(r, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
|
|
168
168
|
L,
|
|
169
169
|
{
|
|
170
170
|
size: 26,
|
|
@@ -172,9 +172,15 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
172
172
|
}
|
|
173
173
|
) })
|
|
174
174
|
] }) }),
|
|
175
|
+
/* @__PURE__ */ e.jsx(i.Item, { label: "分页设置", name: "pageSize", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("pageSize", "pageSizeGroup"), children: [
|
|
176
|
+
/* @__PURE__ */ e.jsx(r, { label: "10条", value: 10, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
177
|
+
/* @__PURE__ */ e.jsx(r, { label: "20条", value: 20, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
178
|
+
/* @__PURE__ */ e.jsx(r, { label: "50条", value: 50, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
179
|
+
/* @__PURE__ */ e.jsx(r, { label: "100条", value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
|
|
180
|
+
] }) }),
|
|
175
181
|
/* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
|
|
176
|
-
/* @__PURE__ */ e.jsx(
|
|
177
|
-
/* @__PURE__ */ e.jsx(
|
|
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(
|
|
178
184
|
q,
|
|
179
185
|
{
|
|
180
186
|
type: "link",
|
|
@@ -188,7 +194,7 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
188
194
|
]
|
|
189
195
|
}
|
|
190
196
|
) });
|
|
191
|
-
}), Re = oe(
|
|
197
|
+
}), Re = oe(ne);
|
|
192
198
|
export {
|
|
193
199
|
Re as default
|
|
194
200
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../_virtual/
|
|
2
|
+
import { __module as i } from "../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|