feat(platform): add realtime vehicle snapshot

This commit is contained in:
lingniu
2026-07-05 18:32:19 +08:00
parent a04681a65f
commit 3e3bc117f7
3 changed files with 165 additions and 0 deletions

View File

@@ -2324,6 +2324,82 @@ body {
align-self: end;
}
.vp-realtime-single-snapshot {
margin-bottom: 16px;
border: 1px solid rgba(22, 100, 255, 0.16);
border-radius: var(--vp-radius);
background: #fff;
display: grid;
grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1.44fr);
overflow: hidden;
}
.vp-realtime-single-summary {
padding: 18px;
border-right: 1px solid var(--vp-border);
background: #f8fbff;
display: grid;
gap: 11px;
align-content: start;
}
.vp-realtime-single-grid {
padding: 16px;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.vp-realtime-single-item {
min-height: 146px;
padding: 12px;
border: 1px solid rgba(22, 100, 255, 0.14);
border-radius: 8px;
background: #fbfcff;
color: inherit;
cursor: pointer;
font: inherit;
text-align: left;
display: grid;
gap: 8px;
align-content: start;
}
.vp-realtime-single-item:hover,
.vp-realtime-single-item:focus-visible {
border-color: rgba(22, 100, 255, 0.42);
background: #f5f9ff;
box-shadow: var(--vp-shadow-sm);
outline: none;
}
.vp-realtime-single-item:disabled {
cursor: not-allowed;
opacity: 0.62;
}
.vp-realtime-single-item strong {
color: var(--vp-text);
font-size: 18px;
line-height: 24px;
word-break: break-word;
}
.vp-realtime-single-item span {
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
word-break: break-word;
}
.vp-realtime-single-item em {
color: var(--vp-primary);
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 18px;
}
.vp-time-window-monitor {
margin-bottom: 16px;
overflow: hidden;
@@ -8590,6 +8666,8 @@ button.vp-realtime-command-item:focus-visible {
.vp-realtime-map-dispatch,
.vp-realtime-map-dispatch-grid,
.vp-realtime-customer-steps,
.vp-realtime-single-snapshot,
.vp-realtime-single-grid,
.vp-time-window-monitor .semi-card-body,
.vp-time-window-controls,
.vp-time-window-actions,