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.
@@ -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 C from "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
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 r from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
- import y from "../ActionCol/style.mjs";
16
- const A = () => {
17
- const { sizeCls: s } = y(), { theme: l, hashId: t, token: a } = $.useToken(), e = "bitzTableSelectionBar", n = "batchOperation", i = "selectionAction", m = "show", c = (o, b, u, d, g) => [
18
- {
19
- [`.${o}`]: {
20
- height: "var(--toolbar-height)",
21
- display: "flex",
22
- justifyContent: "space-between",
23
- columnGap: 50,
24
- alignItems: "center",
25
- color: "#fff",
26
- backgroundColor: g.colorPrimary,
27
- position: "absolute",
28
- inset: 0,
29
- transform: "translateY(100%)",
30
- transition: "transform 0.2s"
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
- [`.${o} .${d}`]: {
49
- color: "#fff",
50
- height: "100%",
51
- borderRadius: 0,
52
- paddingBlock: 0,
53
- borderColor: "transparent",
54
- "&:hover": {
55
- color: "#fff !important"
56
- },
57
- "&:active": {
58
- color: "#fff !important"
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
- C(
99
+ ];
100
+ };
101
+ G(
64
102
  {
65
- theme: l,
66
- token: a,
67
- hashId: t,
68
- path: [e]
103
+ theme: b,
104
+ token: i,
105
+ hashId: o,
106
+ path: [r]
69
107
  },
70
108
  () => [
71
- c(e, m, n, i, a)
109
+ g(
110
+ r,
111
+ l,
112
+ s,
113
+ m,
114
+ f,
115
+ i
116
+ )
72
117
  ]
73
118
  );
74
- const p = r(e, s, t), f = r(i, s, t), h = r(n, t);
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: p,
77
- showCls: m,
78
- btnClassName: f,
79
- batchOperationClassName: h
121
+ blockClassName: d,
122
+ showCls: l,
123
+ btnClassName: T,
124
+ batchOperationClassName: w,
125
+ alertContentClassName: x
80
126
  };
81
127
  };
82
128
  export {
83
- A as default
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
  */