portal-vue
Version:
> A Portal Component for Vuejs, to render DOM outside of a component, anywhere in the document.
25 lines (20 loc) • 678 B
TypeScript
import Vue from 'vue'
import { VueConstructor, PluginObject, PluginFunction } from 'vue'
import Portal from './lib/components/portal'
import PortalTarget from './lib/components/portal-target'
import MountingPortal from './lib/components/mounting-portal'
import { wormhole as Wormhole } from './lib/components/wormhole'
declare global {
interface Window {
Vue?: VueConstructor<Vue>
}
}
export as namespace PortalVue
export interface PluginOptions {
portalName?: string
portalTargetName?: string
MountingPortalName?: string
}
declare const _default: PluginFunction<PluginOptions>
export default _default
export { Portal, PortalTarget, MountingPortal, Wormhole }