@alicloud/console-components
Version:
Alibaba Cloud React Components
89 lines (88 loc) • 5.71 kB
TypeScript
import React from 'react';
import type { ItemProps as StepItemProps, StepProps } from '@alifd/next/types/step';
declare const Step: React.ForwardRefExoticComponent<StepProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<StepProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
step: HTMLOListElement;
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
adjustHeight(): void;
resize(): void;
_getValidChildren(children: React.ReactNode): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
_stepRefHandler: (ref: HTMLOListElement) => void;
render(): React.JSX.Element;
context: any;
setState<K extends keyof import("@alifd/next/types/step/types").StepState>(state: import("@alifd/next/types/step/types").StepState | ((prevState: Readonly<import("@alifd/next/types/step/types").StepState>, props: Readonly<StepProps>) => import("@alifd/next/types/step/types").StepState | Pick<import("@alifd/next/types/step/types").StepState, K>) | Pick<import("@alifd/next/types/step/types").StepState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<StepProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<import("@alifd/next/types/step/types").StepState>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<StepProps>, nextState: Readonly<import("@alifd/next/types/step/types").StepState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<StepProps>, prevState: Readonly<import("@alifd/next/types/step/types").StepState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<StepProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StepProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<StepProps>, nextState: Readonly<import("@alifd/next/types/step/types").StepState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<StepProps>, nextState: Readonly<import("@alifd/next/types/step/types").StepState>, nextContext: any): void;
}, {}> & {
Item: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<StepItemProps<HTMLElement> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
ro: any;
container: HTMLDivElement;
stepNode: HTMLDivElement;
step: HTMLLIElement;
body: HTMLDivElement;
title: HTMLDivElement;
tail: HTMLDivElement;
eventHandler: {
off: () => void;
};
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
adjustItemWidth(): void;
adjustTail(): void;
resize(): void;
_getNode(): {} | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
getNode(args: {
stepCls: string;
overlayCls: {
width: string;
};
others: Omit<StepItemProps<HTMLElement>, "title" | "children" | "locale" | "prefix" | "defaultPropsConfig" | "errorBoundary" | "pure" | "warning" | "rtl" | "device" | "popupContainer" | "className" | "content" | "onClick" | "animation" | "disabled" | "status" | "shape" | "direction" | "itemRender" | "readOnly" | "stretch" | "icon" | "total" | "labelPlacement" | "onResize" | "percent" | "index" | "parentWidth" | "parentHeight">;
}): React.JSX.Element;
getStyle(): {
width: string | number;
};
onClick: () => false;
removeClickedCls(): void;
_itemRender(index: number, status: import("@alifd/next/types/step/types").StepStatus): React.ReactNode;
_refHandlerCreator<Name extends "body" | "title" | "container" | "step" | "tail" | "stepNode">(refName: Name): (ref: any) => void;
render(): React.JSX.Element;
context: any;
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<StepItemProps<HTMLElement>>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<StepItemProps<HTMLElement>> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<StepItemProps<HTMLElement>>, nextState: Readonly<{}>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<StepItemProps<HTMLElement>>, prevState: Readonly<{}>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<StepItemProps<HTMLElement>>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StepItemProps<HTMLElement>>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<StepItemProps<HTMLElement>>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<StepItemProps<HTMLElement>>, nextState: Readonly<{}>, nextContext: any): void;
}, {}>;
}, {}>;
export default Step;
export type { StepProps, StepItemProps };