From 73133b888116554a5198a4a50de2bed657e2944e Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 15 May 2020 17:48:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpanel=E9=A1=B5?= =?UTF-8?q?=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE=E4=BC=9A?= =?UTF-8?q?=E6=8C=A1=E4=BD=8F=E5=9B=BE=E8=A1=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/panel.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 666336436..50fdf9a57 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -82,7 +82,7 @@ - + @@ -107,6 +107,7 @@ show: false, title: this.$t('dashboard.panel.createPanelTitle') }, + tableHover: false, /* pickerOptions: { shortcuts: [{ @@ -349,7 +350,6 @@ this.$refs.addChartModal.createData(this.showPanel.id); //初始化创建图表需要的初始数据 }, scrollbarHeightHandler() { - console.info(1) setTimeout(() => { let top = ''; let top2 = ''; @@ -588,6 +588,7 @@ let _self = this; let scrollbarWrap = this.$refs.dashboardScrollbar.wrap; scrollbarWrap.onscroll = function() { + console.info(scrollbarWrap.scrollTop) if (scrollbarWrap.scrollTop > 50) { _self.showTopBtn = true; } else { @@ -629,6 +630,12 @@ }, mounted: function () { this.onScroll(); + document.querySelector("#tableList").addEventListener("mouseenter", () => { + this.tableHover = true; + }); + document.querySelector("#tableList").addEventListener("mouseleave", () => { + this.tableHover = false; + }); }, computed: { refreshPanel() {