去掉多余的代码

This commit is contained in:
2betop 2020-05-11 15:28:44 +08:00
parent d77bb35a74
commit 1ed3ce2612
1 changed files with 2 additions and 7 deletions

View File

@ -8,9 +8,6 @@ import {ClassNamesFn, themeable} from '../theme';
import {autobind} from '../utils/helper'; import {autobind} from '../utils/helper';
interface CheckboxProps { interface CheckboxProps {
id?: string;
key?: string | number;
style?: React.CSSProperties;
type: 'checkbox' | 'radio'; type: 'checkbox' | 'radio';
size?: 'sm' | 'lg' | 'small' | 'large'; size?: 'sm' | 'lg' | 'small' | 'large';
label?: string; label?: string;
@ -18,10 +15,9 @@ interface CheckboxProps {
className?: string; className?: string;
onChange?: (value: any) => void; onChange?: (value: any) => void;
value?: any; value?: any;
containerClass?: string;
inline?: boolean; inline?: boolean;
trueValue?: boolean; trueValue?: any;
falseValue?: boolean; falseValue?: any;
disabled?: boolean; disabled?: boolean;
readOnly?: boolean; readOnly?: boolean;
checked?: boolean; checked?: boolean;
@ -30,7 +26,6 @@ interface CheckboxProps {
classPrefix: string; classPrefix: string;
classnames: ClassNamesFn; classnames: ClassNamesFn;
partial?: boolean; partial?: boolean;
data?: any;
} }
export class Checkbox extends React.Component<CheckboxProps, any> { export class Checkbox extends React.Component<CheckboxProps, any> {