Socket
Socket
Sign inDemoInstall

saaf-common

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saaf-common - npm Package Compare versions

Comparing version 1.0.45 to 1.0.46

2

package.json
{
"name": "saaf-common",
"version": "1.0.45",
"version": "1.0.46",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,35 +5,35 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-12-03 10:25:26
* @Last Modified time: 2019-12-03 14:07:46
*/
export default class btnGroupTool{
static formatFunctionList(val, currentRow, SaafDelModalV2){
let functionList = {}
for(let key in val){
if((key == 'btnModify') && !val[key].disabled){
functionList[key] = {
fun: val[key],
disabled: ()=>{ return currentRow ? false : true },
...val[key]
}
}else if((key == 'btnDel') && !val[key].disabled){
let fun = null
if(val[key] && val[key].fun){
fun = val[key].fun
}else{
fun = val[key]
}
functionList[key] = {
fun: ()=>{
SaafDelModalV2.open(()=>{fun(); currentRow=null;})
},
disabled: ()=>{ return currentRow ? false : true },
...val[key]
}
}else{
functionList[key] = val[key]
}
}
return functionList
}
// static formatFunctionList(val, currentRow, SaafDelModalV2){
// let functionList = {}
// for(let key in val){
// if((key == 'btnModify') && !val[key].disabled){
// functionList[key] = {
// fun: val[key],
// disabled: ()=>{ return currentRow ? false : true },
// ...val[key]
// }
// }else if((key == 'btnDel') && !val[key].disabled){
// let fun = null
// if(val[key] && val[key].fun){
// fun = val[key].fun
// }else{
// fun = val[key]
// }
// functionList[key] = {
// fun: ()=>{
// SaafDelModalV2.open(()=>{fun(); currentRow=null;})
// },
// disabled: ()=>{ return currentRow ? false : true },
// ...val[key]
// }
// }else{
// functionList[key] = val[key]
// }
// }
// return functionList
// }
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc