@flatbiz/pro-layout 5.2.5 → 5.2.7
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.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -737,6 +737,8 @@ export type IframeApiProps = {
|
|
|
737
737
|
iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
|
|
738
738
|
/** 判断是否在iframe中 */
|
|
739
739
|
isInIframe: () => boolean;
|
|
740
|
+
/** 判断是否存在于flat iframe内 */
|
|
741
|
+
isInFlatIframe: () => boolean;
|
|
740
742
|
/** 判断iframe链路上一级是否存在 */
|
|
741
743
|
isExistPrevLink: () => boolean;
|
|
742
744
|
/** 更新菜单徽标 */
|
package/dist/index.js
CHANGED
|
@@ -500,6 +500,9 @@ var iframeApi = {
|
|
|
500
500
|
isInIframe: function isInIframe() {
|
|
501
501
|
return window.self !== window.top;
|
|
502
502
|
},
|
|
503
|
+
isInFlatIframe: function isInFlatIframe() {
|
|
504
|
+
return window.self !== window.top && window.parent['__flat_iframe_parent_window'] === true;
|
|
505
|
+
},
|
|
503
506
|
// iframe链路判断上一级是否存在
|
|
504
507
|
isExistPrevLink: function isExistPrevLink() {
|
|
505
508
|
var iframeNodeKey = window['__iframe_node_key'];
|
|
@@ -4551,7 +4554,9 @@ var BootstrapContent = function BootstrapContent(options) {
|
|
|
4551
4554
|
var globalData = getGlobalData();
|
|
4552
4555
|
var routeList = function () {
|
|
4553
4556
|
if (!globalData.moduleName) {
|
|
4554
|
-
console.error(
|
|
4557
|
+
// console.error(
|
|
4558
|
+
// '请在window.GLOBAL中添加属性moduleName(模块名称,例如:moduleName="system/admin")'
|
|
4559
|
+
// );
|
|
4555
4560
|
return options.routeList;
|
|
4556
4561
|
}
|
|
4557
4562
|
var moduleName = removeSlash(globalData.moduleName, 'before-after');
|
|
@@ -4763,6 +4768,9 @@ var Bootstrap = function Bootstrap(options) {
|
|
|
4763
4768
|
}
|
|
4764
4769
|
};
|
|
4765
4770
|
try {
|
|
4771
|
+
if (options.layoutMode === 'iframe-main') {
|
|
4772
|
+
window['__flat_iframe_parent_window'] = true;
|
|
4773
|
+
}
|
|
4766
4774
|
if (options.getGlobalData) {
|
|
4767
4775
|
return Promise.resolve(options.getGlobalData()).then(function ($await_3) {
|
|
4768
4776
|
try {
|