/// import React from 'react'; import type { ClassName, ThemeProps } from 'jamis-core'; export type StepStatus = 'wait' | 'process' | 'finish' | 'error'; export type StepObject = { className?: ClassName; /** * 标题 */ title?: string | JSX.Element; /** * 子标题 */ subTitle?: string | JSX.Element; /** * 图标 */ icon?: string; value?: string | number; /** * 描述 */ description?: string | JSX.Element; status?: StepStatus; iconClassName?: string; }; export interface StepsObject { /** * 指定为 Steps 步骤条渲染器 */ type: 'steps'; /** * 步骤 */ steps?: Array; /** * API 或 数据映射 */ source?: string; /** * 指定当前步骤 */ value?: number | string; /** * 变量映射 */ name?: string; status: StepStatus; /** * 展示模式 */ mode?: 'horizontal' | 'vertical'; /** * 标签放置位置 */ labelPlacement?: 'horizontal' | 'vertical'; } export interface StepsProps extends ThemeProps { steps: StepObject[]; className: string; current: number; status?: StepStatus | { [propName: string]: StepStatus; }; mode?: 'horizontal' | 'vertical'; labelPlacement?: 'horizontal' | 'vertical'; progressDot?: boolean; useMobileUI?: boolean; } export declare function Steps(props: StepsProps): JSX.Element; declare const _default: { new (props: Omit & import("jamis-core").ThemeOutterProps): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & import("jamis-core").ThemeOutterProps>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly & import("jamis-core").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly & import("jamis-core").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof Steps; }; export default _default;