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
862 stars 95 forks source link

Get Exposed props from the component using useModal #420

Closed mdominiak2 closed 5 months ago

mdominiak2 commented 5 months ago

Is there any way to get exposed things from the component using useModal?

e.g. We have component CatalogPopup and this component expose one function exposedFunction.

const modal = useModal({
    component: CatalogPopup,
});
modal.open();
...
modal.component.exposed.exposedFunction();

Is it possible?

hunterliu1003 commented 5 months ago

@mdominiak2 Currently I don't think there is a way to get exposed props by using useModal. If possible you can give more context or background of your use case, I am willing to give you alternatives.