1.0.12 • Published 6 years ago

vue-permission v1.0.12

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

vue-permission

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i vue-permission --save

Usage

import VuePermission 'vue-permission';

Vue.use(VuePermission);

Vue.permission.authorize({'create': true, 'del': false});

Vue.permission.hasPermission('del'); // console.log(false);

Vue.permission.god = true; // all permissions return true

Vue.permission.reset(); // clear the permissions and god flag.

// if u don't has permission the button will not show. and style display none.
<button v-permission='create'></button>

Example

Questions & Suggestions

Please open an issue here.

License

MIT

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago