feat: 流量/CPU/内存三图并列的性能趋势

This commit is contained in:
jinghui committed 2026-10-26 18:38:28 +08:00
1 parent c31379c8b0
commit 1b1b413cf3
5 files changed
+115 -64

No files matched your search

+15 -14
View File
@@ -289,22 +289,23 @@ table.tb th.num{text-align:right}
.empty.sm{padding:16px;font-size:12px;text-align:center;color:#8b95a5}
.empty.ok-empty{padding:22px;text-align:center;color:#12a15f;background:#f3fbf6;border:1px dashed #cdebd9;border-radius:12px;font-size:13px}
/* 流量卡片 */
.traffic-box{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);margin-bottom:14px;padding:12px 14px 8px}
.traffic-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.traffic-head b{font-size:13.5px;color:#26303f}
.tf-now{font-size:12px;color:#3d4859;font-weight:600;font-variant-numeric:tabular-nums}
/* 性能趋势(三图一行) */
.trend-box{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);margin-bottom:14px;padding:11px 13px 9px}
.trend-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.trend-head b{font-size:13.5px;color:#26303f}
.trend-head .muted{font-size:11.5px}
.tf-tabs{margin-left:auto;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.tf-tab{font:inherit;font-size:12px;padding:3px 9px;border-radius:7px;border:1px solid var(--line);background:#fbfcfe;color:#5b6a85;cursor:pointer}
.tf-tab:hover{background:#f2f6fd}
.tf-tab.on{background:#eaf1fd;border-color:#bcd4f7;color:#1a5fd0;font-weight:600}
.tf-date{font:inherit;font-size:12px;padding:2px 6px;border:1px solid var(--line);border-radius:7px;color:#5b6a85;background:#fbfcfe}
.tf-sum{display:flex;gap:16px;flex-wrap:wrap;align-items:baseline;margin:8px 0 2px;font-size:12px;color:#78839a}
.tf-sum b{color:#26303f;font-size:13px}
.tf-sum b.down{color:#1a73e8}
.tf-sum b.up{color:#f79009}
.tf-chart{width:100%;height:150px;display:block;margin-top:4px}
.tf-legend{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#78839a;margin:2px 0 4px}
.tf-legend .lg{width:14px;height:3px;border-radius:2px;display:inline-block}
.tf-legend .lg.down{background:#1a73e8}
.tf-legend .lg.up{background:#f79009}
.trend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:980px){.trend-grid{grid-template-columns:1fr}}
.trend-card{border:1px solid var(--line);border-radius:10px;padding:8px 9px 6px;background:#fcfdff;min-width:0}
.tc-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:2px}
.tc-title{font-size:12.5px;font-weight:600;color:#3d4859}
.tc-now{font-size:11.5px;color:#1a73e8;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-card:nth-child(2) .tc-now{color:#12a15f}
.trend-card:nth-child(3) .tc-now{color:#7a5af8}
.tc-foot{font-size:11px;color:#8b95a5;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-chart{width:100%;height:112px;display:block}