fix: delay querying backends

This commit is contained in:
jialin
2026-03-19 12:28:18 +08:00
committed by jialin
parent fd1a079271
commit a6af51dc32
19 changed files with 40 additions and 21 deletions
@@ -152,6 +152,7 @@ const SingleImage: React.FC<SingleImageProps> = (props) => {
}}
>
<Spin
size="middle"
indicator={<LoadingOutlined style={{ fontSize: 32 }} spin />}
/>
</span>
+3 -1
View File
@@ -144,7 +144,9 @@ const DeleteModal = forwardRef((props, ref) => {
onCancel={handleCancel}
destroyOnHidden={false}
closeIcon={false}
maskClosable={false}
mask={{
closable: false
}}
keyboard={false}
width={460}
styles={{
+1 -1
View File
@@ -32,7 +32,7 @@ const Loading = (props: { width: number; height: number }) => {
const { width, height } = props;
return (
<LoadWrapper width={width} height={height}>
<Spin spinning></Spin>
<Spin spinning size="middle"></Spin>
</LoadWrapper>
);
};
@@ -319,6 +319,7 @@ const LogsViewer: React.FC<LogsViewerProps> = forwardRef((props, ref) => {
></LogsList>
</div>
<Spin
size="middle"
spinning={loading}
className={classNames({
loading: loading
+2 -8
View File
@@ -10,13 +10,7 @@ import React from 'react';
* @returns
*/
const ScrollerModal = (props: DrawerProps) => {
const {
title,
closable = true,
maskClosable = false,
styles,
...restProps
} = props;
const { title, closable = true, mask, styles, ...restProps } = props;
const { EscHint } = useEscHint({
enabled: !props.keyboard && props.open
});
@@ -48,7 +42,7 @@ const ScrollerModal = (props: DrawerProps) => {
}
}}
closable={false}
maskClosable={maskClosable}
mask={mask}
title={
<div className="flex-between flex-center">
<span
@@ -217,7 +217,9 @@ const TableRow: React.FC<
</div>
{expanded && !disableExpand && (
<div className="expanded-row">
<Spin spinning={loading}>{renderChildrenData()}</Spin>
<Spin spinning={loading} size="middle">
{renderChildrenData()}
</Spin>
</div>
)}
</div>
+1 -1
View File
@@ -179,7 +179,7 @@ const SealTable: React.FC<SealTableProps & { pagination?: PaginationProps }> = (
showSorterTooltip={showSorterTooltip}
></Header>
</div>
<Spin spinning={loading}>
<Spin spinning={loading} size="middle">
<TableBody
empty={empty}
dataSource={props.dataSource}
+4 -2
View File
@@ -81,7 +81,9 @@ const ShortCuts: React.FC<{ intl: any }> = ({ intl }) => {
export const modalConfig = {
icon: null,
centered: false,
maskClosable: true,
mask: {
closeable: true
},
footer: null,
style: {
top: '10%'
@@ -89,4 +91,4 @@ export const modalConfig = {
width: 700
};
export default React.memo(ShortCuts);
export default ShortCuts;
+4 -1
View File
@@ -40,11 +40,14 @@ const ListSkeleton: React.FC<{
{loading && (
<SpinWrapper>
<Spin
size="middle"
spinning={loading}
style={{
width: '100%'
}}
wrapperClassName="skelton-wrapper"
classNames={{
root: 'skelton-wrapper'
}}
>
{isFirst && <CardSkeleton></CardSkeleton>}
</Spin>
+3 -1
View File
@@ -87,7 +87,9 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
export const modalConfig = {
icon: null,
centered: false,
maskClosable: true,
mask: {
closeable: true
},
footer: null,
style: {
top: '30%'