The problem with the need for multiple definitions props & emits #473
nestle49
started this conversation in
RFC Discussions
Replies: 1 comment
-
Refer to vuejs/core#4294 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem with the need for multiple definitions defineProps and defineEmits.
It looks good:
But if we have 5 components using the same composition? For example Input component from project:
Input from 1 site theme:
Input from site theme 2:
And repeat this defenition for each component (five the same definitions!)
Also definition from composable:
It looks terrible, because we are forced to repeat the code, and the whole syntax looks cumbersome
I don't know the reason why we can't import the props definition, but perhaps we can discuss this problem?
Beta Was this translation helpful? Give feedback.
All reactions