Ntag 状态标签(齐思博)
基础用法
支持4种默认标签类型,可自定义icon。
iconClass:自定义图标时,必须传入完整的class
状态标签:
默认
通过
不通过
审核中
自定义图标
<template>
<div>
状态标签:
<h-ntag name="默认"></h-ntag>
<h-ntag type="success" name="通过"></h-ntag>
<h-ntag type="danger" name="不通过"></h-ntag>
<h-ntag type="warning" name="审核中"></h-ntag>
<h-ntag type="success" name="自定义图标" iconClass="iconfont icon-weitongguo"></h-ntag>
</div>
</template>Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| name | 标签名 | string | — | — |
| type | 标签类型 | string | default/success/danger/warning | default |
| iconClass | 自定义图标class | string | — | — |