UNPKG

shineout

Version:

Shein 前端组件库

46 lines (45 loc) 2.96 kB
import React, { ComponentType } from 'react'; import { KeygenResult } from '../@types/common'; import { TableProps, GetTreeExpandProps } from './Props'; interface treeExpandState { expandKeys: Map<KeygenResult, boolean>; } declare const _default: <DataItem, Value>(WrappedComponent: React.ComponentType<TableProps<DataItem, Value>>) => { new (props: GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>): { changedByExpand: boolean; expandLevel: Map<KeygenResult, number>; componentDidUpdate(): void; getTreeIndent(): number | undefined; getExpandKeys(): Map<KeygenResult, boolean>; getExpandData(): DataItem[] | (<Base extends (draft: any) => void>(base?: Base | undefined, ...rest: unknown[]) => any); handleTreeExpand(data: DataItem, index: number): void; render(): JSX.Element; context: any; setState<K extends "expandKeys">(state: treeExpandState | ((prevState: Readonly<treeExpandState>, props: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>) => treeExpandState | Pick<treeExpandState, K> | null) | Pick<treeExpandState, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<treeExpandState>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, nextState: Readonly<treeExpandState>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, prevState: Readonly<treeExpandState>): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, nextState: Readonly<treeExpandState>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<GetTreeExpandProps<TableProps<DataItem, Value>, DataItem>>, nextState: Readonly<treeExpandState>, nextContext: any): void; }; defaultProps: { defaultTreeExpandKeys: never[]; }; getMapFromArray(arr: KeygenResult[]): Map<KeygenResult, boolean>; contextType?: React.Context<any> | undefined; }; export default _default;