1.0.1 • Published 7 years ago

avalonx v1.0.1

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

Avalonx

Centralized State Management for Avalon2.js.

基于Vuex修改适应avalon2

Examples

Running the examples:

$ npm install
$ npm run dev # serve examples at localhost:8080

部分API调整

  • strict

  • watch(getter: String, cb: Function) 响应式地监测一个 getter 表达式,当值改变时调用回调函数 要停止监测,直接调用返回的处理函数。

  • unwatch(getter?: String, cb?: Function) 删除监听

    • 若 getter 为空,则删除所有监听,若 getter 为表达式,则删除该表达式的所有监听
    • 若 cb 不为空,则删除该表达式对应cb的监听

License

MIT