TSelectboxItem / 选择框项
SelectboxItem is a child component of TSelectboxes for individual selectable items. Supports label, description, icon, image, and color. / 选择框项是 TSelectboxes 的子组件,用于单个可选项目,支持标签、描述、图标、图片和颜色。
Props / 属性
| Prop | Type | Default | Description |
|---|---|---|---|
value | any | — | Option value (required) |
label | string | — | Display label |
description | string | — | Description text |
icon | Component | — | Icon |
disabled | boolean | false | Disabled |
Basic Usage / 基础用法
vue
<template>
<TSelectboxes>
<TSelectboxItem value="1" label="Option A" />
<TSelectboxItem value="2" label="Option B" />
</TSelectboxes>
</template>