Carlos Rodrigues
Carlos Rodrigues
## Summary Introduce Generic components on `` and on `defineComponent` ## Links - [Full Rendered Proposal](https://github.com/pikax/rfcs/blob/generic_component/active-rfcs/0000-generic-components.md) - [Discussion Thread](https://github.com/vuejs/rfcs/discussions/436) --- **Important: Do NOT comment on this PR. Please use the...
## Summary Allow `attrs` to behave like `props` for a similar ReactJS behaviour. ```ts interface CompProps { name: string age: number } defineComponent({ noProps: true, // or props: null setup(props){...
Add support for https://github.com/vuejs/core/pull/9556 Still work in progress.
On v3 there's no more `$listeners` and users might rely on that to handle certain case ```ts // v2 if($listeners['my-event']) { // do something $listeners['my-event']() } ``` In v3 the...
closes #6063 based on https://github.com/vuejs/core/pull/6124 Not exposing the `whitespace` option to the context because I don't think ``` // pseudo-node SlotNode(vIf) TextNode('') SlotNode(vElse) ``` Is possible without the whitespace preserve,...
fix https://github.com/vuejs/core/issues/9649 Appends slot information as `props`, since the SlotType relies on a symbol, that won't bleed out to props. I personally don't really like this approach, since I would...
Adding type helpers to easy the transition from React to Vue. ## Motivation People coming from `React` are used to have this type helpers to type DOM events, which in...
fix #3102 Allow generic components through a class component declaration. Class maintain the correct type, if we use function or even the current DefineComponent the finer type will be lost....
Requires [[email protected]](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/) > NOTE: There's some build errors when updating to [email protected], this PR is not meant to fix those errors, only to implement string type inference   ...
Based on https://github.com/vuejs/core/pull/3039