fix: cardlist

pull/30/MERGE
xingyu 2023-08-11 21:01:41 +08:00
parent d024950dda
commit bc4b337e0f
1 changed files with 7 additions and 10 deletions

View File

@ -22,9 +22,6 @@ const props = defineProps({
})
//
const emit = defineEmits(['getMethod', 'delete'])
const ListItem = List.Item
const CardMeta = Card.Meta
const TypographyText = Typography.Text
// slider
const sliderProp = computed(() => useSlider(4))
//
@ -129,7 +126,7 @@ async function handleDelete(id) {
</div>
</template>
<template #renderItem="{ item }">
<ListItem>
<List.Item>
<Card>
<template #title />
<template #cover>
@ -139,7 +136,7 @@ async function handleDelete(id) {
</template>
<template #actions>
<!-- <SettingOutlined key="setting" /> -->
<EditOutlined key="edit" />
<EditOutlined />
<Dropdown
:trigger="['hover']"
:drop-menu-list="[
@ -154,13 +151,13 @@ async function handleDelete(id) {
]"
popconfirm
>
<EllipsisOutlined key="ellipsis" />
<EllipsisOutlined />
</Dropdown>
</template>
<CardMeta>
<Card.Meta>
<template #title>
<TypographyText :content="item.name" :ellipsis="{ tooltip: item.address }" />
<Typography.Paragraph :content="item.name" :ellipsis="{ tooltip: item.address }" />
</template>
<template #avatar>
<Avatar :src="item.avatar" />
@ -168,9 +165,9 @@ async function handleDelete(id) {
<template #description>
{{ item.time }}
</template>
</CardMeta>
</Card.Meta>
</Card>
</ListItem>
</List.Item>
</template>
</List>
</div>