liveh5-nuxt/app/pages/keepalive/index.vue

17 lines
419 B
Vue
Raw Normal View History

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'
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>