
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@aligov/balloon-confirm
Advanced tools
@aligov/balloon-confirm
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
size | 弹框尺寸,small 或 medium | 否 | string | 'small' | |
align | 弹框定位,具体见 Balloon | 否 | string | 'br' | 默认 alignEdge |
icon | fusion icon type 或 icon 元素 | 否 | string/ React Node | 'warning' | |
title | 弹出层标题 | 否 | string | '' | |
content | 弹出层内容 | 否 | string / React Node | ||
onOk | 确认键回调 | 否 | funtion | ||
okText | 确认键文字 | 否 | string | '确认' | |
onCancel | 取消键回调 | 否 | funtion | noop | |
cancelText | 取消键文字 | 否 | string | '取消' | |
balloonProps | 透传给 Balloon 的参数,具体见 Balloon | 否 | object | {} | |
className | 类名 | 否 | string | '' | |
disabled | 是否禁用 | 否 | Boolean | false |
onOk
和 onCancel
在为 falsy
时,对应的确定和取消按钮则不渲染出来。这两个函数可以是普通函数或异步函数(返回 promise),并且在返回 false 或 resolve false 时阻止关闭弹层。
另外,onOk
如果是一个异步函数,那么在 resolve 前,确定按钮展示 loading 状态并且阻止再次点击。
FAQs
intro component
We found that @aligov/balloon-confirm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.