vue-final / vue-final-modal

🍕Vue Final Modal is a tiny, renderless, mobile-friendly, feature-rich modal component for Vue.js.
https://vue-final-modal.org
MIT License
864 stars 95 forks source link

How to passing props to global modal ? #353

Closed evdevru closed 9 months ago

evdevru commented 1 year ago

Version

vue-final-modal: 4.0.11 vue: 3.2

How to passing props to global modal ? In v3 you have event onBeforeOpen with props. How to passing in v4 ? Like open('NAME', props)

hunterliu1003 commented 1 year ago

You can use useModal to pass props, events, slots You checkout this part of documentation: https://vue-final-modal.org/api/composables/use-modal#passing-props-and-events

evdevru commented 1 year ago

You can use useModal to pass props, events, slots You checkout this part of documentation: https://vue-final-modal.org/api/composables/use-modal#passing-props-and-events

That method require to use any event emitter if you using global modals as authorization ? To access globally defined modals

hunterliu1003 commented 1 year ago

I don't understand your question