客户端代码修改提交
This commit is contained in:
@@ -69,5 +69,18 @@ namespace NBF
|
||||
// 去重处理(基于引用相等,如果需要基于内容去重需要重写Equals方法)
|
||||
return allItems.Distinct().ToList();
|
||||
}
|
||||
|
||||
public static void TabItemDataAddListTitle(this TabItemData tabItem)
|
||||
{
|
||||
if (tabItem.Items == null || tabItem.Items.Count < 1) return;
|
||||
var hasListTitle = tabItem.Items.OfType<ClassifyListTitleData>().Any();
|
||||
if (!hasListTitle)
|
||||
{
|
||||
tabItem.Items.Insert(0, new ClassifyListTitleData()
|
||||
{
|
||||
Title = tabItem.Key
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user