0.2.2 • Published 10 months ago

xs-signature v0.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Xs-Signature 是一个 Vue 在实现移动端实现手写签名的"最佳实践",媲美原生 App 丝滑流畅的使用体验。使用了最新的 Vue 技术栈,基于 Vue3Vite5Pinia实现。Tips:目前仅支持Vue3技术栈,如果有需求在考虑拓展功能!

使用

$ npm install xs-signature
$ yarn add xs-signature
$ pnpm install xs-signature

引入

$ import XsSignature from "xs-signature"

方法

NameArgument TypeDescription
overlayTextString自定义页面主体提示语
horizontalScreenTextString自定义翻转提示语
titleString自定义头部标题
showHeaderBoolean是否展示头部
showFooterBoolean是否展示底部
customBoolean是否开启自定义模式(依旧保留头部、底部,不同于为可以自定义其中内容) 默认 'false'
colorListArray字体可选颜色集合 默认 '黑色' '红色' '蓝色' ([{id:Number:xxx,text:String:xxx,value:String:xxx}])
boldListArray字体可选粗细集合 默认 '3' '6' '9' ([{id:Number:xxx,text:String:xxx,value:String:xxx}])
close()Function回退一步的操作
reset()Function清空页面所绘制签名操作
submit(isEmpty,data,orientation)Function提交获取签名Base64 'empty':签名是否为空值、'data':签名后旋转裁切得到的Base64、'orientation':屏幕翻转方向

运行

注意:本项目仅适用于彦祖学习和研究,其他人不得用于商业使用

学习

Vue Signature Pad - Best Practices for Smooth Signature Drawing in Vue Based on HTML5 Canvas

功能与建议

目前项目处于开发初期,新功能正在持续添加中,如果你对该组件有任何功能与建议,欢迎联系作者。 如果你也喜欢本插件的设计思想,非常感谢您对于我的支持,给项目点个星星吧!

许可协议

MIT © smallSun

0.2.2

10 months ago

0.2.1

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago