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

View File

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

View File

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

View File

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