Notification 通知

TIP

你可以使用 notification.success 的方式来调用不同的消息类型,也可以使用 notification({ type: 'success', content: 'this is a notification' }) 的方式来调用。

基础用法

唤出消息的位置

Notification API

Notification Props

属性名描述类型默认值
type消息的类型enum'info'
content消息内容stringobjectFunction——
title消息标题string——
duration消息持续的时间number3000
placement通知出现的位置enum'top-right'
offset距离顶部的偏移量number16
appendTo插入到哪个元素上objectdocument.body
onClose消息关闭时的回调Functionundefined
id消息的id属性string——
customClass自定义类名string——
zIndexcss属性number——
上次更新时间: