Explorar o código

chore: fix compat props default test

Evan You hai 1 ano
pai
achega
c2ff3bd564
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/componentProps.ts

+ 1 - 1
packages/runtime-core/src/componentProps.ts

@@ -201,7 +201,7 @@ export function initProps(
   isStateful: number, // result of bitwise flag comparison
   isSSR = false,
 ): void {
-  const props: Data = {}
+  const props: Data = (instance.props = {})
   const attrs: Data = createInternalObject()
 
   instance.propsDefaults = Object.create(null)