UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

20 lines (19 loc) 1.03 kB
import * as React from 'react'; import { CheckboxChangeEvent } from '../checkbox'; 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: CheckboxChangeEvent) => void; renderMenus(selections: SelectionItem[]): JSX.Element[]; render(): JSX.Element; }