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
|
@@ -8,6 +8,16 @@ interface TableConfigBySize {
|
|
|
8
8
|
fontSize?: number;
|
|
9
9
|
height?: number;
|
|
10
10
|
lineHeight?: number;
|
|
11
|
+
skeletonHeight?: number;
|
|
12
|
+
}
|
|
13
|
+
/** BitzTableSelect组件token */
|
|
14
|
+
export interface BitzTableSelectComponentToken {
|
|
15
|
+
/** table与分页组件的纵向间隙距离 */
|
|
16
|
+
tableSpaceBetweenPage?: number;
|
|
17
|
+
/** list背景颜色 移动端 */
|
|
18
|
+
mobileListBgColor?: string;
|
|
19
|
+
/** listItem背景颜色 移动端 */
|
|
20
|
+
listItemBgColor?: string;
|
|
11
21
|
}
|
|
12
22
|
/** 给ant table组件添加design token */
|
|
13
23
|
export interface BitzTableComponentToken extends TableComponentToken {
|
|
@@ -19,6 +29,8 @@ export interface BitzTableComponentToken extends TableComponentToken {
|
|
|
19
29
|
radioCheckboxBorderColor?: string;
|
|
20
30
|
/** 展开按钮border颜色 */
|
|
21
31
|
expandIconBorderColor?: string;
|
|
32
|
+
/** table与分页组件的纵向间隙距离 */
|
|
33
|
+
tableSpaceBetweenPage?: number;
|
|
22
34
|
/** xl */
|
|
23
35
|
xlTable?: TableConfigBySize;
|
|
24
36
|
/** lg */
|
|
@@ -37,6 +49,7 @@ export interface BitzTableComponentToken extends TableComponentToken {
|
|
|
37
49
|
/** 增强ComponentTokenMap Table属性的类型 */
|
|
38
50
|
export interface BitzComponentTokenMap extends Omit<ComponentTokenMap, 'Table'> {
|
|
39
51
|
Table: BitzTableComponentToken;
|
|
52
|
+
BitzTableSelect: BitzTableSelectComponentToken;
|
|
40
53
|
}
|
|
41
54
|
type OverrideToken = {
|
|
42
55
|
[key in keyof BitzComponentTokenMap]: Partial<BitzComponentTokenMap[key]> & Partial<AliasToken>;
|
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) => {
|
|
10
|
-
const m = v(() => {
|
|
11
|
-
var e, f;
|
|
12
|
-
let i = !0;
|
|
13
|
-
((e = r == null ? void 0 : r.Table) == null ? void 0 : e.fillEvenRow) === !1 && (i = !1);
|
|
14
|
-
let l = !0;
|
|
15
|
-
return ((f = r == null ? void 0 : r.Table) == null ? void 0 : f.rowHoverable) === !1 && (l = !1), {
|
|
16
|
-
...r,
|
|
17
|
-
Table: {
|
|
18
|
-
...r == null ? void 0 : r.Table,
|
|
19
|
-
fillEvenRow: i,
|
|
20
|
-
rowHoverable: l
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, [r]);
|
|
24
|
-
return /* @__PURE__ */ a.jsx(u, { ...o, children: /* @__PURE__ */ a.jsx(b.Provider, { value: m, children: s }) });
|
|
25
|
-
};
|
|
1
|
+
import { j as r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { ConfigProvider as e } from "antd";
|
|
3
|
+
import { BitzConfigContext as n } from "./context.mjs";
|
|
4
|
+
const x = ({
|
|
5
|
+
children: o,
|
|
6
|
+
context: i,
|
|
7
|
+
...t
|
|
8
|
+
}) => /* @__PURE__ */ r.jsx(e, { ...t, children: /* @__PURE__ */ r.jsx(n.Provider, { value: i ?? {}, children: o }) });
|
|
26
9
|
export {
|
|
27
|
-
|
|
10
|
+
x as default
|
|
28
11
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as b } from "react";
|
|
3
|
-
import { Space as u
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { Space as u } from "antd";
|
|
4
|
+
import f from "../../BitzButton/index.mjs";
|
|
5
|
+
import c from "./style.mjs";
|
|
6
|
+
import g from "../Dropdown/index.mjs";
|
|
6
7
|
import w from "../../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
7
8
|
import B from "../../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
8
|
-
const
|
|
9
|
-
size:
|
|
9
|
+
const G = ({
|
|
10
|
+
size: h,
|
|
10
11
|
add: i,
|
|
11
12
|
excel: t,
|
|
12
|
-
children:
|
|
13
|
+
children: d
|
|
13
14
|
}) => {
|
|
14
|
-
const { blockCls: j, addBtnClassName: k, btnClassName: C } =
|
|
15
|
-
var
|
|
15
|
+
const { blockCls: j, addBtnClassName: k, btnClassName: C } = c(h), y = b(() => {
|
|
16
|
+
var s, r, n, m, a, l, p, e;
|
|
16
17
|
return [
|
|
17
18
|
{
|
|
18
|
-
key: ((
|
|
19
|
+
key: ((r = (s = t.menu) == null ? void 0 : s[0]) == null ? void 0 : r.key) || "download",
|
|
19
20
|
label: ((m = (n = t.menu) == null ? void 0 : n[0]) == null ? void 0 : m.label) || "Excel模板下载"
|
|
20
21
|
// icon: excel.menu?.[0]?.icon || (
|
|
21
22
|
// <CloudDownloadOutlined style={{ fontSize: 14 }} />
|
|
@@ -31,34 +32,34 @@ const F = ({
|
|
|
31
32
|
...(t == null ? void 0 : t.otherMenu) ?? []
|
|
32
33
|
];
|
|
33
34
|
}, [t]);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
i.show !== !1 && /* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
return /* @__PURE__ */ o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [
|
|
36
|
+
i.show !== !1 && /* @__PURE__ */ o.jsx(
|
|
37
|
+
f,
|
|
37
38
|
{
|
|
38
39
|
type: "primary",
|
|
39
|
-
icon: /* @__PURE__ */
|
|
40
|
+
icon: /* @__PURE__ */ o.jsx(w, {}),
|
|
40
41
|
onClick: i.onClick,
|
|
41
42
|
className: k,
|
|
42
43
|
children: i.text
|
|
43
44
|
}
|
|
44
45
|
),
|
|
45
|
-
|
|
46
|
-
t.show !== !1 && /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
d,
|
|
47
|
+
t.show !== !1 && /* @__PURE__ */ o.jsx(
|
|
48
|
+
g,
|
|
48
49
|
{
|
|
49
|
-
menu: { items: y, onClick: ({ key:
|
|
50
|
-
var
|
|
51
|
-
return (
|
|
50
|
+
menu: { items: y, onClick: ({ key: s }) => {
|
|
51
|
+
var r;
|
|
52
|
+
return (r = t.onClick) == null ? void 0 : r.call(t, s);
|
|
52
53
|
} },
|
|
53
54
|
trigger: (t == null ? void 0 : t.trigger) || ["click"],
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ o.jsx(f, { className: C, type: "text", children: /* @__PURE__ */ o.jsxs(u, { size: 6, children: [
|
|
56
|
+
/* @__PURE__ */ o.jsx("span", { children: t.text ?? "Excel文档导入" }),
|
|
57
|
+
/* @__PURE__ */ o.jsx(B, {})
|
|
57
58
|
] }) })
|
|
58
59
|
}
|
|
59
60
|
)
|
|
60
61
|
] });
|
|
61
62
|
};
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
G as default
|
|
64
65
|
};
|
|
@@ -14,7 +14,7 @@ import { TableContext as N } from "../Store/index.mjs";
|
|
|
14
14
|
import z from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import w from "../../BitzTheme/index.mjs";
|
|
16
16
|
const Q = (m) => {
|
|
17
|
-
const { theme: g, hashId: n, token: i } = w.useToken(), { tableSize: s } = D(N),
|
|
17
|
+
const { theme: g, hashId: n, token: i } = w.useToken(), { tableSize: s } = D(N), u = v(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn", h = (o, l, t, e) => {
|
|
18
18
|
var $, b, T, S, f;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
@@ -23,7 +23,6 @@ const Q = (m) => {
|
|
|
23
23
|
borderRadius: 0,
|
|
24
24
|
paddingBlock: 0,
|
|
25
25
|
borderColor: "transparent",
|
|
26
|
-
lineHeight: "normal",
|
|
27
26
|
".ant-btn-icon .anticon": {
|
|
28
27
|
verticalAlign: "-0.14em"
|
|
29
28
|
}
|
|
@@ -81,11 +80,11 @@ const Q = (m) => {
|
|
|
81
80
|
path: [r]
|
|
82
81
|
},
|
|
83
82
|
() => [
|
|
84
|
-
|
|
83
|
+
h(r, a, c, i),
|
|
85
84
|
B(r, p, i)
|
|
86
85
|
]
|
|
87
86
|
);
|
|
88
|
-
const d = `${
|
|
87
|
+
const d = `${u}${c}`, x = z(a, d, n), y = z(a, p, d, n);
|
|
89
88
|
return { blockCls: r, addBtnClassName: x, btnClassName: y };
|
|
90
89
|
};
|
|
91
90
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext as
|
|
1
|
+
import { useContext as N, useMemo as T } from "react";
|
|
2
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
@@ -8,46 +8,41 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@an
|
|
|
8
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import z from "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.4/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import { TableContext as
|
|
13
|
+
import { TableContext as E } from "../Store/index.mjs";
|
|
14
14
|
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const { tableSize:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{ [`.xl${o}`]: { fontSize: (T = i.Table.xlTable) == null ? void 0 : T.fontSize } },
|
|
37
|
-
{ [`.lg${o}`]: { fontSize: (b = i.Table.lgTable) == null ? void 0 : b.fontSize } },
|
|
38
|
-
{ [`.md${o}`]: { fontSize: (g = i.Table.mdTable) == null ? void 0 : g.fontSize } },
|
|
39
|
-
{ [`.sm${o}`]: { fontSize: (z = i.Table.smTable) == null ? void 0 : z.fontSize } },
|
|
40
|
-
{ [`.xs${o}`]: { fontSize: (v = i.Table.xsTable) == null ? void 0 : v.fontSize } },
|
|
41
|
-
{
|
|
42
|
-
[`.${A}`]: {
|
|
43
|
-
position: "absolute",
|
|
44
|
-
insetBlock: -1,
|
|
45
|
-
insetInline: 0,
|
|
46
|
-
zIndex: 1
|
|
15
|
+
import w from "../../BitzTheme/index.mjs";
|
|
16
|
+
const Q = () => {
|
|
17
|
+
const { tableSize: i } = N(E);
|
|
18
|
+
T(() => i ?? "lg", [i]);
|
|
19
|
+
const { theme: h, hashId: r, token: s } = w.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", B = 24, g = (t, o) => [
|
|
20
|
+
{
|
|
21
|
+
[`.${t}`]: {
|
|
22
|
+
fontSize: "inherit",
|
|
23
|
+
padding: 0,
|
|
24
|
+
margin: 0,
|
|
25
|
+
background: "inherit",
|
|
26
|
+
border: "none",
|
|
27
|
+
height: "auto",
|
|
28
|
+
zIndex: 2,
|
|
29
|
+
"&:hover": {
|
|
30
|
+
background: "inherit !important"
|
|
31
|
+
},
|
|
32
|
+
"&:active": {
|
|
33
|
+
background: "inherit !important"
|
|
47
34
|
}
|
|
48
35
|
}
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
[`.${o}`]: {
|
|
39
|
+
position: "absolute",
|
|
40
|
+
insetBlock: -1,
|
|
41
|
+
insetInline: 0,
|
|
42
|
+
zIndex: 1
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
], u = (t, o) => [
|
|
51
46
|
{
|
|
52
47
|
[`.${t}`]: {
|
|
53
48
|
color: o.colorPrimary,
|
|
@@ -59,7 +54,7 @@ const eo = () => {
|
|
|
59
54
|
}
|
|
60
55
|
}
|
|
61
56
|
}
|
|
62
|
-
],
|
|
57
|
+
], v = (t, o) => [
|
|
63
58
|
{
|
|
64
59
|
[`.${t}`]: {
|
|
65
60
|
color: o.colorError,
|
|
@@ -71,7 +66,7 @@ const eo = () => {
|
|
|
71
66
|
}
|
|
72
67
|
}
|
|
73
68
|
}
|
|
74
|
-
],
|
|
69
|
+
], C = (t, o) => [
|
|
75
70
|
{
|
|
76
71
|
[`.${t}`]: {
|
|
77
72
|
color: o.colorText,
|
|
@@ -83,65 +78,53 @@ const eo = () => {
|
|
|
83
78
|
}
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
|
-
],
|
|
81
|
+
], y = (t, o) => [
|
|
87
82
|
{
|
|
88
83
|
[`.${t}`]: {
|
|
84
|
+
fontSize: "inherit",
|
|
89
85
|
pointerEvents: "none",
|
|
90
86
|
position: "relative",
|
|
87
|
+
lineHeight: "normal",
|
|
91
88
|
span: {
|
|
92
89
|
opacity: 0
|
|
93
90
|
}
|
|
94
91
|
},
|
|
95
92
|
[`.${t} .${o}`]: {
|
|
96
93
|
position: "absolute",
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
inset: 0,
|
|
95
|
+
".ant-skeleton-paragraph": {
|
|
96
|
+
height: "auto !important"
|
|
97
|
+
}
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
];
|
|
102
|
-
|
|
101
|
+
z(
|
|
103
102
|
{
|
|
104
103
|
theme: h,
|
|
105
104
|
token: s,
|
|
106
|
-
hashId:
|
|
107
|
-
path: [
|
|
105
|
+
hashId: r,
|
|
106
|
+
path: [e]
|
|
108
107
|
},
|
|
109
108
|
() => [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
g(e, d),
|
|
110
|
+
u(a, s),
|
|
111
|
+
v(l, s),
|
|
112
|
+
C(c, s),
|
|
113
|
+
y(m, p)
|
|
115
114
|
]
|
|
116
115
|
);
|
|
117
|
-
const l =
|
|
118
|
-
r,
|
|
119
|
-
m,
|
|
120
|
-
l,
|
|
121
|
-
e
|
|
122
|
-
), w = n(r, p, l, e), I = n(
|
|
123
|
-
r,
|
|
124
|
-
d,
|
|
125
|
-
l,
|
|
126
|
-
e
|
|
127
|
-
), D = n(
|
|
128
|
-
r,
|
|
129
|
-
$,
|
|
130
|
-
l,
|
|
131
|
-
e
|
|
132
|
-
), P = n(B, e), M = n(S, e);
|
|
116
|
+
const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), H = n(d, r);
|
|
133
117
|
return {
|
|
134
|
-
gap:
|
|
135
|
-
defaultCls:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
maskClassName: M
|
|
118
|
+
gap: B,
|
|
119
|
+
defaultCls: e,
|
|
120
|
+
primaryBtnClassName: $,
|
|
121
|
+
dangerBtnClassName: f,
|
|
122
|
+
dropdownBtnClassName: S,
|
|
123
|
+
skeletonBtnClassName: x,
|
|
124
|
+
skeletonClassName: b,
|
|
125
|
+
maskClassName: H
|
|
143
126
|
};
|
|
144
127
|
};
|
|
145
128
|
export {
|
|
146
|
-
|
|
129
|
+
Q as default
|
|
147
130
|
};
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Space as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
2
|
+
import a from "../../BitzButton/index.mjs";
|
|
3
|
+
import d from "../../BitzConvert/index.mjs";
|
|
4
|
+
import { Space as x } from "antd";
|
|
5
|
+
import { useMemo as h } from "react";
|
|
6
|
+
import c from "./style.mjs";
|
|
7
|
+
import j from "../Dropdown/style.mjs";
|
|
8
|
+
import m from "../../../node_modules/.store/@ant-design_icons@5.3.3/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
9
|
+
const l = (t, o) => t == null ? void 0 : t.map((e) => {
|
|
10
|
+
const r = { ...e };
|
|
11
|
+
return r != null && r.children && (r.children = l(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
|
|
12
|
+
}), b = ({
|
|
8
13
|
...t
|
|
9
14
|
}) => {
|
|
10
|
-
const { btnClassName:
|
|
11
|
-
return /* @__PURE__ */ s.jsx(
|
|
12
|
-
},
|
|
13
|
-
const { btnClassName:
|
|
15
|
+
const { btnClassName: o } = c();
|
|
16
|
+
return /* @__PURE__ */ s.jsx(a, { className: o, type: "text", ...t });
|
|
17
|
+
}, w = ({ menu: t, children: o, showTootip: e, tipText: r }) => {
|
|
18
|
+
const { btnClassName: p } = c(), { popupClassName: i } = j(), n = h(() => l(t == null ? void 0 : t.items, i), [t == null ? void 0 : t.items]);
|
|
14
19
|
return /* @__PURE__ */ s.jsx(
|
|
15
|
-
|
|
20
|
+
d.DropdownToButton,
|
|
16
21
|
{
|
|
17
|
-
menu: t,
|
|
22
|
+
menu: { ...t, items: n },
|
|
23
|
+
overlayClassName: i,
|
|
18
24
|
trigger: ["click"],
|
|
19
25
|
showTootip: e,
|
|
20
|
-
tipText:
|
|
21
|
-
children: /* @__PURE__ */ s.jsx(
|
|
26
|
+
tipText: r,
|
|
27
|
+
children: /* @__PURE__ */ s.jsx(a, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(x, { size: 2, children: [
|
|
22
28
|
(t == null ? void 0 : t.items) && t.items.length > 1 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
23
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
24
|
-
/* @__PURE__ */ s.jsx(
|
|
29
|
+
/* @__PURE__ */ s.jsx("span", { children: o }),
|
|
30
|
+
/* @__PURE__ */ s.jsx(m, {})
|
|
25
31
|
] }),
|
|
26
32
|
(t == null ? void 0 : t.items) && t.items.length === 1 && /* @__PURE__ */ s.jsx("span", { children: t.items[0].label })
|
|
27
33
|
] }) })
|
|
@@ -29,6 +35,6 @@ const f = ({
|
|
|
29
35
|
);
|
|
30
36
|
};
|
|
31
37
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
b as BitzSelectionBarButton,
|
|
39
|
+
w as BitzSelectionBarDropdownButton
|
|
34
40
|
};
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { Space as t, Flex as
|
|
2
|
+
import j from "../../BitzButton/index.mjs";
|
|
3
|
+
import { Space as t, Flex as a } from "antd";
|
|
4
4
|
import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
import { useMemo as h } from "react";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import C from "./style.mjs";
|
|
7
|
+
const k = ({
|
|
8
8
|
show: e,
|
|
9
|
-
num:
|
|
10
|
-
onClear:
|
|
11
|
-
children:
|
|
9
|
+
num: r,
|
|
10
|
+
onClear: l,
|
|
11
|
+
children: n
|
|
12
12
|
}) => {
|
|
13
|
-
const {
|
|
14
|
-
|
|
13
|
+
const {
|
|
14
|
+
blockClassName: o,
|
|
15
|
+
showCls: c,
|
|
16
|
+
btnClassName: i,
|
|
17
|
+
batchOperationClassName: m,
|
|
18
|
+
alertContentClassName: p
|
|
19
|
+
} = C(), x = h(() => d(o, {
|
|
20
|
+
[`${c}`]: e
|
|
15
21
|
}), [e]);
|
|
16
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
17
|
-
/* @__PURE__ */ s.jsx(t.Compact, { className: m, children:
|
|
18
|
-
/* @__PURE__ */ s.jsxs(
|
|
19
|
-
/* @__PURE__ */ s.jsxs(
|
|
20
|
-
/* @__PURE__ */ s.jsxs(t, { size: 10,
|
|
22
|
+
return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
|
|
23
|
+
/* @__PURE__ */ s.jsx(t.Compact, { className: m, children: n }),
|
|
24
|
+
/* @__PURE__ */ s.jsxs(a, { gap: 7, className: p, children: [
|
|
25
|
+
/* @__PURE__ */ s.jsxs(a, { gap: 20, align: "center", children: [
|
|
26
|
+
/* @__PURE__ */ s.jsxs(t, { size: 10, children: [
|
|
21
27
|
/* @__PURE__ */ s.jsx("span", { children: "已选中" }),
|
|
22
|
-
/* @__PURE__ */ s.jsx("strong", { children:
|
|
28
|
+
/* @__PURE__ */ s.jsx("strong", { children: r ?? 0 })
|
|
23
29
|
] }),
|
|
24
30
|
/* @__PURE__ */ s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })
|
|
25
31
|
] }),
|
|
26
|
-
/* @__PURE__ */ s.jsx(
|
|
32
|
+
/* @__PURE__ */ s.jsx(j, { type: "text", className: i, onClick: l, children: "取消选中" })
|
|
27
33
|
] })
|
|
28
34
|
] });
|
|
29
35
|
};
|
|
30
36
|
export {
|
|
31
|
-
|
|
37
|
+
k as default
|
|
32
38
|
};
|