
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.