From caeb2c4b5fa88f6fe8799b67c790d8ad8b4d98e8 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期三, 24 七月 2024 16:41:27 +0800 Subject: [PATCH] 1 --- src/uni_modules/next-search-more/components/next-search-more/next-search-more.vue | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 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 45a054a..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 @@ -246,6 +267,7 @@ width: 100%; display: flex; align-items: center; + position: relative; &.center { justify-content: center; -- Gitblit v1.9.1