mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 07:03:46 +08:00
Merge pull request #214 from mentalfl0w/dev
examlple: Make the items in searchbox more readable.
This commit is contained in:
commit
d0e283747e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user