From 9f5386f8f098a1cb1c311d54af47423ad82a1c31 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Fri, 22 Sep 2023 19:02:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4$refs=E8=8E=B7=E5=8F=96Elemen?= =?UTF-8?q?t=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/pull-zoom-image/pull-zoom-image.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/template/pull-zoom-image/pull-zoom-image.uvue b/pages/template/pull-zoom-image/pull-zoom-image.uvue index 91722d71..88d679ae 100644 --- a/pages/template/pull-zoom-image/pull-zoom-image.uvue +++ b/pages/template/pull-zoom-image/pull-zoom-image.uvue @@ -25,7 +25,7 @@ - + @@ -64,7 +64,7 @@ setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void { let element : Element | null = this.$elementMap.get(refName) if (element == null) { - element = this.$refs[refName] as Element; + element = this.$refs.get(refName) as Element; this.$elementMap.set(refName, element) } element.style.setProperty(propertyName, propertyStyle); -- GitLab