Skip to content

Commit 5bff79f

Browse files
committed
formating removed-5
1 parent 6828664 commit 5bff79f

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

client/packages/lowcoder/src/comps/comps/autoCompleteComp/autoCompleteComp.tsx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ const childrenMap = {
8585
searchFirstPY: BoolControl.DEFAULT_TRUE,
8686
searchCompletePY: BoolControl,
8787
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"),
9393
inputFieldStyle: styleControl(InputLikeStyle),
9494
animationStyle: styleControl(AnimationStyle),
9595
};
@@ -165,32 +165,32 @@ let AutoCompleteCompBase = (function () {
165165
borderRadius: parseInt(props.inputFieldStyle.radius),
166166
colorText: props.inputFieldStyle.text,
167167
colorPrimary: props.inputFieldStyle.accent,
168-
controlHeight: componentSize === 'small' ? 30 : 38,
168+
controlHeight: componentSize === "small" ? 30 : 38,
169169
},
170170
}}
171171
>
172172
<AutoComplete
173173
disabled={props.disabled}
174174
value={searchtext}
175175
options={items}
176-
style={{width: '100%'}}
176+
style={{width: "100%"}}
177177
onChange={(value: string, option) => {
178178
props.valueInItems.onChange(false);
179179
setvalidateState(textInputValidate(getTextInputValidate()));
180180
setsearchtext(value);
181181
props.value.onChange(value);
182-
props.onEvent('change');
182+
props.onEvent("change");
183183
}}
184184
onFocus={() => {
185185
setActivationFlag(true);
186-
props.onEvent('focus');
186+
props.onEvent("focus");
187187
}}
188-
onBlur={() => props.onEvent('blur')}
188+
onBlur={() => props.onEvent("blur")}
189189
onSelect={(data: string, option) => {
190190
setsearchtext(option[valueOrLabel]);
191191
props.valueInItems.onChange(true);
192192
props.value.onChange(option[valueOrLabel]);
193-
props.onEvent('submit');
193+
props.onEvent("submit");
194194
}}
195195
filterOption={(inputValue: string, option) => {
196196
if (ignoreCase) {
@@ -210,7 +210,7 @@ let AutoCompleteCompBase = (function () {
210210
searchFirstPY &&
211211
option?.label &&
212212
option.label
213-
.spell('first')
213+
.spell("first")
214214
.toString()
215215
.toLowerCase()
216216
.indexOf(inputValue.toLowerCase()) >= 0
@@ -248,7 +248,7 @@ let AutoCompleteCompBase = (function () {
248248
searchFirstPY &&
249249
option?.value &&
250250
option.value
251-
.spell('first')
251+
.spell("first")
252252
.toString()
253253
.toLowerCase()
254254
.indexOf(inputValue.toLowerCase()) >= 0
@@ -294,38 +294,38 @@ let AutoCompleteCompBase = (function () {
294294
return (
295295
<>
296296
<Section>
297-
{children.autoCompleteType.getView() === 'normal' &&
297+
{children.autoCompleteType.getView() === "normal" &&
298298
children.prefixIcon.propertyView({
299-
label: trans('button.prefixIcon'),
299+
label: trans("button.prefixIcon"),
300300
})}
301-
{children.autoCompleteType.getView() === 'normal' &&
301+
{children.autoCompleteType.getView() === "normal" &&
302302
children.suffixIcon.propertyView({
303-
label: trans('button.suffixIcon'),
303+
label: trans("button.suffixIcon"),
304304
})}
305305
{allowClearPropertyView(children)}
306306
</Section>
307-
<Section name={trans('autoComplete.SectionDataName')}>
307+
<Section name={trans("autoComplete.SectionDataName")}>
308308
{children.items.propertyView({
309-
label: trans('autoComplete.value'),
309+
label: trans("autoComplete.value"),
310310
tooltip: itemsDataTooltip,
311-
placeholder: '[]',
311+
placeholder: "[]",
312312
})}
313-
{getDayJSLocale() === 'zh-cn' &&
313+
{getDayJSLocale() === "zh-cn" &&
314314
children.searchFirstPY.propertyView({
315-
label: trans('autoComplete.searchFirstPY'),
315+
label: trans("autoComplete.searchFirstPY"),
316316
})}
317-
{getDayJSLocale() === 'zh-cn' &&
317+
{getDayJSLocale() === "zh-cn" &&
318318
children.searchCompletePY.propertyView({
319-
label: trans('autoComplete.searchCompletePY'),
319+
label: trans("autoComplete.searchCompletePY"),
320320
})}
321321
{children.searchLabelOnly.propertyView({
322-
label: trans('autoComplete.searchLabelOnly'),
322+
label: trans("autoComplete.searchLabelOnly"),
323323
})}
324324
{children.ignoreCase.propertyView({
325-
label: trans('autoComplete.ignoreCase'),
325+
label: trans("autoComplete.ignoreCase"),
326326
})}
327327
{children.valueOrLabel.propertyView({
328-
label: trans('autoComplete.checkedValueFrom'),
328+
label: trans("autoComplete.checkedValueFrom"),
329329
radioButton: true,
330330
})}
331331
</Section>

0 commit comments

Comments
 (0)