-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
transfer DOM #2130
Comments
Thanks for the suggestion! This is definitely useful, however my concern is:
|
That's true. this is a edge case and seems no perfect way to solve, eg. bootstrap's solution: http://v4-alpha.getbootstrap.com/components/modal/#live-demo , by this way, modal's lifecycle is not inherit from parent and not context aware. ng's solution is little cumbersome: https://angular-ui.github.io/bootstrap/#/modal . How about providing some ways(may be an API) to extending this feature? |
Yeah, it definitely should be extendable... I think the only thing preventing it is the internal |
So, with be0d1cd75b4d84ece2b97cac5701376070884ab2 you should have everything you need to implement
I'll close this now - feel free to share |
Great, thanks. |
how vue2.0 to transfer dom like this? |
We may need DOM place in some other location in some situations, eg: place
<modal>
in root element(body).position: fixed
is not a perfect solution, when inside parent with z-index, it may be overlap by other elements: http://stackoverflow.com/a/16756277I made some experiments and it seems impossible to achieve this by custom directive, so i made some modifications in source code and it works as expected:
http://jsfiddle.net/rhyzx/s3L0emxy/
commit is here: rhyzx@8430843
How do you think about this feature? @yyx990803
The text was updated successfully, but these errors were encountered: