refactor: 迁移 Ant Design 6 弃用的 Alert 与 Space 属性
This commit is contained in:
1 parent
ca1b873a50
commit
3a0099e674
18 files changed
+38
-43
No files matched your search
@@ -110,7 +110,7 @@ export function TemplateManagementPage() {
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
message="导入规则"
|
||||
title="导入规则"
|
||||
description="系统会校验文件路径、链接、文件数量、解压体积、template.json、package.json 和 checksums.json;包内脚本不会被执行。"
|
||||
/>
|
||||
{importing.isError ? <ErrorNote error={importing.error} /> : null}
|
||||
@@ -118,7 +118,7 @@ export function TemplateManagementPage() {
|
||||
<Alert
|
||||
type="success"
|
||||
showIcon
|
||||
message={importing.data.idempotent ? "模板版本已存在,未重复写入" : "模板版本导入成功"}
|
||||
title={importing.data.idempotent ? "模板版本已存在,未重复写入" : "模板版本导入成功"}
|
||||
description={`${importing.data.version.packageKey}@${importing.data.version.version}`}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
@@ -78,7 +78,7 @@ export function TemplatePackagePreviewModal({
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
message="模板演示预览"
|
||||
title="模板演示预览"
|
||||
description="演示内容不属于真实品牌,咨询提交和客户记录读取已禁用。"
|
||||
/>
|
||||
{!industry ? (
|
||||
@@ -92,12 +92,7 @@ export function TemplatePackagePreviewModal({
|
||||
{data ? (
|
||||
<>
|
||||
{data.preview.diagnostics.map((diagnostic) => (
|
||||
<Alert
|
||||
key={diagnostic.code}
|
||||
type="warning"
|
||||
showIcon
|
||||
message={diagnostic.message}
|
||||
/>
|
||||
<Alert key={diagnostic.code} type="warning" showIcon title={diagnostic.message} />
|
||||
))}
|
||||
<Typography.Text type="secondary">
|
||||
演示数据:
|
||||
|
||||
Reference in new issue
Block a user