Browse Source

use div

pull/526/head
yiminghe 9 years ago
parent
commit
8005455ddd
  1. 4
      components/notification/demo/duration.md
  2. 12
      components/notification/index.jsx
  3. 2
      package.json

4
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);
};

12
components/notification/index.jsx

@ -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>

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

Loading…
Cancel
Save