UNPKG

sk-smart-ui

Version:

简洁快速的vue ui框架

40 lines (39 loc) 913 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { namespaced: true, state: { tabBar: { list: [] }, closeT: false }, mutations: { CONFIG: function CONFIG(state, options) { if (options.tabBar) { state.tabBar = options.tabBar; } }, CLOSET: function CLOSET(state, status) { state.closeT = status; } }, actions: { 'config': function config(obj, options) { obj.commit('CONFIG', options); }, 'close-t': function closeT(obj, status) { obj.commit('CLOSET', status); } }, getters: { tabBar: function tabBar(state) { return state.tabBar; }, 'close-t': function closeT(state) { return state.closeT; } } };