Badge 徽章

    1. <view class="page__hd">
    2. <view class="page__title">Badge</view>
    3. <view class="page__desc">徽章</view>
    4. </view>
    5. <view class="page__bd">
    6. <view class="example">
    7. <wux-badge dot="{{ true }}">
    8. <view class="example__badge"></view>
    9. </wux-badge>
    10. </view>
    11. <view class="example">
    12. <view class="example__badge"></view>
    13. </wux-badge>
    14. </view>
    15. <view class="example">
    16. <wux-badge count="3">
    17. <view class="example__badge"></view>
    18. </wux-badge>
    19. <view class="example">
    20. <wux-badge count="100">
    21. <view class="example__badge"></view>
    22. </wux-badge>
    23. </view>
    24. <view class="example">
    25. <wux-badge count="9999" overflow-count="1024">
    26. <view class="example__badge"></view>
    27. </wux-badge>
    28. </view>
    29. <view class="example">
    30. <wux-badge count="66" />
    31. <view class="example">
    32. <wux-badge count="88" wux-class-badge="bg-green" />
    33. </view>
    34. <view class="example">
    35. <wux-badge status="success" />
    36. </view>
    37. <wux-badge status="error" />
    38. </view>
    39. <view class="example">
    40. <wux-badge status="default" />
    41. </view>
    42. <view class="example">
    43. <wux-badge status="processing" />
    44. </view>
    45. <view class="example">
    46. <wux-badge status="warning" text="Warning" />
    47. </view>
    48. </view>
    49. </view>

    Badge