feat: 新增中部轮换大屏组件,优化信息展示方式
This commit is contained in:
+220
-3
@@ -264,7 +264,7 @@
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex-shrink: 0;
|
||||
padding: 0 clamp(12px, 1.5vw, 22px);
|
||||
padding: 0 clamp(12px, 1.5vw, 22px) 10px;
|
||||
}
|
||||
.bd-feed-row .bd-feed-card {
|
||||
height: 128px;
|
||||
@@ -294,6 +294,187 @@
|
||||
font-size: 9.5px;
|
||||
}
|
||||
|
||||
/* ============ 中部轮换大屏(自动轮换 · 降低信息密度) ============ */
|
||||
.bd-rotator {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: clamp(6px, 0.7vw, 10px) clamp(12px, 1.5vw, 22px);
|
||||
}
|
||||
.bd-rotator-tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.bd-rot-tab {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 16px;
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
color: var(--bd-sub);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border: 1px solid rgba(47, 107, 255, 0.12);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bd-rot-tab .appica-ico { color: var(--bd-blue); }
|
||||
.bd-rot-tab:hover { border-color: rgba(47, 107, 255, 0.4); color: var(--bd-ink); }
|
||||
.bd-rot-tab.active {
|
||||
color: #fff;
|
||||
background: linear-gradient(140deg, var(--bd-blue), var(--bd-cyan));
|
||||
border-color: transparent;
|
||||
box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35);
|
||||
}
|
||||
.bd-rot-tab.active .appica-ico { color: #fff; }
|
||||
.bd-rot-progress {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
height: 2.5px;
|
||||
width: 0;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
opacity: 0;
|
||||
}
|
||||
.bd-rot-tab.active .bd-rot-progress {
|
||||
opacity: 1;
|
||||
animation: bdRotProgress 10s linear forwards;
|
||||
}
|
||||
@keyframes bdRotProgress { from { width: 0; } to { width: 100%; } }
|
||||
|
||||
.bd-rotator-stage {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
.bd-rotator-slide {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
animation: bdRotIn 0.5s ease both;
|
||||
}
|
||||
@keyframes bdRotIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* 组视图:2 列 / 3 列网格 */
|
||||
.bd-view {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
gap: clamp(10px, 1vw, 16px);
|
||||
}
|
||||
.bd-view-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.bd-view-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.bd-view > .bd-card { min-width: 0; min-height: 0; }
|
||||
|
||||
/* 大屏面板(一次只展示一个,布局舒展) */
|
||||
.bd-big {
|
||||
padding: clamp(14px, 1.4vw, 22px);
|
||||
}
|
||||
.bd-big-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
gap: clamp(16px, 2vw, 32px);
|
||||
}
|
||||
.bd-big-left {
|
||||
flex: 1.5;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.bd-big-right {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.bd-big-chart { justify-content: center; }
|
||||
.bd-big-chart .bd-chart-svg { height: 100%; }
|
||||
.bd-big-right .bd-donut-block { justify-content: center; }
|
||||
|
||||
/* 大数字统计块 */
|
||||
.bd-big-stats { gap: 12px; }
|
||||
.bd-big-stat {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 14px 20px;
|
||||
border-radius: 14px;
|
||||
background: rgba(244, 248, 253, 0.8);
|
||||
border: 1px solid rgba(47, 107, 255, 0.08);
|
||||
}
|
||||
.bd-big-stat span { font-size: 13px; color: var(--bd-sub); white-space: nowrap; }
|
||||
.bd-big-stat b {
|
||||
font-family: "JetBrains Mono", "Oswald", monospace;
|
||||
font-size: 26px;
|
||||
font-weight: 700;
|
||||
color: var(--bd-ink);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bd-big-stat b em {
|
||||
font-style: normal;
|
||||
font-size: 13px;
|
||||
color: var(--bd-sub);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
/* TOKEN 大屏:左图表 + 右环形图/模型/数值 */
|
||||
.bd-big-token .bd-big-right {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.bd-big-token .bd-model-list { flex: 1; gap: 8px; }
|
||||
.bd-big-token .bd-value-list { flex: 0 0 64px; gap: 8px; }
|
||||
|
||||
/* 工具调用大屏:左统计 + 右大条形 */
|
||||
.bd-big-bars { justify-content: center; }
|
||||
.bd-big-bars .bd-hbars { gap: 16px; }
|
||||
.bd-big-bars .bd-hbar { grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 14px; }
|
||||
.bd-big-bars .bd-hbar-name { font-size: 14px; }
|
||||
.bd-big-bars .bd-hbar-track { height: 16px; }
|
||||
.bd-big-bars .bd-hbar-val { font-size: 14px; }
|
||||
|
||||
/* 入园项目大屏:左环形图+图例 · 右名录滚动 */
|
||||
.bd-big-zone {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 28px;
|
||||
}
|
||||
.bd-big-zone .bd-zone-legend { grid-template-columns: 1fr; gap: 6px; }
|
||||
.bd-big-zone .bd-zone-row { font-size: 13px; }
|
||||
.bd-big-ticker { gap: 6px; }
|
||||
.bd-big-ticker .bd-ticker { flex: 1; }
|
||||
.bd-big-ticker .bd-ticker-item { padding: 6px 12px; font-size: 13px; }
|
||||
|
||||
/* 带动就业大屏:左大柱状 + 右统计 */
|
||||
.bd-big-jobsbars { justify-content: center; }
|
||||
.bd-big-jobsbars .bd-jobs-bars { gap: 16px; }
|
||||
.bd-big-jobsbars .bd-vbar-val { font-size: 15px; }
|
||||
.bd-big-jobsbars .bd-vbar-name { font-size: 12px; }
|
||||
|
||||
/* 营收大屏:左大折线 + 右统计/标签 */
|
||||
.bd-big-revenue .bd-big-right { gap: 12px; }
|
||||
.bd-big-revenue .bd-revenue-tags { margin-top: 2px; }
|
||||
|
||||
/* ============ 卡片(通透玻璃,弱化卡片感) ============ */
|
||||
.bd-card {
|
||||
position: relative;
|
||||
@@ -351,6 +532,8 @@
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 标签(轻量徽标) */
|
||||
@@ -1137,6 +1320,19 @@
|
||||
.bd-model-list { flex-basis: 88px; }
|
||||
.bd-value-list { flex-basis: 44px; }
|
||||
.bd-split-tri .bd-donut { width: 64px; height: 64px; }
|
||||
.bd-rot-tab { padding: 4px 11px; font-size: 11.5px; }
|
||||
.bd-big { padding: 10px 14px; }
|
||||
.bd-big-stat { padding: 9px 14px; }
|
||||
.bd-big-stat b { font-size: 19px; }
|
||||
.bd-big-stat span { font-size: 11.5px; }
|
||||
.bd-big-body { gap: 14px; }
|
||||
.bd-big .bd-donut { width: 108px; height: 108px; }
|
||||
.bd-big-zone .bd-zone-row { font-size: 11.5px; }
|
||||
.bd-big-ticker .bd-ticker-item { padding: 4px 10px; font-size: 11.5px; }
|
||||
.bd-big-bars .bd-hbar-name { font-size: 12px; }
|
||||
.bd-big-bars .bd-hbar-track { height: 12px; }
|
||||
.bd-big-bars .bd-hbar-val { font-size: 12px; }
|
||||
.bd-big-jobsbars .bd-vbar-name { font-size: 10px; }
|
||||
}
|
||||
/* 窄屏:收缩 TOKEN 卡内部列宽 + 概览条压缩 */
|
||||
@media (max-width: 1500px) {
|
||||
@@ -1576,12 +1772,33 @@
|
||||
gap: 5px;
|
||||
}
|
||||
/* 卡片标题右侧的概括数据内联 */
|
||||
/* 卡片标题右侧的概括数据内联(强制一行,不允许超出) */
|
||||
.bd-head-stats {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
flex-wrap: nowrap;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
.bd-head-stats .bd-ost-chip {
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
padding: 2px 7px;
|
||||
font-size: 9.5px;
|
||||
gap: 3px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bd-head-stats .bd-ost-chip i {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 70px;
|
||||
}
|
||||
.bd-head-stats .bd-ost-chip b {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 120px;
|
||||
}
|
||||
.bd-ost-chip {
|
||||
display: inline-flex;
|
||||
|
||||
Reference in New Issue
Block a user