Is there any method in Vue to dynamically insert Element-ui template tags and parse them normally?

problem description

Vue"s project uses a plug-in that generates html such as * * .add ("< button > a < / button") and also needs to pass in some parameters

.

now you need to insert the Element-ui tag as the generated html, such as * * .add ("< el-button > argvs < / el-button >")

It can be parsed normally after

.

May.29,2021

compile a set of templates dynamically. All I can think of is that with Vue.compile (template) you can learn about vue compilation on the official website.


you can put the dom using element-ui in an array. The operation method of vue's own variant array can be used directly


dynamic construction can only be built with render there is no other way

Menu