inleft
2022-08-22 6461f5659505768e7a90594c3aab47f90d9ee213
src/components/mini/box7-search.vue
@@ -6,7 +6,7 @@
            <hr>
            <div>
               <a-auto-complete v-bind="search" @select="onSelect" @search="onSearch" @change="onChange">
                  <a-input>
                  <a-input @pressEnter="onSelect">
                     <a-icon slot="suffix" type="search" class="certain-category-icon" />
                  </a-input>
               </a-auto-complete>
@@ -23,16 +23,17 @@
   export default {
      name: "box",
      props: {
         searchType: ""
         searchType: "",
      },
      data() {
         return {
            sentence: "十里寒塘路,烟花一半醒",
            search: {
               placeholder: "搜索..",
               allowClear: true,
               //placeholder: "搜索..",
               placeholder: "此搜索框未营业..",
               // autoFocus: true,
               backfill: true,
               value: '',
               dataSource: [],
            },
         }
@@ -43,6 +44,7 @@
            console.log("补全..");
         },
         onSelect(value) {
            this.$message.info("这个功能会等到内容足够多的时候再打开..")
            console.log('回车', value);
         },
         onChange(value) {