@@ -8,13 +8,13 @@ import {
8
8
InputEventDetail ,
9
9
KeyboardHeightEventDetail ,
10
10
} from 'types/input'
11
- import { InputProps } from '@tarojs/components/types/Input'
11
+ // import { InputProps } from '@tarojs/components/types/Input'
12
12
import { BaseEventOrig , ITouchEvent } from '@tarojs/components/types/common'
13
13
14
- type PickAtInputProps = Pick < AtInputProps , 'maxLength' | 'disabled' | 'password' >
15
- type GetInputPropsReturn = PickAtInputProps & Pick < InputProps , 'type' >
14
+ // type PickAtInputProps = Pick<AtInputProps, 'maxLength' | 'disabled' | 'password'>
15
+ // type GetInputPropsReturn = PickAtInputProps & Pick<InputProps, 'type'>
16
16
17
- function getInputProps ( props : AtInputProps ) : GetInputPropsReturn {
17
+ function getInputProps ( props : AtInputProps ) {
18
18
const actualProps = {
19
19
type : props . type ,
20
20
maxLength : props . maxLength ,
@@ -45,11 +45,15 @@ const AtInput = Vue.extend({
45
45
props : {
46
46
customStyle : {
47
47
type : [ Object , String ] ,
48
- default : ( ) => { } ,
48
+ default : function ( ) {
49
+ return { }
50
+ } ,
49
51
} ,
50
52
className : {
51
53
type : [ Object , String ] ,
52
- default : ( ) => { } ,
54
+ default : function ( ) {
55
+ return { }
56
+ } ,
53
57
} ,
54
58
value : {
55
59
type : [ String , Number ] ,
@@ -141,27 +145,39 @@ const AtInput = Vue.extend({
141
145
} ,
142
146
onChange : {
143
147
type : Function ,
144
- default : ( ) => ( ) => { } ,
148
+ default : function ( ) {
149
+ return function ( ) { }
150
+ } ,
145
151
} ,
146
152
onFocus : {
147
153
type : Function ,
148
- default : ( ) => ( ) => { } ,
154
+ default : function ( ) {
155
+ return function ( ) { }
156
+ } ,
149
157
} ,
150
158
onBlur : {
151
159
type : Function ,
152
- default : ( ) => ( ) => { } ,
160
+ default : function ( ) {
161
+ return function ( ) { }
162
+ } ,
153
163
} ,
154
164
onConfirm : {
155
165
type : Function ,
156
- default : ( ) => ( ) => { } ,
166
+ default : function ( ) {
167
+ return function ( ) { }
168
+ } ,
157
169
} ,
158
170
onErrorClick : {
159
171
type : Function ,
160
- default : ( ) => ( ) => { } ,
172
+ default : function ( ) {
173
+ return function ( ) { }
174
+ } ,
161
175
} ,
162
176
onClick : {
163
177
type : Function ,
164
- default : ( ) => ( ) => { } ,
178
+ default : function ( ) {
179
+ return function ( ) { }
180
+ } ,
165
181
} ,
166
182
} ,
167
183
methods : {
0 commit comments