fix(admin): 迁移 antd v6 弃用 API 并清理控制台警告

- Card bordered -> variant;Modal maskClosable -> mask.closable
- InputNumber addonBefore/After -> prefix/suffix;Statistic valueStyle -> styles.content
- Alert message -> title;Steps items.description -> items.content
- 移除考勤页未挂载 Form 上的 setFieldsValue,消除 useForm 警告
This commit is contained in:
2026-08-06 11:58:58 +08:00
parent 2e7bb81ebd
commit 026a9f35d8
12 changed files with 27 additions and 29 deletions

View File

@@ -98,7 +98,7 @@ const FormPreview: React.FC<FormPreviewProps> = ({ form, disabled, onAction }) =
</Typography.Text>
)}
{finished ? (
<Alert type="success" showIcon message="已提交AI 正在处理…" />
<Alert type="success" showIcon title="已提交AI 正在处理…" />
) : (
<Form
layout="vertical"

View File

@@ -341,7 +341,7 @@ const ReviewPreview: React.FC<ReviewPreviewProps> = ({ review, disabled, onActio
/>
)}
{activeStatus === 'failed' && (
<Alert type="error" showIcon message="本步导入失败,可重试" />
<Alert type="error" showIcon title="本步导入失败,可重试" />
)}
{activeSection.resultSummary && activeStatus === 'submitted' && (
<Typography.Text type="secondary" className="ai-chat-review-card__step-result">
@@ -377,7 +377,7 @@ const ReviewPreview: React.FC<ReviewPreviewProps> = ({ review, disabled, onActio
</Popconfirm>
)}
</Flex>
{submitted && <Alert type="success" showIcon message="已确认导入,数据已入库" />}
{submitted && <Alert type="success" showIcon title="已确认导入,数据已入库" />}
{review.error && (
<Alert
type="error"

View File

@@ -456,7 +456,7 @@ export const ImportWizardModal: React.FC<ImportWizardModalProps> = ({
</Flex>
) : allCommitted ? (
<Space orientation="vertical" size={12} style={{ width: '100%' }}>
<Alert type="success" showIcon message="全部阶段已提交完成" />
<Alert type="success" showIcon title="全部阶段已提交完成" />
<Descriptions
bordered
size="small"
@@ -607,7 +607,7 @@ export const ImportWizardModal: React.FC<ImportWizardModalProps> = ({
)}
</Space>
) : (
<Alert type="warning" showIcon message="当前没有可处理的阶段" />
<Alert type="warning" showIcon title="当前没有可处理的阶段" />
)}
</Space>
)}

View File

@@ -329,7 +329,7 @@ const JinshujuMatchModal: React.FC<MatchModalProps> = ({ open, onClose, onApplie
open={open && canEnterModal}
onCancel={handleClose}
width={step === 'match' || step === 'applying' ? 900 : 640}
maskClosable={false}
mask={{ closable: false }}
footer={
step === 'connection'
? [