chore(Modal): add appear prop

This commit is contained in:
Benjamin Canac
2022-03-11 15:17:51 +01:00
parent 850c766fab
commit fc2d17cbc3

View File

@@ -1,5 +1,5 @@
<template>
<TransitionRoot :show="isOpen" as="template">
<TransitionRoot :appear="appear" :show="isOpen" as="template">
<Dialog @close="setIsOpen">
<div class="fixed z-20 inset-0 overflow-y-auto">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
@@ -66,6 +66,10 @@ export default {
modelValue: {
type: Boolean,
default: false
},
appear: {
type: Boolean,
default: false
}
},
emits: ['update:modelValue'],