diff --git a/components/notification/index.tsx b/components/notification/index.tsx index d7e26bb9ea..4b0acdd06b 100755 --- a/components/notification/index.tsx +++ b/components/notification/index.tsx @@ -85,6 +85,7 @@ function getNotificationInstance(prefixCls: string, placement: NotificationPlace className: `${prefixCls}-${placement}`, style: getPlacementStyle(placement), getContainer: defaultGetContainer, + closeIcon: , }, (notification: any) => { notificationInstance[cacheKey] = notification; callback(notification); diff --git a/components/notification/style/index.less b/components/notification/style/index.less index 8a44210311..9166823193 100644 --- a/components/notification/style/index.less +++ b/components/notification/style/index.less @@ -28,6 +28,11 @@ } } + &-close-icon { + font-size: @font-size-base; + cursor: pointer; + } + &-notice { padding: @notification-padding; border-radius: @border-radius-base; @@ -99,13 +104,6 @@ } } - &-close-x:after { - font-size: @font-size-base; - content: "\e633"; - font-family: "anticon"; - cursor: pointer; - } - &-close { position: absolute; right: 22px; diff --git a/package.json b/package.json index 4031e29aaf..78210917e5 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "rc-form": "^2.1.0", "rc-input-number": "~4.0.0", "rc-menu": "~7.0.2", - "rc-notification": "~3.1.1", + "rc-notification": "~3.2.0", "rc-pagination": "~1.16.1", "rc-progress": "~2.2.2", "rc-rate": "~2.4.0",