From 4608fa546c134dfbbd6775947ae2bd23b0ac28a0 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Sun, 9 Dec 2018 18:08:47 +0800
Subject: [PATCH] feat: update notification

---
 components/notification/demo/custom-icon.md | 2 +-
 components/notification/index.js            | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/components/notification/demo/custom-icon.md b/components/notification/demo/custom-icon.md
index 72f59be1c..b24cbf929 100644
--- a/components/notification/demo/custom-icon.md
+++ b/components/notification/demo/custom-icon.md
@@ -20,7 +20,7 @@ The icon can be customized to any vue node or (h) => vue node.
         this.$notification.open({
           message: 'Notification Title',
           description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
-          icon: <a-icon type="smile-circle" style="color: #108ee9" />,
+          icon: <a-icon type="smile" style="color: #108ee9" />,
         });
       },
     }
diff --git a/components/notification/index.js b/components/notification/index.js
index 9c19e4c04..5bb551415 100644
--- a/components/notification/index.js
+++ b/components/notification/index.js
@@ -84,6 +84,7 @@ function getNotificationInstance (prefixCls, placement, callback) {
     class: `${prefixCls}-${placement}`,
     style: getPlacementStyle(placement),
     getContainer: defaultGetContainer,
+    closeIcon: (h) => <Icon class={`${prefixCls}-close-icon`} type={'close'}/>,
   }, (notification) => {
     notificationInstance[cacheKey] = notification
     callback(notification)
@@ -93,7 +94,7 @@ function getNotificationInstance (prefixCls, placement, callback) {
 const typeToIcon = {
   success: 'check-circle-o',
   info: 'info-circle-o',
-  error: 'cross-circle-o',
+  error: 'close-circle-o',
   warning: 'exclamation-circle-o',
 }