开始使用 API对象 布局容器和栅格系统 Color 色彩 Button 按钮 Tag 标签 Badge 数字角标 List 列表 Grid 宫格 Card 卡片 Noticebar 通告 Steps 步骤条 Icon 图标 Srarch 搜索 侧滑菜单 图片上传 图片预览 图片裁剪 图片主色 星级评价 选择器 下拉选择 选项卡 生成二维码 复制剪贴板 物流信息 加入购物车 波浪特效 水球图 倒计时 雪花飘落 loading动画 toast消息提示弹窗 dialog提示窗 actionsheet操作表 actionmenu分享弹窗 popover菜单 picker多级联动 poster广告弹窗 keypad数字键盘 chatbox js聊天输入框

标签 Tag

使用 .aui-tag 来使用标签效果。使用 .aui-tag-* 来选择使用AUI提供的样式,详见示例。

示例代码

<div class="aui-content">
    <div class="content-top">
        Tag标签组件多用于商品列表、重点内容显示等场景。
    </div>
    <ul class="aui-card">
        <div class="aui-card-title">
            <span class="aui-card-title-line"></span>
            实心标签
        </div>
        <li class="aui-card-main">
            <span class="aui-tag aui-tag-gray">标签</span>
            <span class="aui-tag aui-tag-blue">标签</span>
            <span class="aui-tag aui-tag-success">标签</span>
            <span class="aui-tag aui-tag-waring">标签</span>
            <span class="aui-tag aui-tag-error">标签</span>
        </li>
    </ul>
    <ul class="aui-card">
        <div class="aui-card-title">
            <span class="aui-card-title-line"></span>
            空心标签
        </div>
        <li class="aui-card-main">
            <span class="aui-tag aui-tag-linear aui-tag-gray">标签</span>
            <span class="aui-tag aui-tag-linear aui-tag-blue">标签</span>
            <span class="aui-tag aui-tag-linear aui-tag-success">标签</span>
            <span class="aui-tag aui-tag-linear aui-tag-waring">标签</span>
            <span class="aui-tag aui-tag-linear aui-tag-error">标签</span>
        </li>
    </ul>
    <ul class="aui-card">
        <div class="aui-card-title">
            <span class="aui-card-title-line"></span>
            圆角标签
        </div>
        <li class="aui-card-main">
            <span class="aui-tag aui-tag-round aui-tag-gray">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-linear aui-tag-blue">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-success">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-linear aui-tag-waring">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-error">标签</span>
        </li>
    </ul>
    <ul class="aui-card">
        <div class="aui-card-title">
            <span class="aui-card-title-line"></span>
            小标签
        </div>
        <li class="aui-card-main">
            <span class="aui-tag aui-tag-round aui-tag-small aui-tag-gray">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-linear aui-tag-small aui-tag-blue">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-small aui-tag-success">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-linear aui-tag-small aui-tag-waring">标签</span>
            <span class="aui-tag aui-tag-round aui-tag-small aui-tag-error">标签</span>
        </li>
    </ul>
</div>