fix(types): textarea props types (#2900)
parent
950fd00529
commit
ad6b5ae520
|
@ -3,31 +3,33 @@
|
|||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||
|
||||
import { AntdComponent, AntdProps } from '../component';
|
||||
import { TextareaHTMLAttributes } from 'vue';
|
||||
|
||||
export declare class TextArea extends AntdComponent {
|
||||
$props: AntdProps & {
|
||||
/**
|
||||
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
|
||||
* @default false
|
||||
* @type boolean | object
|
||||
*/
|
||||
autoSize?: boolean | { minRows: number; maxRows: number };
|
||||
$props: AntdProps &
|
||||
TextareaHTMLAttributes & {
|
||||
/**
|
||||
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
|
||||
* @default false
|
||||
* @type boolean | object
|
||||
*/
|
||||
autoSize?: boolean | { minRows: number; maxRows: number };
|
||||
|
||||
/**
|
||||
* The initial input content
|
||||
* @type string | number
|
||||
*/
|
||||
defaultValue?: string | number;
|
||||
/**
|
||||
* The initial input content
|
||||
* @type string | number
|
||||
*/
|
||||
defaultValue?: string | number;
|
||||
|
||||
/**
|
||||
* The input content value
|
||||
* @type string | number
|
||||
*/
|
||||
value?: string | number;
|
||||
/**
|
||||
*allow to remove input content with clear icon (1.5.0)
|
||||
* @type boolean
|
||||
*/
|
||||
allowClear?: boolean;
|
||||
};
|
||||
/**
|
||||
* The input content value
|
||||
* @type string | number
|
||||
*/
|
||||
value?: string | number;
|
||||
/**
|
||||
*allow to remove input content with clear icon (1.5.0)
|
||||
* @type boolean
|
||||
*/
|
||||
allowClear?: boolean;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue