瀏覽代碼

Добавлена возможность сделать новый поиск по клику на лого

Book Pauk 2 年之前
父節點
當前提交
f231bb75bd
共有 2 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      client/components/Search/Search.vue
  2. 二進制
      client/components/Search/assets/logo.png

+ 13 - 3
client/components/Search/Search.vue

@@ -21,7 +21,13 @@
         <div ref="scroller" class="col fit column no-wrap" style="overflow: auto; position: relative" @scroll="onScroll">
             <div ref="toolPanel" class="tool-panel column bg-cyan-2" style="position: sticky; top: 0; z-index: 10;">
                 <div class="header q-mx-md q-mb-xs q-mt-sm row items-center">
-                    <div class="row items-center" style="font-size: 150%;">
+                    <div style="height: 33px">
+                        <img src="./assets/logo.png" class="clickable2" @click="newSearch" />
+                        <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
+                            Новый поиск
+                        </q-tooltip>
+                    </div>
+                    <div class="row items-center q-ml-sm" style="font-size: 150%;">
                         <div class="q-mr-xs">
                             Коллекция
                         </div>
@@ -99,12 +105,12 @@
                         </q-tooltip>
                     </q-input>
 
-                    <div class="q-mx-xs" />
+                    <!--div class="q-mx-xs" />
                     <DivBtn class="text-white q-mt-xs bg-grey-13" :size="30" :icon-size="24" icon="la la-broom" round @click="setDefaults">
                         <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
                             Сбросить поиск
                         </q-tooltip>
-                    </DivBtn>
+                    </DivBtn-->
 
                     <div class="q-mx-xs" />
                     <div class="row items-center q-mt-xs">
@@ -600,6 +606,10 @@ class Search {
         this.$root.stdDialog.alert(info, 'Статистика по коллекции', {iconName: 'la la-info-circle'});
     }
 
+    newSearch() {
+        window.location = window.location.origin;
+    }
+
     async hideTooltip() {
         //Firefox bugfix: при всплывающем диалоге скрываем подсказку
         this.showTooltips = false;

二進制
client/components/Search/assets/logo.png