This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
components/overlays/Modal Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import { ref } from ' vue'
3+
4+ const isOpen = ref (false )
25 </script >
36
47<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 >
1113 </div >
1214</template >
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export default defineComponent({
109109<template >
110110 <TransitionRoot :appear =" appear" :show =" isOpen" as =" template" >
111111 <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" >
113113 <div :class =" [variant.overlayBase, variant.overlayBackground]" />
114114 </TransitionChild >
115115
You can’t perform that action at this time.
0 commit comments