提交 83aab97f 编写于 作者: Q qiang

fix: ComponentDescriptor $el

上级 bf1802c2
......@@ -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.
先完成此消息的编辑!
想要评论请 注册