fix(compiler-sfc): defineProps return binding or rest binding should be considered reactive
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user