@next-core/brick-kit 2.179.3 → 2.179.4
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 +11 -15
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +11 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/setUIVersion.d.ts +2 -0
- package/dist/types/core/setUIVersion.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/types/core/setUIClassName.d.ts +0 -2
- package/dist/types/core/setUIClassName.d.ts.map +0 -1
package/dist/index.bundle.js
CHANGED
|
@@ -11530,21 +11530,17 @@
|
|
|
11530
11530
|
end: triggerHttpCache("http:cache.end")
|
|
11531
11531
|
};
|
|
11532
11532
|
|
|
11533
|
-
function
|
|
11534
|
-
|
|
11535
|
-
var
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
document.body.classList.remove(lastVersion);
|
|
11533
|
+
function setUIVersion(version) {
|
|
11534
|
+
// 仅允许特定的 UI 版本
|
|
11535
|
+
var ui;
|
|
11536
|
+
switch (version) {
|
|
11537
|
+
case "8.2":
|
|
11538
|
+
ui = "v8-2";
|
|
11539
|
+
break;
|
|
11540
|
+
default:
|
|
11541
|
+
ui = "v8";
|
|
11543
11542
|
}
|
|
11544
|
-
|
|
11545
|
-
return "ui-v".concat(version.split(".").join("-"));
|
|
11546
|
-
};
|
|
11547
|
-
document.body.classList.add(getUIClassName(version));
|
|
11543
|
+
document.documentElement.dataset.ui = ui;
|
|
11548
11544
|
}
|
|
11549
11545
|
|
|
11550
11546
|
class Router {
|
|
@@ -11985,7 +11981,7 @@
|
|
|
11985
11981
|
var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
|
|
11986
11982
|
yield pendingTask;
|
|
11987
11983
|
window.DISABLE_REACT_FLUSH_SYNC = false;
|
|
11988
|
-
|
|
11984
|
+
setUIVersion(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
|
|
11989
11985
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
11990
11986
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
11991
11987
|
afterMountTree(mountPoints.main);
|