Skip to content

Commit

Permalink
feat:增加新的菜单icon图标
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoy8 committed Oct 2, 2024
1 parent a481a17 commit a2f3fc3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions Blog.Core.Api/Controllers/PermissionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ orderby child.Id
IsButton = child.IsButton.ObjToBool(),
meta = new NavigationBarMeta
{
icon = child.IconNew,
requireAuth = true,
title = child.Name,
NoTabPage = child.IsHide.ObjToBool(),
Expand Down
17 changes: 17 additions & 0 deletions Blog.Core.Api/wwwroot/BlogCore.Data.json/Permission.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Mid": 0,
"OrderSort": -90,
"Icon": "fa-home",
"IconNew": "HomeFilled",
"Description": "33",
"Enabled": 1,
"CreateId": 18,
Expand All @@ -27,6 +28,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-users",
"IconNew": "UserFilled",
"Description": "11",
"Enabled": 1,
"CreateId": 18,
Expand All @@ -47,6 +49,7 @@
"Mid": 22,
"OrderSort": 0,
"Icon": null,
"IconNew": "Menu",
"Description": null,
"Enabled": 1,
"CreateId": 18,
Expand All @@ -67,6 +70,7 @@
"Mid": 7,
"OrderSort": 0,
"Icon": null,
"IconNew": "Menu",
"Description": null,
"Enabled": 1,
"CreateId": 18,
Expand All @@ -87,6 +91,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-sitemap",
"IconNew": "Lock",
"Description": null,
"Enabled": 1,
"CreateId": 18,
Expand Down Expand Up @@ -188,6 +193,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-line-chart",
"IconNew": "Histogram",
"Description": null,
"Enabled": 1,
"CreateId": 18,
Expand Down Expand Up @@ -583,6 +589,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-file-word-o",
"IconNew": "List",
"Description": null,
"Enabled": 1,
"CreateId": 18,
Expand Down Expand Up @@ -746,6 +753,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-flask",
"IconNew": "WarningFilled",
"Description": null,
"Enabled": 1,
"CreateId": 23,
Expand Down Expand Up @@ -826,6 +834,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-language",
"IconNew": "HelpFilled",
"Description": null,
"Enabled": 1,
"CreateId": 23,
Expand All @@ -846,6 +855,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-bug",
"IconNew": "Flag",
"Description": null,
"Enabled": 1,
"CreateId": 23,
Expand Down Expand Up @@ -886,6 +896,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-sort-amount-asc",
"IconNew": "ChromeFilled",
"Description": null,
"Enabled": 1,
"CreateId": 23,
Expand Down Expand Up @@ -1307,6 +1318,7 @@
"Mid": 0,
"OrderSort": 0,
"Icon": "fa-diamond",
"IconNew": "Stamp",
"Description": null,
"Enabled": 1,
"CreateId": 12,
Expand Down Expand Up @@ -1367,6 +1379,7 @@
"Mid": 0,
"OrderSort": 1,
"Icon": "el-icon-s-operation",
"IconNew": "Tools",
"Description": null,
"Enabled": 1,
"CreateId": 12,
Expand Down Expand Up @@ -1509,6 +1522,7 @@
"Mid": 0,
"OrderSort": 1,
"Icon": "fa-history",
"IconNew": "Ticket",
"Description": null,
"Enabled": 1,
"CreateId": 12,
Expand Down Expand Up @@ -1760,6 +1774,7 @@
"IskeepAlive": 0,
"Func": null,
"OrderSort": 3,
"IconNew": "WalletFilled",
"Icon": "fa-weixin",
"Description": null,
"Enabled": 1,
Expand Down Expand Up @@ -2353,6 +2368,7 @@
"IskeepAlive": false,
"OrderSort": -10,
"Icon": "fa-address-book",
"IconNew": "Briefcase",
"Description": "",
"Enabled": true,
"CreateId": 12,
Expand All @@ -2379,6 +2395,7 @@
"IskeepAlive": false,
"OrderSort": 0,
"Icon": "",
"IconNew": "Collection",
"Description": "",
"Enabled": true,
"CreateId": 12,
Expand Down
1 change: 1 addition & 0 deletions Blog.Core.Common/Helper/RecursionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public class NavigationBarMeta
public bool requireAuth { get; set; } = true;
public bool NoTabPage { get; set; } = false;
public bool keepAlive { get; set; } = false;
public string icon { get; set; }
}


Expand Down
5 changes: 5 additions & 0 deletions Blog.Core.Model/Models/Permission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public Permission()
[SugarColumn(Length = 100, IsNullable = true)]
public string Icon { get; set; }
/// <summary>
/// 菜单图标新
/// </summary>
[SugarColumn(Length = 100, IsNullable = true)]
public string IconNew { get; set; }
/// <summary>
/// 菜单描述
/// </summary>
[SugarColumn(Length = 100, IsNullable = true)]
Expand Down

0 comments on commit a2f3fc3

Please sign in to comment.