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"
|
: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>
|
||||||
|
|
Loading…
Reference in New Issue