客户端代码修改提交

This commit is contained in:
2025-10-14 17:58:49 +08:00
parent c3284032cc
commit 7f599ba51d
27 changed files with 294 additions and 43 deletions

View File

@@ -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
});
}
}
}
}