Merge pull request 'feat: 头部数据样式修改' (#123) from feature/data_header into test

Reviewed-on: #123
pull/124/head
刘释隆 1 year ago
commit 4311936ab9

@ -1,13 +1,13 @@
<template> <template>
<div class="header_wrap"> <div class="header_wrap">
<div v-for="(item, index) in data" :key="index" class="header_item"> <div v-for="(item, index) in data" :key="index" class="header_item">
<SvgIcon :name="item.link" /> <SvgIcon :name="item.link"/>
<div class="data_wrap"> <div class="data_wrap">
<div class="data_title" :style="hasColor?`color:${item.color || ''}`:''">{{ item.count }}</div> <div class="data_title" :style="hasColor?`color:${item.color || ''}`:''">{{ item.count }}</div>
<div class="data_content">{{ item.title }}</div> <div class="data_content">{{ item.title }}</div>
</div> </div>
</div> </div>
<SvgIcon size="14px" style="cursor: pointer" name="setting"></SvgIcon> <SvgIcon size="14px" style="cursor: pointer" name="setting" class="settingSvg"></SvgIcon>
</div> </div>
</template> </template>
@ -77,7 +77,7 @@ const data = [
flex-flow: row nowrap; flex-flow: row nowrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 1rem 3.125rem; padding: 1rem 1rem 1rem 3.125rem;
background: #fff; background: #fff;
margin-bottom: 1rem; margin-bottom: 1rem;
@ -93,9 +93,9 @@ const data = [
} }
.data_wrap { .data_wrap {
.data_title { .data_title {
font-size: 1.25rem; font-size: 1.125rem;
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold; font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
font-weight: Bold; font-weight: 900;
text-align: left; text-align: left;
color: #202020; color: #202020;
line-height: 1.4375rem; line-height: 1.4375rem;
@ -104,9 +104,9 @@ const data = [
} }
.data_content { .data_content {
opacity: 0.6; opacity: 0.6;
font-size: .875rem; font-size: .75rem;
font-family: PingFang SC, PingFang SC-Regular; font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular; font-weight: 500;
text-align: center; text-align: center;
color: #202020; color: #202020;
line-height: 1rem; line-height: 1rem;
@ -116,4 +116,8 @@ const data = [
} }
} }
} }
.settingSvg{
width: 1rem !important;
height: 1rem !important;
}
</style> </style>

Loading…
Cancel
Save