@next-core/brick-kit 2.208.9 → 2.209.0
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/dist/index.esm.js
CHANGED
|
@@ -13669,6 +13669,10 @@ function BrickAsComponentFactory(React) {
|
|
|
13669
13669
|
useBrick,
|
|
13670
13670
|
data
|
|
13671
13671
|
} = _ref7;
|
|
13672
|
+
// 如果 useBrick 是 render 函数,直接调用返回
|
|
13673
|
+
if (typeof useBrick === "function") {
|
|
13674
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick(data));
|
|
13675
|
+
}
|
|
13672
13676
|
if (Array.isArray(useBrick)) {
|
|
13673
13677
|
return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick.map((item, index) => /*#__PURE__*/React.createElement(SingleBrickAsComponent, {
|
|
13674
13678
|
key: index,
|