From 362b538baef010a042cadea3e3d7c63b97e0b48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Thu, 3 Nov 2022 21:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=8F=9C=E5=8D=95=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=84=9F=E8=B0=A2CcSimple=E5=85=84=E5=BC=9F=E9=80=81?= =?UTF-8?q?=E6=9D=A5=E7=9A=84PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/mixins/search.js | 5 +- .../layout/components/panel-search/index.vue | 65 +++++--------- .../layout/components/panel-search/item.vue | 2 +- .../src/layout/components/userbar.vue | 2 +- snowy-admin-web/src/store/modules/search.js | 21 ++--- snowy-admin-web/src/style/index.less | 11 +-- snowy-admin-web/src/utils/mixin.js | 85 ------------------- snowy-admin-web/src/utils/objects.js | 13 +-- 8 files changed, 38 insertions(+), 166 deletions(-) delete mode 100644 snowy-admin-web/src/utils/mixin.js diff --git a/snowy-admin-web/src/layout/components/mixins/search.js b/snowy-admin-web/src/layout/components/mixins/search.js index 9b80123e..22277dbf 100755 --- a/snowy-admin-web/src/layout/components/mixins/search.js +++ b/snowy-admin-web/src/layout/components/mixins/search.js @@ -1,5 +1,4 @@ import { mapState, mapMutations } from 'vuex' - import hotkeys from 'hotkeys-js' export default { @@ -30,9 +29,7 @@ export default { searchToggle: 'search/toggle', searchSet: 'search/set' }), - /** - * 接收点击搜索按钮 - */ + // 接收点击搜索按钮 handleSearchClick() { this.searchToggle() if (this.searchActive) { diff --git a/snowy-admin-web/src/layout/components/panel-search/index.vue b/snowy-admin-web/src/layout/components/panel-search/index.vue index 2cb7c90b..f500a6fb 100644 --- a/snowy-admin-web/src/layout/components/panel-search/index.vue +++ b/snowy-admin-web/src/layout/components/panel-search/index.vue @@ -6,8 +6,7 @@ class="search-box" style="width: 100%" allowClear - placeholder="搜索页面(支持拼音检索)" - size="large" + placeholder="搜索页面(支持拼音检索)" @change="querySearch" > -
+