0.0.3 • Published 7 years ago
vuex-analysis v0.0.3
vuex analysis
Vuex analysis and implementation
仅供个人学习与研究,如果要在生产环境使用,请使用官方版本:https://vuex.vuejs.org
About Vuex
one-way data flow
working principle

Usage
Your can try it install vuex-analysis instead of vuex.
npm i vuex-analysis --saveThen use it in your store file like this:
import Vue from 'vue';
// import Vuex from 'vuex';
// You can use vuex-analysis instead of vuex for test
// vuex-analysis provide the same api like vuex
import Vuex from 'vuex-analysis';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
},
mutations: {
},
actions: {
},
});Todos
- create Store, include
state,getters,actions,mutations - dispatch actions and commit mutations, the whole data lifecycle
- support create moduler data store
- mapState, mapMutations, mapGetters, mapActions
- createNamespaceHelpers