Spreading data functional components TSX type error

This issue has been tracked since 2022-09-12.

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

Spread data onto TSX component / intrinsic element causes type errors due to miss matching style definition of VNodeData property.

https://github.com/vuejs/jsx-vue2#attributesprops

What is expected?

Expect the spreading of data to not throw type error.

What is actually happening?

The style attribute expects the shape of string | CSSProperties however the VNodeData definition is string | object[] | object

k-furusho wrote this answer on 2022-09-19

I'm trying to solve this PR #12789

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-06
Star Count 199800
Watcher Count 6093
Fork Count 32882
Issue Count 590

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date