From d16a07dcc2771bb65d03658847549ab3b21f6bcd Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期四, 04 七月 2024 16:29:08 +0800 Subject: [PATCH] 图片title --- src/components/headNav/headNav.vue | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/components/headNav/headNav.vue b/src/components/headNav/headNav.vue index 4e516a2..503337d 100644 --- a/src/components/headNav/headNav.vue +++ b/src/components/headNav/headNav.vue @@ -33,6 +33,7 @@ width: 2.33rem; margin-right: 0.3rem; justify-content: flex-end; + position: relative; " > <input @@ -43,6 +44,8 @@ flex: 1; background-color: #fff; font-size: 0.13rem; + padding-right: 30px; + box-sizing: border-box; " @blur="InputBlur" @confirm="toggleSearch" @@ -50,7 +53,32 @@ v-model="searchInput" placeholder="璇疯緭鍏ユ悳绱㈠唴瀹�" /> + <span + class="cleanupBtn" + v-if="searchInput" + @click="searchInput = ''" + style=" + position: absolute; + top: 50%; + margin-top: -10px; + right: 42px; + color: #fff; + z-index: 2; + display: inline-block; + width: 20px; + height: 20px; + text-align: center; + line-height: 20px; + background-color: #a5a5a5; + font-weight: bold; + border-radius: 50%; + font-size: 12px; + cursor: pointer; + " + >鉁�</span + > <view + title="鎼滅储" class="search-logo" @click="toggleSearch" :style="{ @@ -66,6 +94,7 @@ <el-dropdown trigger="click" @command="handleCommand"> <!-- <view @click="iconClick(2)" class="s2 ss1 "></view> --> <img + title="涓汉涓績" class="cursor" @click="changePassword(1)" src="@/static/image/profile.svg" @@ -77,6 +106,7 @@ </el-dropdown-menu> </el-dropdown> <img + title="甯姪" class="cursor" @click="changePassword(2)" src="@/static/image/quote.svg" -- Gitblit v1.9.1