We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass vue component slot
The text was updated successfully, but these errors were encountered:
Hello, just transferring to the slot will not work. I prefer to create modal windows with the required slots. It looks something like this:
// other-component.vue <widget-modal> <template #header> Test {{label}}</template> </widget-modal>
And then
import OtherComponent from "./other-component.vue" openModal(OtherComponent, { label: "Header" })
Also u can try to do something like this:
openModal({ template: ` <widget-modal> <template #header> Test {{label}}</template> </widget-modal> `, components: {WidgetModal} }, { label: "Header" })
Sorry, something went wrong.
It looks like additionally bridging a component to pass the slot. It a little trouble. Is there a simple better way to achieve it?
No branches or pull requests
pass vue component slot
The text was updated successfully, but these errors were encountered: