Skip to content

Commit 59c1ebc

Browse files
committed
support extends template for runtime compiler
1 parent 0cf9ae6 commit 59c1ebc

File tree

2 files changed

+446
-1
lines changed

2 files changed

+446
-1
lines changed

packages/runtime-core/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ export function finishComponentSetup(
788788
(__COMPAT__ &&
789789
instance.vnode.props &&
790790
instance.vnode.props['inline-template']) ||
791-
Component.template
791+
Component.template || instance.ctx.$options.template
792792
if (template) {
793793
if (__DEV__) {
794794
startMeasure(instance, `compile`)

0 commit comments

Comments
 (0)