Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ektx/v-macos

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ektx/v-macos - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

index.js
import VMacOSFrame from './parts/frame'
import VMacOSDesktop from './parts/desktop'
import { MutaionMacOSTopbar } from './parts/desktop/store'
import MutaionMacOSTopbar from './parts/desktop/store'

@@ -5,0 +5,0 @@ export {

{
"name": "@ektx/v-macos",
"version": "0.0.4",
"version": "0.0.5",
"description": "系统主框架",

@@ -16,3 +16,3 @@ "main": "index.js",

"@ektx/v-menubar": "0.0.2",
"@ektx/v-contextmenu": "^0.2.6"
"@ektx/v-contextmenu": "^0.2.7"
},

@@ -19,0 +19,0 @@ "author": "ektx",

@@ -19,4 +19,4 @@ // 右键菜单组件

computed: mapState({
mainNav: state => state.MacOSTopbar.mainNav,
asideNav: state => state.MacOSTopbar.asideNav
mainNav: state => state.MutaionMacOSTopbar.mainNav,
asideNav: state => state.MutaionMacOSTopbar.asideNav
}),

@@ -50,4 +50,4 @@ created () {

// 在 vuex 上设置默认值
this.$set(this.$store.state, 'MacOSTopbar', options)
this.$set(this.$store.state, 'MutaionMacOSTopbar', options)
}
}

@@ -1,16 +0,25 @@

export function MutaionMacOSTopbar (state, data) {
let arr = []
// 恢复选中效果
data.data.map(val => {
if (val.classes && val.classes.length) {
val.classes = {}
export default {
state: {
mainNav: {},
asideNav: {},
root: []
},
mutations: {
MutaionMacOSTopbar (state, data) {
let arr = []
// 恢复选中效果
data.data.map(val => {
if (val.classes && val.classes.length) {
val.classes = {}
}
return val
})
if (data.type && data.type === 'main') {
arr = state.root
}
state[`${data.type}Nav`] = [...arr, ...data.data]
}
return val
})
if (data.type && data.type === 'main') {
arr = state.MacOSTopbar.root
}
state.MacOSTopbar[`${data.type}Nav`] = [...arr, ...data.data]
}

@@ -50,3 +50,3 @@ # v-macos

export default new Vuex.Store({
mutations: {
modules: {
MutaionMacOSTopbar

@@ -53,0 +53,0 @@ }

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