chore: upgrade antd 6.3.3

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent d99475bb80
commit a86bfe7fd3
8 changed files with 1980 additions and 477 deletions
+21 -21
View File
@@ -73,18 +73,18 @@ export default [
selectedIcon: 'icon-audio-filled', selectedIcon: 'icon-audio-filled',
defaultIcon: 'icon-audio1', defaultIcon: 'icon-audio1',
component: './playground/speech/index' component: './playground/speech/index'
},
{
name: 'video',
title: 'Video',
path: '/playground/video',
key: 'video',
icon: 'icon-video-outline',
hideInMenu: false,
selectedIcon: 'icon-video-filled02',
defaultIcon: 'icon-video-outline',
component: './playground/video'
} }
// {
// name: 'video',
// title: 'Video',
// path: '/playground/video',
// key: 'video',
// icon: 'icon-video-outline',
// hideInMenu: false,
// selectedIcon: 'icon-video-filled02',
// defaultIcon: 'icon-video-outline',
// component: './playground/video'
// }
] ]
}, },
{ {
@@ -242,16 +242,16 @@ export default [
'/cluster-management/clusters/create' '/cluster-management/clusters/create'
] ]
}, },
{ // {
name: 'clusterDetail', // name: 'clusterDetail',
path: '/cluster-management/clusters/detail', // path: '/cluster-management/clusters/detail',
key: 'clusterDetail', // key: 'clusterDetail',
icon: 'icon-cluster2-outline', // icon: 'icon-cluster2-outline',
selectedIcon: 'icon-cluster2-filled', // selectedIcon: 'icon-cluster2-filled',
defaultIcon: 'icon-cluster2-outline', // defaultIcon: 'icon-cluster2-outline',
hideInMenu: true, // hideInMenu: true,
component: './cluster-management/cluster-detail' // component: './cluster-management/cluster-detail'
}, // },
{ {
name: 'credentials', name: 'credentials',
path: '/cluster-management/credentials', path: '/cluster-management/credentials',
+1 -1
View File
@@ -31,7 +31,7 @@
"@xterm/xterm": "^5.5.0", "@xterm/xterm": "^5.5.0",
"ahooks": "^3.8.5", "ahooks": "^3.8.5",
"ansi-to-html": "^0.7.2", "ansi-to-html": "^0.7.2",
"antd": "^6.1.2", "antd": "^6.3.3",
"antd-style": "^3.6.2", "antd-style": "^3.6.2",
"axios": "^1.8.2", "axios": "^1.8.2",
"classnames": "^2.5.1", "classnames": "^2.5.1",
+1942 -448
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

+1 -1
View File
@@ -211,7 +211,7 @@ const RowTextarea: React.FC<SystemMessageProps> = (props) => {
{!expanded && data.text && ( {!expanded && data.text && (
<SmallCloseButton onClick={handleClear}></SmallCloseButton> <SmallCloseButton onClick={handleClear}></SmallCloseButton>
)} )}
{UploadImageButton} {/* {UploadImageButton} */}
<Tooltip title={intl.formatMessage({ id: 'common.button.delete' })}> <Tooltip title={intl.formatMessage({ id: 'common.button.delete' })}>
<Button <Button
danger danger
@@ -9,7 +9,7 @@ import { tableSorter } from '@/config/settings';
import GrafanaIcon from '@/pages/_components/grafana-icon'; import GrafanaIcon from '@/pages/_components/grafana-icon';
import { StarFilled } from '@ant-design/icons'; import { StarFilled } from '@ant-design/icons';
import { useIntl } from '@umijs/max'; import { useIntl } from '@umijs/max';
import { Tooltip, Typography } from 'antd'; import { Tooltip } from 'antd';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { useAtomValue } from 'jotai'; import { useAtomValue } from 'jotai';
import { useMemo } from 'react'; import { useMemo } from 'react';
@@ -100,9 +100,7 @@ const useClusterColumns = (
span: 3, span: 3,
render: (text: string, record: ClusterListItem) => ( render: (text: string, record: ClusterListItem) => (
<> <>
<Typography.Link onClick={() => onCellClick?.(record, 'name')}> <AutoTooltip ghost>{record.name}</AutoTooltip>
{record.name}
</Typography.Link>
{record.is_default && ( {record.is_default && (
<Tooltip <Tooltip
title={intl.formatMessage({ title={intl.formatMessage({
+13 -2
View File
@@ -1,3 +1,4 @@
import VideoPoster from '@/assets/images/video-poster.png';
import { setRouteCache } from '@/atoms/route-cache'; import { setRouteCache } from '@/atoms/route-cache';
import AlertInfo from '@/components/alert-info'; import AlertInfo from '@/components/alert-info';
import IconFont from '@/components/icon-font'; import IconFont from '@/components/icon-font';
@@ -180,10 +181,20 @@ const GroundVideo: React.FC<MessageProps> = forwardRef((props, ref) => {
boxShadow: '0 4px 24px rgba(0,0,0,0.12)' boxShadow: '0 4px 24px rgba(0,0,0,0.12)'
}} }}
> >
<Spin spinning={loading}> <Spin
spinning={loading}
styles={{
root: {
height: '100%'
},
container: {
height: '100%'
}
}}
>
<video <video
src={videoList[0]?.dataUrl} src={videoList[0]?.dataUrl}
poster="https://placehold.co/640x360.png?text=GPUStack" poster={VideoPoster}
controls controls
disablePictureInPicture disablePictureInPicture
style={{ style={{