UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

34 lines (33 loc) 1.06 kB
import * as React from 'react'; import { Omit } from '../_util/type'; export declare type OmitAttrs = 'defaultValue' | 'onChange' | 'size'; export interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, OmitAttrs> { prefixCls?: string; min?: number; max?: number; value?: number; step?: number | string; defaultValue?: number; tabIndex?: number; onChange?: (value: number | string | undefined) => void; disabled?: boolean; size?: 'large' | 'small' | 'default'; formatter?: (value: number | string | undefined) => string; parser?: (displayValue: string | undefined) => number; placeholder?: string; style?: React.CSSProperties; className?: string; name?: string; id?: string; precision?: number; } export default class InputNumber extends React.Component<InputNumberProps, any> { static defaultProps: { prefixCls: string; step: number; }; private inputNumberRef; render(): JSX.Element; focus(): void; blur(): void; }