Skip to content

Commit

Permalink
[optimization] search clear logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Jun 23, 2024
1 parent 2b02817 commit 5ca33f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/layouts/components/SearchBar.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="search-bar">
<t-popup placement="bottom-right" :visible="isVisible.popup" :on-visible-change="popupVisibleEvent">
<t-input :placeholder="$t('pages.search.searchPlaceholder')" class="search-input" clearable :on-focus="focusEvent"
v-model="searchValue" :on-enter="searchEvent">
<t-input :placeholder="$t('pages.search.searchPlaceholder')" class="search-input" clearable v-model="searchValue"
:on-enter="searchEvent" :on-click="focusEvent" @clear="searchEvent(searchValue)">
<template #label>
<t-select auto-width v-model="active.filmGroupType" class="search-select"
v-if="activeRouteName === 'FilmIndex'" @click.stop>
Expand Down

0 comments on commit 5ca33f9

Please sign in to comment.