跳到正文Skip to content

轻提示toast toast

命令式 toast:toast(opts) 显示,返回关闭函数Imperative toast: toast(opts) shows a message and returns a close function

浮层Overlay 逻辑模块Logic module

实时示例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——导出与签名见本节「导出」与源码。A logic module has no props — see Exports and the source.

导出Exports6

ToastItem ToastOptions ToastTone dismissToast toast toastState

完整签名见生成物 dist/index.d.ts(由源码自动提取)。Full signatures live in dist/index.d.ts, extracted from source.

源码Source

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