Skip to content

Commit

Permalink
Fix notification ArgsProps typing (ant-design#7834)
Browse files Browse the repository at this point in the history
* Fix notification ArgsProps typing

close ant-design#7832

* Improve notification ArgsProps typing

see ant-design#7832

* Improve notification ArgsProps typing

see ant-design#7832
  • Loading branch information
bzums authored and afc163 committed Oct 9, 2017
1 parent 9a5894c commit d4c75d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/notification/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The properties of config are as follows:
| message | The title of notification box (required) | string\|ReactNode | - |
| description | The content of notification box (required) | string\|ReactNode | - |
| className | Customized CSS class | string | - |
| style | Customized inline style | Object | - |
| style | Customized inline style | [React.CSSProperties](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e434515761b36830c3e58a970abf5186f005adac/types/react/index.d.ts#L794) | - |
| btn | Customized close button | ReactNode | - |
| icon | Customized icon | ReactNode | - |
| key | The unique identifier of the Notification | string | - |
Expand Down
2 changes: 1 addition & 1 deletion components/notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface ArgsProps {
duration?: number;
icon?: React.ReactNode;
placement?: NotificationPlacement;
style?: string;
style?: React.CSSProperties;
prefixCls?: string;
className?: string;
readonly type?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/notification/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ config 参数如下:
| message | 通知提醒标题,必选 | string\|ReactNode | - |
| description | 通知提醒内容,必选 | string\|ReactNode | - |
| className | 自定义 CSS class | string | - |
| style | 自定义内联样式 | Object | - |
| style | 自定义内联样式 | [React.CSSProperties](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e434515761b36830c3e58a970abf5186f005adac/types/react/index.d.ts#L794) | - |
| btn | 自定义关闭按钮 | ReactNode | - |
| icon | 自定义图标 | ReactNode | - |
| key | 当前通知唯一标志 | string | - |
Expand Down

0 comments on commit d4c75d4

Please sign in to comment.