ebaoferc 0.1.10 → 0.1.11
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.
|
@@ -35,7 +35,6 @@ export default function FlexRowCol(props) {
|
|
|
35
35
|
// 使用 ref 和 useSize 钩子获取容器宽度
|
|
36
36
|
var ref = useRef(null);
|
|
37
37
|
var size = useSize(ref);
|
|
38
|
-
|
|
39
38
|
// 使用 useMemo 计算布局,避免不必要的重复计算
|
|
40
39
|
var _useMemo = useMemo(function () {
|
|
41
40
|
var gapX = (gutter === null || gutter === void 0 ? void 0 : gutter[0]) || 0;
|
|
@@ -83,12 +82,10 @@ export default function FlexRowCol(props) {
|
|
|
83
82
|
lineCountChange === null || lineCountChange === void 0 || lineCountChange(lineCount);
|
|
84
83
|
}
|
|
85
84
|
}, [lineCount, lineCountChange, size === null || size === void 0 ? void 0 : size.width]);
|
|
86
|
-
// console.log(lineCount);
|
|
87
|
-
// 渲染行列布局
|
|
88
85
|
return /*#__PURE__*/_jsx(Row, _objectSpread(_objectSpread({
|
|
89
86
|
gutter: gutter
|
|
90
87
|
}, rest), {}, {
|
|
91
88
|
ref: ref,
|
|
92
|
-
children: size
|
|
89
|
+
children: size ? processedChildren : null
|
|
93
90
|
}));
|
|
94
91
|
}
|