From 4f140057c4a086457baabb183a53191abc50d73c Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 14 Jul 2022 18:07:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=20alertMessa?= =?UTF-8?q?ge=20=E4=B8=8D=E6=AD=A3=E7=A1=AE=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/components/layout/home.scss | 5 +++++ .../src/components/common/labelFilter/clickSearch.vue | 8 ++++---- nezha-fronted/src/components/layout/home.vue | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/layout/home.scss b/nezha-fronted/src/assets/css/components/layout/home.scss index e814d7908..4e87f0af1 100644 --- a/nezha-fronted/src/assets/css/components/layout/home.scss +++ b/nezha-fronted/src/assets/css/components/layout/home.scss @@ -21,6 +21,11 @@ font-size: 12px; position: fixed; } +.temp-dom--16 { + visibility: hidden; + font-size: 16px; + position: fixed; +} .home.tv,.home.se{ .left-menu{ diff --git a/nezha-fronted/src/components/common/labelFilter/clickSearch.vue b/nezha-fronted/src/components/common/labelFilter/clickSearch.vue index 42062ba17..8288ec5c0 100644 --- a/nezha-fronted/src/components/common/labelFilter/clickSearch.vue +++ b/nezha-fronted/src/components/common/labelFilter/clickSearch.vue @@ -274,7 +274,7 @@ export default { item.inputWidth = this.widthConstant.dropdownCheckBox.inputOriginalWidth } else { const showTag = item.children.find(c => c.id == value[0]) // 展示的tag - const { tagWidth, inputWidth, width } = this.computeCascWidth(this.computeDistance(showTag.name, 14), item.labelWidth) + const { tagWidth, inputWidth, width } = this.computeCascWidth(this.computeDistance(showTag.name, 16), item.labelWidth) item.width = width item.inputWidth = inputWidth } @@ -293,7 +293,7 @@ export default { item.inputWidth = this.widthConstant.dropdownCheckBox.inputOriginalWidth } else { const showTag = item.children.find(c => c.id == value[0]) // 展示的tag - const { tagWidth, inputWidth, width } = this.computeCascWidth(this.computeDistance(showTag.name, 14), item.labelWidth) + const { tagWidth, inputWidth, width } = this.computeCascWidth(this.computeDistance(showTag.name, 16), item.labelWidth) item.width = width item.inputWidth = inputWidth } @@ -301,14 +301,14 @@ export default { Object.keys(this.titleSearchListCopy).forEach(type => { this.titleSearchListCopy[type].children.forEach(c => { if (this.titleSearchListCopy[type].type === 'dropdownCheckBox') { - const labelWidth = this.computeDistance(c.name + ':', 14) + this.widthConstant.dropdownCheckBox.labelPadding // cascader-label总宽度 + const labelWidth = this.computeDistance(c.name + ':', 16) + this.widthConstant.dropdownCheckBox.labelPadding // cascader-label总宽度 const width = labelWidth + this.widthConstant.dropdownCheckBox.inputOriginalWidth + this.widthConstant.dropdownCheckBox.boxMargin this.$set(c, 'width', width) // 总宽 this.$set(c, 'originalWidth', width) // 初始总宽 this.$set(c, 'labelWidth', labelWidth) // label区域宽 this.$set(c, 'inputWidth', this.widthConstant.dropdownCheckBox.inputOriginalWidth) // 内容区域宽 } else if (this.titleSearchListCopy[type].type === 'checkBox') { - const width = this.computeDistance(c.name + ' (' + c.num + ')', 14) + this.widthConstant.checkBox.tagBlankTotal + this.widthConstant.checkBox.boxMargin + const width = this.computeDistance(c.name + ' (' + c.num + ')', 16) + this.widthConstant.checkBox.tagBlankTotal + this.widthConstant.checkBox.boxMargin this.$set(c, 'width', width) // 总宽 } }) diff --git a/nezha-fronted/src/components/layout/home.vue b/nezha-fronted/src/components/layout/home.vue index 63bd3a1b3..a68ced595 100644 --- a/nezha-fronted/src/components/layout/home.vue +++ b/nezha-fronted/src/components/layout/home.vue @@ -14,6 +14,7 @@ + From d25045ea936f1263954598c599b8c31e19aea7ae Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 14 Jul 2022 18:08:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9Atemp-dom=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20fontsize=E4=B8=BA=2016=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/layout/home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/layout/home.vue b/nezha-fronted/src/components/layout/home.vue index a68ced595..00d0c9a87 100644 --- a/nezha-fronted/src/components/layout/home.vue +++ b/nezha-fronted/src/components/layout/home.vue @@ -14,7 +14,7 @@ - +