shineout
Version:
Shein 前端组件库
22 lines (21 loc) • 858 B
TypeScript
import { PureComponent } from 'react';
import { ListProps } from './Props';
import { KeygenResult } from '../@types/common';
declare class List<DataItem, Value extends any[]> extends PureComponent<ListProps<DataItem, Value>> {
static defaultProps: {
id: string;
line: boolean;
className: string;
};
bindLines: (el: HTMLDivElement) => void;
bindList: (el: HTMLDivElement) => void;
lines: HTMLDivElement;
element: HTMLDivElement;
hasExpanded: boolean;
constructor(props: ListProps<DataItem, Value>);
getKey(data: DataItem, index: number): KeygenResult | DataItem[import("../@types/common").ObjectKey<DataItem>];
bindElement(name: 'lines' | 'element', el: HTMLDivElement): void;
renderNode(child: DataItem, index: number): JSX.Element;
render(): JSX.Element | null;
}
export default List;