Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upType of VNodeData style property should accept string values #9727
Comments
posva
added
the
typescript
label
Mar 17, 2019
This comment has been minimized.
This comment has been minimized.
|
when do you have a string property in style? Are you creating or modifying existing vnodes (they are read-only) |
posva
added
the
has PR
label
Mar 17, 2019
This comment has been minimized.
This comment has been minimized.
|
When I'm creating them. The problems happens exactly when I'm creating components with |
This comment has been minimized.
This comment has been minimized.
|
Ok, I was confused because you directly used the type on a variable instead of passing the object with not type to |
This comment has been minimized.
This comment has been minimized.
|
Sorry, my example may be bad. I also found on sources the function where Vue handle vue/src/platforms/web/util/style.js Lines 29 to 34 in 653c74e |
This comment has been minimized.
This comment has been minimized.
|
It was good already, but thanks for sharing :) |


VitorLuizC commentedMar 17, 2019
Version
2.6.9
Reproduction link
https://codesandbox.io/s/pkpkn7ljym
Steps to reproduce
Just try to use a
stringvalue forVNodeData'sstyleproperty.What is expected?
Vue handle
stringvalues forstyle, so types should allow the same.What is actually happening?
Type of
VNodeData'sstyledon't acceptstringvalues.@flow type declarations has same issue.