sk-smarty-ui
Version:
简洁快速的vue ui框架
35 lines • 779 B
JavaScript
export default {
namespaced: true,
state: {
tabBar : {
list : []
},
closeT : false
},
mutations: {
CONFIG (state, options) {
if(options.tabBar) {
state.tabBar = options.tabBar;
}
},
CLOSET (state, status) {
state.closeT = status;
}
},
actions: {
'config' : (commit, options) => {
commit('CONFIG', options);
},
'close-t' : (commit, status) => {
commit('CLOSET', status);
}
},
getters: {
tabBar : state => {
return state.tabBar
},
'close-t' : state => {
return state.closeT
}
}
}