ado5 60ac2c1c9a first commit 7 ヶ月 前
..
README.en-US.md 60ac2c1c9a first commit 7 ヶ月 前
README.md 60ac2c1c9a first commit 7 ヶ月 前
_var.wxss 60ac2c1c9a first commit 7 ヶ月 前
props.d.ts 60ac2c1c9a first commit 7 ヶ月 前
props.js 60ac2c1c9a first commit 7 ヶ月 前
switch.d.ts 60ac2c1c9a first commit 7 ヶ月 前
switch.js 60ac2c1c9a first commit 7 ヶ月 前
switch.json 60ac2c1c9a first commit 7 ヶ月 前
switch.wxml 60ac2c1c9a first commit 7 ヶ月 前
switch.wxss 60ac2c1c9a first commit 7 ヶ月 前
type.d.ts 60ac2c1c9a first commit 7 ヶ月 前
type.js 60ac2c1c9a first commit 7 ヶ月 前

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