@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
- const historyPathsStoreKey = "history_paths";
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
  }
@@ -63,6 +63,8 @@ fields:
63
63
  hidden: true
64
64
  tab_groups.$.group_name:
65
65
  type: text
66
+ tab_groups.$.default_open:
67
+ type: boolean
66
68
  tab_items:
67
69
  label: Tabs
68
70
  type: object
@@ -29,7 +29,6 @@ fields:
29
29
  icon: svg
30
30
  });
31
31
  });
32
-
33
32
  return options;
34
33
  }
35
34
  parent:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.5.0-beta.27",
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": "83d6069db6c4aca23744543683c1f398ca944d2e"
15
+ "gitHead": "c434d29647fa4613b78b0993bed2a0c2b8b35f41"
16
16
  }