提交 8ed1ff78 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 示例项目 pull-zoom-image 解决警告问题

上级 7fdc9002
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
data() { data() {
return { return {
$INodeMap: new Map<string, INode>(), $INodeMap: new Map<string, INode>(),
refresherTriggered: false, refresherTriggered: false,
} }
}, },
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
this.refresherTriggered = false this.refresherTriggered = false
}, 0) }, 0)
}, },
getINodeByRefName(refName : string) : INode { getINode(refName : string) : INode {
let iNode : INode | null = this.$INodeMap.get(refName) let iNode : INode | null = this.$INodeMap.get(refName)
if (iNode == null) { if (iNode == null) {
iNode = this.$refs.get(refName) as INode; iNode = this.$refs.get(refName) as INode;
...@@ -65,8 +64,8 @@ ...@@ -65,8 +64,8 @@
}, },
// 工具方法,用于快速设置 INode 的 style // 工具方法,用于快速设置 INode 的 style
setINodeStyle(refName : string, propertyName : string, propertyStyle : any) : void { setINodeStyle(refName : string, propertyName : string, propertyStyle : any) : void {
let iNode = this.getINodeByRefName(refName) let iNode = this.getINode(refName)
iNode?.style?.setProperty(propertyName, propertyStyle); iNode.style.setProperty(propertyName, propertyStyle);
}, },
back() { back() {
uni.navigateBack({ uni.navigateBack({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册