UNPKG

958 BTypeScriptView Raw
1import { ElementUIComponent } from './component'
2
3export type InputNumberSize = 'large' | 'small'
4
5/** InputNumber Component */
6export declare class ElInputNumber extends ElementUIComponent {
7 /** Binding value */
8 value: number
9
10 /** The minimum allowed value */
11 min: number
12
13 /** The maximum allowed value */
14 max: number
15
16 /** Incremental step */
17 step: number
18
19 /** Size of the component */
20 size: InputNumberSize
21
22 /** Whether the component is disabled */
23 disabled: boolean
24
25 /** Whether to enable the control buttons */
26 controls: boolean
27
28 /** Debounce delay when typing, in milliseconds */
29 debounce: number
30
31 /** Position of the control buttons */
32 controlsPosition: string
33
34 /** Same as name in native input */
35 name: string
36
37 /** Precision of input value */
38 precision: number
39
40 /** whether input value can only be multiple of step */
41 stepStrictly: boolean
42
43 /**
44 * Focus the Input component
45 */
46 focus (): void
47}