From d64c40ffee573b0851b22de0d8976af8b227bb78 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Thu, 30 Jul 2015 21:32:12 +0800 Subject: [PATCH 1/2] fix message --- components/message/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/message/index.jsx b/components/message/index.jsx index b038d3c718..c5ff051813 100644 --- a/components/message/index.jsx +++ b/components/message/index.jsx @@ -3,12 +3,15 @@ import Notification from 'rc-notification'; let defaultDuration = 1.5; +var messageInstance; + function getMessageInstance() { - return Notification.newInstance({ + messageInstance = messageInstance || Notification.newInstance({ prefixCls: 'ant-message', transitionName: 'move-up', style: {} // 覆盖原来的样式 }); + return messageInstance; } function notice(content, duration = defaultDuration, type) { @@ -18,7 +21,6 @@ function notice(content, duration = defaultDuration, type) { 'error': 'anticon-exclamation-circle ant-message-error' })[type]; getMessageInstance().notice({ - key: 'simpleMessage', duration: duration, style: {}, content:
From 19e2c2700a9429ead6a9561dead5060f521d1cce Mon Sep 17 00:00:00 2001 From: yiminghe Date: Thu, 30 Jul 2015 21:55:16 +0800 Subject: [PATCH 2/2] stable --- components/affix/index.md | 7 ------- components/alert/index.md | 6 ------ components/carousel/index.md | 6 ------ components/menu/index.md | 6 ------ components/notification/index.md | 6 ------ components/tag/index.md | 6 ------ components/tree/index.md | 7 ------- components/upload/index.md | 7 ------- 8 files changed, 51 deletions(-) delete mode 100644 components/affix/index.md delete mode 100644 components/alert/index.md delete mode 100644 components/carousel/index.md delete mode 100644 components/menu/index.md delete mode 100644 components/notification/index.md delete mode 100644 components/tag/index.md delete mode 100644 components/tree/index.md delete mode 100644 components/upload/index.md diff --git a/components/affix/index.md b/components/affix/index.md deleted file mode 100644 index 1adff41513..0000000000 --- a/components/affix/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Affix - -- category: Components -- chinese: 固定 - ---- - diff --git a/components/alert/index.md b/components/alert/index.md deleted file mode 100644 index 184a8c2b0a..0000000000 --- a/components/alert/index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Alert - -- category: CSS -- chinese: 通知栏 - ---- diff --git a/components/carousel/index.md b/components/carousel/index.md deleted file mode 100644 index ee41c20cb2..0000000000 --- a/components/carousel/index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Carousel - -- category: Components -- chinese: 走马灯 - ---- diff --git a/components/menu/index.md b/components/menu/index.md deleted file mode 100644 index 2acd0337f7..0000000000 --- a/components/menu/index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Menu - -- category: Components -- chinese: 导航菜单 - ---- diff --git a/components/notification/index.md b/components/notification/index.md deleted file mode 100644 index 3fe4e19794..0000000000 --- a/components/notification/index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Notification - -- category: Components -- chinese: 系统通知框 - ---- diff --git a/components/tag/index.md b/components/tag/index.md deleted file mode 100644 index 5a2d7fde26..0000000000 --- a/components/tag/index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Tag - -- category: Components -- chinese: 标签 - ---- diff --git a/components/tree/index.md b/components/tree/index.md deleted file mode 100644 index 7d5892c00d..0000000000 --- a/components/tree/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Tree - -- category: Components -- chinese: 树形控件 - ---- - diff --git a/components/upload/index.md b/components/upload/index.md deleted file mode 100644 index 1409d6ff2c..0000000000 --- a/components/upload/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Upload - -- category: Components -- chinese: 文件上传 - ---- -