2017-09-06 15:53:25 +08:00
|
|
|
---
|
|
|
|
order: 0
|
|
|
|
title:
|
|
|
|
zh-CN: 简单列表
|
|
|
|
en-US: Simple
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
最简单的列表。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Simple List.
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { List } from 'antd';
|
|
|
|
|
2017-09-25 15:24:16 +08:00
|
|
|
const data = [
|
|
|
|
'Racing car sprays burning fuel into crowd.',
|
|
|
|
'Japanese princess to wed commoner.',
|
|
|
|
'Australian walks 100km after outback crash.',
|
|
|
|
'Man charged over missing wedding girl.',
|
|
|
|
'Los Angeles battles huge wildfires.',
|
|
|
|
];
|
|
|
|
|
2017-09-06 15:53:25 +08:00
|
|
|
ReactDOM.render(
|
|
|
|
<List
|
|
|
|
itemLayout="horizontal"
|
2017-09-25 15:24:16 +08:00
|
|
|
dataSource={data}
|
|
|
|
renderItem={item => (<List.Item>{item}</List.Item>)}
|
|
|
|
/>
|
2017-09-06 15:53:25 +08:00
|
|
|
, mountNode);
|
|
|
|
````
|