| | |
| | | * @Company: hugeInfo |
| | | * @Author: ldh |
| | | * @Date: 2022-02-25 18:16:28 |
| | | * @LastEditTime: 2022-11-25 09:37:34 |
| | | * @LastEditors: ldh |
| | | * @LastEditTime: 2024-08-26 10:27:36 |
| | | * @LastEditors: dminyi 1301963064@qq.com |
| | | * @Version: 1.0.0 |
| | | * @Description: 自定义带操作的树结构 |
| | | */ |
| | |
| | | arr2 = []; |
| | | treeDataMap.forEach((item) => { |
| | | const strTitle = item[nameStr]; |
| | | const index = strTitle.indexOf(searchValue); |
| | | const index = strTitle?.indexOf(searchValue); |
| | | if (index > -1) { |
| | | expandedKeys = Array.from(new Set([...expandedKeys, ...item.parentKeys])); |
| | | } |