Skip to content

A2Select

Basic select component without label wrapper.

Props

PropertyTypeDefaultDescription
placeholderstring请选择Placeholder text
optionsarray[]Select options
disabledbooleanfalseDisabled state
clearablebooleanfalseClearable button
multiplebooleanfalseMultiple selection mode
filterablebooleanfalseSearchable
multipleLimitnumber0Multiple selection limit
sizelarge | default | smalldefaultSize

Option Structure

typescript
interface SelectOption {
  label: string       // Display text
  value: string | number  // Option value
  disabled?: boolean     // Disabled (optional)
}

Basic Example

Basic Select
无内容

Clearable Example

Clearable Select
无内容

Multiple Selection

Multiple Selection Mode
无内容

Searchable Example

Searchable Select
无内容

Disabled State

Disabled Options
无内容

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" }
}

A2UI Documentation