forked from verdnatura/salix-front
refs #6321 perf: replace QIcon with clearable prop
This commit is contained in:
parent
764ccbd151
commit
e0e5082e1e
|
@ -55,6 +55,7 @@ const onEnterPress = () => {
|
|||
:type="$attrs.type"
|
||||
:class="{ required: $attrs.required }"
|
||||
@keyup.enter="onEnterPress()"
|
||||
:clearable="focus"
|
||||
>
|
||||
<template v-if="$slots.prepend" #prepend>
|
||||
<slot name="prepend" />
|
||||
|
@ -62,12 +63,6 @@ const onEnterPress = () => {
|
|||
|
||||
<template #append>
|
||||
<slot name="append" v-if="$slots.append" />
|
||||
<QIcon
|
||||
name="close"
|
||||
size="xs"
|
||||
v-if="focus && value"
|
||||
@click="value = null"
|
||||
></QIcon>
|
||||
</template>
|
||||
</QInput>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue