zent
Version:
一套前端设计语言和基于React的实现
26 lines (25 loc) • 940 B
TypeScript
import { PureComponent } from 'react';
import { ICheckboxProps } from '../checkbox';
import Store from './Store';
interface IGridSelectionCheckboxProps {
indeterminate?: boolean;
disabled?: boolean;
reason?: React.ReactNode;
rowIndex: number | string;
store: Store;
onChange: ICheckboxProps<unknown>['onChange'];
}
interface IGridSelectionCheckboxState {
checked: boolean;
}
declare class SelectionCheckbox extends PureComponent<IGridSelectionCheckboxProps, IGridSelectionCheckboxState> {
constructor(props: IGridSelectionCheckboxProps);
unsubscribe?: () => void;
subscribe: () => void;
getCheckState: (props: IGridSelectionCheckboxProps) => boolean;
componentDidMount(): void;
componentWillReceiveProps(nextProps: IGridSelectionCheckboxProps, nextState: IGridSelectionCheckboxState): void;
componentWillUnmount(): void;
render(): JSX.Element;
}
export default SelectionCheckbox;