mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
use div
This commit is contained in:
parent
79682dd61c
commit
8005455ddd
@ -12,8 +12,8 @@ import { Button, notification } from 'antd';
|
||||
const openNotification = function() {
|
||||
const args = {
|
||||
message: "这是标题",
|
||||
description: "这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案",
|
||||
duration: 10
|
||||
description: "我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,我不会自动关闭,",
|
||||
duration: 0
|
||||
};
|
||||
notification.open(args);
|
||||
};
|
||||
|
@ -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>
|
||||
|
@ -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…
Reference in New Issue
Block a user