Expose the native attributes of elements such as button and P in the component
What problem does this feature solve?
I have another component of my-button
, he has a size
and border
properties, but if I pass id
and role
in typeScript, it will prompt me an error, props does not have this property, is there a method similar to react to inherit the type of HtmlButtonElement
?
What does the proposed API look like?
Not yet
https://github.com/vuejs/rfcs/pull/477 cc @bosens-China