You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
913 B
54 lines
913 B
<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"
|
|
>
|
|
<a slot="title" href="https://vue.ant.design/">{{item.title}}</a>
|
|
<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>
|
|
```
|