sk-smart-ui
Version:
简洁快速的vue ui框架
35 lines • 805 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' : function(obj, options) {
obj.commit('CONFIG', options);
},
'close-t' : function(obj, status) {
obj.commit('CLOSET', status);
}
},
getters: {
tabBar : function(state) {
return state.tabBar
},
'close-t' : function(state) {
return state.closeT
}
}
}