1. import { Notification, Button } from 'uskin';
    2. const notices = [{
    3. title: 'Note:',
    4. content: 'I am content',
    5. showIcon: true,
    6. isAutoHide: true,
    7. duration: 5,
    8. width: 300,
    9. id: 1
    10. }, {
    11. title: 'Note:',
    12. content: 'I am a info notification',
    13. type: 'info',
    14. showIcon: true,
    15. isAutoHide: false,
    16. width: 300,
    17. id: 2
    18. }];
    19. ReactDOM.render(<div>
    20. <Button
    21. value="用户定义时间的通知"
    22. onClick={showNotification.bind(this, notices[0])} />
    23. <Button
    24. value="不会自动关闭的通知"
    25. onClick={showNotification.bind(this, notices[1])} />
    26. <Button
    27. value="将通知2更新为1"
    28. onClick={updateNotification} />
    29. <Button
    30. value="删除通知2"
    31. onClick={removeNotification)} />
    32. </div>, mountNode);