Skip to content

Switch

Toggles between two states.

Examples

Wi-Fi
Disabled
Custom Color

Switch

Default, custom color, and disabled

API

Props

属性说明类型默认值
checkedWhether the switch is onbooleanfalse
disabledWhether disabledbooleanfalse
colorTrack color when onstring-

Events

属性说明类型默认值
changeFired when the value changes{ value: boolean }-

MiniDev Studio — Mini-app Development Toolkit