This commit is contained in:
yiminghe 2015-11-04 18:07:10 +08:00
parent 79682dd61c
commit 8005455ddd
3 changed files with 9 additions and 9 deletions

View File

@ -12,8 +12,8 @@ import { Button, notification } from 'antd';
const openNotification = function() {
const args = {
message: "这是标题",
description: "这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案",
duration: 10
description: "我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,",
duration: 0
};
notification.open(args);
};

View File

@ -52,9 +52,9 @@ function notice(args) {
content: <div>
<Icon className={prefixCls + 'icon-' + args.icon + prefixCls + 'icon'} type={iconType} />
<p className={prefixCls + 'message'}>{args.message}</p>
<div className={prefixCls + 'message'}>{args.message}</div>
<p className={prefixCls + 'description'}>{args.description}</p>
<div className={prefixCls + 'description'}>{args.description}</div>
</div>,
duration: duration,
closable: true,
@ -66,9 +66,9 @@ function notice(args) {
if (!args.btn) {
getNotificationInstance().notice({
content: <div>
<p className={prefixCls + 'message'}>{args.message}</p>
<div className={prefixCls + 'message'}>{args.message}</div>
<p className={prefixCls + 'description'}>{args.description}</p>
<div className={prefixCls + 'description'}>{args.description}</div>
</div>,
duration: duration,
closable: true,
@ -78,9 +78,9 @@ function notice(args) {
} else {
getNotificationInstance().notice({
content: <div>
<p className={prefixCls + 'message'}>{args.message}</p>
<div className={prefixCls + 'message'}>{args.message}</div>
<p className={prefixCls + 'description'}>{args.description}</p>
<div className={prefixCls + 'description'}>{args.description}</div>
<span className={prefixCls + 'btn'}>
{args.btn}
</span>

View File

@ -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 设计语言",