From 38a800ff006e7d90342ceb53ad547a8aaa2bd4d5 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 24 Aug 2022 03:42:28 +0800 Subject: [PATCH] 月台新增图库标签 --- src/components/mini/box7-search.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/mini/box7-search.vue b/src/components/mini/box7-search.vue index 2747537..0938545 100644 --- a/src/components/mini/box7-search.vue +++ b/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) { -- Gitblit v1.9.1