shineout
Version:
Shein 前端组件库
31 lines (30 loc) • 1.13 kB
TypeScript
import React, { Component, ReactNode } from 'react';
import { TrProps } from './Props';
export declare const ROW_HEIGHT_UPDATE_EVENT = "ROW_HEIGHT_UPDATE_EVENT_NAME";
declare class Tr<DataItem, Value> extends Component<TrProps<DataItem, Value>> {
static displayName: string;
static defaultProps: {
rowClickAttr: string[];
lazy: boolean;
};
manualExpand: boolean;
expandHeight: number;
element: HTMLElement;
lastRowHeight: number;
lastExpandHeight: number;
lastIndex: number;
lastExpandRender: TrProps<DataItem, Value>['expandRender'];
cachedExpand: ReactNode;
constructor(props: TrProps<DataItem, Value>);
componentDidMount(): void;
componentDidUpdate(prevProps: TrProps<DataItem, Value>): void;
setRowHeight(expand?: boolean): void;
setExpandHeight(height: number): void;
getRowClickAttr(): string[];
bindElement(el: HTMLTableRowElement): void;
isFireElement(el: HTMLElement): string | true | undefined;
handleRowClick(e: React.MouseEvent): void;
renderExpand(): React.ReactNode;
render(): JSX.Element[];
}
export default Tr;