import { CSSProperties } from 'react'; import { CommonEvent } from '@tarojs/components/types/common'; import CompCommon from '../../common/type'; export interface InputError { type: 'OVER' | 'LOW' | 'DISABLED'; errorValue: number; } export interface InputNumberProps extends CompCommon { type?: 'number' | 'digit'; value: number | string; customStyle?: CSSProperties; min?: number; max?: number; step?: number; size?: 'normal' | 'large'; width?: number; disabled?: boolean; readonly?: boolean; onChange: (value: number, e: CommonEvent) => void; onBlur?: Function; onErrorInput?: (errCb: InputError) => void; }