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