LinusBorg / portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
http://portal-vue.linusb.org
MIT License
3.9k stars 187 forks source link

[Question] Can use portal-target as directive #362

Closed alphaelf closed 2 years ago

alphaelf commented 2 years ago

hi i just wondering if we can use portal-target as directive that can be more useable

<SomeComponent v-portal-target="portalName" />

<SomeHtmlTag v-portal-target:multiple="portalName" />
LinusBorg commented 2 years ago

Nope. We need the slot content of a component to do what portal-vue does.