javascript - How to add a component outside a specified vue component or dom element?
给我你的怀抱
给我你的怀抱 2017-06-26 10:53:12
0
1
803

For example, I have another table with an uncertain number of TDs in the table. I need to add an element-ui tooltip to the outer layer of this uncertain number of TDs. Initially, I feel that I should use the vue.component() method, but I can’t write it well no matter how I write it, so I can only ask you for help. Thank you in advance~~

给我你的怀抱
给我你的怀抱

reply all(1)
学霸

If the number of td is uncertain, you should use v-for to render the list. Then the corresponding tooltip can also be placed in it for conditional rendering

In addition, only tr elements should be used outside td, so the tooltip should be inside td, and then contain another p or span element.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template