import React from 'react'; import BaseComponent from '../_base/baseComponent'; import PropTypes from 'prop-types'; import TableSelectionCellFoundation, { TableSelectionCellAdapter, TableSelectionCellEvent } from '@douyinfe/semi-foundation/lib/es/table/tableSelectionCellFoundation'; import { CheckboxEvent, CheckboxProps } from '../checkbox'; export interface TableSelectionCellProps { columnTitle?: string; getCheckboxProps?: () => CheckboxProps; type?: string; onChange?: (checked: boolean, e: TableSelectionCellEvent) => void; selected?: boolean; disabled?: boolean; indeterminate?: boolean; prefixCls?: string; className?: string; 'aria-label'?: React.AriaAttributes['aria-label']; } /** * render selection cell */ export default class TableSelectionCell extends BaseComponent> { static propTypes: { columnTitle: PropTypes.Requireable; getCheckboxProps: PropTypes.Requireable<(...args: any[]) => any>; type: PropTypes.Requireable; onChange: PropTypes.Requireable<(...args: any[]) => any>; selected: PropTypes.Requireable; disabled: PropTypes.Requireable; indeterminate: PropTypes.Requireable; prefixCls: PropTypes.Requireable; className: PropTypes.Requireable; 'aria-label': PropTypes.Requireable; }; static defaultProps: { disabled: boolean; onChange: (...args: any[]) => void; prefixCls: "semi-table"; }; get adapter(): TableSelectionCellAdapter; foundation: TableSelectionCellFoundation; constructor(props: TableSelectionCellProps); handleChange: (e: CheckboxEvent) => void; render(): React.JSX.Element; }