Skip to content

Notification 通知 ​

角落弹出的通知条,命令式调用。

基础用法 ​

API ​

ts
import { DanNotification } from '@dandan-ui/ui'

DanNotification({ title, message, type, duration, position })
DanNotification.success / warning / info / error
DanNotification.closeAll()
字段说明默认值
title / message标题与正文—
type类型info
duration自动关闭毫秒,0 不关闭4500
positiontop-right 等四角top-right
showClose关闭按钮true