Skip to content

Commit 1fbc02f

Browse files
authored
fix(vue2): mark functional component (#1676)
1 parent bec47a7 commit 1fbc02f

File tree

1 file changed

+5
-1
lines changed
  • packages/app-backend-vue2/src/components

1 file changed

+5
-1
lines changed

packages/app-backend-vue2/src/components/tree.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ export function getComponentParents (instance, api: DevtoolsApi, ctx: BackendCon
3636
const id = getUniqueId(vm)
3737
if (captureIds.has(id)) return
3838
captureIds.set(id, undefined)
39-
mark(vm)
39+
if (vm.__VUE_DEVTOOLS_FUNCTIONAL_LEGACY__) {
40+
markFunctional(id, vm.vnode)
41+
} else {
42+
mark(vm)
43+
}
4044
}
4145

4246
const parents = []

0 commit comments

Comments
 (0)