Props not inferred properly when using defineCustomElement
Version
3.2.6
Reproduction link
Steps to reproduce
- Define props in a file called
App.ce.vue
const props = defineProps({
shouldbestring: {
required: true,
type: String,
}
});
- Create a component in DOM like this:
<custom-element shouldbestring="7e8dfe0e-eb4c-4615-a8da-2f150faaef8e"></custom-element>
The output of props.shouldbestring is number 70000
.
What is expected?
The prop value should be "7e8dfe0e-eb4c-4615-a8da-2f150faaef8e"
What is actually happening?
The prop value is 70000.