Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rox-radio

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-radio

--- subtitle: 单选框 group: Data Entry category: UI chinese: 单选框 type: UI组件 ---

  • 0.0.36
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

subtitle: 单选框 group: Data Entry category: UI chinese: 单选框 type: UI组件

Radio


API

Radio

属性说明类型默认值
checked是否选中,group中的选中不适用该API,而是通过value设置boolean
disabled是否禁用booleanfalse
size大小string(small,medium)medium
onChange状态改变时的回调函数function(checked,e)
type单选框类型string('normal','list')normal

Radio.group

属性说明类型默认值
value当前选择的值any''
onChange选中值发生改变后的回调function(value,e)()=>{}
dataSource可选数据源array[]
设计思路

rax中只提供了一个简单的textinput,因为会触发键盘,因此需要使用view和image结合的方式实现。从外观表现和交互逻辑上,单个radio和checkbox的表现是完全一致的。两者仅有的区别在于批量使用时。

Keywords

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc