mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
58089c7832
List: update english docs
50 lines
830 B
Markdown
50 lines
830 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 基础列表
|
|
en-US: Basic list
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
基础列表。
|
|
|
|
## en-US
|
|
|
|
Basic list.
|
|
|
|
````jsx
|
|
import { List, Avatar } from 'antd';
|
|
|
|
const data = [
|
|
{
|
|
title: 'Ant Design Title 1',
|
|
},
|
|
{
|
|
title: 'Ant Design Title 2',
|
|
},
|
|
{
|
|
title: 'Ant Design Title 3',
|
|
},
|
|
{
|
|
title: 'Ant Design Title 4',
|
|
},
|
|
];
|
|
|
|
ReactDOM.render(
|
|
<List
|
|
itemLayout="horizontal"
|
|
dataSource={data}
|
|
renderItem={item => (
|
|
<List.Item>
|
|
<List.Item.Meta
|
|
avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />}
|
|
title={<a href="https://ant.design">{item.title}</a>}
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
/>
|
|
</List.Item>
|
|
)}
|
|
/>
|
|
, mountNode);
|
|
````
|