Files
miniprogram-doctor/node_modules/tdesign-miniprogram/miniprogram_dist/switch
2023-03-06 17:57:39 +08:00
..
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00
2023-03-06 17:57:39 +08:00

:: BASE_DOC ::

API

Switch Props

name type default description required
custom-value Array [true, false] Typescript:Array<SwitchValue> N
disabled Boolean false - N
icon Array [] Typescript:string[] N
label Array [] Typescript:string[] N
loading Boolean false - N
size String medium options:small/medium/large N
style String - - N
value String / Number / Boolean null Typescript:SwitchValue type SwitchValue = string | number | boolean。see more ts definition N
default-value String / Number / Boolean undefined uncontrolled property。Typescript:SwitchValue type SwitchValue = string | number | boolean。see more ts definition N

Switch Events

name params description
change (value: SwitchValue) -