saaf-common
Advanced tools
Comparing version 1.0.40 to 1.0.41
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: zhengxiaowen | ||
* @Last Modified time: 2019-11-27 14:17:59 | ||
* @Last Modified time: 2019-11-28 16:38:05 | ||
*/ | ||
@@ -72,3 +72,14 @@ | ||
component: () => import('../I18nDemo') | ||
} | ||
}, | ||
{ | ||
path: 'TabsToolDemo', | ||
urlName: 'tabs函数工具使用', | ||
component: () => import('../TabsToolDemo') | ||
}, | ||
{ | ||
path: 'iframeToolDemo', | ||
urlName: '全局操作函数,跨iframe可运行', | ||
component: () => import('../iframeToolDemo') | ||
}, | ||
] | ||
@@ -75,0 +86,0 @@ }, |
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: zhengxiaowen | ||
* @Last Modified time: 2019-11-27 11:30:11 | ||
* @Last Modified time: 2019-11-28 16:27:21 | ||
*/ | ||
@@ -15,7 +15,7 @@ | ||
store.commit('INIT_LOOKUP') | ||
store.commit('INIT_TAB') | ||
store.commit('ONRESIZE', document.documentElement) | ||
onresizeTool.addFunction({key:'iframeHeight', fun:()=>{store.commit('ONRESIZE', document.documentElement)}}) | ||
onresizeTool.initOnresize() | ||
// store.commit('INIT_TAB') | ||
} | ||
} |
{ | ||
"name": "saaf-common", | ||
"version": "1.0.40", | ||
"version": "1.0.41", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: zhengxiaowen | ||
* @Last Modified time: 2019-11-27 11:38:37 | ||
* @Last Modified time: 2019-11-28 16:45:16 | ||
*/ | ||
@@ -17,2 +17,5 @@ | ||
static run(key,params){ | ||
if(!this.getList()[key]){ | ||
throw `没有找到函数【${key}】` | ||
} | ||
return this.getList()[key](params) | ||
@@ -19,0 +22,0 @@ } |
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: zhengxiaowen | ||
* @Last Modified time: 2019-11-19 10:49:49 | ||
* @Last Modified time: 2019-11-28 16:32:51 | ||
*/ | ||
@@ -67,3 +67,6 @@ | ||
} | ||
static closeCurrentTab(){ | ||
this.closeTab(store.state.tabs.activeTab) | ||
} | ||
} | ||
tabsTool.rootWindow = window.parent!=window?window.parent:window |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
980953
92
8900