2017-08-09 15:45:08 +08:00
|
|
|
---
|
2017-09-06 15:53:25 +08:00
|
|
|
order: 2
|
2017-08-09 15:45:08 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 基础列表
|
|
|
|
en-US: Basic
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
基础列表。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Basic List.
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { List, Avatar } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<List
|
|
|
|
itemLayout="horizontal"
|
|
|
|
showLoadMore
|
|
|
|
onLoadMore={() => {}}
|
|
|
|
>
|
2017-08-09 21:46:48 +08:00
|
|
|
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
|
2017-08-09 15:45:08 +08:00
|
|
|
<List.Item.Meta
|
|
|
|
avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />}
|
|
|
|
title={<a href="https://ant.design">Ant design</a>}
|
|
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
|
|
/>
|
2017-08-21 21:14:20 +08:00
|
|
|
<div style={{ padding: 24 }}>Content</div>
|
2017-08-09 15:45:08 +08:00
|
|
|
</List.Item>
|
2017-08-09 21:46:48 +08:00
|
|
|
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
|
2017-08-09 15:45:08 +08:00
|
|
|
<List.Item.Meta
|
|
|
|
avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />}
|
|
|
|
title={<a href="https://ant.design">Ant design</a>}
|
|
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
|
|
/>
|
2017-08-21 21:14:20 +08:00
|
|
|
<div style={{ padding: 24 }}>Content</div>
|
2017-08-09 15:45:08 +08:00
|
|
|
</List.Item>
|
2017-08-09 21:46:48 +08:00
|
|
|
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
|
2017-08-09 15:45:08 +08:00
|
|
|
<List.Item.Meta
|
|
|
|
avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />}
|
|
|
|
title={<a href="https://ant.design">Ant design</a>}
|
|
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
|
|
/>
|
2017-08-21 21:14:20 +08:00
|
|
|
<div style={{ padding: 24 }}>Content</div>
|
2017-08-09 15:45:08 +08:00
|
|
|
</List.Item>
|
2017-08-09 21:46:48 +08:00
|
|
|
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
|
2017-08-09 15:45:08 +08:00
|
|
|
<List.Item.Meta
|
|
|
|
avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />}
|
|
|
|
title={<a href="https://ant.design">Ant design</a>}
|
|
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
|
|
/>
|
2017-08-21 21:14:20 +08:00
|
|
|
<div style={{ padding: 24 }}>Content</div>
|
2017-08-09 15:45:08 +08:00
|
|
|
</List.Item>
|
|
|
|
</List>
|
|
|
|
, mountNode);
|
|
|
|
````
|