From 8ed1ff780a79bb88052053daec1baf9a69d0d2df Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 8 Sep 2023 12:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=20pull-zoom-image=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/pull-zoom-image/pull-zoom-image.uvue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/template/pull-zoom-image/pull-zoom-image.uvue b/pages/template/pull-zoom-image/pull-zoom-image.uvue index 7cc3b98e..7e15be91 100644 --- a/pages/template/pull-zoom-image/pull-zoom-image.uvue +++ b/pages/template/pull-zoom-image/pull-zoom-image.uvue @@ -37,7 +37,6 @@ data() { return { $INodeMap: new Map(), - refresherTriggered: false, } }, @@ -55,7 +54,7 @@ this.refresherTriggered = false }, 0) }, - getINodeByRefName(refName : string) : INode { + getINode(refName : string) : INode { let iNode : INode | null = this.$INodeMap.get(refName) if (iNode == null) { iNode = this.$refs.get(refName) as INode; @@ -65,8 +64,8 @@ }, // 工具方法,用于快速设置 INode 的 style setINodeStyle(refName : string, propertyName : string, propertyStyle : any) : void { - let iNode = this.getINodeByRefName(refName) - iNode?.style?.setProperty(propertyName, propertyStyle); + let iNode = this.getINode(refName) + iNode.style.setProperty(propertyName, propertyStyle); }, back() { uni.navigateBack({ -- GitLab