Wheel

I use it for TimePicker, don't know if there are other uses.

Demos#

API#

Preset Types#

ts
type WheelRawOption =
  | string
  | number
  | {
    value: string | number,
    label?: string,
    disabled?: boolean
  }

Wheel Props#

NameTypeDescriptionDefaultSince
arrowbooleanSet whether to use the scroll wheel arrow indicatorfalse-
candidatenumberSet the number of candidates up and down the scroll wheel, the optional range is 0 ~ 32-
disabledbooleanSet whether the wheel is disabledfalse2.0.0
disabled-item(value: string | number, data: WheelRawOption) => booleanSet disabled items() => false2.0.14
horizontalbooleanSet whether the scroll wheel is in landscape modefalse-
insert-emptyboolean | stringSet whether insert a empty value, can be specify the label when passing a stringfalse2.0.0
loadingbooleanSet whether is loadingfalse2.0.0
loading-lockbooleanSet whether to be read-only when loadingfalse2.0.0
no-transitionbooleanWhether to disable scroll transition effectfalse2.2.17
optionsWheelRawOption[]Set the options of wheel[]2.0.0
selectablebooleanSets whether the options can be active by clickingfalse2.3.11
state'default' | 'success' | 'error' | 'warning'The state of wheel'default'2.0.0
valuestring | numberThe index of the currently active element, can use v-model two-way binding0-

Wheel Events#

NameDescriptionParametersSince
changeTriggered when the currently active element changes, returns the element's index and value(value: string | number)-