portal-vue

A feature-rich Portal Plugin for Vuejs, for rendering DOM outside of a component, anywhere our app or the entire document.

  • 所有者: LinusBorg/portal-vue
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    1
      比较:

Github星跟踪图

PortalVue

A Portal Component for Vuejs, to render DOM outside of a component, anywhere in the document.

For more detailed documentation and additional Information, please visit the docs.

Looking for version 1.*? Docs for version 1 are here

Installation

npm i portal-vue

# or

yarn add portal-vue
import PortalVue from 'portal-vue'
Vue.use(PortalVue)

Usage

<portal to="destination">
  <p>This slot content will be rendered wherever the <portal-target> with name 'destination'
    is  located.</p>
</portal>

<portal-target name="destination">
  <!--
  This component can be located anywhere in your App.
  The slot content of the above portal component will be rendered here.
  -->
</portal-target>

Nuxt module

Add portal-vue/nuxt to modules section of nuxt.config.js

{
  modules: ['portal-vue/nuxt']
}

主要指标

概览
名称与所有者LinusBorg/portal-vue
主编程语言Vue
编程语言JavaScript (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2016-12-31 12:33:09
推送于2023-11-25 19:14:42
最后一次提交2020-12-22 23:50:07
发布数36
最新版本名称3.0.0 (发布于 2022-12-11 11:53:17)
第一版名称1.0.0-beta.1 (发布于 2017-02-24 21:49:41)
用户参与
星数3.9k
关注者数33
派生数184
提交数563
已启用问题?
问题数247
打开的问题数28
拉请求数120
打开的拉请求数10
关闭的拉请求数31
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?