ant-design/components/list/demo/basic.md

60 lines
1.9 KiB
Markdown
Raw Normal View History

---
order: 2
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={() => {}}
>
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
<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"
/>
<div style={{ padding: 24 }}>Content</div>
</List.Item>
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
<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"
/>
<div style={{ padding: 24 }}>Content</div>
</List.Item>
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
<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"
/>
<div style={{ padding: 24 }}>Content</div>
</List.Item>
<List.Item actions={[<a>编辑</a>, <a>更多</a>]}>
<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"
/>
<div style={{ padding: 24 }}>Content</div>
</List.Item>
</List>
, mountNode);
````