1.17.0 • Published 8 years ago
nw-toast
Licence
—
Version
1.17.0
Deps
0
Size
10 kB
Vulns
0
Weekly
0
nw-toast
toast组件
安装
$ yarn add nw-toast
API
import toast from 'nw-toast';
toast(options)
显示toast
options: required Object 选项text: required String 内容delay: required Number 多久后隐藏,单位为毫秒,默认2000
import toast from 'nw-toast';
toast({
text: '你好',
delay: 3000
});
import Toast from 'nw-toast/es/toast';
Toast类,可以继承后再做自定义