Radius

The select component can have different shapes. Here is an example of a rounded select.

Default props of all <BaseSelect> can be set in your <app>/app.config.ts.
نمایش کد
vue

Size

Selects can have different sizes. Use the size prop to change the size of the select component.

نمایش کد
vue

Contrast:default+

Selects can have different contrasts. Use the contrast prop to change the contrast of the select component.

نمایش کد
vue

Contrast:muted

Selects can have different contrasts. Use the contrast prop to change the contrast of the select component.

نمایش کد
vue

Contrast:muted+

Selects can have different contrasts. Use the contrast prop to change the contrast of the select component.

نمایش کد
vue

Option group

Selects can have option groups using the optgroup element to wrap your options.

نمایش کد
vue

Icon

Selects can have a configurable icon on the left side using the icon prop. Make sure to pick meaningful icons for your use case.

نمایش کد
vue

Error

Selects can be shown in an error state using the error prop. Use the same prop to display an error message.

این فیلد ضروری است
این فیلد ضروری است
این فیلد ضروری است
نمایش کد
vue

Label:float

Selects can have a material design style floating label using the labelFloat prop.

نمایش کد
vue

Loading

Selects can be shown in a loading state using the loading prop.

نمایش کد
vue

Disabled

Selects can be shown in a disabled state using the disabled prop.

نمایش کد
vue
v-model
نمایش مثال
vue
classes
Classes to apply to the select input.
نمایش مثال
vue
color-focus
Whether the color of the input should change when it is focused.
نمایش مثال
vue
disabled
Whether the select input is disabled.
نمایش مثال
vue
error
An error message to display, or a boolean indicating whether there is an error.
نمایش مثال
vue
icon
An icon to display in the select input.
نمایش مثال
vue
id
The form input identifier.
نمایش مثال
vue
label
The label text for the select input.
نمایش مثال
vue
label-float
If the label should be floating.
نمایش مثال
vue
loading
Whether the select input is in a loading state.
نمایش مثال
vue
placeholder
The placeholder to display for the select input.
نمایش مثال
vue
rounded
The radius of the select input.

@since

2.0.0

نمایش مثال
vue
contrast
The contrast of the select input.
نمایش مثال
vue
size
The size of the select input.
نمایش مثال
vue
#label
This slot has no inherted props
نمایش مثال
vue
#default
This slot has no inherted props
نمایش مثال
vue
#icon
This slot has no inherted props
نمایش مثال
vue
rounded
The radius of the select input.
نمایش مثال
vue
contrast
The contrast of the select input.
نمایش مثال
vue
size
The size of the select input.
نمایش مثال
vue
el
The underlying HTMLInputElement element.
نمایش مثال
vue