@lemon-fe/components 0.1.27 → 0.1.33
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/es/MainFramework/components/Menu/index.js +2 -0
- package/es/init.d.ts +1 -1
- package/es/init.js +7 -1
- 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
|
@@ -343,6 +343,8 @@ export default function Menu(props) {
|
|
|
343
343
|
|
|
344
344
|
if (clientWidth.current > WIDTH && width <= WIDTH) {
|
|
345
345
|
setCollapsed(true);
|
|
346
|
+
} else if (clientWidth.current <= WIDTH && width > WIDTH) {
|
|
347
|
+
setCollapsed(false);
|
|
346
348
|
}
|
|
347
349
|
|
|
348
350
|
clientWidth.current = width;
|
package/es/init.d.ts
CHANGED
package/es/init.js
CHANGED
|
@@ -24,7 +24,13 @@ export default function init() {
|
|
|
24
24
|
_node.innerHTML = "\n var _czc = _czc || [];\n window._czc&&window._czc.push(['_setAutoPageview', false]);\n ";
|
|
25
25
|
document.body.appendChild(_node);
|
|
26
26
|
_node = document.createElement('script');
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
if (typeof opts.enableCNZZ === 'string') {
|
|
29
|
+
_node.src = opts.enableCNZZ;
|
|
30
|
+
} else {
|
|
31
|
+
_node.src = '//v1.cnzz.com/z_stat.php?id=1280732258&web_id=1280732258';
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
document.body.appendChild(_node);
|
|
29
35
|
}
|
|
30
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
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": "f2fb06c1754f97d24276e0df5e3116665ac57380"
|
|
45
45
|
}
|