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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?