vuex-analysis
v0.0.3
Published
Vuex analysis and implementation
Downloads
5
Readme
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 --save
Then 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
- [x] create Store, include
state
,getters
,actions
,mutations
- [x] dispatch actions and commit mutations, the whole data lifecycle
- [x] support create moduler data store
- [ ] mapState, mapMutations, mapGetters, mapActions
- [ ] createNamespaceHelpers