Commit c31bfdea by Jaxon

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

1 parent f0fbf694
......@@ -42,22 +42,23 @@
:data="data"
:schema="specialSchema">
</SpecialItem>
<GridItem :data="data" :schema="defaultSchema"></GridItem>
<div class="container" gutter="4">
<div v-show="showMoreToggle" span="24">
<div class="more-collapse"
:style="{
height: expanded ? (`${moreHeight}px`) : '0px',
}">
<div class="more-inner">
<GridItem :data="data" :schema="moreSchema"></GridItem>
<div class="container-wrapper">
<GridItem :data="data" :schema="defaultSchema"></GridItem>
<div class="container" gutter="4">
<div v-show="showMoreToggle" span="24">
<div class="more-collapse"
:style="{
height: expanded ? (`${moreHeight}px`) : '0px',
}">
<div class="more-inner">
<GridItem :data="data" :schema="moreSchema"></GridItem>
</div>
</div>
</div>
<!-- 用来记录高度 -->
<div class="more-measure">
<div ref="moreMeasureInner" class="more-inner">
<GridItem :data="data" :schema="moreSchema"></GridItem>
<!-- 用来记录高度 -->
<div class="more-measure">
<div ref="moreMeasureInner" class="more-inner">
<GridItem :data="data" :schema="moreSchema"></GridItem>
</div>
</div>
</div>
</div>
......@@ -199,13 +200,13 @@ export default {
> .title-wrapper {
display: flex;
align-items: center;
padding: 8px;
padding: 0 8px 8px;
border-bottom: 1px solid #eeeef0;
overflow: hidden;
.title-label-wrapper {
flex-shrink: 0;
flex: 1;
font-weight: 500;
font-weight: 600;
font-size: 14px;
line-height: 22px;
color: rgba(0, 0, 0, 0.9);
......@@ -213,8 +214,8 @@ export default {
overflow: hidden;
.sub-label {
font-weight: 400;
font-size: 10px;
line-height: 16px;
font-size: 12px;
line-height: 20px;
color: #00000066;
}
}
......@@ -263,11 +264,27 @@ export default {
}
}
}
.container {
overflow: hidden;
box-sizing: border-box;
.container-wrapper {
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!