(data)
| 46 | },[]) |
| 47 | |
| 48 | const transTreeData = (data) => { |
| 49 | const res = [] |
| 50 | Object.keys(data).forEach((key)=>{ |
| 51 | const item = data[key] |
| 52 | res.push({ |
| 53 | key:data[key].realKey, |
| 54 | title:key, |
| 55 | children:transTreeData(item.children) |
| 56 | }) |
| 57 | }) |
| 58 | return res |
| 59 | } |
| 60 | |
| 61 | const onSelect = (selectedKeys, info) => { |
| 62 | console.log('selected', selectedKeys, info); |
nothing calls this directly
no outgoing calls
no test coverage detected