File tree 2 files changed +7
-7
lines changed 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import React = __React
23
23
Menu,
24
24
message,
25
25
Modal,
26
- Notification ,
26
+ notification ,
27
27
Pagination,
28
28
Popconfirm,
29
29
Popover,
@@ -71,7 +71,7 @@ import Col from 'antd/lib/Col'
71
71
import Menu from 'antd/lib/Menu'
72
72
import message from 'antd/lib/message'
73
73
import Modal from 'antd/lib/Modal'
74
- import Notification from 'antd/lib/Notification '
74
+ import notification from 'antd/lib/notification '
75
75
import Pagination from 'antd/lib/Pagination'
76
76
import Popconfirm from 'antd/lib/Popconfirm'
77
77
import Popover from 'antd/lib/Popover'
@@ -229,7 +229,7 @@ class App extends React.Component<any, any>{
229
229
230
230
Modal . info ( { title : 'hello' } ) ;
231
231
Modal . success ( { cancelText : 'No' } )
232
- Notification . success ( {
232
+ notification . success ( {
233
233
message : 'hello' ,
234
234
description : 'test'
235
235
} )
Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ declare namespace Antd {
871
871
duration ?: number
872
872
} ) => void
873
873
/**
874
- * #Notification
874
+ * #notification
875
875
全局展示通知提醒信息。
876
876
877
877
## 何时使用
@@ -881,7 +881,7 @@ declare namespace Antd {
881
881
- 较为复杂的通知内容。
882
882
- 带有交互的通知,给出用户下一步的行动点。
883
883
- 系统主动推送。*/
884
- export const Notification : {
884
+ export const notification : {
885
885
success : NotificationFunc
886
886
error : NotificationFunc
887
887
info : NotificationFunc
@@ -1911,8 +1911,8 @@ declare module 'antd/lib/message' {
1911
1911
declare module 'antd/lib/Modal' {
1912
1912
export default Antd . Modal
1913
1913
}
1914
- declare module 'antd/lib/Notification ' {
1915
- export default Antd . Notification
1914
+ declare module 'antd/lib/notification ' {
1915
+ export default Antd . notification
1916
1916
}
1917
1917
declare module 'antd/lib/Pagination' {
1918
1918
export default Antd . Pagination
You can’t perform that action at this time.
0 commit comments