refactor: 迁移 Ant Design 6 弃用的 Alert 与 Space 属性

This commit is contained in:
que01 committed 2026-10-21 10:30:03 +08:00
1 parent ca1b873a50
commit 3a0099e674
18 files changed
+38 -43

No files matched your search

@@ -59,7 +59,7 @@ export function InquiryPreviewEditor({
return (
<Alert
type="error"
message="表单读取失败"
title="表单读取失败"
action={<Button onClick={() => void query.refetch()}>重试</Button>}
/>
);
@@ -67,10 +67,10 @@ export function InquiryPreviewEditor({
return (
<Alert
type="info"
message={query.isPending ? "正在读取表单" : "未找到对应表单,请刷新后重试"}
title={query.isPending ? "正在读取表单" : "未找到对应表单,请刷新后重试"}
/>
);
if (!field) return <Alert type="warning" message="字段已不存在" />;
if (!field) return <Alert type="warning" title="字段已不存在" />;
return (
<Form<Record<string, unknown>>
form={form}