
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
radio-group-with-button
Advanced tools
Radio Group组件
RadioGroup控制多个radio的展示效果,支持水平模式、垂直模式。
参数 | 说明 | 类型 | 默认值 | 必须 |
---|---|---|---|---|
disabled | 禁用radio group,不可操作radio | boolean | 无 | No |
value | 当前radio组的value | string、 number | 无 | No |
defaultValue | 当前radio组的默认value | string、 number | 无 | No |
onChange | Radio 发生状态变化后的回调 | (data: RadioData) => void | 无 | No |
options | Radio 数据的collection | array | 无 | No |
layout | group的布局方式 | 'vertical'、'horizontal' | 'horizontal' | No |
minWidth | 每个单独Radio最小宽度 | string | 无 | No |
maxWidth | 每个单独Radio最大宽度,超出文字打点 | string | 无 | No |
若有设置最小宽度或者最大宽度,当radio label 字符长度超过限制后,文字会显示打点,鼠标hover打点会有tooltip效果
options 数组单个item的格式为
{
label: string | number | undefined;
value: number | string;
disabled?: boolean;
}
FAQs
Did you know?
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.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.