From ac6505e68abd482a0cf641d31c0e5e7fd41d3c05 Mon Sep 17 00:00:00 2001 From: elrrrrrrr Date: Fri, 2 Oct 2015 15:48:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=BF=81=E7=A7=BB=20notification=20ic?= =?UTF-8?q?onfont?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/notification/index.jsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/notification/index.jsx b/components/notification/index.jsx index ec4ce3efa5..b6ee99c760 100644 --- a/components/notification/index.jsx +++ b/components/notification/index.jsx @@ -1,6 +1,7 @@ import React from 'react'; import Notification from 'rc-notification'; import assign from 'object-assign'; +import Icon from '../iconfont'; let top = 24; let notificationInstance; @@ -29,27 +30,27 @@ function notice(args) { if (args.icon) { let prefixCls = ' ant-notification-notice-content-icon-'; - let iconClass = 'anticon anticon-'; + let iconType = ''; switch (args.icon) { case 'success': - iconClass += 'check-circle-o'; + iconType = 'check-circle-o'; break; case 'info': - iconClass += 'info-circle-o'; + iconType = 'info-circle-o'; break; case 'error': - iconClass += 'exclamation-circle-o'; + iconType = 'exclamation-circle-o'; break; case 'warn': - iconClass += 'question-circle-o'; + iconType = 'question-circle-o'; break; default: - iconClass += 'info-circle'; + iconType = 'info-circle'; } getNotificationInstance().notice({ content:
- +

{args.message}