ado5 3903c18ce2 first commit il y a 9 mois
..
README.en-US.md 3903c18ce2 first commit il y a 9 mois
README.md 3903c18ce2 first commit il y a 9 mois
_var.wxss 3903c18ce2 first commit il y a 9 mois
props.d.ts 3903c18ce2 first commit il y a 9 mois
props.js 3903c18ce2 first commit il y a 9 mois
switch.d.ts 3903c18ce2 first commit il y a 9 mois
switch.js 3903c18ce2 first commit il y a 9 mois
switch.json 3903c18ce2 first commit il y a 9 mois
switch.wxml 3903c18ce2 first commit il y a 9 mois
switch.wxss 3903c18ce2 first commit il y a 9 mois
type.d.ts 3903c18ce2 first commit il y a 9 mois
type.js 3903c18ce2 first commit il y a 9 mois

README.en-US.md

:: 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 \| booleansee more ts definition | N default-value | String / Number / Boolean | undefined | uncontrolled property。Typescript:SwitchValue type SwitchValue = string \| number \| booleansee more ts definition | N

Switch Events

name | params | description -- | -- | -- change | (value: SwitchValue) | -