[backend] fix: 修复异常处理和类型转换问题

This commit is contained in:
xsl
2026-01-26 11:53:40 +08:00
parent 7ccc2a6ac6
commit 83e05bf85f
28639 changed files with 2506458 additions and 93 deletions
+41
View File
@@ -0,0 +1,41 @@
import React from 'react';
import type { Icons, Status } from './interface';
import type { StepProps } from './Step';
export declare type StepIconRender = (info: {
index: number;
status: Status;
title: React.ReactNode;
description: React.ReactNode;
node: React.ReactNode;
}) => React.ReactNode;
export declare type ProgressDotRender = (iconDot: any, info: {
index: number;
status: Status;
title: React.ReactNode;
description: React.ReactNode;
}) => React.ReactNode;
export interface StepsProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
children?: React.ReactNode;
direction?: 'horizontal' | 'vertical';
type?: 'default' | 'navigation' | 'inline';
labelPlacement?: 'horizontal' | 'vertical';
iconPrefix?: string;
status?: Status;
size?: 'default' | 'small';
current?: number;
progressDot?: ProgressDotRender | boolean;
stepIcon?: StepIconRender;
initial?: number;
icons?: Icons;
items?: StepProps[];
itemRender?: (item: StepProps, stepItem: React.ReactElement) => React.ReactNode;
onChange?: (current: number) => void;
}
declare function Steps(props: StepsProps): React.JSX.Element;
declare namespace Steps {
var Step: typeof import("./Step").default;
}
export default Steps;