Merge pull request #214 from mentalfl0w/dev

examlple: Make the items in searchbox more readable.
This commit is contained in:
zhuzichu 2023-07-24 09:38:34 +08:00 committed by GitHub
commit d0e283747e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,6 +385,11 @@ FluObject{
for(var i=0;i<items.length;i++){ for(var i=0;i<items.length;i++){
var item = items[i] var item = items[i]
if(item instanceof FluPaneItem){ if(item instanceof FluPaneItem){
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}) arr.push({title:item.title,key:item.key})
} }
} }