replace el-popover el-card

This commit is contained in:
pa
2026-01-13 14:28:25 +09:00
committed by Natsumi
parent 911969289e
commit 77a838e22d
19 changed files with 254 additions and 76 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-card :body-style="{ padding: '0px' }" class="event-card" :class="cardClass">
<Card class="event-card p-0 gap-0" :class="cardClass">
<img :src="bannerUrl" @click="showFullscreenImageDialog(bannerUrl)" class="banner" />
<div class="event-content">
<div class="event-title">
@@ -69,12 +69,13 @@
<el-icon><StarFilled /></el-icon>
</div>
</div>
</el-card>
</Card>
</template>
<script setup>
import { Calendar, Download, Share, Star, StarFilled } from '@element-plus/icons-vue';
import { Button } from '@/components/ui/button';
import { Card } from '@/components/ui/card';
import { computed } from 'vue';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
@@ -205,6 +206,7 @@
position: relative;
overflow: visible;
border-radius: 8px;
width: 100%;
}
.event-card:hover {
@@ -226,10 +228,6 @@
max-width: 320px;
}
.event-card :deep(.el-card__body) {
overflow: visible;
}
.event-card .banner {
cursor: pointer;
width: 100%;
@@ -351,9 +349,4 @@
color: var(--el-color-primary);
}
:deep(.el-card) {
border-radius: 8px;
width: 100%;
overflow: visible;
}
</style>