randomcode-bytan
v1.0.1
Published
安装,然后引入我的插件
Downloads
6
Readme
第一步
安装,然后引入我的插件
npm i randomcode-bytan
import { createApp } from 'vue'
import App from './App.vue'
import code from 'randomcode-bytan'
createApp(App).use(code).mount('#app')
第二步
新建一个canvas,然后通过自定义指令传进去后端返回的验证码
<canvas v-randomcode="{ code }"></canvas>