@next-core/brick-kit 2.208.9 → 2.210.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.bundle.js
CHANGED
|
@@ -9463,6 +9463,7 @@
|
|
|
9463
9463
|
layoutBootstrap(layout) {
|
|
9464
9464
|
var _this3 = this;
|
|
9465
9465
|
return _asyncToGenerator__default["default"](function* () {
|
|
9466
|
+
var _this3$bootstrapData, _this3$bootstrapData$, _this3$bootstrapData$2;
|
|
9466
9467
|
var supportedLayouts = ["console", "business"];
|
|
9467
9468
|
if (!supportedLayouts.includes(layout)) {
|
|
9468
9469
|
throw new Error("Unknown layout: ".concat(layout));
|
|
@@ -9483,9 +9484,13 @@
|
|
|
9483
9484
|
document.body.classList.remove("layout-".concat(item));
|
|
9484
9485
|
}
|
|
9485
9486
|
}
|
|
9486
|
-
|
|
9487
|
+
var barBootstraps = [_this3.menuBar.bootstrap(_this3.presetBricks.menuBar, {
|
|
9487
9488
|
testid: "brick-next-menu-bar"
|
|
9488
|
-
}), _this3.appBar.bootstrap(_this3.presetBricks.appBar)
|
|
9489
|
+
}), _this3.appBar.bootstrap(_this3.presetBricks.appBar)];
|
|
9490
|
+
if (!((_this3$bootstrapData = _this3.bootstrapData) !== null && _this3$bootstrapData !== void 0 && (_this3$bootstrapData$ = _this3$bootstrapData.settings) !== null && _this3$bootstrapData$ !== void 0 && (_this3$bootstrapData$2 = _this3$bootstrapData$.misc) !== null && _this3$bootstrapData$2 !== void 0 && _this3$bootstrapData$2.hideLoadingBar)) {
|
|
9491
|
+
barBootstraps.push(_this3.loadingBar.bootstrap(_this3.presetBricks.loadingBar));
|
|
9492
|
+
}
|
|
9493
|
+
yield Promise.all(barBootstraps);
|
|
9489
9494
|
})();
|
|
9490
9495
|
}
|
|
9491
9496
|
legacyAuthGuard() {
|
|
@@ -13667,6 +13672,10 @@
|
|
|
13667
13672
|
useBrick,
|
|
13668
13673
|
data
|
|
13669
13674
|
} = _ref7;
|
|
13675
|
+
// 如果 useBrick 是 render 函数,直接调用返回
|
|
13676
|
+
if (typeof useBrick === "function") {
|
|
13677
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick(data));
|
|
13678
|
+
}
|
|
13670
13679
|
if (Array.isArray(useBrick)) {
|
|
13671
13680
|
return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick.map((item, index) => /*#__PURE__*/React.createElement(SingleBrickAsComponent, {
|
|
13672
13681
|
key: index,
|