杨磊
2024-06-07 a971d0c13ab9cd5107152f6eba5e1e724a37fa0b
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"
            >&#xe61c;</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;