dtd
Version:
根据数梦工场视觉规范打造的组件库,感谢react-components和ant design
19 lines (18 loc) • 996 B
TypeScript
import * as React from 'react';
import { SelectionCheckboxAllProps, SelectionCheckboxAllState, SelectionItem } from './interface';
export default class SelectionCheckboxAll<T> extends React.Component<SelectionCheckboxAllProps<T>, SelectionCheckboxAllState> {
unsubscribe: () => void;
defaultSelections: SelectionItem[];
constructor(props: SelectionCheckboxAllProps<T>);
componentDidMount(): void;
componentWillReceiveProps(nextProps: SelectionCheckboxAllProps<T>): void;
componentWillUnmount(): void;
subscribe(): void;
checkSelection(data: T[], type: string, byDefaultChecked: boolean): boolean;
setCheckState(props: SelectionCheckboxAllProps<T>): void;
getCheckState(props: SelectionCheckboxAllProps<T>): boolean;
getIndeterminateState(props: SelectionCheckboxAllProps<T>): boolean;
handleSelectAllChagne: (e: React.ChangeEvent<HTMLInputElement>) => void;
renderMenus(selections: SelectionItem[]): JSX.Element[];
render(): JSX.Element;
}