store-vue
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

store-vue npm github

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

安装

npm i store-vue

配置

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

教程

例子

<template>
    <div>{{dome | dome}}</div>
</template>
<script>
    export default {
        name: "Dome",
        data(){
            return {
                dome:"dome"
            }
        },
        mounted(){
            //action
            this.action({
                moduleName:"moduleName",
                //...
            })
            //airforce
            this.airforce
            //utils
            this.utils
            //api
            this.api
        }
    }
</script>
 
<style scoped>
 
</style>
具体方法及配置请查看源代码

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i store-vue

    Weekly Downloads

    41

    Version

    1.5.0

    License

    ISC

    Unpacked Size

    68.1 kB

    Total Files

    42

    Last publish

    Collaborators

    • zys