动态style/class+三元表达式

动态style:

  • <text style="left: {{item.txt == 'value'? '25%':'-30%'}}"></text>

动态class:

  • <view class="{{item.txt4=='ETH'?'lineSolidT':'lineDottT'}}">
posted @ 2021-01-15 11:16  会转圈圈的哆瑞米  阅读(348)  评论(0编辑  收藏  举报