Boolean type should not have default value
Version
3.0.0
Reproduction link
https://jsbin.com/cavekupoco/edit?html,console,output
Steps to reproduce
when set
props: {
visible: Boolean,
show: [Boolean, Number],
},
setup(props) {
console.log("props", props);
},
will get props.visible === false props.show === false
What is expected?
visible
and show
not in props
What is actually happening?
visible
and show
is false
@posva @underfin I changed the bug to a feature request. I don't think this is a reasonable design and I hope to modify this default behavior. Especially when there are multiple types.