mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: spin should mask content, close: #3091
This commit is contained in:
parent
3958eb4771
commit
9b99c3886d
@ -1,4 +1,4 @@
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { findDOMNode } from 'react-dom';
|
||||
import Icon from '../icon';
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
order: 3
|
||||
title:
|
||||
title:
|
||||
zh-CN: 卡片加载中
|
||||
en-US: Embedded mode
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { PropTypes } from 'react';
|
||||
import { findDOMNode } from 'react-dom';
|
||||
import classNames from 'classnames';
|
||||
|
@ -29,15 +29,34 @@
|
||||
|
||||
&-nested-loading & {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
margin-top: -10px;
|
||||
z-index: 4;
|
||||
text-align: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 4;
|
||||
&-dot {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -@spin-dot-size / 2;
|
||||
}
|
||||
|
||||
&-sm .@{spin-prefix-cls}-dot {
|
||||
margin: -@spin-dot-size-sm / 2;
|
||||
}
|
||||
&-lg .@{spin-prefix-cls}-dot {
|
||||
margin: -@spin-dot-size-lg / 2;
|
||||
}
|
||||
|
||||
&-text {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
padding-top: @spin-dot-size / 2;
|
||||
}
|
||||
&-sm &-text {
|
||||
padding-top: @spin-dot-size-sm / 2;
|
||||
}
|
||||
&-lg &-text {
|
||||
padding-top: @spin-dot-size-lg / 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user