chore: 补充number组件state声明

This commit is contained in:
qinhaoyan 2023-04-10 14:16:47 +08:00
parent 73fb2367d8
commit bc935c9325

View File

@ -76,7 +76,11 @@ export interface NumberProps extends ThemeProps {
inputControlClassName?: string; inputControlClassName?: string;
} }
export class NumberInput extends React.Component<NumberProps, any> { export interface NumberState {
focused: boolean;
}
export class NumberInput extends React.Component<NumberProps, NumberState> {
static defaultProps: Pick< static defaultProps: Pick<
NumberProps, NumberProps,
'step' | 'readOnly' | 'borderMode' | 'resetValue' 'step' | 'readOnly' | 'borderMode' | 'resetValue'