Commit c31bfdea by Jaxon

style(statisticsItem): 优化布局和样式,调整容器结构及标题样式

1 parent f0fbf694
...@@ -42,22 +42,23 @@ ...@@ -42,22 +42,23 @@
:data="data" :data="data"
:schema="specialSchema"> :schema="specialSchema">
</SpecialItem> </SpecialItem>
<GridItem :data="data" :schema="defaultSchema"></GridItem> <div class="container-wrapper">
<GridItem :data="data" :schema="defaultSchema"></GridItem>
<div class="container" gutter="4"> <div class="container" gutter="4">
<div v-show="showMoreToggle" span="24"> <div v-show="showMoreToggle" span="24">
<div class="more-collapse" <div class="more-collapse"
:style="{ :style="{
height: expanded ? (`${moreHeight}px`) : '0px', height: expanded ? (`${moreHeight}px`) : '0px',
}"> }">
<div class="more-inner"> <div class="more-inner">
<GridItem :data="data" :schema="moreSchema"></GridItem> <GridItem :data="data" :schema="moreSchema"></GridItem>
</div>
</div> </div>
</div> <!-- 用来记录高度 -->
<!-- 用来记录高度 --> <div class="more-measure">
<div class="more-measure"> <div ref="moreMeasureInner" class="more-inner">
<div ref="moreMeasureInner" class="more-inner"> <GridItem :data="data" :schema="moreSchema"></GridItem>
<GridItem :data="data" :schema="moreSchema"></GridItem> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -199,13 +200,13 @@ export default { ...@@ -199,13 +200,13 @@ export default {
> .title-wrapper { > .title-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 8px; padding: 0 8px 8px;
border-bottom: 1px solid #eeeef0; border-bottom: 1px solid #eeeef0;
overflow: hidden; overflow: hidden;
.title-label-wrapper { .title-label-wrapper {
flex-shrink: 0; flex-shrink: 0;
flex: 1; flex: 1;
font-weight: 500; font-weight: 600;
font-size: 14px; font-size: 14px;
line-height: 22px; line-height: 22px;
color: rgba(0, 0, 0, 0.9); color: rgba(0, 0, 0, 0.9);
...@@ -213,8 +214,8 @@ export default { ...@@ -213,8 +214,8 @@ export default {
overflow: hidden; overflow: hidden;
.sub-label { .sub-label {
font-weight: 400; font-weight: 400;
font-size: 10px; font-size: 12px;
line-height: 16px; line-height: 20px;
color: #00000066; color: #00000066;
} }
} }
...@@ -263,11 +264,27 @@ export default { ...@@ -263,11 +264,27 @@ export default {
} }
} }
} }
.container { .container-wrapper {
overflow: hidden;
box-sizing: border-box;
border-radius: 8px; border-radius: 8px;
margin-top: 4px; overflow: hidden;
width: 100%;
> .row-wrapper {
}
.container {
overflow: hidden;
box-sizing: border-box;
margin-top: 4px;
.more-collapse {
::v-deep .col-wrapper {
&:last-child {
border-bottom-right-radius: 8px;
}
&:nth-last-child(2) {
border-bottom-left-radius: 8px;
}
}
}
}
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!