@steedos/standard-ui 2.5.0-beta.27 → 2.5.0-beta.29
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.
|
@@ -78,10 +78,13 @@ var buttonTriggerHistoryPathsChange;
|
|
|
78
78
|
};
|
|
79
79
|
})();
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
let historyPathsStoreKey = "history_paths";
|
|
82
82
|
|
|
83
83
|
// 使用debounce防抖动函数,连续多次自动触发enter事件时,只需要捕获最后一次
|
|
84
84
|
FlowRouter.triggers.enter(debounce(function (context, redirect, stop) {
|
|
85
|
+
if(!!window.opener){
|
|
86
|
+
historyPathsStoreKey = "history_paths_opener_level" + getOpenerLevel(window,0);
|
|
87
|
+
}
|
|
85
88
|
const path = context.path;
|
|
86
89
|
const params = context.params || {};
|
|
87
90
|
// const pathDef = context.route.pathDef;
|
|
@@ -184,4 +187,12 @@ function debounce(fn, delay) {
|
|
|
184
187
|
fn.apply(this, args);
|
|
185
188
|
}, delay)
|
|
186
189
|
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function getOpenerLevel(opener,level){
|
|
193
|
+
if (!!opener['opener']) {
|
|
194
|
+
return getOpenerLevel(opener['opener'], level + 1);
|
|
195
|
+
}else{
|
|
196
|
+
return level;
|
|
197
|
+
}
|
|
187
198
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.0-beta.
|
|
3
|
+
"version": "2.5.0-beta.29",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "c434d29647fa4613b78b0993bed2a0c2b8b35f41"
|
|
16
16
|
}
|