custom element prop error: function prop pass as string
Vue version
3.2,.ce.vue (web components)
Link to minimal reproduction
Steps to reproduce
In a MyComp.ce.vue SFC:
props: {
someFn: {
type: Function as PropType<() => Promise<void>>,
},
}
then, usage
<my-comp :some-fn="() => {}" />
In MyComp.ce.vue, the prop: someFn
print as string.
I found that in dom the some-fn
is shown as attribute, I think it should be auto added in dom object property, similar with object or array prop.
What is expected?
the prop: someFn
passed should be function.
What is actually happening?
function prop passed as string
System Info
No response
Any additional comments?
No response