|
@ -56,17 +56,17 @@ let Line = React.createClass({ |
|
|
text = props.format(props.percent); |
|
|
text = props.format(props.percent); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (props.showInfo === true) { |
|
|
if (props.showInfo) { |
|
|
if (props.status === 'exception') { |
|
|
if (props.status === 'exception') { |
|
|
progressInfo = ( |
|
|
progressInfo = ( |
|
|
<span className={`${prefixCls}-line-text`}> |
|
|
<span className={`${prefixCls}-line-text`}> |
|
|
{props.format ? text : <Icon type="exclamation" />} |
|
|
{props.format ? text : <Icon type="cross-circle" />} |
|
|
</span> |
|
|
</span> |
|
|
); |
|
|
); |
|
|
} else if (props.status === 'success') { |
|
|
} else if (props.status === 'success') { |
|
|
progressInfo = ( |
|
|
progressInfo = ( |
|
|
<span className={`${prefixCls}-line-text`}> |
|
|
<span className={`${prefixCls}-line-text`}> |
|
|
{props.format ? text : <Icon type="check" />} |
|
|
{props.format ? text : <Icon type="check-circle" />} |
|
|
</span> |
|
|
</span> |
|
|
); |
|
|
); |
|
|
} else { |
|
|
} else { |
|
@ -84,12 +84,12 @@ let Line = React.createClass({ |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div className={`${prefixCls}-line-wrap clearfix status-${props.status}${fullCls}`} style={props.style}> |
|
|
<div className={`${prefixCls}-line-wrap clearfix status-${props.status}${fullCls}`} style={props.style}> |
|
|
{progressInfo} |
|
|
|
|
|
<div className={`${prefixCls}-line-outer`}> |
|
|
<div className={`${prefixCls}-line-outer`}> |
|
|
<div className={`${prefixCls}-line-inner`}> |
|
|
<div className={`${prefixCls}-line-inner`}> |
|
|
<div className={`${prefixCls}-line-bg`} style={percentStyle}></div> |
|
|
<div className={`${prefixCls}-line-bg`} style={percentStyle}></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{progressInfo} |
|
|
</div> |
|
|
</div> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|