A2InfoField
Information display field component with icon + label + value layout. Supports multiple value style variants.
Props
| Property | Type | Default | Description |
|---|---|---|---|
label | string | - | Label text |
modelValue | string | - | Display value |
icon | string | - | Icon name (Element Plus icon) or image URL |
variant | `tag | text | quote` |
size | `large | default` | default |
bgColor | string | - | Row background color (auto edge-to-edge when set) |
Variant Reference
| Variant | Effect |
|---|---|
text | Plain text style |
tag | Blue tag style (bg #EFF4FF, text #2260FA) |
quote | Gray quote block style (bg #F5F7FA, radius 8px) |
Basic Example
Tag Variant Example
Quote Variant Example
With Icon Example
JSON Schema
json
{
"id": "infoFieldId",
"type": "a2-info-field",
"props": {
"label": "Label Name",
"modelValue": "Display Value",
"variant": "tag",
"icon": "Monitor",
"size": "default",
"bgColor": "#F8F8FB"
}
}