fix(types): textarea props types (#2900)

pull/2922/head
John60676 2020-09-27 11:06:02 +08:00 committed by GitHub
parent 950fd00529
commit ad6b5ae520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 23 deletions

View File

@ -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;
};
}