bitz-react-admin-ui 2.1.7 → 2.1.9
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 +6 -0
- package/dist/components/BitzConfigProvider/index.d.ts +2 -0
- package/dist/components/BitzTable/SubTable/index.d.ts +21 -0
- package/dist/components/BitzTable/SubTable/index.mjs +165 -0
- package/dist/components/BitzTable/Table/index.mjs +135 -134
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
- package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/components/BitzTable/index.mjs +13 -11
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
- package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
- package/dist/components/BitzTableSelect/index.d.ts +1 -0
- package/dist/components/BitzTableSelect/index.mjs +33 -31
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +16 -12
- package/package.json +1 -1
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Row as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
2
|
+
import { useRef as se, useContext as ce, useState as v, useMemo as B, useCallback as ne, useEffect as ie } from "react";
|
|
3
|
+
import { Row as b, Col as a, Space as F, Form as h, Select as G, Spin as ae, Typography as pe, Flex as ue, Empty as H } from "antd";
|
|
4
|
+
import de from "../../BitzPagination/index.mjs";
|
|
5
|
+
import xe from "../../BitzTable/index.mjs";
|
|
6
|
+
import L from "../../BitzButton/index.mjs";
|
|
7
|
+
import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
|
|
8
|
+
import Se from "../TextBlock/index.mjs";
|
|
9
|
+
import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
10
|
+
import be from "../../BitzTheme/index.mjs";
|
|
11
|
+
import ye from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
12
|
+
import { BitzConfigContext as we } from "../../BitzConfigProvider/context.mjs";
|
|
12
13
|
import "./index.less.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
columns:
|
|
14
|
+
import Te from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
15
|
+
import ge from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
16
|
+
function He({
|
|
17
|
+
columns: P,
|
|
17
18
|
tableData: y,
|
|
18
|
-
total:
|
|
19
|
+
total: O,
|
|
19
20
|
loading: p,
|
|
20
21
|
loadingFailed: j,
|
|
21
|
-
loadAgain:
|
|
22
|
-
page:
|
|
23
|
-
onPageChange:
|
|
24
|
-
searchInput:
|
|
25
|
-
showToolTagSelect:
|
|
26
|
-
toolTags:
|
|
22
|
+
loadAgain: W,
|
|
23
|
+
page: z,
|
|
24
|
+
onPageChange: $,
|
|
25
|
+
searchInput: q,
|
|
26
|
+
showToolTagSelect: E,
|
|
27
|
+
toolTags: J,
|
|
27
28
|
onToolTagChange: w,
|
|
28
29
|
lrLayout: T,
|
|
29
|
-
parentRender:
|
|
30
|
-
keys:
|
|
31
|
-
rows:
|
|
30
|
+
parentRender: I,
|
|
31
|
+
keys: R,
|
|
32
|
+
rows: C,
|
|
32
33
|
fieldNames: t,
|
|
33
34
|
onChange: x,
|
|
34
35
|
onDropdownVisibleChange: S
|
|
35
36
|
}) {
|
|
36
|
-
var K, _;
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
var K, _, A;
|
|
38
|
+
const k = se(null), g = fe(k), { token: s } = be.useToken(), M = ((K = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, Q = ((_ = ce(we).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [c, U] = v([]), [r, X] = v([]), [Y, Z] = v(void 0), D = (l, o) => {
|
|
39
|
+
Z(l), w == null || w(l, o), l || (S(!0), setTimeout(() => {
|
|
39
40
|
S(!1);
|
|
40
41
|
}, 0));
|
|
41
|
-
},
|
|
42
|
+
}, V = B(() => me(P, y, z), [P]), N = {
|
|
42
43
|
selectedRowKeys: c,
|
|
43
44
|
onSelect: (l, o) => {
|
|
44
45
|
if (o)
|
|
@@ -56,26 +57,26 @@ function Ke({
|
|
|
56
57
|
onSelectAll: (l, o, u) => {
|
|
57
58
|
const d = u.map((i) => i[t.value]);
|
|
58
59
|
if (l) {
|
|
59
|
-
const i = c.concat(d),
|
|
60
|
-
x(i,
|
|
60
|
+
const i = c.concat(d), f = r.concat(u);
|
|
61
|
+
x(i, f);
|
|
61
62
|
} else {
|
|
62
|
-
const i = c == null ? void 0 : c.filter((
|
|
63
|
-
u.forEach((
|
|
64
|
-
|
|
63
|
+
const i = c == null ? void 0 : c.filter((m) => !d.includes(m)), f = /* @__PURE__ */ new Map();
|
|
64
|
+
u.forEach((m) => {
|
|
65
|
+
f.set(m[t.value], m);
|
|
65
66
|
});
|
|
66
|
-
const
|
|
67
|
-
(
|
|
67
|
+
const oe = r == null ? void 0 : r.filter(
|
|
68
|
+
(m) => !f.has(m[t.value])
|
|
68
69
|
);
|
|
69
|
-
x(i,
|
|
70
|
+
x(i, oe);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
+
}, ee = ne(() => he(t.items, p), [t.items, p]), te = (l, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
|
|
73
74
|
l[0],
|
|
74
75
|
" ",
|
|
75
76
|
/* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: o }),
|
|
76
77
|
" ",
|
|
77
78
|
l[1]
|
|
78
|
-
] }),
|
|
79
|
+
] }), re = () => {
|
|
79
80
|
const l = (o) => {
|
|
80
81
|
const u = r.findIndex(
|
|
81
82
|
(i) => i[t.value] === o[t.value]
|
|
@@ -85,7 +86,7 @@ function Ke({
|
|
|
85
86
|
r.splice(u, 1), c.splice(d, 1), x(c, r);
|
|
86
87
|
};
|
|
87
88
|
return /* @__PURE__ */ e.jsxs(
|
|
88
|
-
|
|
89
|
+
F,
|
|
89
90
|
{
|
|
90
91
|
direction: "vertical",
|
|
91
92
|
style: {
|
|
@@ -96,7 +97,7 @@ function Ke({
|
|
|
96
97
|
},
|
|
97
98
|
children: [
|
|
98
99
|
r.map((o) => /* @__PURE__ */ e.jsxs(
|
|
99
|
-
|
|
100
|
+
ue,
|
|
100
101
|
{
|
|
101
102
|
justify: "space-between",
|
|
102
103
|
style: {
|
|
@@ -107,9 +108,9 @@ function Ke({
|
|
|
107
108
|
overflow: "hidden"
|
|
108
109
|
},
|
|
109
110
|
children: [
|
|
110
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(
|
|
111
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: o[t.label] }) }),
|
|
111
112
|
/* @__PURE__ */ e.jsx(
|
|
112
|
-
|
|
113
|
+
ge,
|
|
113
114
|
{
|
|
114
115
|
style: {
|
|
115
116
|
color: s.colorError,
|
|
@@ -123,25 +124,25 @@ function Ke({
|
|
|
123
124
|
},
|
|
124
125
|
o[t.value]
|
|
125
126
|
)),
|
|
126
|
-
!r.length && /* @__PURE__ */ e.jsx(
|
|
127
|
+
!r.length && /* @__PURE__ */ e.jsx(H, { image: H.PRESENTED_IMAGE_SIMPLE })
|
|
127
128
|
]
|
|
128
129
|
}
|
|
129
130
|
);
|
|
130
|
-
}, n =
|
|
131
|
+
}, n = B(() => je(T, E), [T, E]), le = B(() => ye(
|
|
131
132
|
{ loadingTable: p },
|
|
132
133
|
{ loadingFailedTable: j },
|
|
133
134
|
"bitzSelectTable"
|
|
134
135
|
), [j, p]);
|
|
135
|
-
return
|
|
136
|
-
|
|
137
|
-
}, [
|
|
138
|
-
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T &&
|
|
139
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(
|
|
140
|
-
/* @__PURE__ */ e.jsx(
|
|
141
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(
|
|
142
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(
|
|
143
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(
|
|
144
|
-
|
|
136
|
+
return ie(() => {
|
|
137
|
+
U(R ?? []), X(C ?? []);
|
|
138
|
+
}, [R, C]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
|
|
139
|
+
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && I && I(M, g == null ? void 0 : g.height) }),
|
|
140
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(h, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
|
|
142
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: q }) }),
|
|
143
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
|
|
144
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsx(
|
|
145
|
+
G,
|
|
145
146
|
{
|
|
146
147
|
allowClear: !0,
|
|
147
148
|
className: "tableSelectPopupToolTagSelect",
|
|
@@ -152,15 +153,15 @@ function Ke({
|
|
|
152
153
|
placeholder: "常用标签",
|
|
153
154
|
showSearch: !1,
|
|
154
155
|
disabled: p,
|
|
155
|
-
options:
|
|
156
|
-
value:
|
|
157
|
-
onChange:
|
|
156
|
+
options: J,
|
|
157
|
+
value: Y,
|
|
158
|
+
onChange: D,
|
|
158
159
|
onDropdownVisibleChange: S
|
|
159
160
|
}
|
|
160
161
|
) }) }),
|
|
161
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(
|
|
162
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
162
163
|
/* @__PURE__ */ e.jsx(
|
|
163
|
-
|
|
164
|
+
G,
|
|
164
165
|
{
|
|
165
166
|
style: { width: "100%" },
|
|
166
167
|
mode: "multiple",
|
|
@@ -170,18 +171,18 @@ function Ke({
|
|
|
170
171
|
value: c,
|
|
171
172
|
fieldNames: t,
|
|
172
173
|
popupClassName: "tableSelectPopupTotalPopup",
|
|
173
|
-
dropdownRender:
|
|
174
|
+
dropdownRender: re,
|
|
174
175
|
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
175
176
|
onDropdownVisibleChange: S
|
|
176
177
|
}
|
|
177
178
|
),
|
|
178
|
-
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children:
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: te(
|
|
179
180
|
["已选择", "条数据"],
|
|
180
181
|
c.length || 0
|
|
181
182
|
) })
|
|
182
183
|
] }) }) }),
|
|
183
184
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
184
|
-
|
|
185
|
+
L,
|
|
185
186
|
{
|
|
186
187
|
type: "primary",
|
|
187
188
|
danger: !0,
|
|
@@ -190,7 +191,7 @@ function Ke({
|
|
|
190
191
|
}
|
|
191
192
|
) }),
|
|
192
193
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
193
|
-
|
|
194
|
+
L,
|
|
194
195
|
{
|
|
195
196
|
type: "primary",
|
|
196
197
|
onClick: () => x([], [], "confirm"),
|
|
@@ -202,20 +203,21 @@ function Ke({
|
|
|
202
203
|
/* @__PURE__ */ e.jsx(
|
|
203
204
|
"div",
|
|
204
205
|
{
|
|
205
|
-
ref:
|
|
206
|
+
ref: k,
|
|
206
207
|
...j && {
|
|
207
208
|
className: "pointerMouse",
|
|
208
|
-
onClick: () =>
|
|
209
|
+
onClick: () => W()
|
|
209
210
|
},
|
|
210
211
|
children: /* @__PURE__ */ e.jsx(
|
|
211
|
-
|
|
212
|
+
ae,
|
|
212
213
|
{
|
|
213
214
|
spinning: j,
|
|
214
|
-
indicator: /* @__PURE__ */ e.jsx(
|
|
215
|
-
tip: /* @__PURE__ */ e.jsx(
|
|
215
|
+
indicator: /* @__PURE__ */ e.jsx(Te, {}),
|
|
216
|
+
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
216
217
|
children: /* @__PURE__ */ e.jsx(
|
|
217
|
-
|
|
218
|
+
xe,
|
|
218
219
|
{
|
|
220
|
+
size: Q,
|
|
219
221
|
rowKey: t.value,
|
|
220
222
|
loading: p,
|
|
221
223
|
bordered: "row-column",
|
|
@@ -223,13 +225,13 @@ function Ke({
|
|
|
223
225
|
scroll: { x: 1, y: 400 },
|
|
224
226
|
showPagination: !1,
|
|
225
227
|
showTableTool: !1,
|
|
226
|
-
rowSelection:
|
|
227
|
-
columns:
|
|
228
|
+
rowSelection: N,
|
|
229
|
+
columns: V,
|
|
228
230
|
dataSource: y,
|
|
229
|
-
className:
|
|
230
|
-
...
|
|
231
|
+
className: le,
|
|
232
|
+
...ee(),
|
|
231
233
|
style: {
|
|
232
|
-
"--tableBody-bootomBorderColor": ((
|
|
234
|
+
"--tableBody-bootomBorderColor": ((A = s.Table) == null ? void 0 : A.borderColor) || s.colorBorderSecondary
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
)
|
|
@@ -237,22 +239,22 @@ function Ke({
|
|
|
237
239
|
)
|
|
238
240
|
}
|
|
239
241
|
),
|
|
240
|
-
/* @__PURE__ */ e.jsx(
|
|
241
|
-
|
|
242
|
+
/* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(h.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
243
|
+
de,
|
|
242
244
|
{
|
|
243
245
|
disabled: p,
|
|
244
246
|
className: "tableSelectPopupTablePagination",
|
|
245
247
|
size: "small",
|
|
246
248
|
enableControl: !0,
|
|
247
|
-
pagination:
|
|
248
|
-
total:
|
|
249
|
+
pagination: z,
|
|
250
|
+
total: O,
|
|
249
251
|
dataSource: y,
|
|
250
|
-
paginationEmit:
|
|
252
|
+
paginationEmit: $
|
|
251
253
|
}
|
|
252
254
|
) }) })
|
|
253
255
|
] }) })
|
|
254
256
|
] });
|
|
255
257
|
}
|
|
256
258
|
export {
|
|
257
|
-
|
|
259
|
+
He as default
|
|
258
260
|
};
|
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { useMemo as c, useState as p } from "react";
|
|
3
|
+
import { Input as d } from "antd";
|
|
4
|
+
import u from "../TextBlock/index.mjs";
|
|
5
|
+
import t from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import x from "../../BitzTheme/index.mjs";
|
|
6
7
|
import "./index.less.mjs";
|
|
7
|
-
import
|
|
8
|
-
const { TextArea:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import f from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
9
|
+
const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
|
|
10
|
+
var r;
|
|
11
|
+
const { token: o } = x.useToken(), a = ((r = o == null ? void 0 : o.BitzTableSelect) == null ? void 0 : r.paddingBlock) ?? 10, i = c(() => ({
|
|
12
|
+
paddingBlock: a,
|
|
11
13
|
paddingInline: 24
|
|
12
|
-
}), [
|
|
14
|
+
}), [o]), [m, s] = p(!1);
|
|
13
15
|
return /* @__PURE__ */ e.jsxs(
|
|
14
16
|
"div",
|
|
15
17
|
{
|
|
16
18
|
className: "cellBlock",
|
|
17
|
-
style:
|
|
18
|
-
onFocus: () =>
|
|
19
|
-
onBlur: () =>
|
|
19
|
+
style: i,
|
|
20
|
+
onFocus: () => s(!0),
|
|
21
|
+
onBlur: () => s(!1),
|
|
20
22
|
children: [
|
|
21
|
-
/* @__PURE__ */ e.jsx(
|
|
23
|
+
/* @__PURE__ */ e.jsx(u, { className: t("cellText"), value: l }),
|
|
22
24
|
/* @__PURE__ */ e.jsxs(
|
|
23
25
|
"div",
|
|
24
26
|
{
|
|
25
|
-
className:
|
|
27
|
+
className: t(
|
|
26
28
|
"tipBlock",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
n ? "toTop" : "toBottom",
|
|
30
|
+
m ? "show" : ""
|
|
29
31
|
),
|
|
30
32
|
style: {
|
|
31
33
|
paddingInlineStart: 24 - 2,
|
|
32
34
|
paddingInlineEnd: 24 - 4,
|
|
33
|
-
paddingBlock:
|
|
35
|
+
paddingBlock: a
|
|
34
36
|
},
|
|
35
37
|
children: [
|
|
36
38
|
/* @__PURE__ */ e.jsx(
|
|
37
|
-
|
|
39
|
+
f,
|
|
38
40
|
{
|
|
39
|
-
className:
|
|
40
|
-
onClick: () =>
|
|
41
|
+
className: t("closeIcon", n ? "top" : "bottom"),
|
|
42
|
+
onClick: () => s(!1)
|
|
41
43
|
}
|
|
42
44
|
),
|
|
43
45
|
/* @__PURE__ */ e.jsx(
|
|
44
|
-
|
|
46
|
+
B,
|
|
45
47
|
{
|
|
46
48
|
className: "tipText",
|
|
47
|
-
value:
|
|
49
|
+
value: l,
|
|
48
50
|
autoSize: {
|
|
49
51
|
minRows: 1,
|
|
50
52
|
maxRows: 100
|
|
@@ -61,5 +63,5 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
|
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
b as default
|
|
65
67
|
};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
2
|
+
import { Input as l } from "antd";
|
|
3
|
+
import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { defaultValue as n } from "../index.mjs";
|
|
4
5
|
import "./index.less.mjs";
|
|
5
|
-
const { TextArea:
|
|
6
|
-
maxRows:
|
|
6
|
+
const { TextArea: p } = l, j = ({
|
|
7
|
+
maxRows: t = 1,
|
|
7
8
|
minRows: o,
|
|
8
9
|
bold: s,
|
|
9
|
-
value:
|
|
10
|
+
value: e,
|
|
10
11
|
className: r
|
|
11
12
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
"--cell-text-maxRows":
|
|
13
|
+
const a = {
|
|
14
|
+
"--cell-text-maxRows": t,
|
|
14
15
|
...s && {
|
|
15
16
|
fontWeight: s
|
|
16
17
|
},
|
|
17
|
-
|
|
18
|
+
...e === n && {
|
|
18
19
|
paddingInline: 24
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
return /* @__PURE__ */ i.jsx(
|
|
22
|
-
|
|
23
|
+
p,
|
|
23
24
|
{
|
|
24
|
-
className:
|
|
25
|
-
title:
|
|
26
|
-
value:
|
|
25
|
+
className: m("textBlock", r),
|
|
26
|
+
title: e,
|
|
27
|
+
value: e,
|
|
27
28
|
readOnly: !0,
|
|
28
29
|
size: "small",
|
|
29
30
|
variant: "borderless",
|
|
30
31
|
autoSize: {
|
|
31
|
-
minRows: o ??
|
|
32
|
-
maxRows:
|
|
32
|
+
minRows: o ?? t,
|
|
33
|
+
maxRows: t
|
|
33
34
|
},
|
|
34
|
-
style:
|
|
35
|
+
style: a
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
j as default
|
|
40
41
|
};
|
|
@@ -65,4 +65,5 @@ export interface BitzTableSelectProps<T extends BaseOptionType> extends AntSelec
|
|
|
65
65
|
}
|
|
66
66
|
/** 下拉表格组件 */
|
|
67
67
|
declare function BitzTableSelect<T extends BaseOptionType>({ columns, tableData, loading, loadingFailed, loadAgain, total, page, onPageChange, onSearch, showToolTagSelect, placeholder, fieldNames, offsetWidth, ...rest }: BitzTableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare const defaultValue = "-";
|
|
68
69
|
export default BitzTableSelect;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as j } from "react";
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { isMobile as d } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import F from "./Select/index.mjs";
|
|
5
|
+
import M from "./Picker/index.mjs";
|
|
6
6
|
function z({
|
|
7
7
|
columns: l,
|
|
8
|
-
tableData:
|
|
9
|
-
loading:
|
|
10
|
-
loadingFailed:
|
|
11
|
-
loadAgain:
|
|
8
|
+
tableData: u,
|
|
9
|
+
loading: m,
|
|
10
|
+
loadingFailed: c,
|
|
11
|
+
loadAgain: p,
|
|
12
12
|
total: s,
|
|
13
|
-
page:
|
|
14
|
-
onPageChange:
|
|
15
|
-
onSearch:
|
|
16
|
-
showToolTagSelect:
|
|
17
|
-
placeholder:
|
|
13
|
+
page: o,
|
|
14
|
+
onPageChange: f,
|
|
15
|
+
onSearch: b,
|
|
16
|
+
showToolTagSelect: e = !1,
|
|
17
|
+
placeholder: i = "请选择",
|
|
18
18
|
fieldNames: a,
|
|
19
19
|
offsetWidth: n,
|
|
20
|
-
...
|
|
20
|
+
...r
|
|
21
21
|
}) {
|
|
22
|
-
const x = j(() =>
|
|
23
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children:
|
|
24
|
-
|
|
22
|
+
const x = j(() => r.lrLayout ? e ? 900 + (n || 0) : 830 + (n || 0) : e ? 750 + (n || 0) : 700 + (n || 0), [r.lrLayout, e, n]);
|
|
23
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: d ? /* @__PURE__ */ t.jsx(
|
|
24
|
+
M,
|
|
25
25
|
{
|
|
26
26
|
columns: [],
|
|
27
27
|
tableData: [],
|
|
@@ -31,34 +31,36 @@ function z({
|
|
|
31
31
|
throw new Error("Function not implemented.");
|
|
32
32
|
},
|
|
33
33
|
total: 0,
|
|
34
|
-
page:
|
|
34
|
+
page: o,
|
|
35
35
|
onPageChange: function() {
|
|
36
36
|
throw new Error("Function not implemented.");
|
|
37
37
|
},
|
|
38
|
-
placeholder:
|
|
38
|
+
placeholder: i,
|
|
39
39
|
fieldNames: a,
|
|
40
|
-
...
|
|
40
|
+
...r
|
|
41
41
|
}
|
|
42
42
|
) : /* @__PURE__ */ t.jsx(
|
|
43
|
-
|
|
43
|
+
F,
|
|
44
44
|
{
|
|
45
45
|
columns: l,
|
|
46
|
-
tableData:
|
|
47
|
-
loading:
|
|
48
|
-
loadingFailed:
|
|
49
|
-
loadAgain:
|
|
46
|
+
tableData: u,
|
|
47
|
+
loading: m,
|
|
48
|
+
loadingFailed: c,
|
|
49
|
+
loadAgain: p,
|
|
50
50
|
total: s,
|
|
51
|
-
page:
|
|
52
|
-
onPageChange:
|
|
53
|
-
onSearch:
|
|
54
|
-
placeholder:
|
|
51
|
+
page: o,
|
|
52
|
+
onPageChange: f,
|
|
53
|
+
onSearch: b,
|
|
54
|
+
placeholder: i,
|
|
55
55
|
fieldNames: a,
|
|
56
56
|
popupMatchSelectWidth: x,
|
|
57
|
-
showToolTagSelect:
|
|
58
|
-
...
|
|
57
|
+
showToolTagSelect: e,
|
|
58
|
+
...r
|
|
59
59
|
}
|
|
60
60
|
) });
|
|
61
61
|
}
|
|
62
|
+
const A = "-";
|
|
62
63
|
export {
|
|
63
|
-
z as default
|
|
64
|
+
z as default,
|
|
65
|
+
A as defaultValue
|
|
64
66
|
};
|