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
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
import { AntdComponent } from '../component';
|
|
|
|
import { InputGroup } from './input-group';
|
|
|
|
import { InputSearch } from './input-search';
|
|
|
|
import { TextArea } from './textarea';
|
2019-11-15 10:25:17 +00:00
|
|
|
import { Password } from './password';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
export declare class Input extends AntdComponent {
|
2019-01-19 10:56:33 +00:00
|
|
|
static Group: typeof InputGroup;
|
|
|
|
static Search: typeof InputSearch;
|
|
|
|
static TextArea: typeof TextArea;
|
2019-11-15 10:25:17 +00:00
|
|
|
static Password: typeof Password;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The label text displayed after (on the right side of) the input field.
|
|
|
|
* @type any (string | slot)
|
|
|
|
*/
|
|
|
|
addonAfter: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The label text displayed before (on the left side of) the input field.
|
|
|
|
* @type any (string | slot)
|
|
|
|
*/
|
|
|
|
addonBefore: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The initial input content
|
|
|
|
* @type string | number
|
|
|
|
*/
|
|
|
|
defaultValue: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the input is disabled.
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
disabled: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The ID for input
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The prefix icon for the Input.
|
|
|
|
* @type any (string | slot)
|
|
|
|
*/
|
|
|
|
prefix: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The size of the input box. Note: in the context of a form, the large size is used. Available: large default small
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 03:33:27 +00:00
|
|
|
size: 'small' | 'large' | 'default';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The suffix icon for the Input.
|
|
|
|
* @type any (string | slot)
|
|
|
|
*/
|
|
|
|
suffix: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of input, see: MDN (use Input.TextArea instead of type="textarea")
|
|
|
|
* @default 'text'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
type: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The input content value
|
|
|
|
* @type string | number
|
|
|
|
*/
|
|
|
|
value: string | number;
|
2019-09-11 10:11:48 +00:00
|
|
|
|
|
|
|
allowClear?: boolean;
|
2019-01-01 04:13:51 +00:00
|
|
|
}
|