mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
remove alert alter
This commit is contained in:
parent
95c098e61f
commit
47606396c3
@ -24,4 +24,4 @@ React.render(<div>
|
||||
closable
|
||||
onClose={onClose} />
|
||||
</div>, document.getElementById('components-alert-demo-closable'));
|
||||
````
|
||||
````
|
@ -8,7 +8,6 @@
|
||||
|
||||
````jsx
|
||||
var Alert = require('antd/lib/alert');
|
||||
|
||||
var link = <a href="javascript:;">不再提醒</a>
|
||||
|
||||
React.render(
|
||||
|
@ -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'));
|
||||
````
|
Loading…
Reference in New Issue
Block a user