Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zys8119/store-vue

这个是一个vue状态管理器、vue过滤、vue工具、Mockjs的集合
https://github.com/zys8119/store-vue

Last synced: 10 days ago
JSON representation

这个是一个vue状态管理器、vue过滤、vue工具、Mockjs的集合

Awesome Lists containing this project

README

        

# store-vue [![npm](https://img.shields.io/badge/npm-Install-zys8119.svg?colorB=cb3837&style=flat-square)](https://www.npmjs.com/package/store-vue) [![github](https://img.shields.io/badge/github--zys8119.svg?colorB=000000&style=flat-square)](https://github.com/zys8119/store-vue)
这个是一个vue状态管理器、vue过滤、vue工具、MockJs的集合

## 安装

```angular2html
npm i store-vue
```
## 配置

```angular2html
//引入store-vue
import store from "store-vue"
new Vue({
store,
router,
render: h => h(App)
}).$mount('#app')
```

## 教程

>例子
```vue

{{dome | dome}}

export default {
name: "Dome",
data(){
return {
dome:"dome"
}
},
mounted(){
//action
this.action({
moduleName:"moduleName",
//...
})
//airforce
this.airforce
//utils
this.utils
//api
this.api
}
}

```

###### 具体方法及配置请查看[源代码](https://github.com/zys8119/store-vue/blob/master/index.js)