You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just like this :class="{'a b c': flag, d: flag2}"
as well as this :class="[flag?'a b c':'']"
The text was updated successfully, but these errors were encountered:
luwenjin
changed the title
[feature request] :class object support multiple class name as key
[feature request] :class object support multiple class names as key
Mar 26, 2016
this is a real life example when i was using semantic-ui framework,
they often have multiple class names tide to one condition.
My instinct tell me to type like the first example, however Vue gave me an error.
The second exemple would work as an expression returning a string, not a list.
The best way to it imo would be to use a list as a property computed from flag
just like this
:class="{'a b c': flag, d: flag2}"
as well as this
:class="[flag?'a b c':'']"
The text was updated successfully, but these errors were encountered: