2019-01-01 04:13:51 +00:00
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
|
|
|
import { AntdComponent } from './component';
|
|
|
|
|
|
|
|
export declare class InputNumber extends AntdComponent {
|
2020-08-19 10:55:32 +00:00
|
|
|
$props: {
|
|
|
|
/**
|
|
|
|
* get focus when component mounted
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
autofocus?: boolean;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* initial value
|
|
|
|
* @type number | string
|
|
|
|
*/
|
|
|
|
defaultValue?: number | string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* disable the input
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
disabled?: boolean;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* Specifies the format of the value presented
|
|
|
|
* @type Function
|
|
|
|
*/
|
|
|
|
formatter?: (value: number | string) => string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* max value
|
|
|
|
* @default Infinity
|
|
|
|
* @type number
|
|
|
|
*/
|
|
|
|
max?: number;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* mix value
|
|
|
|
* @default -Infinity
|
|
|
|
* @type number
|
|
|
|
*/
|
|
|
|
min?: number;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* Specifies the value extracted from formatter
|
|
|
|
* @type Function
|
|
|
|
*/
|
|
|
|
parser?: (string: string) => number;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* precision of input value
|
|
|
|
* @type number
|
|
|
|
*/
|
|
|
|
precision?: number;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* decimal separator
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
decimalSeparator?: string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* width of input box
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
size?: 'large' | 'small' | 'default';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* The number to which the current value is increased or decreased. It can be an integer or decimal.
|
|
|
|
* @default 1
|
|
|
|
* @type number | string
|
|
|
|
*/
|
|
|
|
step?: number | string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-19 10:55:32 +00:00
|
|
|
/**
|
|
|
|
* current value
|
|
|
|
* @type number | string
|
|
|
|
*/
|
|
|
|
value?: number | string;
|
|
|
|
}
|
2019-01-01 04:13:51 +00:00
|
|
|
}
|