
Research
TeamPCP-Linked Supply Chain Attack Hits SAP CAP and Cloud MTA npm Packages
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
@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
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.