This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree 2 files changed +9
-7
lines changed
components/overlays/Modal
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { ref } from ' vue'
3
+
4
+ const isOpen = ref (false )
2
5
</script >
3
6
4
7
<template >
5
- <div class =" grid place-items-center w-full min-h-screen" >
6
- <UButtonGroup size =" sm" orientation =" horizontal" >
7
- <UButton icon =" ph:music-notes" label =" Music" />
8
- <UButton icon =" ph:music-notes" label =" Music" color =" red" />
9
- <UButton icon =" ph:music-notes" label =" Music" color =" red" />
10
- </UButtonGroup >
8
+ <div class =" grid place-items-center min-h-screen w-full" >
9
+ <UButton label =" Open" @click =" isOpen = true" />
10
+ <UModal v-model =" isOpen" fullscreen >
11
+ <!-- Content -->
12
+ </UModal >
11
13
</div >
12
14
</template >
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export default defineComponent({
109
109
<template >
110
110
<TransitionRoot :appear =" appear" :show =" isOpen" as =" template" >
111
111
<HDialog :class =" wrapperClass" v-bind =" attrsOmitted" @close =" (e) => !preventClose && close(e)" >
112
- <TransitionChild v-if =" overlay" as =" template" :appear =" appear" v- bind =" overlayTransitions" >
112
+ <TransitionChild v-if =" overlay" as =" template" :appear =" appear" : bind =" overlayTransitions" >
113
113
<div :class =" [variant.overlayBase, variant.overlayBackground]" />
114
114
</TransitionChild >
115
115
You can’t perform that action at this time.
0 commit comments