UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

43 lines (42 loc) 1.21 kB
import * as React from 'react'; export interface BaseCheckboxProps { prefixCls?: string; className?: string; style?: React.CSSProperties; name?: string; id?: string; type: 'checkbox' | 'radio'; label?: string; defaultChecked?: number | boolean; checked?: number | boolean | string; disabled?: boolean; onFocus?: () => void; onBlur?: () => void; onChange?: (cb: any) => void; onClick?: () => void; tabIndex?: string; readOnly?: boolean; autoFocus?: boolean; value?: any | null | undefined; icon?: React.ReactNode; } export default class BaseCheckbox extends React.PureComponent<BaseCheckboxProps, any> { static defaultProps: { prefixCls: string; className: string; style: {}; type: string; defaultChecked: boolean; onFocus: () => void; onBlur: () => void; onChange: () => void; }; input: HTMLInputElement; constructor(props: BaseCheckboxProps); componentWillReceiveProps(nextProps: BaseCheckboxProps): void; focus(): void; blur(): void; createRef(node: HTMLInputElement): void; handleChange(e: any): void; render(): JSX.Element; }