This is about props spread operator also known as ...rest, and how can I use this in Vue correctly? #11645
-
My code:The problem:I've got another option without errors or warnings, but still have a problem, the label and placeholder was inherited to the parent div.When I set the defineOptions - inheritAttrs to false, then the useId() will not work properly.
|
Beta Was this translation helpful? Give feedback.
Answered by
sadeghbarati
Aug 18, 2024
Replies: 1 comment 1 reply
-
In Vue 3.4 <= In Vue 3.5 >=, the Related Discussion |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
imnash21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Vue 3.4 <=
You need to use the
propsDestructure
option in@vitejs/plugin-vue
to destructure the propsIn Vue 3.5 >=, the
propsDestructure
option is enabled by defaultRelated Discussion
vuejs/rfcs#502