1 | import * as React from 'react';
|
2 | import './style.scss';
|
3 | import { CheckboxProps } from './interface';
|
4 | export default class Checkbox extends React.PureComponent<CheckboxProps, any> {
|
5 | static defaultProps: {
|
6 | disabled: boolean;
|
7 | defaultChecked: boolean;
|
8 | label: string;
|
9 | tipsType: string;
|
10 | fontSize: string;
|
11 | textColor: string;
|
12 | };
|
13 | constructor(props: CheckboxProps);
|
14 | private inputRef;
|
15 | private txtRef;
|
16 | private containerRef;
|
17 | componentWillReceiveProps(nextProps: CheckboxProps): void;
|
18 | onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
19 | render(): JSX.Element;
|
20 | }
|