数字角标,根据html结构和class类进行定义

构造函数

cmp.UI-badges

cmp.UI-badges ()

示例:

<!--有底色数字角标-->
    <span class="cmp-badge">1</span>
    <span class="cmp-badge cmp-badge-primary">12</span>

<!--无底色有边框-->
    <span class="cmp-badge custom">1</span>
    <span class="cmp-badge cmp-badge-primary custom">12</span>
<!--无底色无边框-->
    <span class="cmp-badge cmp-badge-inverted">1</span>
    <span class="cmp-badge cmp-badge-primary cmp-badge-inverted">12</span>

图例:

数字角标

Top