v1.2.5 管理后台表格点击表头排序:任意字段升序/降序切换(▲▼指示),后端字段白名单校验防注入

This commit is contained in:
2026-08-17 23:16:05 +08:00
parent 437e707893
commit 0a3b075644
3 changed files with 33 additions and 6 deletions
+3
View File
@@ -46,6 +46,9 @@ body { background:var(--bg); color:var(--txt); font-family:"PingFang SC","Micros
table { width:100%; border-collapse:collapse; }
th, td { padding:9px 11px; text-align:left; font-size:13px; border-bottom:1px solid var(--line); white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
th { background:var(--bg2); color:var(--sub); font-weight:600; font-size:12px; position:sticky; top:0; }
th.sortable { cursor:pointer; user-select:none; transition:.15s; }
th.sortable:hover { color:var(--orange2); }
th.sort-active { color:var(--orange2); }
tr:hover td { background:rgba(249,115,22,.05); }
td.num { text-align:center; }
.row-ops { display:flex; gap:6px; }