@@ -85,11 +85,11 @@ const childrenMap = {
85
85
searchFirstPY : BoolControl . DEFAULT_TRUE ,
86
86
searchCompletePY : BoolControl ,
87
87
searchLabelOnly : BoolControl . DEFAULT_TRUE ,
88
- valueOrLabel : dropdownControl ( valueOrLabelOption , ' label' ) ,
89
- autoCompleteType : dropdownControl ( autoCompleteType , ' normal' ) ,
90
- autocompleteIconColor : dropdownControl ( autocompleteIconColor , ' blue' ) ,
91
- componentSize : dropdownControl ( componentSize , ' small' ) ,
92
- valueInItems : booleanExposingStateControl ( ' valueInItems' ) ,
88
+ valueOrLabel : dropdownControl ( valueOrLabelOption , " label" ) ,
89
+ autoCompleteType : dropdownControl ( autoCompleteType , " normal" ) ,
90
+ autocompleteIconColor : dropdownControl ( autocompleteIconColor , " blue" ) ,
91
+ componentSize : dropdownControl ( componentSize , " small" ) ,
92
+ valueInItems : booleanExposingStateControl ( " valueInItems" ) ,
93
93
inputFieldStyle : styleControl ( InputLikeStyle ) ,
94
94
animationStyle : styleControl ( AnimationStyle ) ,
95
95
} ;
@@ -165,32 +165,32 @@ let AutoCompleteCompBase = (function () {
165
165
borderRadius : parseInt ( props . inputFieldStyle . radius ) ,
166
166
colorText : props . inputFieldStyle . text ,
167
167
colorPrimary : props . inputFieldStyle . accent ,
168
- controlHeight : componentSize === ' small' ? 30 : 38 ,
168
+ controlHeight : componentSize === " small" ? 30 : 38 ,
169
169
} ,
170
170
} }
171
171
>
172
172
< AutoComplete
173
173
disabled = { props . disabled }
174
174
value = { searchtext }
175
175
options = { items }
176
- style = { { width : ' 100%' } }
176
+ style = { { width : " 100%" } }
177
177
onChange = { ( value : string , option ) => {
178
178
props . valueInItems . onChange ( false ) ;
179
179
setvalidateState ( textInputValidate ( getTextInputValidate ( ) ) ) ;
180
180
setsearchtext ( value ) ;
181
181
props . value . onChange ( value ) ;
182
- props . onEvent ( ' change' ) ;
182
+ props . onEvent ( " change" ) ;
183
183
} }
184
184
onFocus = { ( ) => {
185
185
setActivationFlag ( true ) ;
186
- props . onEvent ( ' focus' ) ;
186
+ props . onEvent ( " focus" ) ;
187
187
} }
188
- onBlur = { ( ) => props . onEvent ( ' blur' ) }
188
+ onBlur = { ( ) => props . onEvent ( " blur" ) }
189
189
onSelect = { ( data : string , option ) => {
190
190
setsearchtext ( option [ valueOrLabel ] ) ;
191
191
props . valueInItems . onChange ( true ) ;
192
192
props . value . onChange ( option [ valueOrLabel ] ) ;
193
- props . onEvent ( ' submit' ) ;
193
+ props . onEvent ( " submit" ) ;
194
194
} }
195
195
filterOption = { ( inputValue : string , option ) => {
196
196
if ( ignoreCase ) {
@@ -210,7 +210,7 @@ let AutoCompleteCompBase = (function () {
210
210
searchFirstPY &&
211
211
option ?. label &&
212
212
option . label
213
- . spell ( ' first' )
213
+ . spell ( " first" )
214
214
. toString ( )
215
215
. toLowerCase ( )
216
216
. indexOf ( inputValue . toLowerCase ( ) ) >= 0
@@ -248,7 +248,7 @@ let AutoCompleteCompBase = (function () {
248
248
searchFirstPY &&
249
249
option ?. value &&
250
250
option . value
251
- . spell ( ' first' )
251
+ . spell ( " first" )
252
252
. toString ( )
253
253
. toLowerCase ( )
254
254
. indexOf ( inputValue . toLowerCase ( ) ) >= 0
@@ -294,38 +294,38 @@ let AutoCompleteCompBase = (function () {
294
294
return (
295
295
< >
296
296
< Section >
297
- { children . autoCompleteType . getView ( ) === ' normal' &&
297
+ { children . autoCompleteType . getView ( ) === " normal" &&
298
298
children . prefixIcon . propertyView ( {
299
- label : trans ( ' button.prefixIcon' ) ,
299
+ label : trans ( " button.prefixIcon" ) ,
300
300
} ) }
301
- { children . autoCompleteType . getView ( ) === ' normal' &&
301
+ { children . autoCompleteType . getView ( ) === " normal" &&
302
302
children . suffixIcon . propertyView ( {
303
- label : trans ( ' button.suffixIcon' ) ,
303
+ label : trans ( " button.suffixIcon" ) ,
304
304
} ) }
305
305
{ allowClearPropertyView ( children ) }
306
306
</ Section >
307
- < Section name = { trans ( ' autoComplete.SectionDataName' ) } >
307
+ < Section name = { trans ( " autoComplete.SectionDataName" ) } >
308
308
{ children . items . propertyView ( {
309
- label : trans ( ' autoComplete.value' ) ,
309
+ label : trans ( " autoComplete.value" ) ,
310
310
tooltip : itemsDataTooltip ,
311
- placeholder : '[]' ,
311
+ placeholder : "[]" ,
312
312
} ) }
313
- { getDayJSLocale ( ) === ' zh-cn' &&
313
+ { getDayJSLocale ( ) === " zh-cn" &&
314
314
children . searchFirstPY . propertyView ( {
315
- label : trans ( ' autoComplete.searchFirstPY' ) ,
315
+ label : trans ( " autoComplete.searchFirstPY" ) ,
316
316
} ) }
317
- { getDayJSLocale ( ) === ' zh-cn' &&
317
+ { getDayJSLocale ( ) === " zh-cn" &&
318
318
children . searchCompletePY . propertyView ( {
319
- label : trans ( ' autoComplete.searchCompletePY' ) ,
319
+ label : trans ( " autoComplete.searchCompletePY" ) ,
320
320
} ) }
321
321
{ children . searchLabelOnly . propertyView ( {
322
- label : trans ( ' autoComplete.searchLabelOnly' ) ,
322
+ label : trans ( " autoComplete.searchLabelOnly" ) ,
323
323
} ) }
324
324
{ children . ignoreCase . propertyView ( {
325
- label : trans ( ' autoComplete.ignoreCase' ) ,
325
+ label : trans ( " autoComplete.ignoreCase" ) ,
326
326
} ) }
327
327
{ children . valueOrLabel . propertyView ( {
328
- label : trans ( ' autoComplete.checkedValueFrom' ) ,
328
+ label : trans ( " autoComplete.checkedValueFrom" ) ,
329
329
radioButton : true ,
330
330
} ) }
331
331
</ Section >
0 commit comments