프로젝트
GitHub에서 보기
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.
측정된 스타 증가
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Vue 3를 위한 다양한 기능의 Portal 플러그인으로, 컴포넌트 외부의 앱 내 어느 위치나 문서 전체에 DOM을 렌더링할 수 있습니다. (Vue 2 버전: v2.portal-vue.linusb.org)
창작 및 미디어README.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.
관련 프로젝트 살펴보기
불러오는 중…