Merge pull request #8622 from waywardmonkeys/fix-antd-notification

antd: Fix notification typings.
This commit is contained in:
Masahiro Wakame
2016-03-26 20:41:10 +09:00
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ import React = __React
Menu,
message,
Modal,
Notification,
notification,
Pagination,
Popconfirm,
Popover,
@@ -71,7 +71,7 @@ import Col from 'antd/lib/Col'
import Menu from 'antd/lib/Menu'
import message from 'antd/lib/message'
import Modal from 'antd/lib/Modal'
import Notification from 'antd/lib/Notification'
import notification from 'antd/lib/notification'
import Pagination from 'antd/lib/Pagination'
import Popconfirm from 'antd/lib/Popconfirm'
import Popover from 'antd/lib/Popover'
@@ -229,7 +229,7 @@ class App extends React.Component<any, any>{
Modal.info({ title: 'hello' });
Modal.success({ cancelText: 'No' })
Notification.success({
notification.success({
message: 'hello',
description: 'test'
})
+4 -4
View File
@@ -924,7 +924,7 @@ declare namespace Antd {
duration?: number
}) => void
/**
* #Notification
* #notification
全局展示通知提醒信息。
## 何时使用
@@ -934,7 +934,7 @@ declare namespace Antd {
- 较为复杂的通知内容。
- 带有交互的通知,给出用户下一步的行动点。
- 系统主动推送。*/
export const Notification: {
export const notification: {
success: NotificationFunc
error: NotificationFunc
info: NotificationFunc
@@ -2017,8 +2017,8 @@ declare module 'antd/lib/message' {
declare module 'antd/lib/Modal' {
export default Antd.Modal
}
declare module 'antd/lib/Notification' {
export default Antd.Notification
declare module 'antd/lib/notification' {
export default Antd.notification
}
declare module 'antd/lib/Pagination' {
export default Antd.Pagination