2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2016-07-21 09:51:04 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 容器
|
|
|
|
en-US: Inside a container
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-10-31 02:00:03 +08:00
|
|
|
|
2016-07-21 09:51:04 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-10-31 02:00:03 +08:00
|
|
|
放入一个容器中。
|
|
|
|
|
2016-07-21 09:51:04 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Spin in a container.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2015-10-31 02:00:03 +08:00
|
|
|
import { Spin } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div className="example">
|
|
|
|
<Spin />
|
|
|
|
</div>
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-10-31 02:00:03 +08:00
|
|
|
````
|
|
|
|
|
|
|
|
````css
|
|
|
|
.example {
|
|
|
|
text-align: center;
|
|
|
|
background: rgba(0,0,0,0.05);
|
|
|
|
border-radius: 4px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
padding: 30px 50px;
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
````
|