0
0
Fork 0

refs #6321 perf: replace QIcon with clearable prop

This commit is contained in:
Javier Segarra 2024-03-15 06:16:37 +01:00
parent 764ccbd151
commit e0e5082e1e
1 changed files with 1 additions and 6 deletions

View File

@ -55,6 +55,7 @@ const onEnterPress = () => {
:type="$attrs.type" :type="$attrs.type"
:class="{ required: $attrs.required }" :class="{ required: $attrs.required }"
@keyup.enter="onEnterPress()" @keyup.enter="onEnterPress()"
:clearable="focus"
> >
<template v-if="$slots.prepend" #prepend> <template v-if="$slots.prepend" #prepend>
<slot name="prepend" /> <slot name="prepend" />
@ -62,12 +63,6 @@ const onEnterPress = () => {
<template #append> <template #append>
<slot name="append" v-if="$slots.append" /> <slot name="append" v-if="$slots.append" />
<QIcon
name="close"
size="xs"
v-if="focus && value"
@click="value = null"
></QIcon>
</template> </template>
</QInput> </QInput>
</div> </div>