Skip to content

Commit ad6b5ae

Browse files
authored
fix(types): textarea props types (#2900)
1 parent 950fd00 commit ad6b5ae

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

types/input/textarea.d.ts

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,33 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent, AntdProps } from '../component';
6+
import { TextareaHTMLAttributes } from 'vue';
67

78
export declare class TextArea extends AntdComponent {
8-
$props: AntdProps & {
9-
/**
10-
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
11-
* @default false
12-
* @type boolean | object
13-
*/
14-
autoSize?: boolean | { minRows: number; maxRows: number };
9+
$props: AntdProps &
10+
TextareaHTMLAttributes & {
11+
/**
12+
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
13+
* @default false
14+
* @type boolean | object
15+
*/
16+
autoSize?: boolean | { minRows: number; maxRows: number };
1517

16-
/**
17-
* The initial input content
18-
* @type string | number
19-
*/
20-
defaultValue?: string | number;
18+
/**
19+
* The initial input content
20+
* @type string | number
21+
*/
22+
defaultValue?: string | number;
2123

22-
/**
23-
* The input content value
24-
* @type string | number
25-
*/
26-
value?: string | number;
27-
/**
28-
*allow to remove input content with clear icon (1.5.0)
29-
* @type boolean
30-
*/
31-
allowClear?: boolean;
32-
};
24+
/**
25+
* The input content value
26+
* @type string | number
27+
*/
28+
value?: string | number;
29+
/**
30+
*allow to remove input content with clear icon (1.5.0)
31+
* @type boolean
32+
*/
33+
allowClear?: boolean;
34+
};
3335
}

0 commit comments

Comments
 (0)