import React from 'react'; import XBaseLayout from "../base/XBaseLayout"; import { XBaseLayoutProps } from "../base/XBaseLayout"; import { Steps, StepsProps } from 'antd'; export interface XStepsProps extends XBaseLayoutProps, StepsProps { /** * 指定当前步骤,从 0 开始记数 */ current?: number; /** * 指定步骤条方向 */ direction?: "horizontal" | "vertical"; /** * 点击切换步骤时触发 * @param current */ onChange?: (current: number) => void; } export interface XStepItemProps { title?: string; } /** * 通过步骤按钮切换的页面 * @name 步骤页 * @groupName 折叠显示 */ export default class XSteps extends XBaseLayout { static ComponentName: string; static Steps: typeof Steps; static Step: typeof Steps.Step; static defaultProps: { current: number; items: any[]; lazyChildren: boolean; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: XSteps); formatItems(items: any): any[]; Next(): void; Pre(): void; IsLast(): boolean; SetCurrent(cur: any): void; GetCurrent(): any; renderLayout(): React.JSX.Element; }