Skip to content

Commit

Permalink
fix(types): textarea props types (vueComponent#2900)
Browse files Browse the repository at this point in the history
  • Loading branch information
John60676 authored Sep 27, 2020
1 parent 950fd00 commit ad6b5ae
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions types/input/textarea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

0 comments on commit ad6b5ae

Please sign in to comment.