Skip to content

tag component #4

@shengxinjing

Description

@shengxinjing
  • 通过type定义tag类型样式[可选值:success/info/warning/danger/空值]
    • 添加validator校验type的值
  • 通过closable控制tag是否可关闭[默认值false]
    • 当closable为true时显示x图标
    • 为x图标添加关闭事件
    • 触发自定义事件close
  • 通过disable-transitions控制tag标签是否拥有渐变动画[默认值false]
    • 通过是否包裹transition组件来控制是否拥有动画[后续可考虑迭代]
  • 通过hit控制是否为边框描边
  • 通过color设置背景颜色
  • 通过size控制tag的尺寸[可选值:medium/small/mini]
    • 可通过全局配置$ELEMENT配置
    • 可通过props直接进行配置
  • 点击tag时触发父级click自定义事件

参考 https://e3.shengxinjing.cn/#/component/tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions