Compare commits

..

2 Commits

Author SHA1 Message Date
zhuzichu d0e283747e
Merge pull request #214 from mentalfl0w/dev
examlple: Make the items in searchbox more readable.
2023-07-24 09:38:34 +08:00
Mentalflow 2d8a05f310
examlple: Make the items in searchbox more readable. 2023-07-24 01:20:23 +08:00
1 changed files with 6 additions and 1 deletions

View File

@ -385,7 +385,12 @@ FluObject{
for(var i=0;i<items.length;i++){
var item = items[i]
if(item instanceof FluPaneItem){
arr.push({title:item.title,key:item.key})
if (item.parent instanceof FluPaneItemExpander)
{
arr.push({title:`${item.parent.title} -> ${item.title}`,key:item.key})
}
else
arr.push({title:item.title,key:item.key})
}
}
return arr