Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chameleon-team/chameleon-store
chameleon数据管理
https://github.com/chameleon-team/chameleon-store
chameleon cmle
Last synced: 25 days ago
JSON representation
chameleon数据管理
- Host: GitHub
- URL: https://github.com/chameleon-team/chameleon-store
- Owner: chameleon-team
- Created: 2019-01-10T17:27:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T09:34:37.000Z (over 5 years ago)
- Last Synced: 2024-08-03T22:02:16.072Z (4 months ago)
- Topics: chameleon, cmle
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-cml - 数据管理实现仓库
README
# chameleon-store [![version](https://img.shields.io/npm/v/chameleon-tool.svg?style=flat)](https://www.npmjs.com/package/chameleon-store)
本仓库为 `cml` 框架的数据管理相关代码,提供集中管理数据的能力详细见[cml数据管理](https://cmljs.org/doc/logic/store.html)
## 接口文档
chameleon-store 对外提供跨端的数据管理接口,api查看及扩展等请见文档,[cml.createStore](https://cmljs.org/doc/logic/store.html#chameleonstorecreatestoreoptions-object-object)
例如:
``` javascript
import createStore from 'chameleon-store'const store = createStore({
state: {
count: 0
},
mutations: {
increment (state) {
state.count++
}
}
})
export default store
```