
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.
@tntd/tooltip-select
Advanced tools
基于 ant3 实现带悬浮显示的下拉列表
npm i @tntd/tooltip-select
所有 API 同 ant3 Select
参数 | 类型 | 默认值 | 是否必填 | 说明 |
---|---|---|---|---|
setTitle | function(e) | 无 | 非必填 | 自定义 tooltip 的 title 节点 |
isVirtual | Boolean | false | 非必填 | 列表是否采用虚拟滚动 |
placement | String | top | 非必填 | tooltip位置 |
isMemo | Boolean | false | 非必填 | 列表是否采用监听值及children控制渲染 |
import { useState } from "react";
import TooltipSelect from "@tntd/tooltip-select";
import { Select, Tooltip } from "antd";
const Option = Select.Option;
export default (props) => {
const [title, setTitle] = useState();
const aTitle = (title) => {
return <a>{title}</a>;
};
return (
<TooltipSelect
setTitle={(value) => {
return aTitle(value);
}}
placeholder="66"
value={title}
onChange={(value) => {
setTitle(value);
}}
dropdownMatchSelectWidth={false}
>
<Option value={1}>1+1</Option>
<Option value={2}>2+2</Option>
</TooltipSelect>
);
};
FAQs
# @tntd/ant3-virtual-select
We found that @tntd/tooltip-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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.