mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
Spin animate with tips (#2801)
* Spin 组件在显示 tip 时同时显示动画 * remove tip text when not exists
This commit is contained in:
parent
2e0424d3b2
commit
cb56defea3
@ -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>
|
||||
);
|
||||
|
||||
|
@ -106,11 +106,6 @@
|
||||
.square(@spin-dot-size-lg);
|
||||
}
|
||||
|
||||
&-text,
|
||||
&&-show-text &-dot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&&-show-text &-text {
|
||||
display: block;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user