From 245859d1d0820c9712fcc22a23e64bdffa796191 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期五, 06 八月 2021 18:18:39 +0800
Subject: [PATCH] 优化RightToolbar组件,添加传参控制是否显示可收缩搜索区域

---
 src/components/RightToolbar/index.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue
index 3dd6af4..c21b968 100644
--- a/src/components/RightToolbar/index.vue
+++ b/src/components/RightToolbar/index.vue
@@ -2,7 +2,7 @@
 <template>
   <div class="top-right-btn">
     <el-row>
-      <el-tooltip class="item" effect="dark" :content="showSearch ? '闅愯棌鎼滅储' : '鏄剧ず鎼滅储'" placement="top">
+      <el-tooltip v-if="isSearch" class="item" effect="dark" :content="showSearch ? '闅愯棌鎼滅储' : '鏄剧ず鎼滅储'" placement="top">
         <el-button size="mini" circle icon="el-icon-search" @click="toggleSearch()" />
       </el-tooltip>
       <el-tooltip class="item" effect="dark" content="鍒锋柊" placement="top">
@@ -18,6 +18,10 @@
     showSearch: {
       type: Boolean,
       default: true
+    },
+    isSearch: {
+      type: Boolean,
+      default: true
     }
   },
   data() {

--
Gitblit v1.8.0