From 639f3c2dd575fbea0cd1389100af2f000bb889eb Mon Sep 17 00:00:00 2001 From: LiuPeZh <438899301@qq.com> Date: Wed, 23 Dec 2020 11:17:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=5Fbug:=20shutdown=20debugger(=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=BA=90=E7=A0=81=E4=B8=AD=E7=9A=84debugger)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scrollbar/src/main.vue | 1 - scrollbar/src/utils/scroll-into-view.js | 1 - src/components/EasyScroll.vue | 2 -- 3 files changed, 4 deletions(-) diff --git a/scrollbar/src/main.vue b/scrollbar/src/main.vue index afe72f9..1f5c0e8 100644 --- a/scrollbar/src/main.vue +++ b/scrollbar/src/main.vue @@ -163,7 +163,6 @@ export default { let heightPercentage, widthPercentage; const wrap = this.wrap; if (!wrap) return; - debugger heightPercentage = (wrap.clientHeight * 100 / wrap.scrollHeight); widthPercentage = (wrap.clientWidth * 100 / wrap.scrollWidth); this.sizeHeight = (heightPercentage < 100) ? (heightPercentage + '%') : ''; diff --git a/scrollbar/src/utils/scroll-into-view.js b/scrollbar/src/utils/scroll-into-view.js index 8da37a9..716f4bb 100644 --- a/scrollbar/src/utils/scroll-into-view.js +++ b/scrollbar/src/utils/scroll-into-view.js @@ -7,7 +7,6 @@ export default function scrollIntoView(container, selected) { container.scrollTop = 0; return; } -debugger const top = selected.offsetTop; const bottom = selected.offsetTop + selected.offsetHeight; const viewRectTop = container.scrollTop; diff --git a/src/components/EasyScroll.vue b/src/components/EasyScroll.vue index 183c0cb..267a43e 100644 --- a/src/components/EasyScroll.vue +++ b/src/components/EasyScroll.vue @@ -188,8 +188,6 @@ mounted:function () { var bodyHei = document.documentElement.clientHeight; this.$refs.root.style.height = bodyHei; - debugger - }, methods:{ addOption:function () {