ado5 3903c18ce2 first commit | 9 months atrás | |
---|---|---|
.. | ||
README.en-US.md | 9 months atrás | |
README.md | 9 months atrás | |
_var.wxss | 9 months atrás | |
props.d.ts | 9 months atrás | |
props.js | 9 months atrás | |
switch.d.ts | 9 months atrás | |
switch.js | 9 months atrás | |
switch.json | 9 months atrás | |
switch.wxml | 9 months atrás | |
switch.wxss | 9 months atrás | |
type.d.ts | 9 months atrás | |
type.js | 9 months atrás |
:: BASE_DOC ::
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
name | params | description
-- | -- | --
change | (value: SwitchValue)
| -