bitz-react-admin-ui 2.3.3 → 2.3.5
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/components/BitzTable/ActionCol/index.mjs +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +8 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -24
- package/dist/components/BitzTable/Table/index.mjs +193 -184
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +43 -45
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +49 -49
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ function E({
|
|
|
91
91
|
}
|
|
92
92
|
function K(l) {
|
|
93
93
|
var m;
|
|
94
|
-
const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 :
|
|
94
|
+
const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 : 141, [s, x]);
|
|
95
95
|
return u(() => ({
|
|
96
96
|
width: Math.floor(i),
|
|
97
97
|
mobileHide: !0,
|
|
@@ -14,9 +14,9 @@ import { BitzTableContext as T } from "../Store/index.mjs";
|
|
|
14
14
|
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import E from "../../BitzTheme/index.mjs";
|
|
16
16
|
const O = () => {
|
|
17
|
-
const { tableSize:
|
|
18
|
-
H(() =>
|
|
19
|
-
const { theme: B, hashId: r, token:
|
|
17
|
+
const { tableSize: i } = z(T);
|
|
18
|
+
H(() => i ?? "lg", [i]);
|
|
19
|
+
const { theme: B, hashId: r, token: s } = E.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", h = (t, o) => [
|
|
20
20
|
{
|
|
21
21
|
[`.${t}`]: {
|
|
22
22
|
fontSize: "inherit",
|
|
@@ -36,6 +36,7 @@ const O = () => {
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
[`.${o}`]: {
|
|
39
|
+
cursor: "default",
|
|
39
40
|
position: "absolute",
|
|
40
41
|
insetBlock: -1,
|
|
41
42
|
insetInline: 0,
|
|
@@ -101,15 +102,15 @@ const O = () => {
|
|
|
101
102
|
N(
|
|
102
103
|
{
|
|
103
104
|
theme: B,
|
|
104
|
-
token:
|
|
105
|
+
token: s,
|
|
105
106
|
hashId: r,
|
|
106
107
|
path: [e]
|
|
107
108
|
},
|
|
108
109
|
() => [
|
|
109
110
|
h(e, d),
|
|
110
|
-
u(a,
|
|
111
|
-
g(l,
|
|
112
|
-
C(c,
|
|
111
|
+
u(a, s),
|
|
112
|
+
g(l, s),
|
|
113
|
+
C(c, s),
|
|
113
114
|
v(m, p)
|
|
114
115
|
]
|
|
115
116
|
);
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Space as
|
|
3
|
-
import
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { BitzTableContext as
|
|
1
|
+
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Space as c } from "antd";
|
|
3
|
+
import i from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { useContext as n, useMemo as p } from "react";
|
|
5
|
+
import { BitzTableContext as x } from "../Store/index.mjs";
|
|
6
6
|
import d from "./style.mjs";
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
alertContentClassName: N
|
|
14
|
-
} = d(), { setSelected: m, toolbarWidth: s } = p(C), c = f(() => n(o, {
|
|
15
|
-
[`${r}`]: t
|
|
16
|
-
}), [t]);
|
|
17
|
-
return x(() => {
|
|
18
|
-
m(t ?? !1);
|
|
19
|
-
}, [t]), /* @__PURE__ */ e.jsx("div", { className: c, children: /* @__PURE__ */ e.jsx(
|
|
20
|
-
i.Compact,
|
|
7
|
+
const N = ({ children: o }) => {
|
|
8
|
+
const { blockClassName: r, showCls: a, batchOperationClassName: m } = d(), { selected: s, toolbarWidth: e } = n(x), l = p(() => i(r, {
|
|
9
|
+
[`${a}`]: s
|
|
10
|
+
}), [s]);
|
|
11
|
+
return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
|
|
12
|
+
c.Compact,
|
|
21
13
|
{
|
|
22
|
-
className:
|
|
14
|
+
className: m,
|
|
23
15
|
style: {
|
|
24
|
-
...
|
|
25
|
-
width: `calc(100% - 50px - ${
|
|
16
|
+
...e && {
|
|
17
|
+
width: `calc(100% - 50px - ${e}px)`
|
|
26
18
|
}
|
|
27
19
|
},
|
|
28
|
-
children:
|
|
20
|
+
children: o || /* @__PURE__ */ t.jsx("div", {})
|
|
29
21
|
}
|
|
30
22
|
) });
|
|
31
23
|
};
|
|
32
24
|
export {
|
|
33
|
-
|
|
25
|
+
N as default
|
|
34
26
|
};
|