
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
@hi-ui/button
Advanced tools
引导用户去触发操作的区域
用户需要执行有具体含义的动作、命令
连接页面之间、页面和弹窗、页面和浮层面板的跳转
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 设置按钮类型 | string | 'primary' | 'line' | 'success' | 'danger' | 'default' | 'default' |
appearance | 设置按钮外观 | string | 'link' | 'button' | 'button' |
disabled | 设置按钮是否禁用 | boolean | true | false | false |
size | 设置按钮尺寸 | string | 'lg' | 'md' | 'sm' | 'default' |
icon | 设置按钮图标 | string | 详见 <Icon/> 组件 ︎ | - |
href | 设置按钮链接,设置后将用 a 标签渲染按钮 | string | ︎ | - |
target | 同 a 标签的 target 属性,仅在设置 href 后有效 | string | ︎'_self' | '_blank' | '_parent' | '_top' | - |
loading | 是否显示 loading | boolean | ︎- | false |
名称 | 说明 | 类型 | 参数 | 返回值 |
---|---|---|---|---|
onClick | 点击按钮时的回调 | (event: MouseEvent) => void | event: 鼠标事件对象 | - |
参数 | 变更类型 | 变更内容 | 解决的问题 |
---|---|---|---|
type | update | 删除'line',新增'secondary' | |
size | update | 变更为 'sm' | 'md' |
appearance | update | 删除'button',新增'filled'、'line' | |
shape | feature | 增加形状 'round' | 'square' |
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.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.