Commit e9251670 by 李伟康

style(mobile): 格式化报告组件代码样式

- 统一HTML标签属性换行格式
- 统一CSS颜色值大小写格式
- 优化表格边框样式定义
- 添加卡片模式下多个元素的字体大小样式
- 规范CSS选择器和属性缩进格式
1 parent 66a4457b
<template>
<div class="report-component " :class="{ 'is-card': isCard }">
<div
class="report-component "
:class="{ 'is-card': isCard }"
>
<template v-if="reportIndex == 1">
<div class="date">统计周期:{{dayjs(reportItem.reportStartDate).format('YYYY年M月')}} ({{ reportItem.reportStartDate }}至{{ reportItem.reportEndDate }})</div>
</template>
......@@ -83,7 +86,10 @@
<span class="dot">●</span>
整体结论
</div>
<div class="content-text" v-html="formatText(b.overallConclusion)">
<div
class="content-text"
v-html="formatText(b.overallConclusion)"
>
</div>
<!-- 行动建议 -->
......@@ -91,7 +97,10 @@
<span class="dot">●</span>
行动建议
</div>
<div class="content-text" v-html="formatText(b.actionSuggestion)">
<div
class="content-text"
v-html="formatText(b.actionSuggestion)"
>
</div>
</div>
</template>
......@@ -234,7 +243,7 @@ export default {
margin-bottom: 16px;
border-radius: 8px;
overflow: auto;
border: 1px solid #D8E6F0;
border: 1px solid #d8e6f0;
table {
width: 100%;
......@@ -250,7 +259,7 @@ export default {
text-align: left;
font-weight: 600;
color: #333;
border: 1px solid #D8E6F0;
border: 1px solid #d8e6f0;
border-top: none;
&:first-child {
......@@ -267,11 +276,11 @@ export default {
tbody {
tr {
background: #fff;
td{
border-left: none !important;
&:last-child {
border-right: none !important;
}
td {
border-left: none !important;
&:last-child {
border-right: none !important;
}
}
&:last-child {
td {
......@@ -281,13 +290,11 @@ export default {
}
}
}
td {
padding: 6px 8px;
text-align: left;
border: 1px solid #D8E6F0;
border: 1px solid #d8e6f0;
&.change-up {
color: #ff2d55;
......@@ -330,10 +337,27 @@ export default {
}
}
.is-card{
.content-text,.section-title{
font-size: 15.31px;
.is-card {
.date {
font-size: 14.31px !important;
}
.content-text,
.section-title,
.business-title,
.sub-title {
font-size: 15.31px !important;
}
.merchant-list .merchant-item {
.value{
font-size: 19.68px !important;
}
.label,
.unit {
font-size: 15.31px !important;
}
}
.data-table table{
font-size: 14.31px !important;
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!