feat(web): Field 标签自动关联控件 + 全局壳无障碍(skip link/设置可访问名/抽屉焦点归还)
This commit is contained in:
19
apps/web/components/BackendDownNotice.tsx
Normal file
19
apps/web/components/BackendDownNotice.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { StatusNote } from "./ui/StatusNote";
|
||||
|
||||
interface BackendDownNoticeProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
// 后端不可达时的统一提示(多个页面 backend-down 分支复用)。
|
||||
export function BackendDownNotice({ className }: BackendDownNoticeProps) {
|
||||
return (
|
||||
<StatusNote
|
||||
variant="danger"
|
||||
title="无法连接后端服务"
|
||||
role="alert"
|
||||
className={className}
|
||||
>
|
||||
请确认后端 API 已启动后刷新本页。
|
||||
</StatusNote>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user