feat(admin): 管理端 UI/UX 深度优化——错误/加载/空状态、表单快捷键、移动端适配与无障碍

This commit is contained in:
2026-08-08 15:05:33 +08:00
parent 57639a3869
commit a0829f17ce
54 changed files with 702 additions and 369 deletions

View File

@@ -8,6 +8,7 @@ import { EditOutlined } from '@ant-design/icons';
import dayjs from 'dayjs';
import api from '../../api';
import { message } from '../../ui/app-message';
import { RefreshButton } from '../../components/RefreshButton';
import EditableCell from '../../components/EditableCell';
import PermissionButton from '../../components/PermissionButton';
import { usePermission } from '../../hooks/usePermission';
@@ -211,6 +212,7 @@ const TeachersPage: React.FC = () => {
{
title: '操作',
key: 'actions',
fixed: 'right' as const,
width: 100,
render: (_: unknown, r: TeacherRow) => (
<PermissionButton
@@ -252,6 +254,7 @@ const TeachersPage: React.FC = () => {
}}
style={{ width: 220 }}
/>
<RefreshButton loading={isFetching} onRefresh={() => void refetch()} />
</Space>
{isError ? (
<QueryErrorState