feat(platform): add alert notification center

This commit is contained in:
lingniu
2026-07-05 01:45:20 +08:00
parent f45cf90b70
commit 7642f9c9eb
3 changed files with 161 additions and 4 deletions

View File

@@ -1237,6 +1237,81 @@ button.vp-realtime-command-item:focus-visible {
gap: 12px;
}
.vp-alert-center-board {
display: grid;
grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
gap: 16px;
}
.vp-alert-center-summary {
min-height: 168px;
padding: 12px;
border: 1px solid rgba(245, 158, 11, 0.32);
border-radius: var(--vp-radius);
background: #fff8ed;
display: grid;
gap: 10px;
align-content: start;
}
.vp-alert-center-summary strong {
color: var(--vp-text);
font-size: 20px;
line-height: 26px;
word-break: break-word;
}
.vp-alert-center-summary span {
color: var(--vp-text-muted);
font-size: 13px;
line-height: 20px;
}
.vp-alert-center-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 12px;
}
.vp-alert-center-item {
min-height: 168px;
padding: 12px;
border: 1px solid var(--vp-border);
border-radius: var(--vp-radius);
background: #fbfcff;
display: grid;
gap: 10px;
align-content: start;
text-align: left;
font: inherit;
cursor: pointer;
}
.vp-alert-center-item:disabled {
cursor: not-allowed;
opacity: 0.68;
}
.vp-alert-center-item:not(:disabled):hover,
.vp-alert-center-item:not(:disabled):focus-visible {
border-color: rgba(245, 158, 11, 0.48);
background: #fff8ed;
outline: none;
}
.vp-alert-center-item strong {
color: var(--vp-text);
font-size: 20px;
line-height: 26px;
word-break: break-word;
}
.vp-alert-center-item span {
color: var(--vp-text-muted);
font-size: 13px;
line-height: 20px;
}
.vp-alert-flow-item {
min-height: 96px;
padding: 12px;
@@ -3056,6 +3131,8 @@ button.vp-realtime-command-item:focus-visible {
.vp-alert-impact-board,
.vp-alert-impact-grid,
.vp-alert-dispatch-grid,
.vp-alert-center-board,
.vp-alert-center-grid,
.vp-alert-command-board,
.vp-alert-command-grid,
.vp-notification-coverage-board,