Radius

Inputs can be customized to show different radius factors. The default shape is rounded:sm. You can change the shape of all inputs by setting the rounded property.

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

Size

Inputs can have different sizes. The default size is md. You can change the size of all inputs by setting the size property.

نمایش کد
vue

Contrast:default+

Inputs can have different contrasts. The default contrast is default. You can change the contrast of an input number by setting the contrast property.

نمایش کد
vue

Contrast:muted

Inputs can have different contrasts. You can change the contrast of an input number by setting the contrast property.

نمایش کد
vue

Contrast:muted+

Inputs can have different contrasts. You can change the contrast of an input number by setting the contrast property.

نمایش کد
vue

Icon

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

You can also change icons for increment and decrement buttons using the icon-decrement and icon-increment props.

نمایش کد
vue

Step, min and max

You can change the step used by the increment and decrement buttons using the step prop, which defaults to 1.

Defining a min and max value will prevent the increment and decrement buttons from going beyond these values but will not prevent the user from typing a value outside of the range.

نمایش کد
vue

Disabled

Inputs can be shown in a disabled using the disabled prop.

نمایش کد
vue

Loading

Inputs can be shown in a loading using the loading prop.

نمایش کد
vue
v-model
modifiers

v-model.lazy

نمایش مثال
vue
classes
Optional CSS classes to apply to the wrapper, label, input, addon, error, and icon elements.
نمایش مثال
vue
color-focus
Whether the color of the input should change when it is focused.
نمایش مثال
vue
disabled
Whether the input is in a disabled state.
نمایش مثال
vue
error
An error message or boolean value indicating whether the input is in an error state.
نمایش مثال
vue
icon
The icon to display for the input.
نمایش مثال
vue
icon-decrement
The icon to display for the decrement button.
نمایش مثال
vue
icon-increment
The icon to display for the increment button.
نمایش مثال
vue
id
The form input identifier.
نمایش مثال
vue
inputmode
The inputmode to use for the input, usually for mobile devices.
نمایش مثال
vue
label
The label to display for the input.
نمایش مثال
vue
label-float
If the label should be floating.
نمایش مثال
vue
loading
Whether the input is in a loading state.
نمایش مثال
vue
max
Maximum value allowed when decrementing
نمایش مثال
vue
min
Minimum value allowed when decrementing
نمایش مثال
vue
placeholder
The placeholder to display for the input.
نمایش مثال
vue
step
Sets the stepping interval when clicking up and down spinner buttons
نمایش مثال
vue
type
The type of input.
نمایش مثال
vue
rounded
The radius of the input.

@since

2.0.0

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