From d27da0d7b2f5cc3cc97622158b7f14a7faabb05b Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期三, 12 六月 2024 18:42:33 +0800 Subject: [PATCH] 世医图谱 --- src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue b/src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue index 5e64190..b62e99f 100644 --- a/src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue +++ b/src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue @@ -35,8 +35,29 @@ @focus="focus" @blur="blur" /> - <text v-if="isDelShow" class="icon icon-del" @click="clear" - ></text + <span + class="cleanupBtn" + v-if="inputVal" + @click="inputVal = ''" + style=" + position: absolute; + top: 50%; + margin-top: -10px; + right: 10px; + 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> <view @@ -178,7 +199,6 @@ // 鎼滅储涓嬫媺妗� change(e) { this.$emit("select", e); - console.log(e); } }, created() { @@ -198,7 +218,6 @@ }, watch: { keyword(value) { - console.log(value); this.inputVal = value; } } @@ -248,6 +267,7 @@ width: 100%; display: flex; align-items: center; + position: relative; &.center { justify-content: center; -- Gitblit v1.9.1