feat: 优化card组件

This commit is contained in:
wangdan-fit2cloud 2024-03-05 19:01:24 +08:00
parent 09b69c1a20
commit ee8409abdc
4 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@
effect="dark"
placement="bottom"
>
<div ref="tagLabel" class="auto-tooltip">
<div ref="tagLabel" :class="['auto-tooltip', className]" :style="style">
<slot></slot>
</div>
</el-tooltip>
@ -13,6 +13,7 @@
<script setup lang="ts">
import { ref, computed, onMounted, nextTick } from 'vue'
defineOptions({ name: 'AutoTooltip' })
const props = defineProps({ className: String, style: Object })
const tagLabel = ref()
const containerWeight = ref(0)
const contentWeight = ref(0)

View File

@ -78,6 +78,7 @@ function cardLeave() {
overflow: hidden;
}
}
.card-footer {
position: absolute;
bottom: 8px;

View File

@ -25,7 +25,7 @@
<el-col
:xs="24"
:sm="12"
:md="8"
:md="12"
:lg="8"
:xl="6"
v-for="(item, index) in paragraphDetail"

View File

@ -42,7 +42,7 @@
<el-col
:xs="24"
:sm="24"
:md="12"
:md="24"
:lg="12"
:xl="12"
class="mb-16"