remove alert alter

This commit is contained in:
zhujun24 2015-08-03 11:38:55 +08:00
parent 95c098e61f
commit 47606396c3
3 changed files with 1 additions and 35 deletions

View File

@ -24,4 +24,4 @@ React.render(<div>
closable
onClose={onClose} />
</div>, document.getElementById('components-alert-demo-closable'));
````
````

View File

@ -8,7 +8,6 @@
````jsx
var Alert = require('antd/lib/alert');
var link = <a href="javascript:;">不再提醒</a>
React.render(

View File

@ -1,33 +0,0 @@
# 回调函数
- order: 5
警告提示被关闭时触发的回调函数,必须设置`closable="true"`。
---
````jsx
var Alert = require('antd/lib/alert');
var onClose = function(){
console.log('我要被关闭啦!');
}
React.render(
<div>
<Alert
message="警告提示的文案"
type="warn"
closable="true"
onClose={onClose}
/>
<Alert
message="错误提示的文案"
description="错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍"
type="error"
closable="true"
onClose={onClose}
/>
</div>,
document.getElementById('components-alert-demo-onclose'));
````