feat(usage): add column sorting to model stats and API details tables

This commit is contained in:
Supra4E8C
2026-02-13 13:25:03 +08:00
parent 5d0232e5de
commit 7ec5329576
3 changed files with 184 additions and 54 deletions

View File

@@ -423,6 +423,37 @@
}
// API List (80%比例)
.apiSortBar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.apiSortBtn {
padding: 4px 10px;
border-radius: $radius-full;
border: 1px solid var(--border-color);
background: var(--bg-secondary);
color: var(--text-secondary);
font-size: 11px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
&:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
}
.apiSortBtnActive {
border-color: rgba(59, 130, 246, 0.5);
background: rgba(59, 130, 246, 0.10);
color: var(--text-primary);
font-weight: 600;
}
.apiList {
display: flex;
flex-direction: column;
@@ -550,6 +581,16 @@
white-space: nowrap;
}
th.sortableHeader {
cursor: pointer;
user-select: none;
transition: color 0.15s ease;
&:hover {
color: var(--text-primary);
}
}
td {
color: var(--text-primary);
}