@ektx/v-macos
Advanced tools
Comparing version 0.0.4 to 0.0.5
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 @@ } |
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
6202
88
Updated@ektx/v-contextmenu@^0.2.7