Teleport组件

Teleport是个内置组件,它可以将组件内部模板传送到DOM结构外层位置去

使用

<Teleport to="标签名字或者class名,id名">

</Teleport>

一般用于模态框

推荐阅读更多精彩内容