This commit is contained in:
Adrian Hopek
2022-04-13 14:48:56 +02:00
parent c0866dc374
commit 636e83b71f
4 changed files with 32 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
<template>
<InertiaLink
as="button"
:onStart="() => processing = true"
:onFinish="() => processing = false"
:onBefore="() => ! processing"
>
<slot />
</InertiaLink>
</template>
<script setup>
import { ref, watch } from 'vue'
let processing = ref(false)
watch(processing, (value) => console.log(value))
</script>