@cnhis-frontend/signature
Advanced tools
Comparing version 1.0.2-beta.1 to 1.0.2-beta.2
{ | ||
"name": "@cnhis-frontend/signature", | ||
"version": "1.0.2-beta.1", | ||
"version": "1.0.2-beta.2", | ||
"description": "手写板签名对接 sdk", | ||
@@ -5,0 +5,0 @@ "main": "dist/signature.es.min.js", |
@@ -24,3 +24,3 @@ # signature-sdk | ||
strokeWidth?: number; 签名线条粗细值,默认值 3 | ||
padPath?: string; 预览目标pdf文件路径 | ||
pdfPath?: string; 预览目标pdf文件路径 | ||
xmlPath?: string; xml文件生成路径, | ||
@@ -50,4 +50,16 @@ location?: string; 签名或者指纹的位置,一个签名或指纹标准格式为Type.Page.X.Y,默认值 '2.1.100.100' | ||
// 河北腾翔3.0(signImage包含了手写签名和指纹) | ||
const signatureSdk = SignatureSDK.create({ name: 'tengxiang', version: 3 }) | ||
const { signImage } = await signatureSdk.start(option) | ||
/* option类型为 { | ||
id?: string | number; 业务系统自定义字段,可以定义多个,证信签不对其进行处理,签字完成时一并返回 | ||
reason?: string; 签字确认文字 | ||
title?: string; 标题 | ||
content?: string; type为html时为网页源码(源码的双引号用单引号替换,其它不变),type为text的时候为string字符串(可传入有效url) | ||
source: string; 待签原文,PC传递给证信签,用于签名 | ||
type?: 'text' | 'html' | 'htmlB64'; 默认值为text | ||
} */ | ||
// 销毁实例,执行后可使用SignatureSDK.create()创建一个新实例 | ||
SignatureSDK.destroy() | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194141
730
64