UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

9 lines (7 loc) 290 B
import { toValue } from "vue"; import { getOption } from "@/utils/config"; /** Get the root config `teleportTarget`. */ export function getTeleportDefault(): HTMLElement | string { const option = getOption("teleportTarget", "body"); return toValue<HTMLElement | string>(option); }