feat(compiler-sfc): support defineAttrs macro#9413
feat(compiler-sfc): support defineAttrs macro#9413rudyxu1102 wants to merge 1 commit intovuejs:minorfrom
defineAttrs macro#9413Conversation
Size ReportBundles
Usages
|
defineAttrs macrodefineAttrs macro
|
Is there any difference between this PR and #7444? |
|
#7444 did the same thing ( In you PR, const attrs = defineAttrs<{
bar?: number
}>()Let's discuss in #7444 since they're basically doing the same feature. |
I also planned to use e.g. Vue SFC Playground Judging from the discussion in RFC#477, most people like |
|
Sorry, I was misled and thought these two PRs belonged to two different authors. (P.S hope to have a more detailed PR description in the future :P ) Compared to defineComponent({
setup(_, { attrs }){}
})Sorry again! I should discuss this with you before giving review suggestions. Please hold on, I will discuss it with Evan for a final decision. |
|
After discussion, we decided to do something similar to |
|
I think this PR and #7444 can be combined into one. WDYT? |
Of course.Thank you for your positive response. |
cf72855 to
94a60f3
Compare
RFC