diff --git a/components/notification/demo/duration.md b/components/notification/demo/duration.md index ab9a574759..96a3c97269 100644 --- a/components/notification/demo/duration.md +++ b/components/notification/demo/duration.md @@ -12,8 +12,8 @@ import { Button, notification } from 'antd'; const openNotification = function() { const args = { message: "这是标题", - description: "这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案", - duration: 10 + description: "我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,", + duration: 0 }; notification.open(args); }; diff --git a/components/notification/index.jsx b/components/notification/index.jsx index b6ee99c760..e5a97a9c3a 100644 --- a/components/notification/index.jsx +++ b/components/notification/index.jsx @@ -52,9 +52,9 @@ function notice(args) { content:
{args.message}
+{args.description}
+{args.message}
+{args.description}
+{args.message}
+{args.description}
+