feat(admin): 管理端 UI/UX 深度优化——错误/加载/空状态、表单快捷键、移动端适配与无障碍
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user