Skip to content

TTagList / 标签列表

TagList renders multiple TTag components from an array. Supports string or object options, close events, and custom content via slots. / 标签列表从数组渲染多个 TTag 标签,支持字符串或对象配置、关闭事件和自定义插槽内容。

Props / 属性

PropType / 类型Default / 默认值Description / 说明
options(TagOption | string)[][]Tag options

Events / 事件

EventPayloadDescription
@close(option, index)Tag closed

Basic Usage / 基础用法

vue
<template>
  <TTagList :options="['Vue', 'React', 'Svelte']" @close="handleClose" />
</template>