Closed
Description
When using Vetur's template interpolation service, object props cannot be used directly in the template from 0.5.0, without getting syntax errors:
Exposing the user through setup, i.e.
export default defineComponent({
props: {
user: Object as PropType<IUser>,
},
setup(props) {
return { user: props.user as IUser }
}
});
works for Vetur, but then the console will print warnings:
[Vue warn]: The setup binding property "user" is already declared as a prop.
Metadata
Metadata
Assignees
Labels
No labels