Skip to content
On this page

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标签类型stringdefault/success/danger/warningdefault
iconClass自定义图标classstring