TTagList / 标签列表
TagList renders multiple TTag components from an array. Supports string or object options, close events, and custom content via slots. / 标签列表从数组渲染多个 TTag 标签,支持字符串或对象配置、关闭事件和自定义插槽内容。
Props / 属性
| Prop | Type / 类型 | Default / 默认值 | Description / 说明 |
|---|---|---|---|
options | (TagOption | string)[] | [] | Tag options |
Events / 事件
| Event | Payload | Description |
|---|---|---|
@close | (option, index) | Tag closed |
Basic Usage / 基础用法
vue
<template>
<TTagList :options="['Vue', 'React', 'Svelte']" @close="handleClose" />
</template>