@lemon-fe/components 0.1.54 → 0.1.58
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 +3 -1
- package/es/Filter/index.js +2 -2
- package/es/FormLayout/index.less +12 -4
- package/package.json +3 -3
package/es/BaseTable/index.js
CHANGED
|
@@ -206,7 +206,9 @@ function BaseTable(props) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
useEffect(function () {
|
|
209
|
-
|
|
209
|
+
if (scrollYProp === true) {
|
|
210
|
+
setScrollY(calcScrollY() || 0);
|
|
211
|
+
}
|
|
210
212
|
}, [hasPagination]);
|
|
211
213
|
useEffect(function () {
|
|
212
214
|
if (scrollYProp !== true) {
|
package/es/Filter/index.js
CHANGED
|
@@ -412,13 +412,13 @@ function Filter(props) {
|
|
|
412
412
|
rows.push([]);
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
var visible = rows.length >
|
|
415
|
+
var visible = rows.length > 1;
|
|
416
416
|
|
|
417
417
|
if (!collapsed || !visible) {
|
|
418
418
|
return [result, visible];
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
return [
|
|
421
|
+
return [rows[0], visible];
|
|
422
422
|
}, [data, width, collapsed, simple, activeKeys]),
|
|
423
423
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
424
424
|
cols = _useMemo2[0],
|
package/es/FormLayout/index.less
CHANGED
|
@@ -16,17 +16,19 @@
|
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.col(@colSpan:
|
|
19
|
+
.col(@colSpan: 6) {
|
|
20
20
|
flex-shrink: 0;
|
|
21
21
|
flex-wrap: nowrap;
|
|
22
22
|
width: percentage((@colSpan / 24));
|
|
23
|
-
min-width:
|
|
24
|
-
max-width: if((@colSpan >= 12), 2 * @maxWidth, @maxWidth);
|
|
23
|
+
min-width: (@colSpan / 6) * @minWidth;
|
|
25
24
|
padding: 0 (@spaceX / 2);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.@{prefixCls}-form {
|
|
29
28
|
&-layout {
|
|
29
|
+
min-width: @minWidth - @spaceX;
|
|
30
|
+
max-width: 4 * @maxWidth - @spaceX;
|
|
31
|
+
|
|
30
32
|
.ant-form-item {
|
|
31
33
|
flex-wrap: nowrap;
|
|
32
34
|
margin-bottom: @spaceY;
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
.wrapper();
|
|
64
66
|
|
|
65
67
|
& > .ant-form-item {
|
|
66
|
-
.col();
|
|
68
|
+
.col(8);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -93,3 +95,9 @@
|
|
|
93
95
|
max-width: 100%;
|
|
94
96
|
}
|
|
95
97
|
}
|
|
98
|
+
|
|
99
|
+
@media (max-width: 575px) {
|
|
100
|
+
.@{prefixCls}-form-layout .ant-form-item {
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
}
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "鲁盛杰 <lusj@cnlemon.net>",
|
|
6
6
|
"homepage": "",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"registry": "https://registry.npmjs.org"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@lemon-fe/hooks": "^0.1.
|
|
19
|
+
"@lemon-fe/hooks": "^0.1.56",
|
|
20
20
|
"classnames": "^2.2.6",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"react-resizable": "^3.0.4"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react": "^17.0.2",
|
|
42
42
|
"react-dom": "^17.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f281b57c97a168184f91d3d814872a341eca5148"
|
|
45
45
|
}
|