From eb08fad0dbb28935bb5bca6dbc5c3a60e56f3f76 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 21 Jun 2023 15:24:34 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2900=20fix=EF=BC=9A=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E4=BA=A7=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=8B=E6=8B=89=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=BB=BA=E8=AE=AE=E5=92=8C=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/index.scss | 2 +- nezha-fronted/src/components/common/nzTransfer.vue | 1 + nezha-fronted/src/components/common/searchInput.vue | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/assets/css/index.scss b/nezha-fronted/src/assets/css/index.scss index 66364822c..f712d8e07 100644 --- a/nezha-fronted/src/assets/css/index.scss +++ b/nezha-fronted/src/assets/css/index.scss @@ -13,7 +13,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts'; // 避免ele原字体加载 } body { height: 100%; - min-width: 1024px; + min-width: 1400px; margin:0 !important; padding: 0 !important; cursor: default; diff --git a/nezha-fronted/src/components/common/nzTransfer.vue b/nezha-fronted/src/components/common/nzTransfer.vue index d734875f7..bd192c48e 100644 --- a/nezha-fronted/src/components/common/nzTransfer.vue +++ b/nezha-fronted/src/components/common/nzTransfer.vue @@ -8,6 +8,7 @@ :search-msg="searchMsg" :show-history="false" :show-search="false" + :isNzTransfet="true" style="width:100%" @search="search" > diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index e08ed355d..880cb7a79 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -501,6 +501,7 @@ export default { defaultItem: {}, defaultValue: {}, inTransform: {}, + isNzTransfet: {}, position: { type: String, default: '' @@ -1544,6 +1545,12 @@ export default { const inputListDom = this.$refs['input-center-box'] if (inputListDom) { this.$nextTick(() => { + if (this.isNzTransfet) { + const position = inputListDom.getBoundingClientRect() + this.selectDom.top = position.top + 36 + 'px' + this.selectDom.left = position.left + 'px' + return + } if (this.inTransform) { const position = inputListDom.getBoundingClientRect() this.selectDom.top = position.top + 36 + 'px'