bitz-react-admin-ui 2.6.1 → 2.6.2
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/context.d.ts +7 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +73 -73
- package/dist/components/BitzTable/Store/index.d.ts +30 -0
- package/dist/components/BitzTable/Store/index.mjs +246 -217
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +12 -12
- package/dist/components/BitzTable/Table/index.d.ts +9 -1
- package/dist/components/BitzTable/Table/index.mjs +429 -398
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +103 -95
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +243 -197
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +141 -105
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.d.ts +8 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +23 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +127 -74
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +76 -25
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +151 -96
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +29 -27
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -9
- package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +4 -0
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +42 -14
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +34 -37
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useDebounceFn/index.mjs +0 -29
- package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/utils/lodash-polyfill.mjs +0 -7
|
@@ -1,39 +1,90 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { useRef as y, useContext as S, useState as b, useEffect as w, useMemo as k } from "react";
|
|
3
|
+
import { theme as z, Popconfirm as I, Statistic as R } from "antd";
|
|
4
|
+
import B from "./ColumnConfigModal.mjs";
|
|
5
|
+
import N from "../style.mjs";
|
|
6
|
+
import E from "../../../BitzButton/index.mjs";
|
|
7
|
+
import { BitzTableContext as M } from "../../Store/index.mjs";
|
|
8
|
+
import { css as O } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
9
|
+
import T from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
|
|
10
|
+
const f = "表格设置", K = (e) => {
|
|
11
|
+
const { order: m, show: u = !0, icon: d = /* @__PURE__ */ t.jsx(T, {}) } = e, { token: p } = z.useToken(), s = y(), {
|
|
12
|
+
fullscreen: r,
|
|
13
|
+
isSaving: n,
|
|
14
|
+
countdown: o,
|
|
15
|
+
cancelAutoSave: x,
|
|
16
|
+
immediateSave: a,
|
|
17
|
+
setCountdown: C
|
|
18
|
+
} = S(M), { toolbarItemClassName: g } = N(), [h, l] = b(!1);
|
|
19
|
+
w(() => (n && o > 0 ? s.current = setInterval(() => {
|
|
20
|
+
C((i) => i - 1);
|
|
21
|
+
}, 1e3) : clearInterval(s.current), o === 0 && n && a(), () => clearInterval(s.current)), [n, o]);
|
|
22
|
+
const j = k(() => r ? !1 : void 0, [r]), v = O`
|
|
23
|
+
.ant-statistic {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
}
|
|
26
|
+
.ant-statistic-content {
|
|
27
|
+
font-size: ${p.fontSize}px;
|
|
28
|
+
}
|
|
29
|
+
.ant-statistic-content-value-int {
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
}
|
|
32
|
+
.ant-popconfirm-buttons {
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
text-align: left;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
.ant-btn-primary {
|
|
38
|
+
order: 1;
|
|
39
|
+
margin-left: 0;
|
|
40
|
+
}
|
|
41
|
+
.ant-btn-default {
|
|
42
|
+
order: 2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
return u ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
11
47
|
/* @__PURE__ */ t.jsx(
|
|
12
|
-
|
|
48
|
+
B,
|
|
13
49
|
{
|
|
14
|
-
open:
|
|
15
|
-
title:
|
|
16
|
-
onChange: async (...
|
|
17
|
-
var
|
|
18
|
-
return (
|
|
50
|
+
open: h,
|
|
51
|
+
title: f,
|
|
52
|
+
onChange: async (...i) => {
|
|
53
|
+
var c;
|
|
54
|
+
return (c = e.onChange) == null ? void 0 : c.call(e, ...i);
|
|
19
55
|
},
|
|
20
|
-
getContainer:
|
|
21
|
-
close: () =>
|
|
56
|
+
getContainer: j,
|
|
57
|
+
close: () => l(!1)
|
|
22
58
|
}
|
|
23
59
|
),
|
|
24
60
|
/* @__PURE__ */ t.jsx(
|
|
25
|
-
|
|
61
|
+
I,
|
|
26
62
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
63
|
+
placement: "topRight",
|
|
64
|
+
title: "是否保存列宽设置",
|
|
65
|
+
open: n,
|
|
66
|
+
description: /* @__PURE__ */ t.jsxs("span", { children: [
|
|
67
|
+
/* @__PURE__ */ t.jsx(R, { value: o, suffix: "秒" }),
|
|
68
|
+
"后将自动保存"
|
|
69
|
+
] }),
|
|
70
|
+
onConfirm: a,
|
|
71
|
+
onCancel: x,
|
|
72
|
+
overlayClassName: v,
|
|
73
|
+
children: /* @__PURE__ */ t.jsx(
|
|
74
|
+
E,
|
|
75
|
+
{
|
|
76
|
+
type: "text",
|
|
77
|
+
className: g,
|
|
78
|
+
onClick: () => l(!0),
|
|
79
|
+
icon: d,
|
|
80
|
+
style: { order: m },
|
|
81
|
+
children: f
|
|
82
|
+
}
|
|
83
|
+
)
|
|
33
84
|
}
|
|
34
85
|
)
|
|
35
86
|
] }) : null;
|
|
36
87
|
};
|
|
37
88
|
export {
|
|
38
|
-
|
|
89
|
+
K as default
|
|
39
90
|
};
|
|
@@ -10,126 +10,141 @@ import "../../../../node_modules/.store/rc-util@5.43.0/node_modules/rc-util/es/w
|
|
|
10
10
|
import "../../../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
|
|
11
11
|
import "../../../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs";
|
|
12
12
|
import "../../../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import { css as
|
|
14
|
-
const h = (o) =>
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
display: grid;
|
|
18
|
-
grid-template-columns: repeat(3, 1fr);
|
|
19
|
-
column-gap: 16px;
|
|
20
|
-
|
|
21
|
-
.sortCard {
|
|
13
|
+
import { css as t } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
14
|
+
const h = (o) => t`
|
|
15
|
+
.columnsSortWrapper {
|
|
16
|
+
.sortContent {
|
|
22
17
|
width: 100%;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
padding-
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
|
|
29
|
-
.title {
|
|
30
|
-
color: var(--sortCard-titleColor);
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding-inline: 8px;
|
|
33
|
-
padding-block-start: 10px;
|
|
34
|
-
background-color: var(--sortCard-bgColor);
|
|
35
|
-
}
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: repeat(3, 1fr);
|
|
20
|
+
column-gap: 16px;
|
|
21
|
+
padding-top: 16px;
|
|
36
22
|
|
|
37
|
-
.
|
|
38
|
-
flex: 1;
|
|
23
|
+
.sortCard {
|
|
39
24
|
width: 100%;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
25
|
+
background-color: var(--sortCard-bgColor);
|
|
26
|
+
border-radius: ${r(o.borderRadius)};
|
|
27
|
+
padding-inline: 6px;
|
|
28
|
+
padding-block-end: 10px;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
overflow: hidden auto;
|
|
31
|
+
|
|
32
|
+
.title {
|
|
33
|
+
color: var(--sortCard-titleColor);
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding-inline: 8px;
|
|
36
|
+
padding-block-start: 10px;
|
|
37
|
+
background-color: var(--sortCard-bgColor);
|
|
38
|
+
position: sticky;
|
|
39
|
+
top: 0;
|
|
40
|
+
z-index: 3;
|
|
45
41
|
}
|
|
46
42
|
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/*
|
|
51
|
-
|
|
52
|
-
/* 16px是.operation的padding-inline-end加上margin-left */
|
|
53
|
-
--operation-width: calc(${r(o.fontSize + 4)} * 2 + 16px);
|
|
54
|
-
grid-template-columns: var(--dragIcon-width) calc(
|
|
55
|
-
100% - var(--dragIcon-width)
|
|
56
|
-
);
|
|
57
|
-
border-radius: ${r(o.borderRadius)};
|
|
58
|
-
|
|
59
|
-
&.showSortItemOperat {
|
|
60
|
-
grid-template-columns:
|
|
61
|
-
var(--dragIcon-width) calc(
|
|
62
|
-
100% - var(--dragIcon-width) - var(--operation-width)
|
|
63
|
-
)
|
|
64
|
-
var(--operation-width);
|
|
65
|
-
}
|
|
43
|
+
.sortList {
|
|
44
|
+
flex: 1;
|
|
45
|
+
width: 100%;
|
|
46
|
+
/* overflow: hidden auto; */
|
|
47
|
+
cursor: grab;
|
|
66
48
|
|
|
67
|
-
&:
|
|
68
|
-
|
|
49
|
+
&:has(.sortItemDragging) {
|
|
50
|
+
cursor: grabbing;
|
|
69
51
|
}
|
|
70
52
|
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
53
|
+
.sortItem {
|
|
54
|
+
display: grid;
|
|
55
|
+
align-items: center;
|
|
56
|
+
/* 16px是.dragIcon的padding-inline乘以2 */
|
|
57
|
+
--dragIcon-width: calc(16px + ${r(o.fontSize + 4)});
|
|
58
|
+
/* 16px是.operation的padding-inline-end加上margin-left */
|
|
59
|
+
--operation-width: calc(${r(o.fontSize + 4)} * 2 + 16px);
|
|
60
|
+
grid-template-columns: var(--dragIcon-width) calc(
|
|
61
|
+
100% - var(--dragIcon-width)
|
|
62
|
+
);
|
|
63
|
+
border-radius: ${r(o.borderRadius)};
|
|
64
|
+
|
|
65
|
+
&.showSortItemOperat {
|
|
66
|
+
grid-template-columns:
|
|
67
|
+
var(--dragIcon-width) calc(
|
|
68
|
+
100% - var(--dragIcon-width) - var(--operation-width)
|
|
69
|
+
)
|
|
70
|
+
var(--operation-width);
|
|
71
|
+
}
|
|
74
72
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
cursor: inherit;
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: ${o.colorBgContainer};
|
|
78
75
|
}
|
|
79
|
-
}
|
|
80
76
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
padding-block: 6px;
|
|
85
|
-
padding-inline-end: 8px;
|
|
77
|
+
.dragIcon {
|
|
78
|
+
height: 100%;
|
|
79
|
+
padding-inline: 8px;
|
|
86
80
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-webkit-line-clamp: 1;
|
|
92
|
-
-webkit-box-orient: vertical;
|
|
93
|
-
overflow: hidden;
|
|
94
|
-
text-overflow: ellipsis;
|
|
95
|
-
user-select: none;
|
|
81
|
+
&,
|
|
82
|
+
& span {
|
|
83
|
+
cursor: inherit;
|
|
84
|
+
}
|
|
96
85
|
}
|
|
97
86
|
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
.ant-checkbox-wrapper {
|
|
88
|
+
/* width: calc(100% - 66px); */
|
|
89
|
+
flex: 1;
|
|
90
|
+
padding-block: 6px;
|
|
91
|
+
padding-inline-end: 8px;
|
|
92
|
+
|
|
93
|
+
& > span:last-child {
|
|
94
|
+
flex: 1;
|
|
95
|
+
padding-right: 0;
|
|
96
|
+
display: -webkit-box;
|
|
97
|
+
-webkit-line-clamp: 1;
|
|
98
|
+
-webkit-box-orient: vertical;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
user-select: none;
|
|
102
|
+
}
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
.ant-checkbox-input {
|
|
104
|
+
&.disabledCheckbox {
|
|
103
105
|
cursor: not-allowed !important;
|
|
104
|
-
}
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
.ant-checkbox,
|
|
108
|
+
.ant-checkbox-input {
|
|
109
|
+
cursor: not-allowed !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:hover,
|
|
113
|
+
&:focus,
|
|
114
|
+
.ant-checkbox:hover,
|
|
115
|
+
.ant-checkbox:focus {
|
|
116
|
+
.ant-checkbox-inner {
|
|
117
|
+
background-color: ${o.colorPrimary};
|
|
118
|
+
border-color: ${o.colorPrimary};
|
|
119
|
+
}
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
}
|
|
116
|
-
}
|
|
117
123
|
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
.operation {
|
|
125
|
+
padding-inline-end: 8px;
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
.rightOperation {
|
|
128
|
+
margin-left: 8px;
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
134
|
}
|
|
135
|
+
|
|
136
|
+
.checkAllAndReset {
|
|
137
|
+
padding-block: 8px;
|
|
138
|
+
position: sticky;
|
|
139
|
+
background-color: ${o.colorBgContainer};
|
|
140
|
+
bottom: -24px;
|
|
141
|
+
}
|
|
128
142
|
}
|
|
129
|
-
`, u = (o) =>
|
|
143
|
+
`, u = (o) => t`
|
|
130
144
|
.stylesConfigFormContent {
|
|
131
145
|
display: flex;
|
|
132
146
|
flex-direction: column;
|
|
147
|
+
padding-top: 16px;
|
|
133
148
|
|
|
134
149
|
.ant-form-item {
|
|
135
150
|
width: 100%;
|
|
@@ -158,12 +173,33 @@ const h = (o) => i`
|
|
|
158
173
|
grid-template-columns: repeat(5, 2fr);
|
|
159
174
|
}
|
|
160
175
|
|
|
161
|
-
.
|
|
162
|
-
|
|
163
|
-
margin-
|
|
176
|
+
.scopeAndReset {
|
|
177
|
+
padding-block: 8px;
|
|
178
|
+
margin-top: 12px;
|
|
179
|
+
position: sticky;
|
|
180
|
+
bottom: -24px;
|
|
181
|
+
background-color: ${o.colorBgContainer};
|
|
182
|
+
|
|
183
|
+
.scope {
|
|
184
|
+
.ant-form-item {
|
|
185
|
+
margin-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ant-form-item-control-input {
|
|
189
|
+
align-items: flex-end;
|
|
190
|
+
}
|
|
164
191
|
|
|
165
|
-
|
|
166
|
-
|
|
192
|
+
.stylesScopeLabel {
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.reset .ant-btn {
|
|
198
|
+
transform: translateY(1px);
|
|
199
|
+
|
|
200
|
+
&:hover {
|
|
201
|
+
color: ${o.colorPrimary} !important;
|
|
202
|
+
}
|
|
167
203
|
}
|
|
168
204
|
}
|
|
169
205
|
|
|
@@ -213,8 +249,19 @@ const h = (o) => i`
|
|
|
213
249
|
background-color: ${o.colorBgContainerDisabled};
|
|
214
250
|
}
|
|
215
251
|
}
|
|
252
|
+
|
|
253
|
+
.pageSize,
|
|
254
|
+
.orderBy {
|
|
255
|
+
.ant-form-item-label {
|
|
256
|
+
align-self: center;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ant-form-item-control-input-content {
|
|
260
|
+
text-align: right;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
216
263
|
}
|
|
217
|
-
`,
|
|
264
|
+
`, f = (o) => t`
|
|
218
265
|
.exportConfigFormContent {
|
|
219
266
|
display: flex;
|
|
220
267
|
flex-direction: column;
|
|
@@ -230,6 +277,14 @@ const h = (o) => i`
|
|
|
230
277
|
}
|
|
231
278
|
}
|
|
232
279
|
|
|
280
|
+
.exportFields {
|
|
281
|
+
.ant-form-item-no-colon {
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.checkAllAndReset {
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
233
288
|
.ant-tree-draggable-icon {
|
|
234
289
|
transition: none;
|
|
235
290
|
align-self: center;
|
|
@@ -279,5 +334,5 @@ const h = (o) => i`
|
|
|
279
334
|
export {
|
|
280
335
|
u as appearanceConfigStyles,
|
|
281
336
|
h as columnsSortStyles,
|
|
282
|
-
|
|
337
|
+
f as exportConfigStyles
|
|
283
338
|
};
|
|
@@ -6,66 +6,68 @@ import c from "../../../BitzButton/index.mjs";
|
|
|
6
6
|
import O from "../../../BitzTheme/index.mjs";
|
|
7
7
|
import R from "../Modal/index.mjs";
|
|
8
8
|
import T from "../ColConfigIcon/ExportConfig/index.mjs";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import z from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
10
|
+
const G = ({
|
|
11
11
|
open: f,
|
|
12
12
|
title: m,
|
|
13
13
|
onExport: n,
|
|
14
|
-
close:
|
|
14
|
+
close: t,
|
|
15
15
|
getContainer: d
|
|
16
16
|
}) => {
|
|
17
|
-
const { token: s } = O.useToken(), [
|
|
17
|
+
const { token: s } = O.useToken(), [p, r] = y(!1), { defaultTableExportConfig: u } = k(E), o = b(null), x = async () => {
|
|
18
18
|
var i, a;
|
|
19
|
-
if (
|
|
19
|
+
if (p)
|
|
20
20
|
return;
|
|
21
|
-
if (
|
|
22
|
-
j.error("导出设置至少需要一个字段"),
|
|
21
|
+
if (r(!0), !((i = o.current) == null ? void 0 : i.hasOne())) {
|
|
22
|
+
j.error("导出设置至少需要一个字段"), r(!1);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const g = ((a = o.current) == null ? void 0 : a.getExportConfig()) ??
|
|
26
|
-
n && (
|
|
25
|
+
const g = ((a = o.current) == null ? void 0 : a.getExportConfig()) ?? u;
|
|
26
|
+
n && (r(!1), n(g), t());
|
|
27
27
|
};
|
|
28
28
|
B(() => s.mode === "dark", [s.mode]);
|
|
29
29
|
const h = () => {
|
|
30
|
-
|
|
30
|
+
r(!1);
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ e.jsx(
|
|
33
33
|
R,
|
|
34
34
|
{
|
|
35
35
|
open: f,
|
|
36
36
|
title: m,
|
|
37
|
-
close:
|
|
37
|
+
close: t,
|
|
38
38
|
closeAfter: h,
|
|
39
39
|
getContainer: d,
|
|
40
|
-
styles: {
|
|
41
|
-
content: {
|
|
42
|
-
maxHeight: "calc(100vh - 200px)",
|
|
43
|
-
height: "auto"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
40
|
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
47
41
|
/* @__PURE__ */ e.jsx(
|
|
48
42
|
c,
|
|
49
43
|
{
|
|
50
44
|
type: "primary",
|
|
51
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
52
|
-
onClick:
|
|
45
|
+
icon: /* @__PURE__ */ e.jsx(z, {}),
|
|
46
|
+
onClick: x,
|
|
53
47
|
children: "导出"
|
|
54
48
|
}
|
|
55
49
|
),
|
|
56
|
-
/* @__PURE__ */ e.jsx(c, { onClick:
|
|
50
|
+
/* @__PURE__ */ e.jsx(c, { onClick: t, children: "取消" })
|
|
57
51
|
] }),
|
|
58
|
-
children: /* @__PURE__ */ e.jsx(
|
|
59
|
-
|
|
52
|
+
children: /* @__PURE__ */ e.jsx(
|
|
53
|
+
C,
|
|
60
54
|
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
className: "container",
|
|
56
|
+
bordered: !1,
|
|
57
|
+
styles: { body: { paddingBlock: 24 } },
|
|
58
|
+
children: /* @__PURE__ */ e.jsx(l, { vertical: !0, align: "center", gap: 24, style: { height: "100%" }, children: /* @__PURE__ */ e.jsx(l, { className: "containerBody", children: /* @__PURE__ */ e.jsx(
|
|
59
|
+
T,
|
|
60
|
+
{
|
|
61
|
+
refInstance: o,
|
|
62
|
+
display: !0,
|
|
63
|
+
showSelectRadio: !0
|
|
64
|
+
}
|
|
65
|
+
) }) })
|
|
64
66
|
}
|
|
65
|
-
)
|
|
67
|
+
)
|
|
66
68
|
}
|
|
67
69
|
);
|
|
68
70
|
};
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
G as default
|
|
71
73
|
};
|
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Modal as C, Typography as c } from "antd";
|
|
3
3
|
import { useMemo as p } from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { styles as
|
|
7
|
-
function
|
|
4
|
+
import g from "../../../BitzTheme/index.mjs";
|
|
5
|
+
import u from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import { styles as y, modalTitleHeight as x } from "./style.mjs";
|
|
7
|
+
function H({
|
|
8
8
|
open: e,
|
|
9
9
|
title: s,
|
|
10
10
|
close: a,
|
|
11
11
|
closeAfter: l,
|
|
12
12
|
getContainer: i,
|
|
13
13
|
footer: m,
|
|
14
|
-
extra:
|
|
14
|
+
extra: h,
|
|
15
15
|
styles: n,
|
|
16
16
|
children: d
|
|
17
17
|
}) {
|
|
18
|
-
const { token: o } =
|
|
18
|
+
const { token: o } = g.useToken(), r = p(() => o.mode === "dark", [o.mode]), f = () => {
|
|
19
19
|
l();
|
|
20
20
|
};
|
|
21
21
|
return /* @__PURE__ */ t.jsx(
|
|
22
22
|
C,
|
|
23
23
|
{
|
|
24
|
-
className: y(
|
|
25
|
-
title: /* @__PURE__ */ t.jsx(
|
|
24
|
+
className: u(y(o), "tableConfigModal"),
|
|
25
|
+
title: /* @__PURE__ */ t.jsx(
|
|
26
|
+
c.Title,
|
|
27
|
+
{
|
|
28
|
+
style: {
|
|
29
|
+
fontSize: 16,
|
|
30
|
+
lineHeight: `${x}px`,
|
|
31
|
+
margin: 0
|
|
32
|
+
},
|
|
33
|
+
children: s
|
|
34
|
+
}
|
|
35
|
+
),
|
|
26
36
|
getContainer: i,
|
|
27
37
|
open: e,
|
|
28
38
|
onCancel: a,
|
|
@@ -42,5 +52,5 @@ function F({
|
|
|
42
52
|
);
|
|
43
53
|
}
|
|
44
54
|
export {
|
|
45
|
-
|
|
55
|
+
H as default
|
|
46
56
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { BitzGlobalToken } from '@/components/BitzTheme';
|
|
2
|
+
export declare const modalTitleHeight = 19;
|
|
3
|
+
export declare const modalHeaderHeight: number;
|
|
4
|
+
export declare const modalFooterHeight: number;
|
|
5
|
+
export declare const blockGap = 200;
|
|
2
6
|
export declare const styles: (token: BitzGlobalToken) => string;
|