🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

radio-group-with-button

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radio-group-with-button

Radio Group组件 ## 概述

1.0.8
latest
npm
Version published
Maintainers
1
Created
Source

Radio Group组件

概述

RadioGroup控制多个radio的展示效果,支持水平模式、垂直模式。

API

参数说明类型默认值必须
disabled禁用radio group,不可操作radiobooleanNo
value当前radio组的valuestring、 numberNo
defaultValue当前radio组的默认valuestring、 numberNo
onChangeRadio 发生状态变化后的回调(data: RadioData) => voidNo
optionsRadio 数据的collectionarrayNo
layoutgroup的布局方式'vertical'、'horizontal''horizontal'No
minWidth每个单独Radio最小宽度stringNo
maxWidth每个单独Radio最大宽度,超出文字打点stringNo

注意

若有设置最小宽度或者最大宽度,当radio label 字符长度超过限制后,文字会显示打点,鼠标hover打点会有tooltip效果

options 数组单个item的格式为

{
  label: string | number | undefined;
  value: number | string;
  disabled?: boolean;
}

开发人员

huhai@beisen.com

FAQs

Package last updated on 29 Mar 2019

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