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:
@@ -348,7 +348,7 @@ const WalletsPage: React.FC = () => {
|
||||
extra="充值填正数;调减余额时填写负数。充值后会按最早账单优先自动补扣。"
|
||||
rules={[{ required: true, message: '请输入金额' }]}
|
||||
>
|
||||
<InputNumber precision={2} style={{ width: '100%' }} addonBefore="¥" />
|
||||
<InputNumber precision={2} style={{ width: '100%' }} prefix="¥" />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item name="description" label="备注">
|
||||
@@ -384,7 +384,7 @@ const WalletsPage: React.FC = () => {
|
||||
extra="充值填正数;调减余额时填写负数。充值后会按最早账单优先自动补扣。"
|
||||
rules={[{ required: true, message: '请输入金额' }]}
|
||||
>
|
||||
<InputNumber precision={2} style={{ width: '100%' }} addonBefore="¥" />
|
||||
<InputNumber precision={2} style={{ width: '100%' }} prefix="¥" />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item name="description" label="备注">
|
||||
|
||||
Reference in New Issue
Block a user