shineout
Version:
Shein 前端组件库
38 lines (37 loc) • 2.28 kB
TypeScript
import React from 'react';
import DatumTree from '../Datum/Tree';
import { TreeSelectPropsWithAdvancedFilter, TreeSelectPropsWithDatum, TreeSelectValueType } from './Props';
export default function datum<Item, Value extends TreeSelectValueType>(Origin: React.ComponentType<TreeSelectPropsWithAdvancedFilter<Item, Value>>): {
new (props: TreeSelectPropsWithDatum<Item, Value>): {
datum: DatumTree<Item>;
componentDidUpdate(prevProps: TreeSelectPropsWithDatum<Item, Value>): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<TreeSelectPropsWithDatum<Item, Value>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<TreeSelectPropsWithDatum<Item, Value>> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, prevState: Readonly<{}>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<TreeSelectPropsWithDatum<Item, Value>>, nextState: Readonly<{}>, nextContext: any): void;
};
defaultProps: {
mode: number;
childrenKey: string;
unmatch: boolean;
};
contextType?: React.Context<any> | undefined;
};