From 0b1092dde2314d223d90ec27b095b41690eab1bb Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期五, 17 九月 2021 17:52:27 +0800 Subject: [PATCH] 调整baseconfig代码顺序 --- 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