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

fix: ComponentDescriptor $el

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