fix(compiler-sfc): defineProps return binding or rest binding should be considered reactive

This commit is contained in:
Evan You
2022-05-10 17:34:15 +08:00
parent 03b03eee44
commit 410144149f
6 changed files with 22 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ const bar = 1
expect(bindings).toStrictEqual({
foo: BindingTypes.PROPS,
bar: BindingTypes.SETUP_CONST,
props: BindingTypes.SETUP_CONST
props: BindingTypes.SETUP_REACTIVE_CONST
})
// should remove defineOptions import and call

View File

@@ -141,7 +141,7 @@ describe('sfc props transform', () => {
foo: BindingTypes.PROPS,
bar: BindingTypes.PROPS,
baz: BindingTypes.PROPS,
rest: BindingTypes.SETUP_CONST
rest: BindingTypes.SETUP_REACTIVE_CONST
})
})