import {IBaseForm} from '../baseForm' import {paramsInterfaceValidKey} from '../../../script/index' export interface InputNumberInterface extends IBaseForm { min?: number max?: number step?: number precision?: number controls?: boolean position?: string blur?: Function focus?: Function stepStrictly?: boolean validateEvent?: boolean } export class InputNumberConfig implements InputNumberInterface { type = 'infoInputNumber' label = '' model = 'num' min = 0 max = Number.MAX_SAFE_INTEGER step = 1 precision = 0 controls = false stepStrictly = false validateEvent = false disabled = (): boolean => false placeholder = (): string => (window as any).$t('pleaseInput') blur = (): void => { } focus = (): void => { } constructor (params: InputNumberInterface) { paramsInterfaceValidKey(this, params) } }