1.0.9 • Published 3 years ago

handwritten-signature-vue3 v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

vue3手写签名组件

用法

npm i handwritten-signature-vue3
// main.js
import { createApp } from 'vue'
import App from './App.vue'
import handwrittenSignature from 'handwritten-signature-vue3'
import 'handwritten-signature-vue3/style.css'

const app = createApp(App)
app.use(handwrittenSignature)

app.mount('#app')
<template>
  <handwritten-signature 
    @save="save"
  >
  </handwritten-signature>
</template>

<script setup>
  // 保存
  const save = (data) => {
    console.log('[ data ] >', data)
  }
</script>

<style scoped>
</style>

参数

参数类型默认值说明
widthNumber600画布宽度(单位px)
heightNumber400画布高度(单位px)
prevBooleantrue是否显示上一步按钮
resetBooleantrue是否显示重做按钮

事件

事件说明
save保存(返回当前canvas的base64)
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

0.0.2

3 years ago

1.0.0

3 years ago