@unicom-cloud/ui 0.8.107 → 0.8.108
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/ColorPicker.js +15 -14
- package/Constant.js +4 -0
- package/Copy.js +4 -3
- package/Countdown.js +25 -0
- package/Grid.js +8 -10
- package/LiquidFill.js +4 -3
- package/List.js +7 -6
- package/Marquee.js +4 -3
- package/PageHeader.js +3 -2
- package/QrCode.js +4 -3
- package/RowCol.js +8 -0
- package/Segmented.js +14 -4
- package/Statistic.js +5 -4
- package/Tour.js +4 -3
- package/Transfer.js +4 -2
- package/anchor/Link.js +1 -1
- package/avatar/Group.js +1 -1
- package/button/index.js +52 -51
- package/calendar/Lunar.js +21 -21
- package/cascader/base/node.js +22 -20
- package/cascader/base/store.js +10 -10
- package/cascader/util.js +29 -27
- package/color-picker/Mode.js +8 -7
- package/color-picker/hooks/useColorPicker.js +56 -55
- package/color-picker/index.js +54 -53
- package/color-picker/utils.js +58 -57
- package/components/common/empty/index.js +2 -2
- package/components/common/flex/index.js +64 -55
- package/components/common/flex/interface.js +6 -6
- package/components/common/hooks/useInterval.js +6 -6
- package/components/common/space/index.js +53 -53
- package/components/common/utils/dayjs.js +75 -62
- package/components/common/utils/toArray.js +7 -5
- package/constant/index.js +4 -0
- package/copy/index.js +2 -1
- package/countdown/index.js +113 -0
- package/countdown/interface.js +1 -0
- package/countdown/util.js +29 -0
- package/descriptions/index.js +26 -26
- package/dropdown/Button.js +1 -1
- package/flex/index.js +30 -29
- package/form/FormItem.js +126 -122
- package/grid/Grid.js +40 -41
- package/grid/Item.js +37 -37
- package/grid/context.js +2 -3
- package/grid/index.js +6 -8
- package/hooks/useResponsiveState.js +54 -0
- package/index.js +614 -610
- package/input/InputElement.js +25 -24
- package/layout/Sider.js +1 -1
- package/liquid-fill/index.js +4 -3
- package/list/Item.js +21 -21
- package/list/index.js +53 -52
- package/marquee/index.js +20 -19
- package/marquee-/index.js +4 -3
- package/mentions/util.js +9 -8
- package/package.json +1 -1
- package/page-header/index.js +57 -56
- package/pagination/Pagination.js +89 -92
- package/qr-code/index.js +4 -3
- package/radio/Group.js +1 -1
- package/row-col/Col-.js +88 -0
- package/row-col/Col.js +159 -0
- package/row-col/Row.js +73 -0
- package/row-col/context.js +5 -0
- package/row-col/index.js +11 -0
- package/row-col/interface.js +1 -0
- package/segmented/index.js +257 -206
- package/select/Select.js +191 -191
- package/select/util.js +50 -50
- package/space/index.js +15 -13
- package/statistic/index.js +56 -55
- package/statistic/interface.js +4 -1
- package/style.css +1 -1
- package/table/hook/useColumns.js +27 -26
- package/table/hook/useStickyClassNames.js +9 -8
- package/table/hook/useThResizable.js +4 -3
- package/table/th-resizable/index.js +11 -10
- package/table/thead/index.js +18 -16
- package/timeline/Item.js +1 -1
- package/tour/index.js +4 -3
- package/transfer/index.js +93 -91
- package/trigger/index.js +66 -66
- package/types/common/flex/index.d.ts +3 -9
- package/types/common/flex/interface.d.ts +15 -4
- package/types/common/space/index.d.ts +3 -5
- package/types/common/space/interface.d.ts +2 -0
- package/types/common/utils/dayjs.d.ts +3 -1
- package/types/pc/button/interface.d.ts +2 -2
- package/types/pc/config-provider/interface.d.ts +16 -11
- package/types/pc/constant/index.d.ts +1 -0
- package/types/pc/countdown/interface.d.ts +65 -0
- package/types/pc/countdown/util.d.ts +7 -0
- package/types/pc/flex/index.d.ts +8 -6
- package/types/pc/flex/interface.d.ts +3 -10
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/interface.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -2
- package/types/pc/grid/Item.d.ts +1 -2
- package/types/pc/grid/context.d.ts +0 -5
- package/types/pc/grid/index.d.ts +4 -6
- package/types/pc/grid/interface.d.ts +7 -125
- package/types/pc/hooks/useResponsiveState.d.ts +3 -0
- package/types/pc/index.d.ts +7 -3
- package/types/pc/list/interface.d.ts +2 -1
- package/types/pc/pagination/PageOption.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +5 -6
- package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
- package/types/pc/{grid → row-col}/Col.d.ts +1 -2
- package/types/pc/{grid → row-col}/Row.d.ts +1 -2
- package/types/pc/row-col/context.d.ts +6 -0
- package/types/pc/row-col/index.d.ts +7 -0
- package/types/pc/row-col/interface.d.ts +112 -0
- package/types/pc/segmented/index.d.ts +3 -7
- package/types/pc/segmented/interface.d.ts +38 -5
- package/types/pc/space/index.d.ts +5 -7
- package/types/pc/space/interface.d.ts +3 -10
- package/types/pc/statistic/index.d.ts +1 -1
- package/types/pc/statistic/interface.d.ts +1 -49
- package/types/pc/utils/names.d.ts +121 -113
- package/types/pc/utils/responsiveObserve.d.ts +8 -8
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +4 -3
- package/utils/dayjs.js +13 -11
- package/utils/index.js +244 -242
- package/utils/names.js +15 -10
- package/utils/responsiveObserve.js +43 -36
- package/version/index.js +1 -1
- package/grid/Col-.js +0 -86
- package/grid/Col.js +0 -169
- package/grid/Row.js +0 -96
- package/grid/hook/useResponsiveState.js +0 -35
- package/statistic/Countdown.js +0 -56
- package/statistic/util.js +0 -33
- package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
- package/types/pc/statistic/util.d.ts +0 -1
- /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
package/table/hook/useColumns.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import K from "lodash/isArray";
|
|
2
|
+
import { useMemo as h, useCallback as M } from "react";
|
|
2
3
|
import { INTERNAL_EXPAND_KEY as F, INTERNAL_SELECTION_KEY as S } from "../constant.js";
|
|
3
|
-
import
|
|
4
|
-
function L(c,
|
|
4
|
+
import Y from "./useComponent.js";
|
|
5
|
+
function L(c, f) {
|
|
5
6
|
const n = [];
|
|
6
|
-
function m(
|
|
7
|
-
|
|
8
|
-
l[
|
|
7
|
+
function m(a) {
|
|
8
|
+
a && a.length > 0 && a.forEach((l) => {
|
|
9
|
+
l[f] ? m(l[f]) : n.push({ ...l, key: l.dataIndex || l.key });
|
|
9
10
|
});
|
|
10
11
|
}
|
|
11
12
|
return m(c), n;
|
|
12
13
|
}
|
|
13
|
-
function v(c,
|
|
14
|
+
function v(c, f) {
|
|
14
15
|
let n = 0;
|
|
15
16
|
return c && c.length > 0 && c.forEach((m) => {
|
|
16
|
-
const
|
|
17
|
-
n = Math.max(
|
|
17
|
+
const a = v(m[f], f) + 1;
|
|
18
|
+
n = Math.max(a, n);
|
|
18
19
|
}), n;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function z(c) {
|
|
21
22
|
const {
|
|
22
|
-
component:
|
|
23
|
+
component: f,
|
|
23
24
|
rowSelection: n,
|
|
24
25
|
expandedRowRender: m,
|
|
25
|
-
expandProps:
|
|
26
|
+
expandProps: a = {},
|
|
26
27
|
columns: l = [],
|
|
27
28
|
childrenColumnName: i
|
|
28
|
-
} = c, u =
|
|
29
|
+
} = c, u = h(() => l || [], [l]), k = h(
|
|
29
30
|
() => L(u, i),
|
|
30
31
|
[u, i]
|
|
31
|
-
), P = n && n.type === "checkbox" || n && !("type" in n), T = n && n.type === "radio", { width: N } =
|
|
32
|
+
), P = n && n.type === "checkbox" || n && !("type" in n), T = n && n.type === "radio", { width: N } = a, x = !!m, $ = P || T, { getHeaderComponentOperations: _, getBodyComponentOperations: O } = Y(f), p = h(
|
|
32
33
|
() => _({
|
|
33
34
|
selectionNode: $ ? "holder_node" : "",
|
|
34
35
|
expandNode: x ? "holder_node" : ""
|
|
@@ -38,7 +39,7 @@ function j(c) {
|
|
|
38
39
|
x,
|
|
39
40
|
_
|
|
40
41
|
]
|
|
41
|
-
), R =
|
|
42
|
+
), R = h(
|
|
42
43
|
() => O({
|
|
43
44
|
selectionNode: $ ? "holder_node" : "",
|
|
44
45
|
expandNode: x ? "holder_node" : ""
|
|
@@ -48,7 +49,7 @@ function j(c) {
|
|
|
48
49
|
x,
|
|
49
50
|
O
|
|
50
51
|
]
|
|
51
|
-
), b = n && n.fixed, A = n && n.columnWidth, y =
|
|
52
|
+
), b = n && n.fixed, A = n && n.columnWidth, y = M(
|
|
52
53
|
(w, I, d) => {
|
|
53
54
|
const r = {}, t = [];
|
|
54
55
|
w.forEach((e, g) => {
|
|
@@ -68,7 +69,7 @@ function j(c) {
|
|
|
68
69
|
};
|
|
69
70
|
return b && (r.fixed = "left"), (typeof d != "number" || d === 0) && [...I].reverse().forEach((e, g) => {
|
|
70
71
|
if (e.node) {
|
|
71
|
-
const s =
|
|
72
|
+
const s = p.filter((H) => H.node).length - g - 1;
|
|
72
73
|
e.name === "expandNode" ? t.unshift({
|
|
73
74
|
...o,
|
|
74
75
|
...r,
|
|
@@ -95,23 +96,23 @@ function j(c) {
|
|
|
95
96
|
$,
|
|
96
97
|
A,
|
|
97
98
|
b,
|
|
98
|
-
|
|
99
|
+
p
|
|
99
100
|
]
|
|
100
|
-
), W =
|
|
101
|
+
), W = h(
|
|
101
102
|
() => y(k, R),
|
|
102
103
|
[k, y, R]
|
|
103
|
-
), E =
|
|
104
|
+
), E = h(
|
|
104
105
|
() => v(u, i),
|
|
105
106
|
[u, i]
|
|
106
107
|
);
|
|
107
|
-
return [
|
|
108
|
-
const w =
|
|
108
|
+
return [h(() => {
|
|
109
|
+
const w = K(p) ? p.filter((t) => t.node).length : 0;
|
|
109
110
|
if (E === 1) {
|
|
110
111
|
const t = u.map((o, C) => ({
|
|
111
112
|
...o,
|
|
112
113
|
$$columnIndex: C + w
|
|
113
114
|
}));
|
|
114
|
-
return [y(t,
|
|
115
|
+
return [y(t, p, 0)];
|
|
115
116
|
}
|
|
116
117
|
let I = w;
|
|
117
118
|
const d = [], r = (t, o = 0) => {
|
|
@@ -123,7 +124,7 @@ function j(c) {
|
|
|
123
124
|
).length, e.$$columnIndex = [I], d[o].push(e), r(e[i], o + 1), e.$$columnIndex.push(I - 1)) : (e.rowSpan = E - o, e.$$columnIndex = I++, d[o].push(e));
|
|
124
125
|
}), d[o] = y(
|
|
125
126
|
d[o],
|
|
126
|
-
|
|
127
|
+
p,
|
|
127
128
|
o
|
|
128
129
|
);
|
|
129
130
|
};
|
|
@@ -133,9 +134,9 @@ function j(c) {
|
|
|
133
134
|
i,
|
|
134
135
|
E,
|
|
135
136
|
y,
|
|
136
|
-
|
|
137
|
+
p
|
|
137
138
|
]), W];
|
|
138
139
|
}
|
|
139
140
|
export {
|
|
140
|
-
|
|
141
|
+
z as default
|
|
141
142
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from "lodash/isArray";
|
|
2
|
+
import d from "lodash/isPlainObject";
|
|
2
3
|
import { useMemo as m } from "react";
|
|
3
4
|
import c from "@unicom-cloud/utils/class-name";
|
|
4
|
-
function
|
|
5
|
+
function N(s, i, f) {
|
|
5
6
|
const n = i.map((e) => e.fixed);
|
|
6
|
-
function
|
|
7
|
+
function o(e, t) {
|
|
7
8
|
return c({
|
|
8
9
|
[`${f}-col-fixed-left`]: e.fixed === "left",
|
|
9
10
|
[`${f}-col-fixed-right`]: e.fixed === "right",
|
|
10
|
-
[`${f}-col-fixed-left-last`]: e.fixed === "left" && (
|
|
11
|
-
[`${f}-col-fixed-right-first`]: e.fixed === "right" && (
|
|
11
|
+
[`${f}-col-fixed-left-last`]: e.fixed === "left" && (d(i[t + 1]) ? i[t + 1].fixed !== "left" : !0),
|
|
12
|
+
[`${f}-col-fixed-right-first`]: e.fixed === "right" && (d(i[t - 1]) ? i[t - 1].fixed !== "right" : !0)
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
const x = m(() => i.map(
|
|
15
|
-
(e, t) =>
|
|
16
|
+
(e, t) => o(e, t)
|
|
16
17
|
), [n.join("-")]);
|
|
17
18
|
return [m(
|
|
18
19
|
() => s.map((e) => e.map((t, l) => {
|
|
19
20
|
let a = l;
|
|
20
21
|
const r = t.$$columnIndex;
|
|
21
|
-
return
|
|
22
|
+
return p(r) && r.length === 2 ? a = t.fixed === "right" ? r[0] : r[1] : typeof r == "number" && (a = r), o(t, a);
|
|
22
23
|
})),
|
|
23
24
|
[
|
|
24
25
|
s.map((e) => `|${e.map((t) => t.fixed || "undefined").join("-")}|`).join("_")
|
|
@@ -26,5 +27,5 @@ function y(s, i, f) {
|
|
|
26
27
|
), x];
|
|
27
28
|
}
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
N as default
|
|
30
31
|
};
|
|
@@ -39,7 +39,7 @@ import "../../dist/react-transition-group/src/SwitchTransition.js";
|
|
|
39
39
|
import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
40
40
|
import "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
41
41
|
import "../../components/common/utils/reactDOM.js";
|
|
42
|
-
import "
|
|
42
|
+
import "../../utils/responsiveObserve.js";
|
|
43
43
|
import "@unicom-cloud/utils/file/saveAs";
|
|
44
44
|
import "@unicom-cloud/utils/screenfull";
|
|
45
45
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -48,10 +48,11 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
48
48
|
import "react-is";
|
|
49
49
|
import "@unicom-cloud/utils/tree";
|
|
50
50
|
import { isArray as C } from "@unicom-cloud/utils/is";
|
|
51
|
+
import "uuid";
|
|
51
52
|
import "../../dist/validate/src/index.js";
|
|
52
53
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
53
54
|
import z from "../th-resizable/index.js";
|
|
54
|
-
function
|
|
55
|
+
function It(f = {}, c = []) {
|
|
55
56
|
const { columns: u } = f ?? {}, [d, m] = b(o(u));
|
|
56
57
|
function h(t, i) {
|
|
57
58
|
return {
|
|
@@ -82,5 +83,5 @@ function Ht(f = {}, c = []) {
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
It as default
|
|
86
87
|
};
|
|
@@ -40,7 +40,7 @@ import "../../dist/react-transition-group/src/SwitchTransition.js";
|
|
|
40
40
|
import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
41
41
|
import "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
42
42
|
import "../../components/common/utils/reactDOM.js";
|
|
43
|
-
import "
|
|
43
|
+
import "../../utils/responsiveObserve.js";
|
|
44
44
|
import "@unicom-cloud/utils/file/saveAs";
|
|
45
45
|
import "@unicom-cloud/utils/screenfull";
|
|
46
46
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -49,11 +49,12 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
49
49
|
import "react-is";
|
|
50
50
|
import "@unicom-cloud/utils/tree";
|
|
51
51
|
import { isFunction as E, isPlainObject as T } from "@unicom-cloud/utils/is";
|
|
52
|
+
import "uuid";
|
|
52
53
|
import "../../dist/validate/src/index.js";
|
|
53
54
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
54
55
|
import { defaultComponent as D } from "../constant.js";
|
|
55
56
|
import F from "../../config-provider/context.js";
|
|
56
|
-
function
|
|
57
|
+
function Ut(b) {
|
|
57
58
|
let {
|
|
58
59
|
className: r,
|
|
59
60
|
children: u,
|
|
@@ -63,27 +64,27 @@ function Bt(b) {
|
|
|
63
64
|
} = b;
|
|
64
65
|
const v = D.header.th, f = s(null), x = s(null), o = s({}), { getPrefixCls: R } = X(F), a = R?.("table-th-resizable");
|
|
65
66
|
function l(t) {
|
|
66
|
-
o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0,
|
|
67
|
+
o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0, p(), N();
|
|
67
68
|
}
|
|
68
69
|
function e(t) {
|
|
69
|
-
|
|
70
|
+
p();
|
|
70
71
|
}
|
|
71
72
|
function m(t) {
|
|
72
|
-
let
|
|
73
|
-
|
|
73
|
+
let n = o.current.boundingClientRect.width + ((t?.pageX ?? 0) - o.current.pageX);
|
|
74
|
+
n < 0 || (T(i) && (i.width = n), c?.({
|
|
74
75
|
column: i,
|
|
75
|
-
width:
|
|
76
|
+
width: n,
|
|
76
77
|
widthOrigin: o.current.boundingClientRect.width
|
|
77
78
|
}));
|
|
78
79
|
}
|
|
79
80
|
function N(t) {
|
|
80
81
|
C(document, "mousemove", m), C(document, "mouseup", e);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function p(t) {
|
|
83
84
|
g(document, "mousemove", m), g(document, "mouseup", e);
|
|
84
85
|
}
|
|
85
86
|
r = z(r, a), j(() => (l(), m(), e(), () => {
|
|
86
|
-
|
|
87
|
+
p();
|
|
87
88
|
}), []);
|
|
88
89
|
let d = u;
|
|
89
90
|
return E(c) && (d = /* @__PURE__ */ M(P, { children: [
|
|
@@ -99,5 +100,5 @@ function Bt(b) {
|
|
|
99
100
|
] })), /* @__PURE__ */ h(v, { ref: f, ...w, className: r, children: d });
|
|
100
101
|
}
|
|
101
102
|
export {
|
|
102
|
-
|
|
103
|
+
Ut as default
|
|
103
104
|
};
|
package/table/thead/index.js
CHANGED
|
@@ -6,9 +6,11 @@ import "../../config-provider/ConfigProvider.js";
|
|
|
6
6
|
import { INTERNAL_SELECTION_KEY as se, INTERNAL_EXPAND_KEY as ne } from "../constant.js";
|
|
7
7
|
import re from "../hook/useComponent.js";
|
|
8
8
|
import c from "@unicom-cloud/utils/class-name";
|
|
9
|
+
import "../../components/common/utils/is.js";
|
|
9
10
|
import ie from "./Column.js";
|
|
10
11
|
import ae from "../../config-provider/context.js";
|
|
11
|
-
|
|
12
|
+
import { isArray as le } from "@unicom-cloud/utils/is";
|
|
13
|
+
function we(R) {
|
|
12
14
|
const {
|
|
13
15
|
activeSorters: b,
|
|
14
16
|
expandedRowRender: K,
|
|
@@ -24,16 +26,16 @@ function ke(R) {
|
|
|
24
26
|
selectedRowKeys: E,
|
|
25
27
|
rowSelection: t,
|
|
26
28
|
allSelectedRowKeys: r = [],
|
|
27
|
-
groupColumns:
|
|
29
|
+
groupColumns: f,
|
|
28
30
|
stickyOffsets: N,
|
|
29
31
|
groupStickyClassNames: Y,
|
|
30
32
|
showSorterTooltip: D
|
|
31
|
-
} = R, { rtl: y } = ee(ae), { ComponentThead: M, ComponentHeaderRow: W, getHeaderComponentOperations: X } = re(S), q = t && (t.type === "checkbox" || !("type" in t)), z = t && "checkAll" in t ? t.checkAll : !0, C = t && t.type === "radio", { columnTitle:
|
|
33
|
+
} = R, { rtl: y } = ee(ae), { ComponentThead: M, ComponentHeaderRow: W, getHeaderComponentOperations: X } = re(S), q = t && (t.type === "checkbox" || !("type" in t)), z = t && "checkAll" in t ? t.checkAll : !0, C = t && t.type === "radio", { columnTitle: T } = P, p = te(() => {
|
|
32
34
|
const h = new Set(r);
|
|
33
|
-
return E.filter((s,
|
|
34
|
-
}, [E, r]), B =
|
|
35
|
-
return /* @__PURE__ */ d(M, { children:
|
|
36
|
-
const
|
|
35
|
+
return E.filter((s, A, u) => h.has(s));
|
|
36
|
+
}, [E, r]), B = f.length > 1 ? { rowSpan: f.length } : {}, k = c(`${o}-th`, `${o}-operation`);
|
|
37
|
+
return /* @__PURE__ */ d(M, { children: f.map((h, s) => {
|
|
38
|
+
const A = L?.(h, s), u = (q || C) && s === 0 && /* @__PURE__ */ d(
|
|
37
39
|
"th",
|
|
38
40
|
{
|
|
39
41
|
className: c(
|
|
@@ -53,21 +55,21 @@ function ke(R) {
|
|
|
53
55
|
t && t.columnTitle
|
|
54
56
|
] })
|
|
55
57
|
}
|
|
56
|
-
), G = K && /* @__PURE__ */ d("th", { className: c(k, `${o}-expand`), children:
|
|
58
|
+
), G = K && /* @__PURE__ */ d("th", { className: c(k, `${o}-expand`), children: T && /* @__PURE__ */ d("div", { className: `${o}-th-item`, children: T }) }), J = Y[s], H = X({
|
|
57
59
|
selectionNode: u,
|
|
58
60
|
expandNode: G
|
|
59
61
|
});
|
|
60
62
|
return /* @__PURE__ */ _(
|
|
61
63
|
W,
|
|
62
64
|
{
|
|
63
|
-
...
|
|
65
|
+
...A,
|
|
64
66
|
key: s,
|
|
65
67
|
className: `${o}-tr`
|
|
66
68
|
},
|
|
67
69
|
h.map((e, i) => {
|
|
68
70
|
const n = e.$$columnIndex;
|
|
69
71
|
let a = 0;
|
|
70
|
-
|
|
72
|
+
le(n) && n.length === 2 ? a = e.fixed === "right" ? N[n[1]] : N[n[0]] : typeof n == "number" && (a = N[n] || 0);
|
|
71
73
|
const O = J[i];
|
|
72
74
|
if (e.$$isOperation) {
|
|
73
75
|
let l = e.node, x = !0;
|
|
@@ -76,18 +78,18 @@ function ke(R) {
|
|
|
76
78
|
)?.node, x = !1), e.title === ne && (l = H.find(
|
|
77
79
|
(w) => w.name === "expandNode"
|
|
78
80
|
)?.node, x = !1);
|
|
79
|
-
const
|
|
80
|
-
return Z.cloneElement(
|
|
81
|
+
const m = l;
|
|
82
|
+
return Z.cloneElement(m, {
|
|
81
83
|
key: e.key || i,
|
|
82
|
-
...
|
|
84
|
+
...m.props,
|
|
83
85
|
...B,
|
|
84
86
|
className: c(
|
|
85
87
|
x ? k : "",
|
|
86
|
-
|
|
88
|
+
m?.props?.className,
|
|
87
89
|
O
|
|
88
90
|
),
|
|
89
91
|
style: {
|
|
90
|
-
...
|
|
92
|
+
...m?.props?.style,
|
|
91
93
|
...e.fixed === "left" ? {
|
|
92
94
|
[y ? "right" : "left"]: a
|
|
93
95
|
} : {},
|
|
@@ -125,5 +127,5 @@ function ke(R) {
|
|
|
125
127
|
}) });
|
|
126
128
|
}
|
|
127
129
|
export {
|
|
128
|
-
|
|
130
|
+
we as default
|
|
129
131
|
};
|
package/timeline/Item.js
CHANGED
package/tour/index.js
CHANGED
|
@@ -52,7 +52,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
|
52
52
|
import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
53
53
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
54
54
|
import { resizeObserver as yt } from "../components/common/utils/resizeObserver.js";
|
|
55
|
-
import "
|
|
55
|
+
import "../utils/responsiveObserve.js";
|
|
56
56
|
import "@unicom-cloud/utils/file/saveAs";
|
|
57
57
|
import "@unicom-cloud/utils/screenfull";
|
|
58
58
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -61,6 +61,7 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
61
61
|
import "react-is";
|
|
62
62
|
import "@unicom-cloud/utils/tree";
|
|
63
63
|
import "@unicom-cloud/utils/is";
|
|
64
|
+
import "uuid";
|
|
64
65
|
import "../dist/validate/src/index.js";
|
|
65
66
|
import $t from "../config-provider/context.js";
|
|
66
67
|
const xt = {
|
|
@@ -75,7 +76,7 @@ const xt = {
|
|
|
75
76
|
zIndex: 1e3,
|
|
76
77
|
current: 0
|
|
77
78
|
};
|
|
78
|
-
function
|
|
79
|
+
function Te(L) {
|
|
79
80
|
const { getPrefixCls: X, componentConfig: Y, rtl: kt } = ct($t), K = gt(
|
|
80
81
|
L,
|
|
81
82
|
xt,
|
|
@@ -307,5 +308,5 @@ function Ee(L) {
|
|
|
307
308
|
);
|
|
308
309
|
}
|
|
309
310
|
export {
|
|
310
|
-
|
|
311
|
+
Te as default
|
|
311
312
|
};
|