bitz-react-admin-ui 1.8.3 → 1.9.0
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/BitzConfigProvider/index.d.ts +13 -0
- package/dist/components/BitzConfigProvider/index.mjs +9 -26
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +25 -24
- package/dist/components/BitzTable/ActionBar/style.mjs +3 -4
- package/dist/components/BitzTable/ActionCol/style.d.ts +0 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +59 -76
- package/dist/components/BitzTable/SelectionBar/Button.mjs +24 -18
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +23 -17
- package/dist/components/BitzTable/SelectionBar/style.d.ts +1 -0
- package/dist/components/BitzTable/SelectionBar/style.mjs +107 -61
- package/dist/components/BitzTable/Table/index.d.ts +4 -0
- package/dist/components/BitzTable/Table/index.mjs +244 -266
- package/dist/components/BitzTable/Table/style.d.ts +39 -0
- package/dist/components/BitzTable/Table/style.mjs +46 -0
- package/dist/components/BitzTable/ToolBar/style.mjs +0 -1
- package/dist/components/BitzTableSelect/SelectPopup/getData.d.ts +0 -2
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -17
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +171 -178
- package/dist/components/BitzTableSelect/index.d.ts +3 -1
- package/dist/components/BitzTableSelect/index.mjs +39 -38
- package/dist/style.css +1 -1
- package/package.json +3 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { theme as $ } from "antd";
|
|
2
1
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
|
-
import "react";
|
|
3
|
+
import { useContext as C, useMemo as O } from "react";
|
|
5
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
6
5
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
|
|
7
6
|
import "../../../node_modules/.store/rc-util@5.39.1/node_modules/rc-util/es/warning.mjs";
|
|
@@ -9,76 +8,123 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@an
|
|
|
9
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
10
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
11
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
12
|
-
import
|
|
11
|
+
import G from "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
13
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[`.${o}.${b}`]: {
|
|
35
|
-
transform: "translateY(0%)"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
[`.${o} .${u}`]: {
|
|
40
|
-
height: "100%",
|
|
41
|
-
overflow: "auto hidden",
|
|
42
|
-
"::-webkit-scrollbar": {
|
|
43
|
-
height: 4
|
|
13
|
+
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
14
|
+
import { TableContext as I } from "../Store/index.mjs";
|
|
15
|
+
import R from "../../BitzTheme/index.mjs";
|
|
16
|
+
const V = () => {
|
|
17
|
+
const { tableSize: a } = C(I), S = O(() => a ?? "lg", [a]), { theme: b, hashId: o, token: i } = R.useToken(), r = "bitzTableSelectionBar", s = "batchOperation", m = "selectionAction", f = "alertContent", l = "show", g = (t, y, N, v, B, e) => {
|
|
18
|
+
var p, h, c, $, z;
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
[`.${t}`]: {
|
|
22
|
+
height: "var(--toolbar-height)",
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: "space-between",
|
|
25
|
+
columnGap: 50,
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
color: "#fff",
|
|
28
|
+
backgroundColor: e.colorPrimary,
|
|
29
|
+
position: "absolute",
|
|
30
|
+
inset: 0,
|
|
31
|
+
transform: "translateY(100%)",
|
|
32
|
+
transition: "transform 0.2s"
|
|
44
33
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
[`.${t}.${y}`]: {
|
|
37
|
+
transform: "translateY(0%)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
[`.${t} .${N}`]: {
|
|
42
|
+
fontSize: "inherit",
|
|
43
|
+
height: "100%",
|
|
44
|
+
overflow: "auto hidden",
|
|
45
|
+
"::-webkit-scrollbar": {
|
|
46
|
+
height: 4
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
[`.${t} .${B}`]: {
|
|
52
|
+
height: "100%",
|
|
53
|
+
"span, strong": {
|
|
54
|
+
wordBreak: "keep-all"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
[`.${t} .${v}`]: {
|
|
60
|
+
fontSize: "inherit",
|
|
61
|
+
color: "#fff",
|
|
62
|
+
height: "100%",
|
|
63
|
+
borderRadius: 0,
|
|
64
|
+
paddingBlock: 0,
|
|
65
|
+
borderColor: "transparent",
|
|
66
|
+
"&:hover": {
|
|
67
|
+
color: "#fff !important"
|
|
68
|
+
},
|
|
69
|
+
"&:active": {
|
|
70
|
+
color: "#fff !important"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
[`.${t}.xl${t}`]: {
|
|
76
|
+
fontSize: (p = e.Table.xlTable) == null ? void 0 : p.fontSize
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
[`.${t}.lg${t}`]: {
|
|
81
|
+
fontSize: (h = e.Table.lgTable) == null ? void 0 : h.fontSize
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
[`.${t}.md${t}`]: {
|
|
86
|
+
fontSize: (c = e.Table.mdTable) == null ? void 0 : c.fontSize
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
[`.${t}.sm${t}`]: {
|
|
91
|
+
fontSize: ($ = e.Table.smTable) == null ? void 0 : $.fontSize
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
[`.${t}.xs${t}`]: {
|
|
96
|
+
fontSize: (z = e.Table.xsTable) == null ? void 0 : z.fontSize
|
|
59
97
|
}
|
|
60
98
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
99
|
+
];
|
|
100
|
+
};
|
|
101
|
+
G(
|
|
64
102
|
{
|
|
65
|
-
theme:
|
|
66
|
-
token:
|
|
67
|
-
hashId:
|
|
68
|
-
path: [
|
|
103
|
+
theme: b,
|
|
104
|
+
token: i,
|
|
105
|
+
hashId: o,
|
|
106
|
+
path: [r]
|
|
69
107
|
},
|
|
70
108
|
() => [
|
|
71
|
-
|
|
109
|
+
g(
|
|
110
|
+
r,
|
|
111
|
+
l,
|
|
112
|
+
s,
|
|
113
|
+
m,
|
|
114
|
+
f,
|
|
115
|
+
i
|
|
116
|
+
)
|
|
72
117
|
]
|
|
73
118
|
);
|
|
74
|
-
const
|
|
119
|
+
const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
|
|
75
120
|
return {
|
|
76
|
-
blockClassName:
|
|
77
|
-
showCls:
|
|
78
|
-
btnClassName:
|
|
79
|
-
batchOperationClassName:
|
|
121
|
+
blockClassName: d,
|
|
122
|
+
showCls: l,
|
|
123
|
+
btnClassName: T,
|
|
124
|
+
batchOperationClassName: w,
|
|
125
|
+
alertContentClassName: x
|
|
80
126
|
};
|
|
81
127
|
};
|
|
82
128
|
export {
|
|
83
|
-
|
|
129
|
+
V as default
|
|
84
130
|
};
|
|
@@ -6,6 +6,10 @@ import { ColumnStateType, DensitySize, SizeStateType } from '../Store';
|
|
|
6
6
|
import { ActionsFunType, BitzTableColumnsType } from '..';
|
|
7
7
|
import './index.less';
|
|
8
8
|
export interface BitzTableProps<RecordType = any> extends Omit<TableProps<RecordType>, 'size' | 'pagination'> {
|
|
9
|
+
/**
|
|
10
|
+
* 是否开启rowHover样式
|
|
11
|
+
*/
|
|
12
|
+
rowHoverable?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* PC端:是否显示分页
|
|
11
15
|
*/
|