@lemon-fe/components 0.1.28 → 0.1.29
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/es/BaseTable/index.js +7 -1
- package/es/Layout/index.less +1 -0
- package/package.json +2 -2
package/es/BaseTable/index.js
CHANGED
|
@@ -198,9 +198,15 @@ function BaseTable(props) {
|
|
|
198
198
|
setScrollY(calcScrollY() || undefined);
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
+
var hasPagination = false;
|
|
202
|
+
|
|
203
|
+
if (paginationProp !== false) {
|
|
204
|
+
hasPagination = paginationProp !== undefined && !!paginationProp.total || dataSource.length > 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
201
207
|
useLayoutEffect(function () {
|
|
202
208
|
setScrollY(calcScrollY() || undefined);
|
|
203
|
-
}, [
|
|
209
|
+
}, [hasPagination]);
|
|
204
210
|
useEffect(function () {
|
|
205
211
|
if (scrollYProp !== true) {
|
|
206
212
|
setScrollY(scrollYProp);
|
package/es/Layout/index.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "鲁盛杰 <lusj@cnlemon.net>",
|
|
6
6
|
"homepage": "",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react": "^17.0.2",
|
|
42
42
|
"react-dom": "^17.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "76eb517b4b3fa047aa55e61f1793a0ffa8cfb2c5"
|
|
45
45
|
}
|