From c423765d8a5ff0c58d23bb0a31af7df6c1fad95c Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 26 七月 2024 16:10:25 +0800 Subject: [PATCH] 1 --- 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 45a054a..3b92595 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 @@ -209,7 +230,6 @@ } ::v-deep .content { border-radius: 0 !important; - // border: 1px solid #7d8ea5 !important; } ::v-deep .button-item { width: 100% !important; @@ -224,7 +244,6 @@ width: 100%; border-bottom: 1px #f5f5f5 solid; box-sizing: border-box; - // padding: 15upx; border-radius: 35rpx; font-size: $uni-font-size-base; background: #fff; @@ -246,6 +265,7 @@ width: 100%; display: flex; align-items: center; + position: relative; &.center { justify-content: center; -- Gitblit v1.9.1