@hsu-react/ui 2.2.7 → 2.2.8
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.
|
@@ -294,7 +294,13 @@
|
|
|
294
294
|
height: 100%;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
// 这里原本写的是 `.ant-spin-nested-loading` —— antd v5 里 Spin 包裹子节点时的那层
|
|
298
|
+
// 类名。v6 把它删了(现在包裹层只有 `.ant-spin`),于是**整段滚动布局一条都不命中**,
|
|
299
|
+
// 表体拿不到 `flex: 1` 与 `overflow-y: auto`,纵向滚动直接消失,而且不报错。
|
|
300
|
+
//
|
|
301
|
+
// 改用直接子选择器:wrapper 下本来就只有这一个包裹层,不写死它叫什么,
|
|
302
|
+
// v5 / v6 都命中,将来 antd 再改名也不会又静默失效。
|
|
303
|
+
:global(.ant-table-wrapper) > * {
|
|
298
304
|
width: 100%;
|
|
299
305
|
height: 100%;
|
|
300
306
|
|
|
@@ -344,13 +350,12 @@
|
|
|
344
350
|
}
|
|
345
351
|
|
|
346
352
|
&.y-unScroll {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
353
|
+
// 同上:不再经过 v5 才有的 .ant-spin-nested-loading
|
|
354
|
+
:global(.ant-spin-container) {
|
|
355
|
+
:global(.ant-table) {
|
|
356
|
+
:global(.ant-table-container) {
|
|
357
|
+
> :global(.ant-table-body) {
|
|
358
|
+
overflow-y: visible !important;
|
|
354
359
|
}
|
|
355
360
|
}
|
|
356
361
|
}
|
|
@@ -294,7 +294,13 @@
|
|
|
294
294
|
height: 100%;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
// 这里原本写的是 `.ant-spin-nested-loading` —— antd v5 里 Spin 包裹子节点时的那层
|
|
298
|
+
// 类名。v6 把它删了(现在包裹层只有 `.ant-spin`),于是**整段滚动布局一条都不命中**,
|
|
299
|
+
// 表体拿不到 `flex: 1` 与 `overflow-y: auto`,纵向滚动直接消失,而且不报错。
|
|
300
|
+
//
|
|
301
|
+
// 改用直接子选择器:wrapper 下本来就只有这一个包裹层,不写死它叫什么,
|
|
302
|
+
// v5 / v6 都命中,将来 antd 再改名也不会又静默失效。
|
|
303
|
+
:global(.ant-table-wrapper) > * {
|
|
298
304
|
width: 100%;
|
|
299
305
|
height: 100%;
|
|
300
306
|
|
|
@@ -344,13 +350,12 @@
|
|
|
344
350
|
}
|
|
345
351
|
|
|
346
352
|
&.y-unScroll {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
353
|
+
// 同上:不再经过 v5 才有的 .ant-spin-nested-loading
|
|
354
|
+
:global(.ant-spin-container) {
|
|
355
|
+
:global(.ant-table) {
|
|
356
|
+
:global(.ant-table-container) {
|
|
357
|
+
> :global(.ant-table-body) {
|
|
358
|
+
overflow-y: visible !important;
|
|
354
359
|
}
|
|
355
360
|
}
|
|
356
361
|
}
|
package/package.json
CHANGED
|
@@ -294,7 +294,13 @@
|
|
|
294
294
|
height: 100%;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
// 这里原本写的是 `.ant-spin-nested-loading` —— antd v5 里 Spin 包裹子节点时的那层
|
|
298
|
+
// 类名。v6 把它删了(现在包裹层只有 `.ant-spin`),于是**整段滚动布局一条都不命中**,
|
|
299
|
+
// 表体拿不到 `flex: 1` 与 `overflow-y: auto`,纵向滚动直接消失,而且不报错。
|
|
300
|
+
//
|
|
301
|
+
// 改用直接子选择器:wrapper 下本来就只有这一个包裹层,不写死它叫什么,
|
|
302
|
+
// v5 / v6 都命中,将来 antd 再改名也不会又静默失效。
|
|
303
|
+
:global(.ant-table-wrapper) > * {
|
|
298
304
|
width: 100%;
|
|
299
305
|
height: 100%;
|
|
300
306
|
|
|
@@ -344,13 +350,12 @@
|
|
|
344
350
|
}
|
|
345
351
|
|
|
346
352
|
&.y-unScroll {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
353
|
+
// 同上:不再经过 v5 才有的 .ant-spin-nested-loading
|
|
354
|
+
:global(.ant-spin-container) {
|
|
355
|
+
:global(.ant-table) {
|
|
356
|
+
:global(.ant-table-container) {
|
|
357
|
+
> :global(.ant-table-body) {
|
|
358
|
+
overflow-y: visible !important;
|
|
354
359
|
}
|
|
355
360
|
}
|
|
356
361
|
}
|