mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
docs(slideover): update
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { LazyExampleModalComponent } from '#components'
|
||||
import { LazyModalExample } from '#components'
|
||||
|
||||
const count = ref(0)
|
||||
|
||||
const modal = useModal()
|
||||
|
||||
function openModal() {
|
||||
function open() {
|
||||
count.value++
|
||||
|
||||
modal.open(LazyExampleModalComponent, {
|
||||
description: 'And you can even provide a description !',
|
||||
modal.open(LazyModalExample, {
|
||||
description: 'And you can even provide a description!',
|
||||
count: count.value
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UButton label="Open" color="gray" variant="subtle" @click="openModal" />
|
||||
<UButton label="Open" color="gray" variant="subtle" @click="open" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user