跳到正文Skip to content

浮层宿主Overlay Host OverlayHost

把浮层 Teleport 到 #overlay-layer 的出口Teleports overlays to #overlay-layer

浮层Overlay Vue 组件Vue component

实时示例Live example

活体样例,可直接交互(点开浮层 / 下拉 / 试试键盘)——与组件画廊同源,切主题会同步。Interactive sample straight from the gallery (open overlays, dropdowns, try the keyboard); the theme stays in sync. 新标签打开 ↗Open in new tab ↗ · 看完整画廊Full gallery

PropsProps

该组件没有 props。This component takes no props.

依赖Dependencies

OverlaySlot overlayState

源码Source

vue/overlay/OverlayHost.vue 在 GitHub 上查看View on GitHub ↗