We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2efe580 commit d31ca18Copy full SHA for d31ca18
packages/react-search-tree/src/index.tsx
@@ -125,18 +125,6 @@ function SearchTree<V extends SearchTagInputOption>(props: SearchTreeProps<V>) {
125
onChange?.(cur, resultValue, isChecked);
126
};
127
128
- // 防抖
129
- const debounce = (fn: Function, ms: number) => {
130
- let timeoutId: NodeJS.Timeout;
131
- return (searchValue: string) => {
132
- onSearch?.(searchValue);
133
- clearTimeout(timeoutId);
134
- timeoutId = setTimeout(() => {
135
- fn(searchValue);
136
- }, ms);
137
- };
138
139
-
140
const selectedSearch = (searchValue: string) => {
141
const hiddenNodeForSeach = (childrens: TreeData[], parentIsHide: boolean = true) => {
142
childrens.forEach((child: TreeData) => {
0 commit comments