Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
yd-csf-h5
Commits
50de254e
Commit
50de254e
authored
Oct 27, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 指标卡金额字号随屏宽伸缩,修复小程序 web-view 窄屏溢出卡片
parent
b0615cd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/components/feature/MetricCard.vue
+2
-1
No files found.
src/components/feature/MetricCard.vue
View file @
50de254e
...
@@ -13,9 +13,10 @@ defineProps<{
...
@@ -13,9 +13,10 @@ defineProps<{
:class=
"feature ? 'p-5' : 'p-4'"
:class=
"feature ? 'p-5' : 'p-4'"
>
>
<div
class=
"text-xs text-slate-500"
>
{{
label
}}
</div>
<div
class=
"text-xs text-slate-500"
>
{{
label
}}
</div>
<!-- 金额无空格不可断行,字号随屏宽伸缩,防止小屏(小程序 web-view)溢出卡片 -->
<div
<div
class=
"tnum mt-2 font-semibold tracking-tight text-slate-900"
class=
"tnum mt-2 font-semibold tracking-tight text-slate-900"
:class=
"feature ? 'text-[
28px] leading-tight' : 'text-xl
'"
:class=
"feature ? 'text-[
clamp(20px,6.4vw,28px)] leading-tight' : 'text-[clamp(13px,4.2vw,20px)]
'"
>
{{
value
}}
</div>
>
{{
value
}}
</div>
<div
v-if=
"hint"
class=
"mt-1 text-xs text-slate-400"
>
{{
hint
}}
</div>
<div
v-if=
"hint"
class=
"mt-1 text-xs text-slate-400"
>
{{
hint
}}
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment