diff --git a/antd/antd-tests.tsx b/antd/antd-tests.tsx index 91cf213d8f..6655862723 100644 --- a/antd/antd-tests.tsx +++ b/antd/antd-tests.tsx @@ -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{ Modal.info({ title: 'hello' }); Modal.success({ cancelText: 'No' }) - Notification.success({ + notification.success({ message: 'hello', description: 'test' }) diff --git a/antd/antd.d.ts b/antd/antd.d.ts index 8aeab7dd95..7bec941900 100644 --- a/antd/antd.d.ts +++ b/antd/antd.d.ts @@ -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