update el-card引发的样式错乱

This commit is contained in:
2026-04-02 21:31:58 +08:00
parent 5608d63825
commit 44ce95c221
4 changed files with 18 additions and 1 deletions

View File

@@ -180,3 +180,8 @@ onBeforeUnmount(() => {
margin-top: 8px;
}
</style>
<style lang="scss" scoped>
::v-deep .el-card__body {
overflow: hidden;
}
</style>

View File

@@ -116,3 +116,9 @@ onMounted(() => {
}
}
</style>
<style lang="scss" scoped>
::v-deep .el-card__body {
overflow: hidden;
}
</style>

View File

@@ -145,7 +145,7 @@ const handleClick = (item: any) => {
</script>
<template>
<div class="grid grid-cols-3 gap-4 mb-4 bg-white el-card is-always-shadow py-2 px-4 h-24 items-center">
<div class="grid grid-cols-3 gap-4 mb-4 bg-white is-always-shadow py-2 px-4 h-24 items-center">
<div class="col-span-1 pl-4 flex items-center">
<ImageAvatar class="!h-[60px] !w-[60px]" :src="userInfos.user.avatar" />
<div class="flex flex-col h-[40px] justify-between ml-6 title">

View File

@@ -94,3 +94,9 @@ const showRoutes = computed(() => {
overflow-x: hidden;
}
</style>
<style lang="scss" scoped>
::v-deep .el-card__body {
overflow: hidden;
}
</style>