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.37 to 1.0.38

2

package.json
{
"name": "saaf-common",
"version": "1.0.37",
"version": "1.0.38",
"description": "",

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

@@ -5,3 +5,3 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-11-15 09:25:44
* @Last Modified time: 2019-11-27 18:21:39
*/

@@ -12,7 +12,17 @@

import {storeTool} from '../index'
import { Spin, Message } from 'view-design'
import systemHook from '@/config/systemHook'
export default class tabsService{
static openTab(item){
let num = systemHook && systemHook.tabsLength ? systemHook.tabsLength : 10
if(!store.state.tabs.tabList[item[store.state.tabs.tabKey]]){
if(Object.keys(store.state.tabs.tabList).length >= num){
Message.error(`页签不能超过${num}个`)
return
}
}
store.commit("ADD_TAB",item)
store.commit("ACTIVE_TAB",item)
$('#tabs-tag-box').find('.gm-scroll-view').scrollLeft($('#tabs-tag-'+item.menuId).position().left)
this.goto(item)

@@ -19,0 +29,0 @@ }

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