Signature 签名
介绍
引入
import { WuSignature } from '@itrain/wu-ui'代码演示
基础用法
WuSignature({
onSubmit: image => {
this.image = image
},
onClear: () => {
promptAction.showToast({
message: '清空了...',
})
}
})
Text('预览签名效果:')
.width('100%')
Image(this.image)
.width('100%')
.height(200)
.objectFit(ImageFit.Fill)自定义笔触颜色
自定义线宽
自定义背景颜色
API
@Props
名称
说明
类型
是否必需
默认值
Events
名称
说明
回调函数
Last updated