@tidbcloud/uikit 2.0.0-beta.53 → 2.0.0-beta.55
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/CHANGELOG.md
CHANGED
|
@@ -190,7 +190,8 @@ const usePickerScrollColumn = ({ min, max, curr, open, render }) => {
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
React.useEffect(() => {
|
|
193
|
-
requestIdleCallback
|
|
193
|
+
const rIC = window.requestIdleCallback ?? window.setTimeout;
|
|
194
|
+
rIC(() => {
|
|
194
195
|
adjustScrollTop();
|
|
195
196
|
});
|
|
196
197
|
}, [open, val, adjustScrollTop]);
|
|
@@ -188,7 +188,8 @@ const usePickerScrollColumn = ({ min, max, curr, open, render }) => {
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
useEffect(() => {
|
|
191
|
-
requestIdleCallback
|
|
191
|
+
const rIC = window.requestIdleCallback ?? window.setTimeout;
|
|
192
|
+
rIC(() => {
|
|
192
193
|
adjustScrollTop();
|
|
193
194
|
});
|
|
194
195
|
}, [open, val, adjustScrollTop]);
|
|
@@ -50,7 +50,6 @@ const ProTable = ({
|
|
|
50
50
|
},
|
|
51
51
|
mantinePaperProps
|
|
52
52
|
);
|
|
53
|
-
const pinned = initialState && !!initialState.columnPinning;
|
|
54
53
|
const mTableProps = helpers.mergeMProps(
|
|
55
54
|
{
|
|
56
55
|
highlightOnHover: true,
|
|
@@ -91,14 +90,6 @@ const ProTable = ({
|
|
|
91
90
|
},
|
|
92
91
|
mantineTableProps
|
|
93
92
|
);
|
|
94
|
-
const mTableContainerProps = helpers.mergeMProps(
|
|
95
|
-
() => ({
|
|
96
|
-
sx: {
|
|
97
|
-
overflow: pinned ? "auto" : "unset"
|
|
98
|
-
}
|
|
99
|
-
}),
|
|
100
|
-
mantineTableContainerProps
|
|
101
|
-
);
|
|
102
93
|
const mTableBodyProps = helpers.mergeMProps((args) => {
|
|
103
94
|
var _a, _b, _c;
|
|
104
95
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -153,7 +144,7 @@ const ProTable = ({
|
|
|
153
144
|
mantineTableProps: mTableProps,
|
|
154
145
|
mantineSkeletonProps: mTabelSkeletonProps,
|
|
155
146
|
mantineTableBodyProps: mTableBodyProps,
|
|
156
|
-
mantineTableContainerProps
|
|
147
|
+
mantineTableContainerProps,
|
|
157
148
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
158
149
|
mantineTableBodyCellProps: mTableBodyCellProps,
|
|
159
150
|
mantinePaginationProps: {},
|
|
@@ -48,7 +48,6 @@ const ProTable = ({
|
|
|
48
48
|
},
|
|
49
49
|
mantinePaperProps
|
|
50
50
|
);
|
|
51
|
-
const pinned = initialState && !!initialState.columnPinning;
|
|
52
51
|
const mTableProps = mergeMProps(
|
|
53
52
|
{
|
|
54
53
|
highlightOnHover: true,
|
|
@@ -89,14 +88,6 @@ const ProTable = ({
|
|
|
89
88
|
},
|
|
90
89
|
mantineTableProps
|
|
91
90
|
);
|
|
92
|
-
const mTableContainerProps = mergeMProps(
|
|
93
|
-
() => ({
|
|
94
|
-
sx: {
|
|
95
|
-
overflow: pinned ? "auto" : "unset"
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
mantineTableContainerProps
|
|
99
|
-
);
|
|
100
91
|
const mTableBodyProps = mergeMProps((args) => {
|
|
101
92
|
var _a, _b, _c;
|
|
102
93
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -151,7 +142,7 @@ const ProTable = ({
|
|
|
151
142
|
mantineTableProps: mTableProps,
|
|
152
143
|
mantineSkeletonProps: mTabelSkeletonProps,
|
|
153
144
|
mantineTableBodyProps: mTableBodyProps,
|
|
154
|
-
mantineTableContainerProps
|
|
145
|
+
mantineTableContainerProps,
|
|
155
146
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
156
147
|
mantineTableBodyCellProps: mTableBodyCellProps,
|
|
157
148
|
mantinePaginationProps: {},
|