bitz-react-admin-ui 2.2.6 → 2.2.7
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/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzTable/Store/index.d.ts +5 -1
- package/dist/components/BitzTable/Store/index.mjs +159 -137
- package/dist/components/BitzTable/SubTable/index.mjs +86 -87
- package/dist/components/BitzTable/Table/SortableRow.mjs +2 -2
- package/dist/components/BitzTable/Table/index.mjs +284 -285
- package/dist/components/BitzTable/Table/utils.d.ts +2 -2
- package/dist/components/BitzTable/Table/utils.mjs +29 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +107 -107
- package/dist/components/BitzTable/index.d.ts +3 -2
- package/dist/components/BitzTable/index.mjs +17 -15
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BitzTableColumnsType } from '..';
|
|
2
2
|
/** build skeleton */
|
|
3
|
-
export declare function loopBuildSkeleton<T>(columns: BitzTableColumnsType<T
|
|
3
|
+
export declare function loopBuildSkeleton<T>(columns: BitzTableColumnsType<T>): BitzTableColumnsType<T>;
|
|
4
4
|
/** 设置复选框列、展开列的位置 */
|
|
5
|
-
export declare function getColumnsWithTool<T>(sortCols: any,
|
|
5
|
+
export declare function getColumnsWithTool<T>(cols: any, sortCols: any, enabledRowDragSort: any, showRowSelection: any, showExpandable: any): BitzTableColumnsType<T>;
|
|
@@ -1,41 +1,47 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Skeleton as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as p } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Skeleton as a, Table as s } from "antd";
|
|
3
|
+
import { toolCols as I, SORTER_COLUMN as x } from "../Store/index.mjs";
|
|
4
|
+
function O(l) {
|
|
5
|
+
return l == null ? void 0 : l.map((o) => {
|
|
6
|
+
const e = { ...o };
|
|
7
|
+
return o != null && o.isOperationCol || o != null && o.isCheckboxCol || o != null && o.isExpandIconCol || I.includes(o) ? o : (e != null && e.children && (e.children = O(e == null ? void 0 : e.children)), {
|
|
8
|
+
...e,
|
|
8
9
|
sorter: !1,
|
|
9
|
-
render: (
|
|
10
|
-
|
|
10
|
+
render: (c, d, t) => /* @__PURE__ */ p.jsx(
|
|
11
|
+
a,
|
|
11
12
|
{
|
|
12
13
|
active: !0,
|
|
13
14
|
title: !1,
|
|
14
15
|
paragraph: {
|
|
15
16
|
rows: 1,
|
|
16
|
-
width: (
|
|
17
|
+
width: (t + 1) % 2 === 0 ? "100%" : "60%"
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
)
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
const t = [...
|
|
26
|
-
let
|
|
24
|
+
const u = 0, E = 1, h = 2;
|
|
25
|
+
function k(l, o, e, c, d) {
|
|
26
|
+
const t = [...l ?? []], i = [...o];
|
|
27
|
+
let r = u;
|
|
27
28
|
if (e) {
|
|
28
|
-
const
|
|
29
|
-
|
|
29
|
+
const n = t.indexOf(x);
|
|
30
|
+
n >= 0 && (r = n), i.splice(r, 0, x);
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
32
|
+
let f = 0;
|
|
33
|
+
if (c) {
|
|
34
|
+
const n = t.indexOf(s.SELECTION_COLUMN);
|
|
35
|
+
n >= 0 && (f = n), e && r === 0 && n === -1 && (f = E), i.splice(f, 0, s.SELECTION_COLUMN);
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
if (d) {
|
|
38
|
+
let n = 0;
|
|
39
|
+
const C = t.indexOf(s.EXPAND_COLUMN);
|
|
40
|
+
C >= 0 && (n = C), e && r === 0 && C === -1 && (n = 1), c && f === 1 && C === -1 && (n = h), i.splice(n, 0, s.EXPAND_COLUMN);
|
|
41
|
+
}
|
|
42
|
+
return i;
|
|
37
43
|
}
|
|
38
44
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
k as getColumnsWithTool,
|
|
46
|
+
O as loopBuildSkeleton
|
|
41
47
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { css as me } from "../../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
3
|
import { theme as pe, Flex as F, Typography as q, Space as xe, Checkbox as ge, Button as Ce } from "antd";
|
|
4
|
-
import { forwardRef as ye, useRef as ke, useMemo as k, useContext as Me, useEffect as G, useState as m, useImperativeHandle as
|
|
5
|
-
import { useImmer as
|
|
4
|
+
import { forwardRef as ye, useRef as ke, useMemo as k, useContext as Me, useEffect as G, useState as m, useImperativeHandle as we, memo as Le } from "react";
|
|
5
|
+
import { useImmer as Se } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
6
6
|
import je from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
7
7
|
import "../../../index.mjs";
|
|
8
8
|
import { columnSort as Ke, genColumnKey as be, updateNestedObject as j } from "../../../Store/utils/index.mjs";
|
|
9
9
|
import J from "./DndList.mjs";
|
|
10
|
-
import { BitzTableContext as
|
|
11
|
-
import
|
|
10
|
+
import { BitzTableContext as ve } from "../../../Store/index.mjs";
|
|
11
|
+
import Ne from "../../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
12
12
|
import Ee from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
13
13
|
const Re = ye(
|
|
14
14
|
({ display: K, parentHeight: I }, H) => {
|
|
@@ -28,14 +28,14 @@ const Re = ye(
|
|
|
28
28
|
height: k(() => typeof I == "number" && I && (f != null && f.height) ? I - (f == null ? void 0 : f.height) - 16 : "auto", [I, f == null ? void 0 : f.height]),
|
|
29
29
|
overflow: "hidden auto",
|
|
30
30
|
gap: 6
|
|
31
|
-
}, { defaultColumnKeyMap: se, columns: U, columnsMap: oe } = Me(
|
|
31
|
+
}, { defaultColumnKeyMap: se, columns: U, columnsMap: oe } = Me(ve), [i, V] = Se({});
|
|
32
32
|
G(() => {
|
|
33
33
|
V({ ...oe });
|
|
34
34
|
}, []);
|
|
35
|
-
const W = k(() => ((
|
|
35
|
+
const W = k(() => ((s, t) => s.map((n) => {
|
|
36
36
|
var _;
|
|
37
|
-
const { key:
|
|
38
|
-
|
|
37
|
+
const { key: o, dataIndex: c, children: l, ...C } = n, y = be(
|
|
38
|
+
n,
|
|
39
39
|
[t == null ? void 0 : t.columnKey, C.index].join("-")
|
|
40
40
|
), u = i[y || "null"] || {
|
|
41
41
|
show: !0
|
|
@@ -49,145 +49,145 @@ const Re = ye(
|
|
|
49
49
|
isLeaf: t ? !0 : void 0,
|
|
50
50
|
...u
|
|
51
51
|
};
|
|
52
|
-
})
|
|
52
|
+
}))(U ?? []).sort(Ke(i)), [i, U]);
|
|
53
53
|
G(() => {
|
|
54
|
-
var
|
|
55
|
-
const e = {},
|
|
56
|
-
for (const
|
|
57
|
-
((
|
|
58
|
-
p(e), x(
|
|
54
|
+
var n, o;
|
|
55
|
+
const e = {}, s = {}, t = {};
|
|
56
|
+
for (const c in i)
|
|
57
|
+
((n = i[c]) == null ? void 0 : n.fixed) === "left" ? e[c] = i[c] : ((o = i[c]) == null ? void 0 : o.fixed) === "right" ? s[c] = i[c] : t[c] = i[c];
|
|
58
|
+
p(e), x(s), g(t);
|
|
59
59
|
}, [i]);
|
|
60
|
-
const [b, z] = m([]), [M,
|
|
60
|
+
const [b, z] = m([]), [M, v] = m([]), [h, p] = m({}), [N, D] = m([]), [w, E] = m([]), [a, x] = m({}), [R, A] = m([]), [L, T] = m([]), [d, g] = m({});
|
|
61
61
|
G(() => {
|
|
62
|
-
const e = [],
|
|
62
|
+
const e = [], s = [], t = [], n = [], o = [], c = [];
|
|
63
63
|
W.forEach((l) => {
|
|
64
|
-
l.fixed === "left" ? (e.push(l),
|
|
65
|
-
}), z(e),
|
|
64
|
+
l.fixed === "left" ? (e.push(l), s.push(l.key)) : l.fixed === "right" ? (t.push(l), n.push(l.key)) : (o.push(l), c.push(l.key));
|
|
65
|
+
}), z(e), v(s), D(t), E(n), A(o), T(c);
|
|
66
66
|
}, [W]);
|
|
67
67
|
const ne = (e) => {
|
|
68
68
|
p(e);
|
|
69
|
-
},
|
|
70
|
-
p(e),
|
|
71
|
-
},
|
|
69
|
+
}, ce = (e, s) => {
|
|
70
|
+
p(e), v(s);
|
|
71
|
+
}, re = (e) => {
|
|
72
72
|
x(e);
|
|
73
|
-
}, le = (e,
|
|
74
|
-
x(e), E(
|
|
73
|
+
}, le = (e, s) => {
|
|
74
|
+
x(e), E(s);
|
|
75
75
|
}, ie = (e) => {
|
|
76
76
|
g(e);
|
|
77
|
-
}, he = (e,
|
|
78
|
-
g(e), T(
|
|
79
|
-
}, X = (e,
|
|
80
|
-
const
|
|
81
|
-
delete
|
|
77
|
+
}, he = (e, s) => {
|
|
78
|
+
g(e), T(s);
|
|
79
|
+
}, X = (e, s, t, n) => {
|
|
80
|
+
const o = { ...s[e] };
|
|
81
|
+
delete s[e], g({
|
|
82
82
|
...d,
|
|
83
|
-
[e]: { ...
|
|
83
|
+
[e]: { ...o, fixed: void 0, order: R.length }
|
|
84
84
|
});
|
|
85
|
-
const
|
|
85
|
+
const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
|
|
86
86
|
A([...R, { ...l, fixed: void 0 }]);
|
|
87
|
-
const C =
|
|
88
|
-
return T([...
|
|
89
|
-
}, Y = (e,
|
|
90
|
-
const
|
|
91
|
-
delete
|
|
87
|
+
const C = n.splice(c, 1);
|
|
88
|
+
return T([...L, ...C]), { map: s, list: t, keys: n };
|
|
89
|
+
}, Y = (e, s, t, n) => {
|
|
90
|
+
const o = { ...s[e] };
|
|
91
|
+
delete s[e], p({
|
|
92
92
|
...h,
|
|
93
|
-
[e]: { ...
|
|
93
|
+
[e]: { ...o, fixed: "left", order: b.length, show: !0 }
|
|
94
94
|
});
|
|
95
|
-
const
|
|
95
|
+
const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
|
|
96
96
|
z([...b, { ...l, fixed: "left" }]);
|
|
97
|
-
const C =
|
|
98
|
-
return
|
|
99
|
-
}, Z = (e,
|
|
100
|
-
const
|
|
101
|
-
delete
|
|
97
|
+
const C = n.splice(c, 1);
|
|
98
|
+
return v([...M, ...C]), { map: s, list: t, keys: n };
|
|
99
|
+
}, Z = (e, s, t, n) => {
|
|
100
|
+
const o = { ...s[e] };
|
|
101
|
+
delete s[e], x({
|
|
102
102
|
...a,
|
|
103
103
|
[e]: {
|
|
104
|
-
...
|
|
104
|
+
...o,
|
|
105
105
|
fixed: "right",
|
|
106
|
-
order:
|
|
106
|
+
order: N.length,
|
|
107
107
|
show: !0
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
const
|
|
111
|
-
D([...
|
|
112
|
-
const C =
|
|
113
|
-
return E([...
|
|
114
|
-
}, $ = (e,
|
|
115
|
-
if (
|
|
116
|
-
const { map: t, list:
|
|
110
|
+
const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
|
|
111
|
+
D([...N, { ...l, fixed: "right" }]);
|
|
112
|
+
const C = n.splice(c, 1);
|
|
113
|
+
return E([...w, ...C]), { map: s, list: t, keys: n };
|
|
114
|
+
}, $ = (e, s) => {
|
|
115
|
+
if (s === "left") {
|
|
116
|
+
const { map: t, list: n, keys: o } = X(
|
|
117
117
|
e,
|
|
118
118
|
h,
|
|
119
119
|
b,
|
|
120
120
|
M
|
|
121
121
|
);
|
|
122
|
-
p({ ...t }), z([...
|
|
123
|
-
} else if (
|
|
124
|
-
const { map: t, list:
|
|
122
|
+
p({ ...t }), z([...n]), v([...o]);
|
|
123
|
+
} else if (s === "center") {
|
|
124
|
+
const { map: t, list: n, keys: o } = Y(
|
|
125
125
|
e,
|
|
126
126
|
d,
|
|
127
127
|
R,
|
|
128
|
-
|
|
128
|
+
L
|
|
129
129
|
);
|
|
130
|
-
g({ ...t }), A([...
|
|
130
|
+
g({ ...t }), A([...n]), T([...o]);
|
|
131
131
|
} else {
|
|
132
|
-
const { map: t, list:
|
|
132
|
+
const { map: t, list: n, keys: o } = Y(
|
|
133
133
|
e,
|
|
134
134
|
a,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
N,
|
|
136
|
+
w
|
|
137
137
|
);
|
|
138
|
-
x({ ...t }), D([...
|
|
138
|
+
x({ ...t }), D([...n]), E([...o]);
|
|
139
139
|
}
|
|
140
|
-
}, P = (e,
|
|
141
|
-
if (
|
|
142
|
-
const { map: t, list:
|
|
140
|
+
}, P = (e, s) => {
|
|
141
|
+
if (s === "left") {
|
|
142
|
+
const { map: t, list: n, keys: o } = Z(
|
|
143
143
|
e,
|
|
144
144
|
h,
|
|
145
145
|
b,
|
|
146
146
|
M
|
|
147
147
|
);
|
|
148
|
-
p({ ...t }), z([...
|
|
149
|
-
} else if (
|
|
150
|
-
const { map: t, list:
|
|
148
|
+
p({ ...t }), z([...n]), v([...o]);
|
|
149
|
+
} else if (s === "center") {
|
|
150
|
+
const { map: t, list: n, keys: o } = Z(
|
|
151
151
|
e,
|
|
152
152
|
d,
|
|
153
153
|
R,
|
|
154
|
-
|
|
154
|
+
L
|
|
155
155
|
);
|
|
156
|
-
g({ ...t }), A([...
|
|
156
|
+
g({ ...t }), A([...n]), T([...o]);
|
|
157
157
|
} else {
|
|
158
|
-
const { map: t, list:
|
|
158
|
+
const { map: t, list: n, keys: o } = X(
|
|
159
159
|
e,
|
|
160
160
|
a,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
N,
|
|
162
|
+
w
|
|
163
163
|
);
|
|
164
|
-
x({ ...t }), D([...
|
|
164
|
+
x({ ...t }), D([...n]), E([...o]);
|
|
165
165
|
}
|
|
166
166
|
}, ae = ({ target: e }) => {
|
|
167
167
|
e.checked ? (p(j(h, "show", !0)), g(j(d, "show", !0)), x(j(a, "show", !0))) : (p(j(h, "show", !1)), g(j(d, "show", !1)), x(j(a, "show", !1)));
|
|
168
|
-
}, B = k(() => [...M, ...
|
|
169
|
-
var
|
|
168
|
+
}, B = k(() => [...M, ...L, ...w], [M, L, w]), S = k(() => {
|
|
169
|
+
var s, t, n;
|
|
170
170
|
const e = [];
|
|
171
|
-
for (const
|
|
172
|
-
(
|
|
173
|
-
for (const
|
|
174
|
-
(t = d[
|
|
175
|
-
for (const
|
|
176
|
-
(
|
|
171
|
+
for (const o in h)
|
|
172
|
+
(s = h[o]) != null && s.show && e.push(o);
|
|
173
|
+
for (const o in d)
|
|
174
|
+
(t = d[o]) != null && t.show && e.push(o);
|
|
175
|
+
for (const o in a)
|
|
176
|
+
(n = a[o]) != null && n.show && e.push(o);
|
|
177
177
|
return e;
|
|
178
|
-
}, [h, d, a]), de = k(() => B.length ===
|
|
178
|
+
}, [h, d, a]), de = k(() => B.length === S.length, [B, S]), fe = k(() => S.length > 0 && S.length < B.length, [S, B]), ue = () => {
|
|
179
179
|
V({ ...se });
|
|
180
180
|
};
|
|
181
|
-
return
|
|
181
|
+
return we(H, () => ({
|
|
182
182
|
getLeftSortColumns: () => h,
|
|
183
183
|
getCenterSortColumns: () => d,
|
|
184
184
|
getRightSortColumns: () => a,
|
|
185
|
-
getCheckedKeys: () =>
|
|
186
|
-
})), /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
185
|
+
getCheckedKeys: () => S
|
|
186
|
+
})), /* @__PURE__ */ r.jsxs(F, { vertical: !0, gap: 16, style: te, children: [
|
|
187
|
+
/* @__PURE__ */ r.jsxs("div", { className: "sortContent", children: [
|
|
188
|
+
/* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
|
|
189
|
+
/* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "固定在左侧" }),
|
|
190
|
+
/* @__PURE__ */ r.jsx(
|
|
191
191
|
J,
|
|
192
192
|
{
|
|
193
193
|
placement: "left",
|
|
@@ -197,18 +197,18 @@ const Re = ye(
|
|
|
197
197
|
onLeftClick: $,
|
|
198
198
|
onRightClick: P,
|
|
199
199
|
onChange: ne,
|
|
200
|
-
onMoveEnd:
|
|
200
|
+
onMoveEnd: ce
|
|
201
201
|
}
|
|
202
202
|
)
|
|
203
203
|
] }),
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
|
|
205
|
+
/* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "不固定" }),
|
|
206
|
+
/* @__PURE__ */ r.jsx(
|
|
207
207
|
J,
|
|
208
208
|
{
|
|
209
209
|
placement: "center",
|
|
210
210
|
dataList: R,
|
|
211
|
-
keys:
|
|
211
|
+
keys: L,
|
|
212
212
|
columnsMap: d,
|
|
213
213
|
onLeftClick: $,
|
|
214
214
|
onRightClick: P,
|
|
@@ -217,38 +217,38 @@ const Re = ye(
|
|
|
217
217
|
}
|
|
218
218
|
)
|
|
219
219
|
] }),
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
|
|
221
|
+
/* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "固定在右侧" }),
|
|
222
|
+
/* @__PURE__ */ r.jsx(
|
|
223
223
|
J,
|
|
224
224
|
{
|
|
225
225
|
placement: "right",
|
|
226
|
-
dataList:
|
|
227
|
-
keys:
|
|
226
|
+
dataList: N,
|
|
227
|
+
keys: w,
|
|
228
228
|
columnsMap: a,
|
|
229
229
|
onLeftClick: $,
|
|
230
230
|
onRightClick: P,
|
|
231
|
-
onChange:
|
|
231
|
+
onChange: re,
|
|
232
232
|
onMoveEnd: le
|
|
233
233
|
}
|
|
234
234
|
)
|
|
235
235
|
] })
|
|
236
236
|
] }),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ r.jsxs(xe, { size: 16, className: "scope", ref: Q, children: [
|
|
238
|
+
/* @__PURE__ */ r.jsx(
|
|
239
239
|
ge,
|
|
240
240
|
{
|
|
241
241
|
indeterminate: fe,
|
|
242
242
|
checked: de,
|
|
243
243
|
onChange: ae,
|
|
244
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ r.jsx("span", { style: { whiteSpace: "nowrap" }, children: "全选" })
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ r.jsx(
|
|
248
248
|
Ce,
|
|
249
249
|
{
|
|
250
250
|
type: "link",
|
|
251
|
-
icon: /* @__PURE__ */
|
|
251
|
+
icon: /* @__PURE__ */ r.jsx(Ne, {}),
|
|
252
252
|
size: "small",
|
|
253
253
|
onClick: ue,
|
|
254
254
|
className: me`
|
|
@@ -256,13 +256,13 @@ const Re = ye(
|
|
|
256
256
|
color: ${ee.colorPrimary} !important;
|
|
257
257
|
}
|
|
258
258
|
`,
|
|
259
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ r.jsx("span", { style: { whiteSpace: "nowrap" }, children: "重置" })
|
|
260
260
|
}
|
|
261
261
|
)
|
|
262
262
|
] })
|
|
263
263
|
] });
|
|
264
264
|
}
|
|
265
|
-
), Ue =
|
|
265
|
+
), Ue = Le(Re);
|
|
266
266
|
export {
|
|
267
267
|
Ue as default
|
|
268
268
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BitzTableProps } from './Table';
|
|
2
|
-
import BitzTableProvider, { BitzTableContext, DensitySize as BitzTableSizeType, StylesStateType, ColumnStateType, ExportColumnStateType } from './Store';
|
|
2
|
+
import BitzTableProvider, { BitzTableContext, DensitySize as BitzTableSizeType, StylesStateType, ColumnStateType, ExportColumnStateType, SORTER_COLUMN } from './Store';
|
|
3
3
|
import SubTable from './SubTable';
|
|
4
4
|
import ActionBar from './ActionBar';
|
|
5
5
|
import ToolBar from './ToolBar/Wrapper';
|
|
@@ -53,7 +53,7 @@ interface BitzTableColumnType<RecordType = any> extends ColumnsConfigProps, Tabl
|
|
|
53
53
|
/** 是否为展开列 */
|
|
54
54
|
isExpandIconCol?: boolean;
|
|
55
55
|
/** 是否为拖拽列 */
|
|
56
|
-
|
|
56
|
+
isDragSorterCol?: boolean;
|
|
57
57
|
/** 列宽根据内容宽度最大的设置(只应用在操作列上) */
|
|
58
58
|
useMaxWidth?: boolean;
|
|
59
59
|
}
|
|
@@ -72,6 +72,7 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableProps> & {
|
|
|
72
72
|
ToolBar: typeof ToolBar;
|
|
73
73
|
SelectionBar: typeof SelectionBar;
|
|
74
74
|
ActionCol: typeof ActionCol;
|
|
75
|
+
SORTER_COLUMN: typeof SORTER_COLUMN;
|
|
75
76
|
};
|
|
76
77
|
declare const BitzTable: CompoundedComponent;
|
|
77
78
|
export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, SelelctionAlertProps, ActionsFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import i from "./
|
|
5
|
-
import e from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import l from "./
|
|
8
|
-
|
|
1
|
+
import r from "./Table/index.mjs";
|
|
2
|
+
import { SORTER_COLUMN as t } from "./Store/index.mjs";
|
|
3
|
+
import { BitzTableContext as s, default as C } from "./Store/index.mjs";
|
|
4
|
+
import i from "./SubTable/index.mjs";
|
|
5
|
+
import e from "./ActionBar/index.mjs";
|
|
6
|
+
import a from "./ToolBar/Wrapper/index.mjs";
|
|
7
|
+
import l from "./ActionCol/index.mjs";
|
|
8
|
+
import m from "./SelectionBar/index.mjs";
|
|
9
|
+
const o = r;
|
|
9
10
|
process.env.NODE_ENV !== "production" && (o.displayName = "BitzTable");
|
|
10
|
-
o.SubTable =
|
|
11
|
-
o.ActionBar =
|
|
12
|
-
o.ToolBar =
|
|
13
|
-
o.SelectionBar =
|
|
14
|
-
o.ActionCol =
|
|
11
|
+
o.SubTable = i;
|
|
12
|
+
o.ActionBar = e;
|
|
13
|
+
o.ToolBar = a;
|
|
14
|
+
o.SelectionBar = m;
|
|
15
|
+
o.ActionCol = l;
|
|
16
|
+
o.SORTER_COLUMN = t;
|
|
15
17
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
s as BitzTableContext,
|
|
19
|
+
C as BitzTableProvider,
|
|
18
20
|
o as default
|
|
19
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as e } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as r } from "../../../../../_virtual/
|
|
2
|
+
import { __module as r } from "../../../../../_virtual/index2.mjs";
|
|
3
3
|
import { __require as o } from "../../../react-is@16.13.1/node_modules/react-is/index.mjs";
|
|
4
4
|
import { __require as t } from "./factoryWithTypeCheckers.mjs";
|
|
5
5
|
import { __require as p } from "./factoryWithThrowingShims.mjs";
|