2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-04-10 15:38:52 +08:00
|
|
|
order: 5
|
2016-05-26 17:46:55 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 预加载的卡片
|
|
|
|
en-US: Loading card
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-02-22 16:25:13 +08:00
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-02-22 16:25:13 +08:00
|
|
|
数据读入前会有文本块样式。
|
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## en-US
|
|
|
|
|
2016-12-06 16:46:12 +08:00
|
|
|
Shows a loading indicator while the contents of the card is being fetched.
|
2016-05-26 17:46:55 +08:00
|
|
|
|
2017-01-19 15:19:03 +08:00
|
|
|
````__react
|
2016-02-22 16:25:13 +08:00
|
|
|
import { Card } from 'antd';
|
|
|
|
|
2016-04-10 15:38:52 +08:00
|
|
|
ReactDOM.render(
|
2016-05-26 17:46:55 +08:00
|
|
|
<Card loading title="Card title" style={{ width: '34%' }}>
|
2016-04-10 15:38:52 +08:00
|
|
|
Whatever content
|
|
|
|
</Card>
|
|
|
|
, mountNode);
|
2016-02-22 16:25:13 +08:00
|
|
|
````
|