提交 b2b37981 编写于 作者: fxy060608's avatar fxy060608

feat(wxs): add getComputedStyle

上级 70aaee2b
......@@ -125,6 +125,13 @@ class ComponentDescriptor {
return this.$el && this.$el.classList.contains(cls)
}
getComputedStyle () {
if (this.$el) {
return window.getComputedStyle(this.$el)
}
return {}
}
getDataset () {
return this.$el && this.$el.dataset
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册