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.message}
-

{args.description}

+
{args.description}
, duration: duration, closable: true, @@ -66,9 +66,9 @@ function notice(args) { if (!args.btn) { getNotificationInstance().notice({ content:
-

{args.message}

+
{args.message}
-

{args.description}

+
{args.description}
, duration: duration, closable: true, @@ -78,9 +78,9 @@ function notice(args) { } else { getNotificationInstance().notice({ content:
-

{args.message}

+
{args.message}
-

{args.description}

+
{args.description}
{args.btn} diff --git a/package.json b/package.json index f85a2aa2bb..74a0466225 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "0.10.0-beta17", + "version": "0.10.0-beta18", "stableVersion": "0.9.4", "title": "Ant Design", "description": "一个 UI 设计语言",