Skip to content

Commit 7e1f592

Browse files
Doctor-wusxzz
authored andcommitted
feat(runtime-vapor): apply inheritAttrs to instance
1 parent bb26087 commit 7e1f592

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/runtime-vapor/src/component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ export function createComponentInstance(
230230
*/
231231
// [VaporLifecycleHooks.SERVER_PREFETCH]: null,
232232
}
233+
if (component.inheritAttrs != null) {
234+
instance.inheritAttrs = component.inheritAttrs
235+
}
233236
initProps(instance, rawProps, !isFunction(component))
234237
instance.emit = emit.bind(null, instance)
235238

0 commit comments

Comments
 (0)