@ccs-ui/rc-pro 2.3.6-beta-8 → 2.3.6-beta-10
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/pro-table/head.js +5 -2
- package/package.json +1 -1
package/es/pro-table/head.js
CHANGED
|
@@ -61,11 +61,14 @@ function HeadComponent(_ref) {
|
|
|
61
61
|
// 判断是否有更多条件无法一行显示
|
|
62
62
|
var onEventMore = function onEventMore() {
|
|
63
63
|
var _endItemRef$current, _formItemsRef$current;
|
|
64
|
-
|
|
64
|
+
if (!endItemRef.current || !formItemsRef.current || isExpand) return;
|
|
65
|
+
var hasMore = ((_endItemRef$current = endItemRef.current) === null || _endItemRef$current === void 0 || (_endItemRef$current = _endItemRef$current.getClientRects()[0]) === null || _endItemRef$current === void 0 ? void 0 : _endItemRef$current.top) !== ((_formItemsRef$current = formItemsRef.current) === null || _formItemsRef$current === void 0 || (_formItemsRef$current = _formItemsRef$current.getClientRects()[0]) === null || _formItemsRef$current === void 0 ? void 0 : _formItemsRef$current.top);
|
|
66
|
+
onToggle(hasMore);
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
// 监听dom尺寸变化
|
|
68
|
-
var resizeFn = function resizeFn() {
|
|
70
|
+
var resizeFn = function resizeFn(e) {
|
|
71
|
+
if (e.width === 0) return;
|
|
69
72
|
onEventMore();
|
|
70
73
|
};
|
|
71
74
|
|