@beisen-phoenix/switch
> 目前支持两种尺寸:`default|small`
Last updated 8 months ago by beisencorp .
ISC · Original npm · Tarball · package.json
$ cnpm install @beisen-phoenix/switch 
SYNC missed versions from official npm registry.

Switch 开关组件

目前支持两种尺寸:default|small

API

参数 说明 类型 默认值 是否必传 备注
className 自定义类名 string
prefixCls 自定义类名前缀 string phoenix-switch 非必要时不建议使用,传值后需要自定义所有样式
disabled 是否可用 boolean false
size 组件尺寸,可选值为default、small string default
checkedChildren 开启状态时组件内显示的内容 ReactNode null
unCheckedChildren 关闭状态时组件内显示的内容 ReactNode null
onChange 状态改变时的回调, 参数为checkedSyntheticEvent function
onMouseUp 鼠标抬起时的回调,参数为SyntheticEvent function
onClick 点击回调, 参数为checkedSyntheticEvent function
tabIndex tabindex值 number 0 若tab键切换时不希望被遍历到,请设置值为-1
checked 开关状态 boolean false
defaultChecked 开关默认状态 boolean false
autoFocus 自动获得焦点 boolean false
loading loading状态 boolean false
style 内联样式 object

Current Tags

  • 3.3.54                                ...           latest (8 months ago)
  • 3.2.44-rc.1                                ...           rc (9 months ago)

219 Versions

  • 3.3.54                                ...           8 months ago
  • 3.3.53                                ...           8 months ago
  • 3.3.52                                ...           8 months ago
  • 3.3.51                                ...           8 months ago
  • 3.3.50                                ...           8 months ago
  • 3.3.48                                ...           8 months ago
  • 3.3.47                                ...           8 months ago
  • 3.3.46                                ...           8 months ago
  • 3.3.45                                ...           8 months ago
  • 3.3.43                                ...           8 months ago
  • 3.3.42                                ...           8 months ago
  • 3.3.41-beta.1                                ...           8 months ago
  • 3.3.41                                ...           8 months ago
  • 3.3.39                                ...           8 months ago
  • 3.3.38                                ...           8 months ago
  • 3.3.37                                ...           8 months ago
  • 3.3.36                                ...           8 months ago
  • 3.3.35                                ...           8 months ago
  • 3.3.34                                ...           8 months ago
  • 3.3.33                                ...           8 months ago
  • 3.3.32                                ...           8 months ago
  • 3.3.31                                ...           8 months ago
  • 3.3.29                                ...           8 months ago
  • 3.3.28                                ...           8 months ago
  • 3.3.27                                ...           8 months ago
  • 3.3.26                                ...           8 months ago
  • 3.3.25                                ...           8 months ago
  • 3.3.24                                ...           8 months ago
  • 3.3.23                                ...           8 months ago
  • 3.3.22                                ...           8 months ago
  • 3.3.21                                ...           8 months ago
  • 3.3.20                                ...           8 months ago
  • 3.3.19                                ...           8 months ago
  • 3.3.18                                ...           8 months ago
  • 3.3.17                                ...           8 months ago
  • 3.3.16                                ...           8 months ago
  • 3.3.15                                ...           8 months ago
  • 3.3.14                                ...           8 months ago
  • 3.3.13                                ...           8 months ago
  • 3.3.12                                ...           8 months ago
  • 3.3.11                                ...           8 months ago
  • 3.3.10                                ...           8 months ago
  • 3.3.9                                ...           8 months ago
  • 3.3.8                                ...           8 months ago
  • 3.3.7                                ...           8 months ago
  • 3.3.6                                ...           8 months ago
  • 3.3.5                                ...           8 months ago
  • 3.2.80-beta.1                                ...           8 months ago
  • 3.2.80                                ...           8 months ago
  • 3.3.4                                ...           8 months ago
  • 3.3.3                                ...           8 months ago
  • 3.3.1                                ...           8 months ago
  • 3.3.0                                ...           8 months ago
  • 3.2.97                                ...           8 months ago
  • 3.2.95                                ...           8 months ago
  • 3.2.94                                ...           8 months ago
  • 3.2.93                                ...           8 months ago
  • 3.2.92                                ...           8 months ago
  • 3.2.90                                ...           8 months ago
  • 3.2.88                                ...           8 months ago
  • 3.2.87                                ...           8 months ago
  • 3.2.86                                ...           8 months ago
  • 3.2.85                                ...           8 months ago
  • 3.2.84                                ...           8 months ago
  • 3.2.83                                ...           8 months ago
  • 3.2.82                                ...           8 months ago
  • 3.2.81                                ...           8 months ago
  • 3.2.79                                ...           8 months ago
  • 3.2.78                                ...           8 months ago
  • 3.2.76                                ...           8 months ago
  • 3.2.7-rc.1                                ...           8 months ago
  • 3.2.74                                ...           8 months ago
  • 3.2.73                                ...           8 months ago
  • 3.2.69-beta.1                                ...           8 months ago
  • 3.2.72                                ...           8 months ago
  • 3.2.69                                ...           8 months ago
  • 3.2.68                                ...           8 months ago
  • 3.2.64-beta.1                                ...           8 months ago
  • 3.2.63                                ...           8 months ago
  • 3.2.61                                ...           8 months ago
  • 3.2.60                                ...           8 months ago
  • 3.2.59                                ...           8 months ago
  • 3.2.54                                ...           8 months ago
  • 3.2.47-beta.8                                ...           8 months ago
  • 3.2.47-beta.7                                ...           8 months ago
  • 3.2.53                                ...           8 months ago
  • 3.2.52                                ...           8 months ago
  • 3.2.51                                ...           8 months ago
  • 3.2.47-beta.6                                ...           8 months ago
  • 3.2.47-beta.5                                ...           8 months ago
  • 3.2.50                                ...           8 months ago
  • 3.2.49                                ...           8 months ago
  • 3.2.47-beta.4                                ...           8 months ago
  • 3.2.47-beta.3                                ...           8 months ago
  • 3.2.47-alpha.3                                ...           8 months ago
  • 3.2.47-beta.2                                ...           8 months ago
  • 3.2.47-alpha.2                                ...           8 months ago
  • 3.2.48                                ...           8 months ago
  • 3.2.47-beta.1                                ...           8 months ago
  • 3.2.45-alpha.1                                ...           8 months ago
  • 3.2.47                                ...           8 months ago
  • 3.2.46                                ...           8 months ago
  • 3.2.45-beta.1                                ...           8 months ago
  • 3.2.45-beta.0                                ...           8 months ago
  • 3.2.45                                ...           9 months ago
  • 3.2.44-rc.4                                ...           9 months ago
  • 3.2.44-rc.3                                ...           9 months ago
  • 3.2.44-rc.2                                ...           9 months ago
  • 3.2.44-rc.1                                ...           9 months ago
  • 3.2.44                                ...           9 months ago
  • 3.2.43                                ...           9 months ago
  • 3.2.42                                ...           9 months ago
  • 3.2.41                                ...           9 months ago
  • 3.2.40                                ...           9 months ago
  • 3.2.39                                ...           9 months ago
  • 3.2.37                                ...           9 months ago
  • 3.2.35                                ...           9 months ago
  • 3.2.34                                ...           9 months ago
  • 3.2.33                                ...           9 months ago
  • 3.2.32                                ...           9 months ago
  • 3.2.31                                ...           9 months ago
  • 3.2.30                                ...           9 months ago
  • 3.2.29                                ...           9 months ago
  • 3.2.28                                ...           9 months ago
  • 3.2.27                                ...           9 months ago
  • 3.2.26                                ...           9 months ago
  • 3.2.25                                ...           9 months ago
  • 3.2.24                                ...           9 months ago
  • 3.2.23                                ...           9 months ago
  • 3.2.22                                ...           9 months ago
  • 3.2.21                                ...           9 months ago
  • 3.2.20                                ...           9 months ago
  • 3.2.19                                ...           9 months ago
  • 3.2.18                                ...           9 months ago
  • 3.2.17                                ...           9 months ago
  • 3.2.16                                ...           9 months ago
  • 3.2.15                                ...           9 months ago
  • 3.2.14                                ...           9 months ago
  • 3.2.12                                ...           9 months ago
  • 3.2.10                                ...           9 months ago
  • 3.2.9                                ...           9 months ago
  • 3.2.8                                ...           9 months ago
  • 3.2.7                                ...           9 months ago
  • 3.2.6                                ...           9 months ago
  • 3.2.5                                ...           9 months ago
  • 3.2.4                                ...           9 months ago
  • 3.2.3                                ...           9 months ago
  • 3.2.2                                ...           9 months ago
  • 3.2.1                                ...           9 months ago
  • 3.2.0                                ...           9 months ago
  • 3.1.99                                ...           9 months ago
  • 3.1.98                                ...           9 months ago
  • 3.1.97                                ...           9 months ago
  • 3.1.96                                ...           9 months ago
  • 3.1.95                                ...           9 months ago
  • 3.1.94                                ...           9 months ago
  • 3.1.92                                ...           9 months ago
  • 3.1.91                                ...           9 months ago
  • 3.1.90                                ...           9 months ago
  • 3.1.89                                ...           9 months ago
  • 3.1.88                                ...           9 months ago
  • 3.1.87                                ...           9 months ago
  • 3.1.86                                ...           9 months ago
  • 3.1.85                                ...           9 months ago
  • 3.1.84                                ...           9 months ago
  • 3.1.83                                ...           10 months ago
  • 3.1.82                                ...           10 months ago
  • 3.1.81                                ...           10 months ago
  • 3.1.80                                ...           10 months ago
  • 3.1.79                                ...           10 months ago
  • 3.1.78                                ...           10 months ago
  • 3.1.77                                ...           10 months ago
  • 3.1.76                                ...           10 months ago
  • 3.1.75                                ...           10 months ago
  • 3.1.74                                ...           10 months ago
  • 3.1.73                                ...           10 months ago
  • 3.1.72                                ...           10 months ago
  • 3.1.71                                ...           10 months ago
  • 3.1.70                                ...           10 months ago
  • 3.1.69                                ...           10 months ago
  • 3.1.68                                ...           10 months ago
  • 3.1.67                                ...           10 months ago
  • 3.1.65                                ...           10 months ago
  • 3.1.64                                ...           10 months ago
  • 3.1.63                                ...           10 months ago
  • 3.1.62                                ...           10 months ago
  • 3.1.61                                ...           10 months ago
  • 3.1.60                                ...           10 months ago
  • 3.1.59                                ...           10 months ago
  • 3.1.58                                ...           10 months ago
  • 3.1.57                                ...           10 months ago
  • 3.1.56                                ...           10 months ago
  • 3.1.39                                ...           10 months ago
  • 3.1.38                                ...           10 months ago
  • 3.1.37                                ...           10 months ago
  • 3.1.11                                ...           10 months ago
  • 3.1.10                                ...           10 months ago
  • 3.1.9                                ...           10 months ago
  • 3.1.7                                ...           10 months ago
  • 3.1.6                                ...           10 months ago
  • 3.1.5                                ...           10 months ago
  • 3.1.4                                ...           10 months ago
  • 3.1.3                                ...           10 months ago
  • 3.0.57                                ...           10 months ago
  • 3.0.56                                ...           10 months ago
  • 3.0.55                                ...           10 months ago
  • 3.0.54                                ...           10 months ago
  • 3.0.53                                ...           10 months ago
  • 3.0.52                                ...           10 months ago
  • 3.0.51                                ...           10 months ago
  • 3.0.49                                ...           10 months ago
  • 3.0.47                                ...           10 months ago
  • 3.0.46                                ...           10 months ago
  • 3.0.45                                ...           10 months ago
  • 3.0.44                                ...           10 months ago
  • 3.0.43                                ...           10 months ago
  • 3.0.42                                ...           10 months ago
  • 3.0.41                                ...           10 months ago
  • 1.0.1                                ...           10 months ago

Copyright 2014 - 2016 © taobao.org |