Replies: 2 comments 2 replies
-
Oh, going over the documentation again, I see this note about the
So, it looks like the behavior is "as designed". I'll close-out the bug discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For anyone that sees this, the correct syntax for using binding objects is either {
theme: {
class() {
return {
foo: true
}
},
style(){
return {
color: "red"
}
}
}
} or {
theme: {
class: `{
foo: true
}`,
style: `{
color: "red"
}`
}
} |
Beta Was this translation helpful? Give feedback.
2 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.
-
I'm not sure if I'm just doing something wrong here. But, I can use object-based
class
andstyle
attributes when the object is defined inline:This applies
foo
to theclass
attribute andcolor: red
to thestyle
attribute.However, if I try to move the class and style definitions to the data scope:
... then I get
class="[object object]" style="[object object]"
in the rendered HTML. I feel like I must be doing something wrong with my syntax, but I can't seem to figure it out. Or, maybe this is a bug?Beta Was this translation helpful? Give feedback.
All reactions