UNPKG

react-app-shell

Version:

react打包脚本和example, 这里的版本请忽略

10 lines (8 loc) 297 B
import notificationDOM from './notification'; import './icons'; let notification; const notice = (type, content, duration = 2000, onClose) => { if (!notification) notification = notificationDOM; return notification.addNotice({type, content, duration, onClose}); }; export default notice;