PortalVue包含两个组件,portal组件和portal-target组件,他允许你将portal组件中的内容转至portal-target组件所在的地方.

<portal to="title">标题</portal>
 
<div class='page-header__title'>
       <portal-target name='title' />   //”标题“显示在这里
</div>

相关文章:

  • 2021-08-25
  • 2022-02-10
  • 2021-08-10
  • 2021-05-28
  • 2021-10-05
  • 2022-01-05
  • 2021-09-25
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-10-24
  • 2021-07-31
  • 2021-11-18
  • 2021-11-17
相关资源
相似解决方案