2017-10-17 16:36:12 +08:00
|
|
|
import { ElementUIComponent } from './component'
|
|
|
|
|
|
|
|
export type InputNumberSize = 'large' | 'small'
|
|
|
|
|
|
|
|
/** InputNumber Component */
|
|
|
|
export declare class ElInputNumber extends ElementUIComponent {
|
|
|
|
/** Binding value */
|
|
|
|
value: number
|
|
|
|
|
|
|
|
/** The minimum allowed value */
|
|
|
|
min: number
|
|
|
|
|
|
|
|
/** The maximum allowed value */
|
|
|
|
max: number
|
|
|
|
|
|
|
|
/** Incremental step */
|
|
|
|
step: number
|
|
|
|
|
|
|
|
/** Size of the component */
|
|
|
|
size: InputNumberSize
|
|
|
|
|
|
|
|
/** Whether the component is disabled */
|
|
|
|
disabled: boolean
|
|
|
|
|
|
|
|
/** Whether to enable the control buttons */
|
|
|
|
controls: boolean
|
2017-10-18 18:31:03 +08:00
|
|
|
|
|
|
|
/** Debounce delay when typing, in milliseconds */
|
|
|
|
debounce: number
|
|
|
|
|
|
|
|
/** Position of the control buttons */
|
|
|
|
controlsPosition: string
|
|
|
|
|
|
|
|
/** Same as name in native input */
|
|
|
|
name: string
|
2018-03-18 11:59:02 +08:00
|
|
|
|
2018-05-23 14:10:34 +08:00
|
|
|
/** Precision of input value */
|
2019-04-23 11:28:02 +08:00
|
|
|
precision: number
|
|
|
|
|
|
|
|
/** whether input value can only be multiple of step */
|
|
|
|
stepStrictly: boolean
|
2018-05-23 14:10:34 +08:00
|
|
|
|
2018-03-18 11:59:02 +08:00
|
|
|
/**
|
|
|
|
* Focus the Input component
|
|
|
|
*/
|
|
|
|
focus (): void
|
2017-10-17 16:36:12 +08:00
|
|
|
}
|