Subscribe on changes!

Move component and it's html element into a different parent component

avatar
Jul 21st 2022

What problem does this feature solve?

I'm working on building a low code platform to build web pages. So we need to drag a component(also a vue component) from an old parent to a new one. The component should be reused to prevent destroy and rebuild it. The dom elements(vnode tree) of the component should be kept cause of some third party libs may alter dom directly.

In other words, make the parent component changing no feeling.

These components don't need props and other interactions with it's parent.

What does the proposed API look like?

I don't know. Maybe use a component instance as component options or a date field with v-is-instance="xxx"