动态style/class+三元表达式
时间:2021-01-15 13:22:33
收藏:0
阅读:209
动态style:
-
<text style="left: {{item.txt == ‘value‘? ‘25%‘:‘-30%‘}}"></text>
动态class:
-
<view class="{{item.txt4==‘ETH‘?‘lineSolidT‘:‘lineDottT‘}}">
原文:https://www.cnblogs.com/lftBlogs/p/14154808.html
评论(0)