A2Select
Basic select component without label wrapper.
Props
| Property | Type | Default | Description |
|---|---|---|---|
placeholder | string | 请选择 | Placeholder text |
options | array | [] | Select options |
disabled | boolean | false | Disabled state |
clearable | boolean | false | Clearable button |
multiple | boolean | false | Multiple selection mode |
filterable | boolean | false | Searchable |
multipleLimit | number | 0 | Multiple selection limit |
size | large | default | small | default | Size |
Option Structure
typescript
interface SelectOption {
label: string // Display text
value: string | number // Option value
disabled?: boolean // Disabled (optional)
}Basic Example
Clearable Example
Multiple Selection
Searchable Example
Disabled State
Difference from A2SelectField
- A2Select: Basic select component without label wrapper, for custom layout scenarios
- A2SelectField: Form field component with label, wrapped in el-form-item, for standard form scenarios
JSON Schema
json
{
"id": "selectId",
"component": "Select",
"placeholder": "Select option",
"multiple": false,
"filterable": false,
"clearable": true,
"options": [
{ "label": "Option 1", "value": "opt1" },
{ "label": "Option 2", "value": "opt2" },
{ "label": "Disabled Option", "value": "opt3", "disabled": true }
],
"value": { "path": "/form/selectField" }
}