mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
adjust signing form
This commit is contained in:
1 parent
960d36f628
commit
a588c2f4a4
3 files changed
+16
No files matched your search
@@ -1767,6 +1767,8 @@ export default {
|
|||||||
this.isCompleted = true
|
this.isCompleted = true
|
||||||
this.isFormVisible = true
|
this.isFormVisible = true
|
||||||
|
|
||||||
|
window.webkit?.messageHandlers?.native?.postMessage({ type: 'stale' })
|
||||||
|
|
||||||
if (resp?.text) {
|
if (resp?.text) {
|
||||||
const respData = await resp.text()
|
const respData = await resp.text()
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,9 @@
|
|||||||
role="img"
|
role="img"
|
||||||
:aria-label="t('initials_drawing_area')"
|
:aria-label="t('initials_drawing_area')"
|
||||||
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
||||||
|
@touchstart.passive="lockSwipe"
|
||||||
|
@touchend.passive="unlockSwipe"
|
||||||
|
@touchcancel.passive="unlockSwipe"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
@@ -311,6 +314,8 @@ export default {
|
|||||||
this.intersectionObserver?.disconnect()
|
this.intersectionObserver?.disconnect()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
lockSwipe: SignatureStep.methods.lockSwipe,
|
||||||
|
unlockSwipe: SignatureStep.methods.unlockSwipe,
|
||||||
drawOnCanvas: SignatureStep.methods.drawOnCanvas,
|
drawOnCanvas: SignatureStep.methods.drawOnCanvas,
|
||||||
drawImage (event) {
|
drawImage (event) {
|
||||||
this.remove()
|
this.remove()
|
||||||
|
|||||||
@@ -205,6 +205,9 @@
|
|||||||
:aria-label="t('signature_drawing_area')"
|
:aria-label="t('signature_drawing_area')"
|
||||||
style="padding: 1px; 0"
|
style="padding: 1px; 0"
|
||||||
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
||||||
|
@touchstart.passive="lockSwipe"
|
||||||
|
@touchend.passive="unlockSwipe"
|
||||||
|
@touchcancel.passive="unlockSwipe"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="isShowQr"
|
v-if="isShowQr"
|
||||||
@@ -576,6 +579,12 @@ export default {
|
|||||||
this.stopCheckSignature()
|
this.stopCheckSignature()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
lockSwipe () {
|
||||||
|
window.webkit?.messageHandlers?.native?.postMessage({ type: 'swipe', op: 'lock' })
|
||||||
|
},
|
||||||
|
unlockSwipe () {
|
||||||
|
window.webkit?.messageHandlers?.native?.postMessage({ type: 'swipe', op: 'unlock' })
|
||||||
|
},
|
||||||
setCanvasSize () {
|
setCanvasSize () {
|
||||||
const canvas = this.$refs.canvas
|
const canvas = this.$refs.canvas
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user