1.17.0 • Published 7 years ago
nw-toast v1.17.0
nw-toast
toast组件
安装
$ yarn add nw-toastAPI
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类,可以继承后再做自定义