mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
use outline icon in alert with description
This commit is contained in:
parent
5b50e11192
commit
3e5e51049b
@ -60,6 +60,11 @@ export default React.createClass({
|
||||
iconType = 'default';
|
||||
}
|
||||
|
||||
// use outline icon in alert with description
|
||||
if (!!description) {
|
||||
iconType += '-o';
|
||||
}
|
||||
|
||||
let alertCls = classNames({
|
||||
[prefixCls]: true,
|
||||
[prefixCls + '-' + type]: true,
|
||||
@ -68,6 +73,7 @@ export default React.createClass({
|
||||
[prefixCls + '-no-icon']: !showIcon,
|
||||
});
|
||||
|
||||
// closeable when closeText is assigned
|
||||
if (closeText) {
|
||||
closable = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user