wip: trying to make tests work

This commit is contained in:
Evan You
2018-11-02 07:43:28 +09:00
parent d70b7d6dd5
commit ba571cda61
7 changed files with 53 additions and 45 deletions

View File

@@ -109,7 +109,8 @@ export interface ComponentInstance<P = {}, D = {}>
// actual implementation of the component
class InternalComponent implements PublicInstanceMethods {
get $el(): any {
return this.$vnode && this.$vnode.el
const el = this.$vnode && this.$vnode.el
return typeof el === 'function' ? (el as any)() : el
}
$vnode: VNode | null = null