shineout
Version:
Shein 前端组件库
58 lines (57 loc) • 2.42 kB
TypeScript
/// <reference types="node" />
import React, { ComponentType } from 'react';
import { GetFixAutoProps } from './Props';
interface BaseProps {
fixed?: any;
columns?: any;
data?: any;
width?: any;
height?: any;
}
declare const _default: <Props extends BaseProps>(Table: React.ComponentType<Props>) => {
new (props: GetFixAutoProps<Props>): {
wrapper: HTMLDivElement;
componentDidUpdate(prevProps: GetFixAutoProps<Props>): void;
getFixed(): "both" | "x" | "y" | GetFixAutoProps<Props>["fixed"] | undefined;
bindWrapper(wrapper: HTMLDivElement): void;
resetFixed(): void;
fixedAuto(): void;
resetAutoFixedState(): void;
render(): JSX.Element;
$isMounted: boolean;
forceUpdateTimer: NodeJS.Timeout;
componentDidMount(): void;
componentWillUnmount(): void;
setState(...args: any[]): void;
forceUpdate(): void;
context: any;
readonly props: Readonly<GetFixAutoProps<Props>> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{
fixed: 'x' | 'y' | 'both' | null;
}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<GetFixAutoProps<Props>>, nextState: Readonly<{
fixed: 'x' | 'y' | 'both' | null;
}>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<GetFixAutoProps<Props>>, prevState: Readonly<{
fixed: 'x' | 'y' | 'both' | null;
}>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<GetFixAutoProps<Props>>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<GetFixAutoProps<Props>>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<GetFixAutoProps<Props>>, nextState: Readonly<{
fixed: 'x' | 'y' | 'both' | null;
}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<GetFixAutoProps<Props>>, nextState: Readonly<{
fixed: 'x' | 'y' | 'both' | null;
}>, nextContext: any): void;
};
contextType?: React.Context<any> | undefined;
};
export default _default;