-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【功能】希望 :class 能扩展语法与功能 #1893
Labels
Comments
请问怎么动态控制 class 呀,我想用三元表达式不知道怎么做。 |
@xiaomizhou66 举个例子 <text class="{{option == 0? 'selected':'normal'}}">例子</text> |
@Devil-Cong 这种方式已经支持到了 |
Gcaufy
added a commit
that referenced
this issue
Jun 16, 2019
请问vue可以多个{'classA': isShow, 'classB': isLoading} 怎么在wepy1.7.x实现? |
@hsqoo 1.7 中应该无此实现。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有块功能,需要通过后端返回来的 type 来控制对应的不同的样式,现有的语法只能这样写,type 的枚举值比较多,写起来有点不够优雅
建议扩展成以下类似 Vue 那样的语法跟功能
The text was updated successfully, but these errors were encountered: