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 // Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent, AntdProps } from '../component'; import { AntdComponent, AntdProps } from '../component';
import { TextareaHTMLAttributes } from 'vue';
export declare class TextArea extends AntdComponent { export declare class TextArea extends AntdComponent {
$props: AntdProps & { $props: AntdProps &
/** TextareaHTMLAttributes & {
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 } /**
* @default false * Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
* @type boolean | object * @default false
*/ * @type boolean | object
autoSize?: boolean | { minRows: number; maxRows: number }; */
autoSize?: boolean | { minRows: number; maxRows: number };
/** /**
* The initial input content * The initial input content
* @type string | number * @type string | number
*/ */
defaultValue?: string | number; defaultValue?: string | number;
/** /**
* The input content value * The input content value
* @type string | number * @type string | number
*/ */
value?: string | number; value?: string | number;
/** /**
*allow to remove input content with clear icon (1.5.0) *allow to remove input content with clear icon (1.5.0)
* @type boolean * @type boolean
*/ */
allowClear?: boolean; allowClear?: boolean;
}; };
} }