From aa97ececc113bc5b2a742e00772ff8d1316745f4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 22 Aug 2024 15:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=87=AA=E5=8A=A8=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/inject.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/inject.js b/src/utils/inject.js index 5354979..d19b8ca 100644 --- a/src/utils/inject.js +++ b/src/utils/inject.js @@ -142,7 +142,7 @@ Vue.component("scrollTable", { const dom = this.$el.querySelector('.el-table__body-wrapper') this.scroll = new SimpleBar(dom) dom.addEventListener('mouseover', this.stopAutoScroll) - dom.addEventListener('mouseout', this.autoScroll) + // dom.addEventListener('mouseout', this.autoScroll) // this.scroll.refresh(); }, autoScroll() { @@ -162,14 +162,14 @@ Vue.component("scrollTable", { } }, mounted() { - this.initScroll() - this.autoScroll() + this.initScroll() + // this.autoScroll() }, beforeDestroy() { this.stopAutoScroll() const dom = this.$el.querySelector('.el-table__body-wrapper') dom.removeEventListener("mouseover", this.stopAutoScroll) - dom.removeEventListener("mouseout", this.autoScroll) + // dom.removeEventListener("mouseout", this.autoScroll) } }) Vue.component("tableColumn", {