vr-shopxo-source/sourcecode/qq/default/components/badge/badge.qml

5 lines
208 B
QML
Raw Normal View History

2019-10-31 06:51:15 +00:00
<view qq:if="{{propNumber > 0}}" class="am-badge">
<view class="am-badge-text {{(propNumber > 99) ? 'am-badge-text-max' : ''}}">
<text>{{(propNumber > 99) ? '99+' : propNumber}}</text>
</view>
</view>