提交 377ae4b2 编写于 作者: Q qiang

fix: ComponentDescriptor $el

上级 b3ca28d1
......@@ -44,7 +44,11 @@ function parseStyleText (cssText) {
class ComponentDescriptor {
constructor (vm) {
this.$vm = vm
this.$el = vm.$el
Object.defineProperty(this, '$el', {
get () {
return vm.$el
}
})
}
selectComponent (selector) {
......@@ -186,4 +190,4 @@ export function createComponentDescriptor (vm, isOwnerInstance = true) {
}
return vm.__wxsComponentDescriptor
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册