通知宿主Toast Host ToastHost
把 Toast Teleport 到 #toast-layer 的出口Teleports toasts to #toast-layer
实时示例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.
Class 契约Class contract
照抄以下类名,不要自造——它们是本设计系统的唯一命名空间(anx- 前缀)。Copy these class names as-is — they are the system’s only namespace (anx- prefix).
anx-toast anx-toast__body anx-toast__close anx-toast__icon anx-toast__text anx-toast__title
依赖Dependencies
Icon toast
源码Source
vue/overlay/ToastHost.vue
在 GitHub 上查看View on GitHub ↗