2018-06-16 13:30:41 +00:00
|
|
|
<cn>
|
|
|
|
#### 基础列表
|
|
|
|
基础列表。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Basic list
|
|
|
|
Basic list.
|
|
|
|
</us>
|
|
|
|
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<a-list
|
|
|
|
itemLayout="horizontal"
|
|
|
|
:dataSource="data"
|
|
|
|
>
|
|
|
|
<a-list-item slot="renderItem" slot-scope="item, index">
|
|
|
|
<a-list-item-meta
|
|
|
|
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
|
|
|
>
|
2018-08-04 09:52:11 +00:00
|
|
|
<a slot="title" href="https://vuecomponent.github.io/ant-design-vue/">{{item.title}}</a>
|
2018-06-16 13:30:41 +00:00
|
|
|
<a-avatar slot="avatar" src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
|
|
|
|
</a-list-item-meta>
|
|
|
|
</a-list-item>
|
|
|
|
</a-list>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
const data = [
|
|
|
|
{
|
|
|
|
title: 'Ant Design Title 1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Ant Design Title 2',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Ant Design Title 3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Ant Design Title 4',
|
|
|
|
},
|
|
|
|
]
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
data,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|
|
|
|
```
|