import React, { Component, MouseEventHandler, ReactNode } from 'react'; import PropTypes from 'prop-types'; import { ColumnProps } from './Column'; import Record from '../data-set/Record'; import { ElementProps } from '../core/ViewComponent'; import { FormFieldProps, Renderer } from '../field/FormField'; import { ColumnLock, TableCommandType } from './enum'; import { ButtonProps } from '../button/Button'; import { Commands } from './Table'; export interface TableCellProps extends ElementProps { column: ColumnProps; record: Record; indentSize: number; } export default class TableCell extends Component { static displayName: string; static propTypes: { prefixCls: PropTypes.Requireable; column: PropTypes.Validator; record: PropTypes.Validator; indentSize: PropTypes.Validator; }; static contextType: React.Context<{ tableStore: import("./TableStore").default; }>; element?: HTMLSpanElement | null; nextFrameActionId?: number; overflow?: boolean; get cellEditor(): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | undefined; get cellEditorInCell(): boolean; get hasEditor(): boolean | undefined; saveOutput(node: any): void; disconnect(): void; handleResize(): void; handleOutputChange({ record, name }: { record: any; name: any; }): void; syncSize(): void; computeOverFlow(): boolean; handleEditorKeyDown(e: any): void; handleFocus(e: any): void; handleCommandEdit(): void; handleCommandDelete(): void; handleCommandSave(): Promise; handleCommandCancel(): void; getButtonProps(type: TableCommandType, record: Record): (ButtonProps & { onClick: MouseEventHandler; children?: ReactNode; }) | undefined; renderCommand(): JSX.Element[] | undefined; renderEditor(): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | undefined; getCheckBox(): JSX.Element | undefined; getCommand(): Commands[] | undefined; getCellRenderer(command?: Commands[]): Renderer | undefined; getInnerNode(prefixCls: any, command?: Commands[]): {}; componentWillUnmount(): void; render(): JSX.Element; showEditor(cell: any, lock?: ColumnLock | boolean): void; }