通过 type 设置不同的主题,对应的值有 primary | info | success | warning | error;message 为消息内容;enableHtml 允许 message 为 html 片段;autoClose 字段为是否自动关闭;customClass 为自定义类名,可以设置不一样的样式;onClose 监听关闭时的回调函数。
type
primary | info | success | warning | error
message
enableHtml
html
autoClose
customClass
onClose
position 有三种值 left | center | right。
position
left | center | right