Vue Esign screenshot

Vue Esign

Author Avatar Theme by Jaimecheng
Updated: 8 Dec 2022
585 Stars

canvas手写签字 电子签名 A canvas signature component of vue.

Overview:

The vue-esignCanvas is an updated npm package that supports vue3 for electronic signatures and handwriting. It allows for customized canvas sizes, pen thickness, color, background color, and cropping. The canvas adapts to screen size changes, supports PC and Mobile platforms, and can export images in base64 format.

Features:

  • Updated for Vue3 Support: Now compatible with Vue3, with only a change in the .sync modifier to v-model:bgColor.
  • Customizable Canvas: Adjustable canvas size, pen thickness, color, and background color.
  • Cropping Support: Ability to crop out whitespace around the signature.
  • Adaptive Screen: Canvas automatically adjusts to screen size changes without the need for resetting.

Installation:

To install the vue-esignCanvas package, you can use the following command:

npm install vue-esign@latest --save

Ensure that you set a width for the parent element to determine the canvas width. No need to explicitly set the width of the component unless it exceeds the parent’s width.

Summary:

The vue-esignCanvas package is a versatile tool for electronic signatures and handwriting tasks in Vue3 projects. With support for customizable canvas properties, adaptive screen resizing, and easy installation, it provides a convenient solution for integrating electronic signatures into Vue applications.