diff --git a/packages/vue/src/shared/connect.ts b/packages/vue/src/shared/connect.ts index bc4943af0ed..5fbfb7a93bb 100644 --- a/packages/vue/src/shared/connect.ts +++ b/packages/vue/src/shared/connect.ts @@ -110,6 +110,7 @@ export function connect( if (isVue2) { const functionalComponent = defineComponent({ functional: true, + name: target.name, render(h, context) { return h(Component, context.data, context.children) }, @@ -117,6 +118,7 @@ export function connect( return markRaw(functionalComponent) as T } else { const functionalComponent = defineComponent({ + name: target.name, setup(props, { attrs, slots }) { return () => { return h(Component, { props, attrs }, slots)