@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.
@@ -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
- }, [paginationProp !== false && !!(paginationProp === null || paginationProp === void 0 ? void 0 : paginationProp.total)]);
209
+ }, [hasPagination]);
204
210
  useEffect(function () {
205
211
  if (scrollYProp !== true) {
206
212
  setScrollY(scrollYProp);
@@ -116,6 +116,7 @@
116
116
  height: 65px;
117
117
  padding: @space;
118
118
  background: #fff;
119
+ border-top: 1px solid #dfdfdf;
119
120
  }
120
121
 
121
122
  &-spin {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.28",
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": "330d5bb83412a5e0aa718ef098a8c1644b4777c1"
44
+ "gitHead": "76eb517b4b3fa047aa55e61f1793a0ffa8cfb2c5"
45
45
  }