index.d.ts
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as React from 'react';
import { ConfigConsumerProps } from '../config-provider';
declare const SpinSizes: ["small", "default", "large"];
export declare type SpinSize = typeof SpinSizes[number];
export declare type SpinIndicator = React.ReactElement<HTMLElement>;
export interface SpinProps {
prefixCls?: string;
className?: string;
spinning?: boolean;
style?: React.CSSProperties;
size?: SpinSize;
tip?: string;
delay?: number;
wrapperClassName?: string;
indicator?: SpinIndicator;
}
export interface SpinState {
spinning?: boolean;
notCssAnimationSupported?: boolean;
}
declare class Spin extends React.Component<SpinProps, SpinState> {
static defaultProps: {
spinning: boolean;
size: "small" | "large" | "default";
wrapperClassName: string;
};
static setDefaultIndicator(indicator: React.ReactNode): void;
originalUpdateSpinning: () => void;
constructor(props: SpinProps);
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
debouncifyUpdateSpinning: (props?: SpinProps | undefined) => void;
updateSpinning: () => void;
cancelExistingSpin(): void;
isNestedPattern(): boolean;
renderSpin: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}
export default Spin;