介绍
双击触发回调
示例
代码
<script setup lang="ts">
const handler = () => {
window.alert('double click')
}
</script>
<template>
<button v-doubleclick:500="handler">double click</button>
</template>
<script setup lang="ts">
const handler = () => {
window.alert('double click')
}
</script>
<template>
<button v-doubleclick:500="handler">double click</button>
</template>