playground: migrate to nuxt compatibility 4

This commit is contained in:
Benjamin Canac
2024-06-12 10:36:47 +02:00
parent ee3d2aa30f
commit ceee9b2e11
50 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<script lang="ts" setup>
const modal = useModal()
defineProps<{
count: number
}>()
</script>
<template>
<UModal title="This modal was opened programmatically">
<template #footer>
<div class="flex w-full justify-between">
<p>Count: {{ count }}</p>
<UButton color="gray" label="Close" @click="modal.close()" />
</div>
</template>
</UModal>
</template>