LinusBorg/portal-vue
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.
Gemessener Sternzuwachs
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
Ein funktionsreicher Portal-Plugin für Vue 3, mit dem sich das DOM außerhalb einer Komponente an beliebiger Stelle in deiner Anwendung oder im gesamten Dokument rendern lässt. (Vue-2-Version: v2.portal-vue.linusb.org)
Kreativität und MedienREADME.md
OriginalPortalVue
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.
Ähnliche Projekte entdecken
Wird geladen…