-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
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
I want to bind html as vue-component #59
Comments
I want a solution to this problem either. but If we use this package in
Why does that happen? ref: https://stackoverflow.com/questions/48683390/using-vue-component-in-sweetalert2-content |
After some digging, i found related post to the stackoverflow link from @panudetjt for my case, i need to create interactive Vue Form. and i use this package so much in my apps. This is what i came up with. i create component Instances programmatically, and mount it everytime i need the form (in case there is some preprocess). and get form result before i destroy it. ref: |
The problem with that solution is that it will be another Vue instance so, if you are using for example vuex you won't have access to it there |
yes, that is why i use function initForm and getResult as the bridge. |
like this
this.$swal({
type: 'success',
target: document.getElementsByClassName('live-left')[0],
// text: 'hellllllll',
html:
<PopupWindow></PopupWindow>
})
PopupWindow
is my componentCan I do that?thank~!
The text was updated successfully, but these errors were encountered: