Skip to content

juddy-star/wxapp-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxapp-store 微信小程序的 单一状态树

features

  • 类 vuex 的 store 结构
  • 支持 state, getter, commit, dispatch 四种功能
  • 配置文件支持 namespace,modules 功能
  • 支持 state, getter, mutation, action 中通过 this.root 拿到根节点
  • 支持 state, getter, mutation, action 中的参数,都为当前节点的信息
  • modules 中若不设置 namespace 属性,原则上会覆盖父层的同名数据

构建

npm start 构建lib

demo

path

src/demo/index

命令

npm run demo

目录

lib
└── core
    ├── action
       └── index.js
    ├── getter
       └── index.js
    ├── index.js
    ├── mutation
       └── index.js
    ├── state
       └── index.js
    └── utils
        └── index.js

About

微信小程序单一状态树(类vuex的store)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published