ui-ddy-pc 0.0.1 → 0.0.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/components/topSign/topSign.vue +2 -2
- package/ui-ddy-pc.zip +0 -0
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -82,13 +82,13 @@ export default {
|
|
|
82
82
|
this.ctx.clearRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height);
|
|
83
83
|
this.signatureImage = '';
|
|
84
84
|
this.paths = []; // 清空路径记录
|
|
85
|
+
this.$emit('saveSignature', '', false)
|
|
85
86
|
},
|
|
86
87
|
|
|
87
88
|
saveSignature() {
|
|
88
89
|
// toDo: uni框架转成的base64无type前缀 需统一
|
|
89
90
|
this.signatureImage = this.$refs.canvasRef.toDataURL();
|
|
90
|
-
this.$emit('saveSignature', this.signatureImage)
|
|
91
|
-
|
|
91
|
+
this.$emit('saveSignature', this.signatureImage, true)
|
|
92
92
|
},
|
|
93
93
|
isUniCanvas() {
|
|
94
94
|
return this.$refs.canvasRef?.getContext ? false : true
|
package/ui-ddy-pc.zip
DELETED
|
Binary file
|