use outline icon in alert with description

This commit is contained in:
afc163 2015-11-30 15:07:29 +08:00
parent 5b50e11192
commit 3e5e51049b

View File

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