mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 21:57:58 +01:00
playground(modal/slideover): update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { LazyModalProgrammaticExample } from '#components'
|
||||
import { LazyModalExample } from '#components'
|
||||
|
||||
const open = ref(false)
|
||||
const count = ref(0)
|
||||
@@ -9,8 +9,8 @@ const modal = useModal()
|
||||
function openModal() {
|
||||
count.value++
|
||||
|
||||
modal.open(LazyModalProgrammaticExample, {
|
||||
description: 'And you can even provide a description !',
|
||||
modal.open(LazyModalExample, {
|
||||
description: 'And you can even provide a description!',
|
||||
count: count.value
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { LazySlideoverProgrammaticExample } from '#components'
|
||||
import { LazySlideoverExample } from '#components'
|
||||
|
||||
const open = ref(false)
|
||||
const count = ref(0)
|
||||
@@ -9,8 +9,8 @@ const slideover = useSlideover()
|
||||
function openSlideover() {
|
||||
count.value++
|
||||
|
||||
slideover.open(LazySlideoverProgrammaticExample, {
|
||||
description: 'And you can even provide a description!',
|
||||
slideover.open(LazySlideoverExample, {
|
||||
title: 'Slideover',
|
||||
count: count.value
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user