
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.
greatjoy-input
Advanced tools
一个基于 antd-mobile 的增强型 React 模态框组件,支持组件式和指令式两种使用方式。
npm install greatjoy-modal antd-mobile
重要:必须引入样式文件才能正常显示!
// 在你的应用入口文件中引入样式
import "greatjoy-modal/dist/index.css";
import GreatJoyModal from "greatjoy-modal";
key | 是否必填 | 类型 | 描述 |
---|---|---|---|
content | 否 | string | React.ReactNode | 模态框内容 |
confirmText | 否 | string | 确认按钮文本,默认为"确认",非 true 时不展示确认按钮 |
cancelText | 否 | string | 取消按钮文本,默认为"取消",非 true 时不展示取消按钮 |
onConfirm | 否 | () => void | 确认按钮点击回调函数 |
onCancel | 否 | () => void | 取消按钮点击回调函数 |
otherProps | - | - | 其他传递给Modal组件的属性 |
其他参数详见 https://ant-design-mobile.antgroup.com/zh/components/modal#modal
key | 是否必填 | 类型 | 描述 |
---|---|---|---|
icon | 否 | React.ReactNode | Icon图标参考:https://ant-design-mobile.antgroup.com/zh/components/icon |
confirmText | 否 | string | 确认按钮文案,非 true 时不展示确认按钮 |
cancelText | 否 | string | 取消按钮文案,非 true 时不展示取消按钮 |
onConfirm | 否 | () => Promise | 点击确认事件,reslove 时,会自动关闭弹窗 |
onCancel | 否 | () => void | 点击取消事件 |
其他参数详见 https://ant-design-mobile.antgroup.com/zh/components/modal#modalshow
FAQs
A React input component based on antd-mobile with enhanced features
The npm package greatjoy-input receives a total of 11 weekly downloads. As such, greatjoy-input popularity was classified as not popular.
We found that greatjoy-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.