Spin animate with tips (#2801)

* Spin 组件在显示 tip 时同时显示动画

* remove tip text when not exists
This commit is contained in:
Jerry Bendy 2016-08-23 16:17:32 +08:00 committed by 偏右
parent 2e0424d3b2
commit cb56defea3
2 changed files with 1 additions and 6 deletions

View File

@ -103,7 +103,7 @@ export default class Spin extends React.Component<SpinProps, any> {
const spinElement = (
<div {...divProps} className={spinClassName}>
<span className={`${prefixCls}-dot`} />
<div className={`${prefixCls}-text`}>{tip || '加载中...'}</div>
{tip ? <div className={`${prefixCls}-text`}>{tip}</div> : null}
</div>
);

View File

@ -106,11 +106,6 @@
.square(@spin-dot-size-lg);
}
&-text,
&&-show-text &-dot {
display: none;
}
&&-show-text &-text {
display: block;
}