修复 antd 弃用警告
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import {
|
||||
Button, Card, Col, Input, message, Modal, Popconfirm, Row, Select, Space, Statistic, Table, Tag, Typography,
|
||||
Button, Card, Col, Input, Modal, Popconfirm, Row, Select, Space, Statistic, Table, Tag, Typography,
|
||||
} from 'antd';
|
||||
import { message } from '../utils/antdMessage';
|
||||
import type { TableProps } from 'antd';
|
||||
import { DeleteOutlined, FilterOutlined, ImportOutlined, LoginOutlined, MobileOutlined, ReloadOutlined, SearchOutlined, TagOutlined } from '@ant-design/icons';
|
||||
import {
|
||||
@@ -376,7 +377,7 @@ export default function HuyaAccountsPage() {
|
||||
title: '虎牙账号',
|
||||
width: 180,
|
||||
render: (_: unknown, record) => (
|
||||
<Space direction="vertical" size={0}>
|
||||
<Space orientation="vertical" size={0}>
|
||||
<Text strong>{record.nickname || record.username || record.uid || '-'}</Text>
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
UID {record.uid || record.yyuid || '-'}
|
||||
@@ -440,7 +441,7 @@ export default function HuyaAccountsPage() {
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
render: (value: string, record) => value ? (
|
||||
<Space direction="vertical" size={0}>
|
||||
<Space orientation="vertical" size={0}>
|
||||
<Text>{value}</Text>
|
||||
{record.game_channel ? (
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>{record.game_channel}</Text>
|
||||
@@ -659,7 +660,7 @@ export default function HuyaAccountsPage() {
|
||||
confirmLoading={importing}
|
||||
width={720}
|
||||
>
|
||||
<Space direction="vertical" style={{ width: '100%' }} size={12}>
|
||||
<Space orientation="vertical" style={{ width: '100%' }} size={12}>
|
||||
<Input
|
||||
placeholder="标签,可选"
|
||||
value={importTag}
|
||||
@@ -711,7 +712,7 @@ export default function HuyaAccountsPage() {
|
||||
closable={!passwordImporting}
|
||||
width={720}
|
||||
>
|
||||
<Space direction="vertical" style={{ width: '100%' }} size={12}>
|
||||
<Space orientation="vertical" style={{ width: '100%' }} size={12}>
|
||||
<TextArea
|
||||
rows={10}
|
||||
value={passwordImportText}
|
||||
@@ -757,7 +758,7 @@ export default function HuyaAccountsPage() {
|
||||
closable={!(smsSending || smsLogging)}
|
||||
width={520}
|
||||
>
|
||||
<Space direction="vertical" style={{ width: '100%' }} size={12}>
|
||||
<Space orientation="vertical" style={{ width: '100%' }} size={12}>
|
||||
<Input
|
||||
value={smsPhone}
|
||||
onChange={(e) => setSmsPhone(e.target.value)}
|
||||
|
||||
Reference in New Issue
Block a user