-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(compiler-sfc): support defineAttrs
macro
#9413
Conversation
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