Skip to content

Notification 通知提醒框 ​

全局四角弹出的富文本系统通知,支持标题、详细描述、悬停暂停关闭与顶层 popover="manual" 渐进增强。

四类语义通知 ​

API ​

方法 / 参数说明类型默认值
VbNotification.success/info/warning/error快捷弹出对应语义通知(options: NotificationOptions | string) => NotificationHandler—
placement弹出角落'top-right' | 'top-left' | 'bottom-right' | 'bottom-left''top-right'
duration自动关闭时长(ms,0 不自动关闭)number4500
VbNotification.closeAll()关闭全部活跃通知() => void—

基于 MIT 协议开源发布 · @vobo-design/ui v0.5.0