提交 d0e31e6c 编写于 作者: DCloud-yyl's avatar DCloud-yyl

调整Element为UniElement

上级 0c1bdf1c
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
}, },
// 工具方法,用于快速设置 Element 的 style // 工具方法,用于快速设置 Element 的 style
setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void { setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void {
const elementMap = this.$data['$elementMap'] as Map<string, Element> const elementMap = this.$data['$elementMap'] as Map<string, UniElement>
let element : Element | null = elementMap.get(refName) let element : UniElement | null = elementMap.get(refName)
if (element == null) { if (element == null) {
element = this.$refs[refName] as UniElement; element = this.$refs[refName] as UniElement;
elementMap.set(refName, element) elementMap.set(refName, element)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册