InputNumber🎛️
This component is used to control the increase and decrease of numbers
Code demonstration
import { UInputNumber } from 'ungeui';
Basic usage🚀
限制范围🚧
Different strides🦶
Different sizes🔥
Props
Parameter | description | type | default value |
---|---|---|---|
value(v-model) | value | number | 0 |
step | change step | number | 1 |
max | max value | number | undefined |
min | min value | number | 0 |
on-change | user input | (value) => void | 0 |
on-increase | click Add | (value) => void | undefined |
on-decrease | click Minus | (value) => void | undefined |