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

fix(wxs): callMethod (question/137832)

上级 998ef2a6
......@@ -7179,11 +7179,12 @@ export default function vueFactory(exports) {
value: vnode,
enumerable: false
});
} // fixed by xxxxxx (框架始终都要能访问到__vueParentComponent,主要是renderjs)
Object.defineProperty(el, '__vueParentComponent', {
value: parentComponent,
enumerable: false
});
}
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
......
......@@ -6136,7 +6136,13 @@ export default function vueFactory(exports) {
setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
}
} // fixed by xxxxxx (框架始终都要能访问到__vueParentComponent,主要是renderjs)
Object.defineProperty(el, '__vueParentComponent', {
value: parentComponent,
enumerable: false
});
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
......
......@@ -5330,11 +5330,12 @@ function baseCreateRenderer(options, createHydrationFns) {
value: vnode,
enumerable: false
});
}
// fixed by xxxxxx (框架始终都要能访问到__vueParentComponent,主要是renderjs)
Object.defineProperty(el, '__vueParentComponent', {
value: parentComponent,
enumerable: false
});
}
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册