2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2019-05-07 14:57:32 +08:00
|
|
|
title:
|
2016-07-21 09:51:04 +08:00
|
|
|
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.
|
|
|
|
|
2022-04-08 22:55:42 +08:00
|
|
|
```tsx
|
2015-10-31 02:00:03 +08:00
|
|
|
import { Spin } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2015-10-31 02:00:03 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2015-10-31 02:00:03 +08:00
|
|
|
<div className="example">
|
|
|
|
<Spin />
|
2022-04-03 23:27:45 +08:00
|
|
|
</div>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2015-10-31 02:00:03 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```css
|
2015-10-31 02:00:03 +08:00
|
|
|
.example {
|
2021-01-30 19:39:02 +08:00
|
|
|
margin: 20px 0;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
padding: 30px 50px;
|
2015-10-31 02:00:03 +08:00
|
|
|
text-align: center;
|
2019-05-07 14:57:32 +08:00
|
|
|
background: rgba(0, 0, 0, 0.05);
|
2015-10-31 02:00:03 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2019-12-24 20:58:42 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.example {
|
|
|
|
background: rgba(255,255,255,0.08);
|
|
|
|
}
|
|
|
|
</style>
|