
Security News
Re-Enabled GitHub Actions Expose Thousands of Repositories to Mini Shai-Hulud
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.
search-filter-tree
Advanced tools
当子节点内容较多需要搜索并高亮展示时,使用搜索树可快速找到目标节点。
npm install search-filter-tree --save
或
yarn add search-filter-tree
import React from "react";
import SearchTree from "search-filter-tree";
const App = () => {
return (
<SearchTree
placeholder="输入节点名称"
checkable={true}
dataSource={mock()}
onCheck={(keys, key, checked) => console.log(keys, key, checked)}
/>
);
};
function mock() {
return [
{
key: "global",
title: "global",
children: []
},
{
key: "dx",
title: "电信",
children: [
{
key: "dx-huadong",
title: "电信-华东"
},
{
key: "dx-xian",
title: "电信-西安"
},
{
key: "dx-huanan",
title: "电信-华南"
}
]
}
];
}
ReactDOM.render(<App />, mountNode);
| 参数 | 是否必填 | 说明 | 类型 | 默认值 |
|---|---|---|---|---|
| dataSource | 必填 | 数据源 | array | - |
| placeholder | 非必填 | 搜索框提示的文本 | string | "Search" |
| parentCheckedAble | 非必填 | 父节点是否可选择 | bool | false |
| parentNodeHide | 非必填 | 过滤节点时父节点是否隐藏 | bool | false |
| childNodeHide | 非必填 | 过滤节点时子节点是否隐藏 | bool | true |
// 每个节点key值必须唯一
[
{
key:"1",
title:"1",
children:[
{
key:"1-1",
title:"1-1"
}
]
}
]
react版本尽量在16.8.0之后,否则可能出现未知的问题。
onCheck事件与Tree组件返回的结果不同,返回的参数为:
| 参数 | 说明 |
|---|---|
| keys | 已选择的全部树节点 |
| key | 选择的树节点key |
| checked | 选中或取消选中 |
FAQs
基于antd-Tree组件的搜索过滤树
We found that search-filter-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.

Research
/Security News
The compromise affects MemTensor's MemOS, an open source memory framework for large language models (LLMs) and AI agents. Both npm package @memtensor/memos-cloud-openclaw-plugin and the PyPI package MemoryOS are compromised. They drop cross-platform Go binaries that exfiltrate developer secrets.