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 不自动关闭) | number | 4500 |
VbNotification.closeAll() | 关闭全部活跃通知 | () => void | — |