/* eslint-disable no-console, no-unused-vars */ import '../assets/index.less'; import Notification from '../index'; let notification = null; Notification.newInstance( { maxCount: 10, }, n => { notification = n; }, ); function simpleFn() { notification.notice({ content: () => { return simple show; }, onClose() { console.log('simple close'); }, }); } function durationFn() { notification.notice({ content: h => { return can not close...; }, duration: null, }); } function closableFn() { notification.notice({ content: h => { return closable; }, duration: null, onClose() { console.log('closable close'); }, onClick() { console.log('clicked!!!'); }, closable: true, }); } function close(key) { notification.removeNotice(key); } function manualClose() { const key = Date.now(); notification.notice({ content: h => { return (
click below button to close