1.1.0 • Published 8 years ago
tnt-toast v1.1.0
react toast组件
#Development npm i && npm test
#Usage
var TntToast = require('tnt-toast');
TntToast({
msg : "测试toast"
});
TntToast.hide() 手动关闭方法
#API
##props
| name | type | default | description |
| style | object | {} | 组件容器样式 |
| msg | string | | 提示内容 |
| duration | number | 1500 | 多少毫秒后消失 |
| icon | string | | 图标 |
| animation | bool | false | 图标是否旋转 |
| autoClose | bool | true | 谈层是否自动关闭 |