woai3c / mini-vuex

和mini-vue配套使用的状态管理模式

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mini-vuex

和mini-vue配套使用的状态管理模式

支持以下选项

  • state
  • getters
  • mutations
  • actions
  • plugins

不支持模块 具体用法请参考vuex官方文档

使用方法

<script src="mini-vue.js"></script>
<script src="mini-vuex.js"></script>

示例

<div id="app"></div>

const store = new MiniVuex.Store({
  state: {
    count: 1
  }
})

const vm = new MiniVue({
  el: '#app',
  store,
})

About

和mini-vue配套使用的状态管理模式


Languages

Language:JavaScript 100.0%