ant-design/components/spin/demo/inside.md

37 lines
430 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 2
title:
zh-CN: 容器
en-US: Inside a container
2016-03-31 09:40:55 +08:00
---
2015-10-31 02:00:03 +08:00
## zh-CN
2015-10-31 02:00:03 +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 />
2018-06-27 15:55:04 +08:00
</div>,
2018-11-28 15:00:03 +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;
}
````