| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| style | 自定义样式 | Object | |
| key | 消息的标识,调用close可根据key进行关闭 | string | |
| duration | 显示时间,为0时不销毁 | number | 4 |
| dock | 通知弹出的位置 | topRight | topLeft | bottomLeft | bottomRight | topRight |
| content | 内容 | JSXElement | |
| title | 标题 | string | JSXElement | |
| icon | 图标 | JSXElement | |
| closeIcon | 自定义关闭按钮 | JSXElement | |
| theme | 主题 | success | warning | error | info | |
| btn | 按钮 | JSXElement | |
| onClose | 关闭回调函数 | Function |
| 事件名称 | 说明 | 返回值 |
|---|---|---|
onClose | 关闭回调函数 |