Vue: Access v-slot in <script setup> #2176
Unanswered
chrisjansky
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it possible to access
<v-slot="{ open }">
of<Modal>
in<script setup>
of Vue 3/Nuxt 3? UsinguseSlots()
doesn‘t seem to work.I simply want to add some computed properties based on the currect value of
open
. I know I can disable the default behaviour and implement the open/close logic myself, but that seems overkill as I would need to replicate lot of the added niceties like close when clicking outside of<Modal>
.Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions