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'