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.
51 lines
1.1 KiB
51 lines
1.1 KiB
<docs>
|
|
---
|
|
order: 7
|
|
title:
|
|
zh-CN: 支持更多内容配置
|
|
en-US: Support more content configuration
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
一种支持封面、头像、标题和描述信息的卡片。
|
|
|
|
## en-US
|
|
|
|
A Card that supports `cover`, `avatar`, `title` and `description`.
|
|
|
|
</docs>
|
|
|
|
<template>
|
|
<a-card hoverable style="width: 300px">
|
|
<template #cover>
|
|
<img
|
|
alt="example"
|
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
|
/>
|
|
</template>
|
|
<template #actions>
|
|
<setting-outlined key="setting" />
|
|
<edit-outlined key="edit" />
|
|
<ellipsis-outlined key="ellipsis" />
|
|
</template>
|
|
<a-card-meta title="Card title" description="This is the description">
|
|
<template #avatar>
|
|
<a-avatar src="https://joeschmoe.io/api/v1/random" />
|
|
</template>
|
|
</a-card-meta>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { SettingOutlined, EditOutlined, EllipsisOutlined } from '@ant-design/icons-vue';
|
|
import { defineComponent } from 'vue';
|
|
export default defineComponent({
|
|
components: {
|
|
SettingOutlined,
|
|
EditOutlined,
|
|
EllipsisOutlined,
|
|
},
|
|
});
|
|
</script>
|