diff --git a/pages/template/pull-zoom-image/pull-zoom-image.uvue b/pages/template/pull-zoom-image/pull-zoom-image.uvue index 0b360da87715fd999e55c702ef7bad0b8486207a..ee1f4de52082f4daea6c146a69c112c5c7503f86 100644 --- a/pages/template/pull-zoom-image/pull-zoom-image.uvue +++ b/pages/template/pull-zoom-image/pull-zoom-image.uvue @@ -62,10 +62,10 @@ }, // 工具方法,用于快速设置 Element 的 style setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void { - let element : Element | null = this.$elementMap.get(refName) + let element : Element | null = (this.$data['$elementMap'] as Map).get(refName) if (element == null) { element = this.$refs[refName] as Element; - this.$elementMap.set(refName, element) + (this.$data['$elementMap'] as Map).set(refName, element) } element.style.setProperty(propertyName, propertyStyle); },