Commit cfd278f0 by Jaxon

fix: 展开与收起的 文字对齐

fix: 每个 statisticsItem 的value 设置最小高度,以免空值时, 高度坍塌
fix: 对齐 展开与收起的 图标
1 parent 9cf4f1f2
...@@ -59,6 +59,7 @@ Component({ ...@@ -59,6 +59,7 @@ Component({
expanded: false, expanded: false,
hasMore: false, hasMore: false,
moreHeight: 0, moreHeight: 0,
arrowIcon: "/packageIndex/images/down-arrow-double.png",
tooltipIconPath: "/images/tips-icon.png", tooltipIconPath: "/images/tips-icon.png",
}, },
......
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
font-size: var(--fontSize32); font-size: var(--fontSize32);
line-height: var(--fontSize40); line-height: var(--fontSize40);
color: var(--primary-color); color: var(--primary-color);
min-height: var(--fontSize40);
} }
} }
} }
...@@ -161,34 +162,32 @@ ...@@ -161,34 +162,32 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%); background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%);
} .toggle-more-content {
display: flex;
.toggle-icon { align-items: center;
margin-left: var(--fontSize4); justify-content: center;
transform: rotate(90deg); padding: var(--fontSize16) 0;
transition: transform 300ms ease; color: rgba(0, 0, 0, 0.9);
} font-size: var(--fontSize24);
line-height: var(--fontSize40);
.toggle-icon.is-expanded { .toggle-more-text {
transform: rotate(-90deg); line-height: inherit;
} font-weight: 400;
font-size: var(--fontSize24);
.toggle-more-content { line-height: var(--fontSize40);
display: flex; color: #00000066;
align-items: center; }
justify-content: center; .toggle-icon {
padding: var(--fontSize16) 0; width: var(--fontSize32);
color: rgba(0, 0, 0, 0.9); height: var(--fontSize32);
font-size: var(--fontSize24); margin-left: var(--fontSize4);
line-height: var(--fontSize40); transform: rotate(0deg);
} transition: transform 300ms ease;
&.is-expanded {
.toggle-more-text { transform: rotate(-180deg);
line-height: inherit; }
font-weight: 400; }
font-size: var(--fontSize24); }
line-height: var(--fontSize40);
color: #00000066;
} }
.more-collapse { .more-collapse {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!