vue-cli-plugin-permission

    1.1.1 • Public • Published

    vue-cli-plugin-permission

    A Vue CLI Plugin for authority control [vue-cli version > 3, vuex]

    install

    vue add permission

    permission will change the src/plugins and add two files, permission.js and permission.ts. Reference in the mian.js import '@/plugins/permission.js'

    usage

    // localStorage
    // localStorage.permission = ['permission.create']
     
    // ./src/main.js
    import '@/plugins/permission';
    <!-- component -->
    <button type="button" v-permission="'permission.create'">create new data</button>

    Install

    npm i vue-cli-plugin-permission

    DownloadsWeekly Downloads

    187

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    2.52 kB

    Total Files

    6

    Last publish

    Collaborators

    • hjdtl