1
This commit is contained in:
24
uni_modules/jp-signature/changelog.md
Normal file
24
uni_modules/jp-signature/changelog.md
Normal file
@@ -0,0 +1,24 @@
|
||||
## 3.2.0(2024-08-27)
|
||||
修复全屏签名图片未正确旋转问题
|
||||
## 3.1.0(2024-06-03)
|
||||
修复签名部分BUG
|
||||
## 3.0.4(2024-05-28)
|
||||
修改部分文档内容
|
||||
## 3.0.0(2024-05-28)
|
||||
新增jp-merge组件,及修复jp-signature-popup组件签字滚动问题
|
||||
## 2.5.2(2023-12-19)
|
||||
弹窗签名新增boundingBox属性,文档新增vue3使用方法
|
||||
## 2.5.1(2023-11-17)
|
||||
修复vue3兼容问题,新增点击图片除非事件
|
||||
## 2.5(2023-11-14)
|
||||
优化代码部分能力
|
||||
## 2.4(2023-11-14)
|
||||
新增弹框签名笔锋配置
|
||||
## 2.3(2023-11-14)
|
||||
修复滚动无法签名问题,弹框签名样式改变
|
||||
## 2.2(2023-11-14)
|
||||
修复app滚动无法签名等问题,修改了弹框签名样式
|
||||
## 2.1(2023-08-15)
|
||||
修改弹窗高度,修改实例项目
|
||||
## 2.0(2023-08-15)
|
||||
修复签名不兼容问题,改变签名方式,使用uni_modules方式
|
||||
103
uni_modules/jp-signature/components/jp-merge/jp-merge.vue
Normal file
103
uni_modules/jp-signature/components/jp-merge/jp-merge.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
199
uni_modules/jp-signature/components/jp-signature/context.js
Normal file
199
uni_modules/jp-signature/components/jp-signature/context.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
64
uni_modules/jp-signature/components/jp-signature/props.js
Normal file
64
uni_modules/jp-signature/components/jp-signature/props.js
Normal file
@@ -0,0 +1,64 @@
|
||||
export default {
|
||||
styles: String,
|
||||
disableScroll: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: '2d'
|
||||
},
|
||||
// 画笔颜色
|
||||
penColor: {
|
||||
type: String,
|
||||
default: 'black'
|
||||
},
|
||||
penSize: {
|
||||
type: Number,
|
||||
default: 2
|
||||
},
|
||||
// 画板背景颜色
|
||||
backgroundColor: String,
|
||||
backgroundImage: String,
|
||||
// 笔锋
|
||||
openSmooth: Boolean,
|
||||
// 画笔最小值
|
||||
minLineWidth: {
|
||||
type: Number,
|
||||
default: 2
|
||||
},
|
||||
// 画笔最大值
|
||||
maxLineWidth: {
|
||||
type: Number,
|
||||
default: 6
|
||||
},
|
||||
// 画笔达到最小宽度所需最小速度(px/ms),取值范围1.0-10.0,值越小,画笔越容易变细,笔锋效果会比较明显,可以自行调整查看效果,选出自己满意的值。
|
||||
minSpeed: {
|
||||
type: Number,
|
||||
default: 1.5
|
||||
},
|
||||
// 相邻两线宽度增(减)量最大百分比,取值范围1-100,为了达到笔锋效果,画笔宽度会随画笔速度而改变,如果相邻两线宽度差太大,过渡效果就会很突兀,使用maxWidthDiffRate限制宽度差,让过渡效果更自然。可以自行调整查看效果,选出自己满意的值。
|
||||
maxWidthDiffRate: {
|
||||
type: Number,
|
||||
default: 20
|
||||
},
|
||||
// 限制历史记录数,即最大可撤销数,传入0则关闭历史记录功能
|
||||
maxHistoryLength: {
|
||||
type: Number,
|
||||
default: 20
|
||||
},
|
||||
beforeDelay: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
landscape: {
|
||||
type: Boolean
|
||||
},
|
||||
boundingBox: {
|
||||
type: Boolean
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean
|
||||
},
|
||||
preferToDataURL: Boolean
|
||||
}
|
||||
228
uni_modules/jp-signature/components/jp-signature/render.js
Normal file
228
uni_modules/jp-signature/components/jp-signature/render.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
165
uni_modules/jp-signature/components/jp-signature/signature.uts
Normal file
165
uni_modules/jp-signature/components/jp-signature/signature.uts
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user