プロジェクト
LinusBorg/portal-vue has 3,875 GitHub stars and 181 forks. GitHot measured -1 stars in 24 hours, -2 in 7 days, and -1 in 15 days. Last checked 2026-11-24 13:59 UTC. Last push 2023-11-25.
計測したスター増加
- 24時間
- -1
- 7日間
- -2
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
Vue 3向けの多機能なPortalプラグインです。コンポーネントの外側にDOMをレンダリングし、アプリ内の任意の場所やドキュメント全体に配置できます。(Vue 2版:v2.portal-vue.linusb.org)
制作・メディアREADME.md
オリジナルPortalVue
A Portal Component for Vue 3, to render DOM outside of a component, anywhere in the document.
For more detailed documentation and additional Information, please visit the docs.
Looking for the version for Vue 2.*? Docs for PortalVue 2.*, compatible with Vue 2, 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
v3 does not yet have a nuxt module integration. PRs welcome.
関連プロジェクトを探す
読み込み中…