@@ -69,14 +69,14 @@ const inputProps = () => ({
69
69
bordered : { type : Boolean , default : undefined } ,
70
70
showCount : { type : [ Boolean , Object ] as PropType < boolean | ShowCountProps > } ,
71
71
htmlSize : Number ,
72
- onPressEnter : Function as PropType < KeyboardEventHandler > ,
73
- onKeydown : Function as PropType < KeyboardEventHandler > ,
74
- onKeyup : Function as PropType < KeyboardEventHandler > ,
75
- onFocus : Function as PropType < FocusEventHandler > ,
76
- onBlur : Function as PropType < FocusEventHandler > ,
77
- onChange : Function as PropType < ChangeEventHandler > ,
78
- onInput : Function as PropType < ChangeEventHandler > ,
79
- 'onUpdate:value' : Function as PropType < ( val : string ) => void > ,
72
+ onPressEnter : [ Function , Array ] as PropType < KeyboardEventHandler > ,
73
+ onKeydown : [ Function , Array ] as PropType < KeyboardEventHandler > ,
74
+ onKeyup : [ Function , Array ] as PropType < KeyboardEventHandler > ,
75
+ onFocus : [ Function , Array ] as PropType < FocusEventHandler > ,
76
+ onBlur : [ Function , Array ] as PropType < FocusEventHandler > ,
77
+ onChange : [ Function , Array ] as PropType < ChangeEventHandler > ,
78
+ onInput : [ Function , Array ] as PropType < ChangeEventHandler > ,
79
+ 'onUpdate:value' : [ Function , Array ] as PropType < ( val : string ) => void > ,
80
80
valueModifiers : Object ,
81
81
hidden : Boolean ,
82
82
} ) ;
@@ -95,9 +95,11 @@ const textAreaProps = () => ({
95
95
rows : Number ,
96
96
autosize : { type : [ Boolean , Object ] as PropType < boolean | AutoSizeType > , default : undefined } ,
97
97
autoSize : { type : [ Boolean , Object ] as PropType < boolean | AutoSizeType > , default : undefined } ,
98
- onResize : { type : Function as PropType < ( size : { width : number ; height : number } ) => void > } ,
99
- onCompositionstart : Function as PropType < CompositionEventHandler > ,
100
- onCompositionend : Function as PropType < CompositionEventHandler > ,
98
+ onResize : {
99
+ type : [ Function , Array ] as PropType < ( size : { width : number ; height : number } ) => void > ,
100
+ } ,
101
+ onCompositionstart : [ Function , Array ] as PropType < CompositionEventHandler > ,
102
+ onCompositionend : [ Function , Array ] as PropType < CompositionEventHandler > ,
101
103
valueModifiers : Object ,
102
104
} ) ;
103
105
0 commit comments