You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kgdxpr e69712b1d2
'commit'
1 year ago
..
README.en-US.md 'commit' 1 year ago
README.md 'commit' 1 year ago
props.d.ts 'commit' 1 year ago
props.js 'commit' 1 year ago
switch.d.ts 'commit' 1 year ago
switch.js 'commit' 1 year ago
switch.json 'commit' 1 year ago
switch.wxml 'commit' 1 year ago
switch.wxss 'commit' 1 year ago
type.d.ts 'commit' 1 year ago
type.js 'commit' 1 year ago

README.en-US.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:: 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) -