Skip to content

Commit

Permalink
feat(client): improve behavior of EditInput component (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurewarth0920 authored Jan 25, 2024
1 parent 9bac88a commit ef06e7c
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ watch(value, checkWarning())
<span class="flex-inline items-center gap4px">
<VueInput v-model="value" :variant="isWarning ? 'warning' : 'normal'" class="h25px w120px px4px" :auto-focus="autoFocus" @click.stop />
<template v-if="showActions">
<VueButton
v-tooltip="{
content: 'Esc to cancel',
}" size="mini" flat class="p2px!" @click.stop="$emit('cancel')"
>
<template #icon>
<VueIcon icon="i-material-symbols-cancel" />
</template>
</VueButton>
<template v-if="!isWarning">
<VueButton
v-tooltip="{
content: 'Esc to cancel',
}" size="mini" flat class="p2px!" @click.stop="$emit('cancel')"
>
<template #icon>
<VueIcon icon="i-material-symbols-cancel" />
</template>
</VueButton>
<VueButton
v-tooltip="{
content: 'Enter to submit change',
Expand All @@ -74,7 +74,11 @@ watch(value, checkWarning())
</template>
</VueButton>
</template>
<VueIcon v-else icon="i-material-symbols-warning" class="color-warning-500 dark:color-warning-300" />
<VueIcon
v-else v-tooltip="{
content: 'Invalid value',
}" icon="i-material-symbols-warning" class="color-warning-500 dark:color-warning-300"
/>
</template>
</span>
</template>

0 comments on commit ef06e7c

Please sign in to comment.