diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index 0886c130..b8c0b2ac 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -17,6 +17,7 @@ import { getDecupleSteps } from './utils/numberUtil'; import { InputFocusOptions, triggerFocus } from 'rc-input/lib/utils/commonUtils'; import useFrame from './hooks/useFrame'; +import { BaseInputProps } from 'rc-input/lib/interface'; export type { ValueType }; @@ -67,15 +68,7 @@ export interface InputNumberProps suffix?: React.ReactNode; addonBefore?: React.ReactNode; addonAfter?: React.ReactNode; - classes?: { - affixWrapper?: string; - group?: string; - wrapper?: string; - }; - classNames?: { - affixWrapper?: string; - group?: string; - wrapper?: string; + classNames?: BaseInputProps['classNames'] & { input?: string; }; @@ -583,7 +576,7 @@ const InternalInputNumber = React.forwardRef( // ============================ Render ============================ return (