0.0.3 • Published 5 years ago

vuex-analysis v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vuex analysis

Vuex analysis and implementation

仅供个人学习与研究,如果要在生产环境使用,请使用官方版本:https://vuex.vuejs.org

About Vuex

one-way data flow

working principle

npm.io

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

  • 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

LICENSE

MIT License