ado5 3903c18ce2 first commit | hace 9 meses | |
---|---|---|
.. | ||
README.en-US.md | hace 9 meses | |
README.md | hace 9 meses | |
_var.wxss | hace 9 meses | |
props.d.ts | hace 9 meses | |
props.js | hace 9 meses | |
switch.d.ts | hace 9 meses | |
switch.js | hace 9 meses | |
switch.json | hace 9 meses | |
switch.wxml | hace 9 meses | |
switch.wxss | hace 9 meses | |
type.d.ts | hace 9 meses | |
type.js | hace 9 meses |
:: 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)
| -