# perfect-signature
**Repository Path**: silenceice/perfect-signature
## Basic Information
- **Project Name**: perfect-signature
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-05-30
- **Last Updated**: 2024-11-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-perfect-signature
Practical Vue handwritten signature component.
实用的vue手写签名组件。
🔗 Curious? Try out a [demo](https://perfect-signature-play.vercel.app/#/).
## Installation
```bash
npm install vue-perfect-signature
```
## Introduction
* Only supports mobile devices
// 仅支持移动设备
* Even when the screen is locked, it is also forced to display horizontally.
// 锁屏情况下,也强制横屏显示
* Prevent the vue-perfect-signature toolbar from safari and chrome. When the title bar slides, it will pull down to refresh the page.
// 阻止在safari,chrome里在vue-perfect-signature工具栏,标题栏滑动会下拉刷新页面

## Usage
install component
```js
import VuePerfectSignature from "vue-perfect-signature";
import "vue-perfect-signature/lib/style.css";
const app = createApp(App);
app.use(VuePerfectSignature.install);
```
use vue-perfect-signature component
```vue
```
## Example
[demo](https://perfect-signature-play.vercel.app/#/).
## Documentation
#### Attributes
| Property | Type | Default | Description |
| ------------------ | -------- | ------- | ----------------------------------------------------- |
| `drawOptions` | Object | |Depends on perfect-freehand, so refer to its [options](https://github.com/steveruizok/perfect-freehand#options)|
#### Events
| Property | Type | Default | Description |
| ------------------ | -------- | ------- | ----------------------------------------------------- |
| `@save` | ({ base64 })=>void | | |
| `@close` | ()=>void | | |
#### Slots
| Name | Type | Default | Description |
| ------------------ | -------- | ------- | ----------------------------------------------------- |
| `topBar` | ({ base64 })=>void | | |
### Discussion
[issues](https://github.com/boy-lin/perfect-signature/issues)
### License
- MIT
## Author
- [@haolins](https://twitter.com/evilHolly1)