createApp passing props causes residual properties on html #12841
Replies: 6 comments
-
But if I configure inheritAttrs to false, it's ok. It feels a little weird. Can anyone tell me why |
Beta Was this translation helpful? Give feedback.
-
The 'props' attribute passed into That object is split up inside the component. Typically, you'd use Any properties that aren't declared as component props or events become fallthrough attributes. These are what you get from Fallthrough attributes are documented at https://vuejs.org/guide/components/attrs.html. You should probably be using component props rather than fallthrough attributes. I can see why using |
Beta Was this translation helpful? Give feedback.
-
tsebim收到来信
|
Beta Was this translation helpful? Give feedback.
-
tsebim收到来信
|
Beta Was this translation helpful? Give feedback.
-
Similar to this: https://github.com/orgs/vuejs/discussions/12888 |
Beta Was this translation helpful? Give feedback.
-
createApp passed props Why does it have residual properties on html that look ugly,But the properties in Figure 2 are not left behind, and not because I passed a function, as I would if I tried to pass other properties.


Beta Was this translation helpful? Give feedback.
All reactions