From c06d65ff001c4d075b703977f25a14e8c0467897 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Mon, 21 Nov 2022 10:54:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20el-scrollbar=20api?= =?UTF-8?q?=20=E5=8F=98=E5=8A=A8=E5=AF=BC=E8=87=B4=E7=9A=84=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=BB=9A=E5=8A=A8=E5=8F=AF=E8=A7=86=E5=8C=BA=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/ScrollPane.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue index 247733e..e5f2c25 100644 --- a/src/layout/components/TagsView/ScrollPane.vue +++ b/src/layout/components/TagsView/ScrollPane.vue @@ -26,7 +26,7 @@ const scrollTo = (direction: "left" | "right") => { /** 可滚动内容的长度 */ const scrollbarContentRefWidth = scrollbarContentRef.value!.clientWidth /** 滚动可视区宽度 */ - const scrollbarRefWidth = scrollbarRef.value!.wrap$!.clientWidth + const scrollbarRefWidth = scrollbarRef.value!.wrapRef!.clientWidth /** 最后剩余可滚动的宽度 */ const lastDistance = scrollbarContentRefWidth - scrollbarRefWidth - currentScrollLeft // 没有横向滚动条,直接结束