WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/switch
yj d281aab5b3 Initial Commit 2024-11-11 14:16:29 +08:00
..
README.en-US.md Initial Commit 2024-11-11 14:16:29 +08:00
README.md Initial Commit 2024-11-11 14:16:29 +08:00
props.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
props.js Initial Commit 2024-11-11 14:16:29 +08:00
switch.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
switch.js Initial Commit 2024-11-11 14:16:29 +08:00
switch.json Initial Commit 2024-11-11 14:16:29 +08:00
switch.wxml Initial Commit 2024-11-11 14:16:29 +08:00
switch.wxss Initial Commit 2024-11-11 14:16:29 +08:00
type.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
type.js Initial Commit 2024-11-11 14:16:29 +08:00

README.en-US.md

:: BASE_DOC ::

API

Switch Props

name type default description required
custom-value Array [true, false] TypescriptArray<SwitchValue> N
disabled Boolean false - N
icon Array [] Typescriptstring[] N
label Array [] Typescriptstring[] N
loading Boolean false - N
size String medium optionssmall/medium/large N
style String - - N
value String / Number / Boolean null TypescriptSwitchValue type SwitchValue = string | number | booleansee more ts definition N
default-value String / Number / Boolean undefined uncontrolled property。TypescriptSwitchValue type SwitchValue = string | number | booleansee more ts definition N

Switch Events

name params description
change (value: SwitchValue) -