perf: 优化bbs前端整体显示

This commit is contained in:
橙子
2025-02-04 15:23:20 +08:00
parent 9a73789788
commit bce9b58265
10 changed files with 138 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
<script setup>
import { ref } from "vue";
const props = defineProps(["items", "header", "text", "hideDivider", "height"]);
const props = defineProps(["items", "header", "text", "hideDivider", "height","isPadding"]);
const emit = defineEmits(['onClickText'])
const height = ref(props.height + "px");
@@ -11,7 +11,7 @@ const onClickText=()=>{
</script>
<template>
<el-card class="box-card" shadow="never">
<el-card class="box-card" shadow="never" :body-style="{padding: isPadding===false?'0px 20px':'20px 20px'}">
<template #header>
<div class="card-header">
<span>{{ props.header }}</span>
@@ -50,7 +50,6 @@ const onClickText=()=>{
justify-content: space-between;
align-items: center;
}
.text {
font-size: 14px;
}