bitz-react-admin-ui 2.3.1 → 2.3.3
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/_commonjsHelpers.mjs +4 -26
- package/dist/components/BitzConfigProvider/context.d.ts +1 -0
- package/dist/components/BitzConfigProvider/context.mjs +4 -3
- package/dist/components/BitzHighlight/style.mjs +12 -12
- package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
- package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
- package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
- package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +26 -15
- package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
- package/dist/components/BitzTable/Store/index.d.ts +4 -0
- package/dist/components/BitzTable/Store/index.mjs +90 -88
- package/dist/components/BitzTable/SubTable/index.mjs +94 -94
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +3 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +42 -19
- package/dist/components/BitzTable/Table/index.d.ts +1 -2
- package/dist/components/BitzTable/Table/index.mjs +247 -245
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -12
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +46 -43
- package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -16
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +13 -14
- package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +7 -8
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/Draggable.mjs +0 -4
- package/dist/_virtual/DraggableCore.mjs +0 -4
- package/dist/_virtual/Resizable.mjs +0 -4
- package/dist/_virtual/ResizableBox.mjs +0 -4
- package/dist/_virtual/cjs.mjs +0 -4
- package/dist/_virtual/clsx.m.mjs +0 -6
- package/dist/_virtual/domFns.mjs +0 -4
- package/dist/_virtual/getPrefix.mjs +0 -4
- package/dist/_virtual/index6.mjs +0 -4
- package/dist/_virtual/log.mjs +0 -4
- package/dist/_virtual/positionFns.mjs +0 -4
- package/dist/_virtual/propTypes.mjs +0 -4
- package/dist/_virtual/shims.mjs +0 -4
- package/dist/_virtual/utils.mjs +0 -4
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +0 -13
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
2
|
function l(e) {
|
|
6
|
-
|
|
7
|
-
return e;
|
|
8
|
-
var r = e.default;
|
|
9
|
-
if (typeof r == "function") {
|
|
10
|
-
var t = function o() {
|
|
11
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
t.prototype = r.prototype;
|
|
14
|
-
} else
|
|
15
|
-
t = {};
|
|
16
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
17
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
18
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
19
|
-
enumerable: !0,
|
|
20
|
-
get: function() {
|
|
21
|
-
return e[o];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}), t;
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
25
4
|
}
|
|
26
5
|
export {
|
|
27
|
-
|
|
28
|
-
l as
|
|
29
|
-
f as getDefaultExportFromCjs
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
30
8
|
};
|
|
@@ -8,42 +8,42 @@ import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-d
|
|
|
8
8
|
import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import d from "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
13
|
import c from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
14
|
-
import
|
|
14
|
+
import f from "../BitzTheme/index.mjs";
|
|
15
15
|
const R = ({
|
|
16
16
|
tagClass: a = "",
|
|
17
17
|
highlightClass: p = ""
|
|
18
18
|
}) => {
|
|
19
|
-
const { theme: h, token: i, hashId: t } =
|
|
19
|
+
const { theme: h, token: i, hashId: t } = f.useToken(), r = "bitzHighlightBlock", e = "bitzHighlightTag", s = "bitzHighlightSecondary", g = (l, S, m, o) => [
|
|
20
20
|
{
|
|
21
|
-
[`.${
|
|
21
|
+
[`.${l}`]: {
|
|
22
22
|
color: o.colorText,
|
|
23
23
|
fontSize: o.fontSize
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
[`.${
|
|
27
|
+
[`.${m}`]: {
|
|
28
28
|
color: o.colorPrimary
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
[`.${
|
|
33
|
-
color: o.colorSecondaryHighlightText,
|
|
34
|
-
[`.${
|
|
32
|
+
[`.${l}.${S}`]: {
|
|
33
|
+
color: (o == null ? void 0 : o.colorSecondaryHighlightText) ?? o.colorTextSecondary,
|
|
34
|
+
[`.${m}`]: {
|
|
35
35
|
color: o.colorText,
|
|
36
36
|
margin: "0 6px"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
d({ theme: h, token: i, hashId: t, path: [r] }, () => [
|
|
42
|
+
g(r, s, e, i)
|
|
43
43
|
]);
|
|
44
|
-
const
|
|
44
|
+
const n = c(r, t, a), y = c(e, t, p);
|
|
45
45
|
return {
|
|
46
|
-
tagClassName:
|
|
46
|
+
tagClassName: n,
|
|
47
47
|
secondaryClassName: s,
|
|
48
48
|
highlightClassName: y
|
|
49
49
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext as
|
|
1
|
+
import { useContext as R, useMemo as C } from "react";
|
|
2
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
@@ -8,14 +8,14 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@an
|
|
|
8
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import G from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import { BitzTableContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const { theme:
|
|
18
|
-
var $, b, T, S, z;
|
|
13
|
+
import { BitzTableContext as I } from "../Store/index.mjs";
|
|
14
|
+
import x from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
import M from "../../BitzTheme/index.mjs";
|
|
16
|
+
const Y = (m) => {
|
|
17
|
+
const { theme: y, hashId: n, token: i } = M.useToken(), { tableSize: s } = R(I), D = C(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn", v = (o, l, t, e) => {
|
|
18
|
+
var $, b, T, S, z, f, g, u, B, h;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
[`.${o} .${l}`]: {
|
|
@@ -30,31 +30,31 @@ const Q = (m) => {
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
[`.${o} .xl${t}`]: {
|
|
33
|
-
fontSize: ($ = e.Table
|
|
33
|
+
fontSize: (b = ($ = e.Table) == null ? void 0 : $.xlTable) == null ? void 0 : b.fontSize
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
[`.${o} .lg${t}`]: {
|
|
38
|
-
fontSize: (
|
|
38
|
+
fontSize: (S = (T = e.Table) == null ? void 0 : T.lgTable) == null ? void 0 : S.fontSize
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
[`.${o} .md${t}`]: {
|
|
43
|
-
fontSize: (
|
|
43
|
+
fontSize: (f = (z = e.Table) == null ? void 0 : z.mdTable) == null ? void 0 : f.fontSize
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
[`.${o} .sm${t}`]: {
|
|
48
|
-
fontSize: (
|
|
48
|
+
fontSize: (u = (g = e.Table) == null ? void 0 : g.smTable) == null ? void 0 : u.fontSize
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
[`.${o} .xs${t}`]: {
|
|
53
|
-
fontSize: (
|
|
53
|
+
fontSize: (h = (B = e.Table) == null ? void 0 : B.xsTable) == null ? void 0 : h.fontSize
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
|
-
},
|
|
57
|
+
}, A = (o, l, t) => [
|
|
58
58
|
{
|
|
59
59
|
[`.${o} .${l}`]: {
|
|
60
60
|
"&:hover": {
|
|
@@ -72,21 +72,21 @@ const Q = (m) => {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
];
|
|
75
|
-
|
|
75
|
+
G(
|
|
76
76
|
{
|
|
77
|
-
theme:
|
|
77
|
+
theme: y,
|
|
78
78
|
token: i,
|
|
79
79
|
hashId: n,
|
|
80
80
|
path: [r]
|
|
81
81
|
},
|
|
82
82
|
() => [
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
v(r, a, c, i),
|
|
84
|
+
A(r, p, i)
|
|
85
85
|
]
|
|
86
86
|
);
|
|
87
|
-
const d = `${
|
|
88
|
-
return { blockCls: r, addBtnClassName:
|
|
87
|
+
const d = `${D}${c}`, N = x(a, d, n), w = x(a, p, d, n);
|
|
88
|
+
return { blockCls: r, addBtnClassName: N, btnClassName: w };
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
Y as default
|
|
92
92
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { Space as
|
|
4
|
-
import { useRef as I, useMemo as u, useContext as
|
|
2
|
+
import B from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
3
|
+
import { theme as w, Space as y, Skeleton as z } from "antd";
|
|
4
|
+
import { useRef as I, useMemo as u, useContext as S } from "react";
|
|
5
5
|
import h from "../../BitzButton/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import T, { actionColBtnGap as P } from "./style.mjs";
|
|
7
7
|
import "../index.mjs";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import k from "../Dropdown/index.mjs";
|
|
9
|
+
import { tablePaddingInline as R } from "../../BitzConfigProvider/context.mjs";
|
|
10
|
+
import { BitzTableContext as A } from "../Store/index.mjs";
|
|
11
|
+
const b = ({
|
|
11
12
|
skeletonCls: l,
|
|
12
13
|
...n
|
|
13
14
|
}) => /* @__PURE__ */ t.jsxs(h, { type: "text", ...n, children: [
|
|
14
15
|
/* @__PURE__ */ t.jsx("span", { children: n.children }),
|
|
15
16
|
/* @__PURE__ */ t.jsx(
|
|
16
|
-
|
|
17
|
+
z,
|
|
17
18
|
{
|
|
18
19
|
active: !0,
|
|
19
20
|
title: !1,
|
|
@@ -25,74 +26,74 @@ const B = ({
|
|
|
25
26
|
}
|
|
26
27
|
)
|
|
27
28
|
] });
|
|
28
|
-
function
|
|
29
|
+
function E({
|
|
29
30
|
loading: l,
|
|
30
31
|
actionGroup: n,
|
|
31
|
-
refInstance:
|
|
32
|
+
refInstance: c
|
|
32
33
|
}) {
|
|
33
|
-
const { loading:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
B,
|
|
34
|
+
const { loading: d, fullscreen: x } = S(A), o = u(() => l ?? d, [l, d]), {
|
|
35
|
+
primaryBtnClassName: s,
|
|
36
|
+
dangerBtnClassName: i,
|
|
37
|
+
dropdownBtnClassName: N,
|
|
38
|
+
maskClassName: m,
|
|
39
|
+
skeletonBtnClassName: f,
|
|
40
|
+
skeletonClassName: p
|
|
41
|
+
} = T(), g = u(() => {
|
|
42
|
+
const r = n.length >= 4 ? 2 : n.length, a = n.slice(0, r), C = [];
|
|
43
|
+
if (a != null && a.length && a.forEach((e, j) => {
|
|
44
|
+
C.push(
|
|
45
|
+
o ? /* @__PURE__ */ t.jsx(
|
|
46
|
+
b,
|
|
47
47
|
{
|
|
48
|
-
className:
|
|
49
|
-
skeletonCls:
|
|
48
|
+
className: f,
|
|
49
|
+
skeletonCls: p,
|
|
50
50
|
children: e == null ? void 0 : e.label
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
) : e.children ? /* @__PURE__ */ t.jsx(
|
|
52
|
+
j
|
|
53
|
+
) : e.children ? /* @__PURE__ */ t.jsx(k, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
|
|
54
54
|
h,
|
|
55
55
|
{
|
|
56
56
|
type: "text",
|
|
57
|
-
className: e.danger ?
|
|
57
|
+
className: e.danger ? i : s,
|
|
58
58
|
children: e == null ? void 0 : e.label
|
|
59
59
|
}
|
|
60
|
-
) },
|
|
60
|
+
) }, j) : /* @__PURE__ */ t.jsx(
|
|
61
61
|
h,
|
|
62
62
|
{
|
|
63
63
|
type: "text",
|
|
64
|
-
className: e.danger ?
|
|
64
|
+
className: e.danger ? i : s,
|
|
65
65
|
onClick: e == null ? void 0 : e.onClick,
|
|
66
66
|
children: e == null ? void 0 : e.label
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
j
|
|
69
69
|
)
|
|
70
70
|
);
|
|
71
|
-
}),
|
|
71
|
+
}), r === 2 && n.length >= 4) {
|
|
72
72
|
const e = n.slice(2, n.length);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
C.push(
|
|
74
|
+
o ? /* @__PURE__ */ t.jsx(
|
|
75
|
+
b,
|
|
76
76
|
{
|
|
77
|
-
className:
|
|
78
|
-
skeletonCls:
|
|
77
|
+
className: f,
|
|
78
|
+
skeletonCls: p,
|
|
79
79
|
children: "更多"
|
|
80
80
|
},
|
|
81
81
|
5
|
|
82
|
-
) : /* @__PURE__ */ t.jsx(
|
|
82
|
+
) : /* @__PURE__ */ t.jsx(k, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: N, children: "更多" }) }, 5)
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
|
-
return
|
|
86
|
-
}, [
|
|
87
|
-
return /* @__PURE__ */ t.jsxs("div", { onClick: (
|
|
88
|
-
/* @__PURE__ */ t.jsx(
|
|
89
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
85
|
+
return C;
|
|
86
|
+
}, [o, n]);
|
|
87
|
+
return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
|
|
88
|
+
/* @__PURE__ */ t.jsx(y, { size: P, ref: c, className: "actionGroup", children: g }),
|
|
89
|
+
/* @__PURE__ */ t.jsx("div", { className: m })
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function K(l) {
|
|
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 : 181, [s, x]);
|
|
94
95
|
return u(() => ({
|
|
95
|
-
width: Math.floor(
|
|
96
|
+
width: Math.floor(i),
|
|
96
97
|
mobileHide: !0,
|
|
97
98
|
isOperationCol: !0,
|
|
98
99
|
title: "操作",
|
|
@@ -101,23 +102,23 @@ function F(l) {
|
|
|
101
102
|
dataIndex: "operationCol",
|
|
102
103
|
className: "operationCol",
|
|
103
104
|
disabled: !0,
|
|
104
|
-
render: (
|
|
105
|
-
const
|
|
106
|
-
(
|
|
105
|
+
render: (f, p, g) => {
|
|
106
|
+
const r = n(p, g).filter(
|
|
107
|
+
(a) => a.type != "detail"
|
|
107
108
|
);
|
|
108
109
|
return /* @__PURE__ */ t.jsx(
|
|
109
|
-
|
|
110
|
+
E,
|
|
110
111
|
{
|
|
111
|
-
actionGroup:
|
|
112
|
-
loading:
|
|
113
|
-
refInstance:
|
|
112
|
+
actionGroup: r,
|
|
113
|
+
loading: c,
|
|
114
|
+
refInstance: o
|
|
114
115
|
}
|
|
115
116
|
);
|
|
116
117
|
},
|
|
117
|
-
...
|
|
118
|
-
}), [
|
|
118
|
+
...d
|
|
119
|
+
}), [i, o, c, n]);
|
|
119
120
|
}
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
E as BitzTableAction,
|
|
123
|
+
K as default
|
|
123
124
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare const useGenStyle: () => {
|
|
2
|
-
gap: number;
|
|
3
2
|
defaultCls: string;
|
|
4
3
|
primaryBtnClassName: string;
|
|
5
4
|
dangerBtnClassName: string;
|
|
@@ -8,4 +7,5 @@ declare const useGenStyle: () => {
|
|
|
8
7
|
skeletonClassName: string;
|
|
9
8
|
maskClassName: string;
|
|
10
9
|
};
|
|
10
|
+
export declare const actionColBtnGap = 18;
|
|
11
11
|
export default useGenStyle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext as
|
|
1
|
+
import { useContext as z, useMemo as H } from "react";
|
|
2
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
@@ -8,15 +8,15 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@an
|
|
|
8
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import N from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import { BitzTableContext as
|
|
13
|
+
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
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const { tableSize:
|
|
18
|
-
|
|
19
|
-
const { theme:
|
|
15
|
+
import E from "../../BitzTheme/index.mjs";
|
|
16
|
+
const O = () => {
|
|
17
|
+
const { tableSize: s } = z(T);
|
|
18
|
+
H(() => s ?? "lg", [s]);
|
|
19
|
+
const { theme: B, hashId: r, token: i } = 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",
|
|
@@ -54,7 +54,7 @@ const Q = () => {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
],
|
|
57
|
+
], g = (t, o) => [
|
|
58
58
|
{
|
|
59
59
|
[`.${t}`]: {
|
|
60
60
|
color: o.colorError,
|
|
@@ -78,7 +78,7 @@ const Q = () => {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
],
|
|
81
|
+
], v = (t, o) => [
|
|
82
82
|
{
|
|
83
83
|
[`.${t}`]: {
|
|
84
84
|
fontSize: "inherit",
|
|
@@ -98,33 +98,33 @@ const Q = () => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
|
-
|
|
101
|
+
N(
|
|
102
102
|
{
|
|
103
|
-
theme:
|
|
104
|
-
token:
|
|
103
|
+
theme: B,
|
|
104
|
+
token: i,
|
|
105
105
|
hashId: r,
|
|
106
106
|
path: [e]
|
|
107
107
|
},
|
|
108
108
|
() => [
|
|
109
|
-
|
|
110
|
-
u(a,
|
|
111
|
-
|
|
112
|
-
C(c,
|
|
113
|
-
|
|
109
|
+
h(e, d),
|
|
110
|
+
u(a, i),
|
|
111
|
+
g(l, i),
|
|
112
|
+
C(c, i),
|
|
113
|
+
v(m, p)
|
|
114
114
|
]
|
|
115
115
|
);
|
|
116
|
-
const
|
|
116
|
+
const y = n(e, a, r), $ = n(e, l, r), f = n(e, c, r), S = n(e, m, r), x = n(p, r), b = n(d, r);
|
|
117
117
|
return {
|
|
118
|
-
gap: B,
|
|
119
118
|
defaultCls: e,
|
|
120
|
-
primaryBtnClassName:
|
|
121
|
-
dangerBtnClassName:
|
|
122
|
-
dropdownBtnClassName:
|
|
123
|
-
skeletonBtnClassName:
|
|
124
|
-
skeletonClassName:
|
|
125
|
-
maskClassName:
|
|
119
|
+
primaryBtnClassName: y,
|
|
120
|
+
dangerBtnClassName: $,
|
|
121
|
+
dropdownBtnClassName: f,
|
|
122
|
+
skeletonBtnClassName: S,
|
|
123
|
+
skeletonClassName: x,
|
|
124
|
+
maskClassName: b
|
|
126
125
|
};
|
|
127
|
-
};
|
|
126
|
+
}, Q = 18;
|
|
128
127
|
export {
|
|
129
|
-
Q as
|
|
128
|
+
Q as actionColBtnGap,
|
|
129
|
+
O as default
|
|
130
130
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext as
|
|
1
|
+
import { useContext as O, useMemo as R } from "react";
|
|
2
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
@@ -8,17 +8,17 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@an
|
|
|
8
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import j from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import { BitzTableContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const { tableSize: t } =
|
|
18
|
-
var r, p, d, l, u, z, s, S, f, b;
|
|
13
|
+
import { BitzTableContext as q } from "../Store/index.mjs";
|
|
14
|
+
import v from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
import A from "../../BitzTheme/index.mjs";
|
|
16
|
+
const ee = () => {
|
|
17
|
+
const { tableSize: t } = O(q), D = R(() => t ?? "lg", [t]), { theme: N, hashId: i, token: a } = A.useToken(), m = "OperationColDropdownBtn", o = "operationColDropdownBtn", G = (M, n, e) => {
|
|
18
|
+
var r, p, d, l, u, z, s, S, f, b, T, c, w, h, x, $, g, C, B, y;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
|
-
[`.${
|
|
21
|
+
[`.${M}`]: {
|
|
22
22
|
".ant-dropdown-menu": {
|
|
23
23
|
fontSize: "inherit",
|
|
24
24
|
// 普通菜单
|
|
@@ -49,60 +49,60 @@ const P = () => {
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
[`.xl${n}`]: {
|
|
52
|
-
fontSize: (r = e.Table.xlTable) == null ? void 0 :
|
|
52
|
+
fontSize: (p = (r = e.Table) == null ? void 0 : r.xlTable) == null ? void 0 : p.fontSize,
|
|
53
53
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
54
|
-
fontSize: (((
|
|
54
|
+
fontSize: (((l = (d = e.Table) == null ? void 0 : d.xlTable) == null ? void 0 : l.fontSize) || e.fontSize) - 2
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
[`.lg${n}`]: {
|
|
60
|
-
fontSize: (
|
|
60
|
+
fontSize: (z = (u = e.Table) == null ? void 0 : u.lgTable) == null ? void 0 : z.fontSize,
|
|
61
61
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
62
|
-
fontSize: (((
|
|
62
|
+
fontSize: (((S = (s = e.Table) == null ? void 0 : s.lgTable) == null ? void 0 : S.fontSize) || e.fontSize) - 2
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
[`.md${n}`]: {
|
|
68
|
-
fontSize: (
|
|
68
|
+
fontSize: (b = (f = e.Table) == null ? void 0 : f.mdTable) == null ? void 0 : b.fontSize,
|
|
69
69
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
70
|
-
fontSize: (((
|
|
70
|
+
fontSize: (((c = (T = e.Table) == null ? void 0 : T.mdTable) == null ? void 0 : c.fontSize) || e.fontSize) - 2
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
[`.sm${n}`]: {
|
|
76
|
-
fontSize: (
|
|
76
|
+
fontSize: (h = (w = e.Table) == null ? void 0 : w.smTable) == null ? void 0 : h.fontSize,
|
|
77
77
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
78
|
-
fontSize: (((
|
|
78
|
+
fontSize: ((($ = (x = e.Table) == null ? void 0 : x.smTable) == null ? void 0 : $.fontSize) || e.fontSize) - 2
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
[`.xs${n}`]: {
|
|
84
|
-
fontSize: (
|
|
84
|
+
fontSize: (C = (g = e.Table) == null ? void 0 : g.xsTable) == null ? void 0 : C.fontSize,
|
|
85
85
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
86
|
-
fontSize: (((
|
|
86
|
+
fontSize: (((y = (B = e.Table) == null ? void 0 : B.xsTable) == null ? void 0 : y.fontSize) || e.fontSize) - 2
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
j(
|
|
93
93
|
{
|
|
94
|
-
theme:
|
|
94
|
+
theme: N,
|
|
95
95
|
token: a,
|
|
96
96
|
hashId: i,
|
|
97
97
|
path: [o]
|
|
98
98
|
},
|
|
99
|
-
() => [
|
|
99
|
+
() => [G(o, m, a)]
|
|
100
100
|
);
|
|
101
|
-
const
|
|
101
|
+
const I = `${D}${m}`;
|
|
102
102
|
return {
|
|
103
|
-
popupClassName:
|
|
103
|
+
popupClassName: v(o, I, i)
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
ee as default
|
|
108
108
|
};
|