vue power check component
- make sure node and npm installed;
> npm install vue-power-show
import vue from 'vue';
import vue_power from 'vue-power-show';
// install
vue.use(vue_power);
// set report handler
vue_power.setPowerHandler((param) => {
// check power
return true;
})
<template>
<div>
<div v-power="power1">
</div>
</div>
</template>
- make sure node and npm installed;
- clone the repo to local;
- run
npm install
to install node modules; - run
npm run build
to get an unminified build file atlib
folder;