2025-01-08 05:26:12 +00:00
|
|
|
<template>
|
2025-01-21 08:27:26 +00:00
|
|
|
<div class="h-[100vh] w-[100vw]">
|
|
|
|
<SignaturePad v-model="signature" @change="handleSignatureChange"/>
|
2025-01-08 05:26:12 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2025-01-21 08:27:26 +00:00
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue'
|
2025-01-23 11:43:45 +00:00
|
|
|
import SignaturePad from '@/components/SignaturePad.vue'
|
2025-01-21 08:27:26 +00:00
|
|
|
|
|
|
|
const signature = ref('')
|
|
|
|
|
|
|
|
const handleSignatureChange = (imageData) => {
|
|
|
|
// imageData 是 base64 格式的图片数据
|
|
|
|
console.log('签名已更新:', imageData)
|
|
|
|
}
|
|
|
|
</script>
|