diff --git a/Blazor100.sln b/Blazor100.sln index 9bf19d3..035a840 100644 --- a/Blazor100.sln +++ b/Blazor100.sln @@ -83,7 +83,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorApp.Shared", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorApp.WebAssembly", "b08Menu\BootstrapBlazorApp.WebAssembly\BootstrapBlazorApp.WebAssembly.csproj", "{57C99E0C-E881-4D70-872D-12CA96FB07DD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleFor", "ConsoleFor\ConsoleFor.csproj", "{35F699FA-3527-4E53-9A04-167EC006FB5A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleFor", "ConsoleFor\ConsoleFor.csproj", "{35F699FA-3527-4E53-9A04-167EC006FB5A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazor.Printer", "..\BootstrapBlazor.Printer\src\BootstrapBlazor.Printer\BootstrapBlazor.Printer.csproj", "{461077D5-8FD9-4095-991F-84B8B945177D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -167,6 +169,10 @@ Global {35F699FA-3527-4E53-9A04-167EC006FB5A}.Debug|Any CPU.Build.0 = Debug|Any CPU {35F699FA-3527-4E53-9A04-167EC006FB5A}.Release|Any CPU.ActiveCfg = Release|Any CPU {35F699FA-3527-4E53-9A04-167EC006FB5A}.Release|Any CPU.Build.0 = Release|Any CPU + {461077D5-8FD9-4095-991F-84B8B945177D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {461077D5-8FD9-4095-991F-84B8B945177D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {461077D5-8FD9-4095-991F-84B8B945177D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {461077D5-8FD9-4095-991F-84B8B945177D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Blazor100/Blazor100.csproj b/Blazor100/Blazor100.csproj index 41b0749..c5b1a6f 100644 --- a/Blazor100/Blazor100.csproj +++ b/Blazor100/Blazor100.csproj @@ -9,7 +9,18 @@ - + + + + + + + + + + + true + - - - - + + + + diff --git a/b03sqlite/logo.png b/b03sqlite/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/b03sqlite/logo.png differ diff --git a/b05tree/Model/TreeDataFoo.cs b/b05tree/Model/TreeDataFoo.cs index ae3c55b..d90d5cd 100644 --- a/b05tree/Model/TreeDataFoo.cs +++ b/b05tree/Model/TreeDataFoo.cs @@ -1,7 +1,19 @@ using BootstrapBlazor.Components; namespace b05tree; - +public static class Utility +{ + /// + /// 树状组件数据层次化方法 + /// + /// 数据集合 + /// 父级节点 + public static IEnumerable CascadingTree(this IEnumerable items, string? parentId = null) => items.Where(i => i.ParentId == parentId).Select(i => + { + i.Items = CascadingTree(items, i.Id).ToList(); + return i; + }); +} class TreeDataFoo { /// diff --git a/b05tree/b05tree.csproj b/b05tree/b05tree.csproj index 553ef74..6227525 100644 --- a/b05tree/b05tree.csproj +++ b/b05tree/b05tree.csproj @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/b05tree/b05tree.xml b/b05tree/b05tree.xml new file mode 100644 index 0000000..a608e9a --- /dev/null +++ b/b05tree/b05tree.xml @@ -0,0 +1,42 @@ + + + + b05tree + + + + + 树状组件数据层次化方法 + + 数据集合 + 父级节点 + + + + + + + + + + + + + + + + 无限级分类(父子)是一种比较常用的表设计,表设计中只有 parent_id 字段 + + + + + + + + + + + + + + diff --git a/b05tree/logo.png b/b05tree/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/b05tree/logo.png differ diff --git a/b06chart/b06chart.csproj b/b06chart/b06chart.csproj index 5ef6a7e..2857926 100644 --- a/b06chart/b06chart.csproj +++ b/b06chart/b06chart.csproj @@ -7,11 +7,11 @@ - + - - - + + + diff --git a/b06chart/b06chart.xml b/b06chart/b06chart.xml new file mode 100644 index 0000000..970d4b3 --- /dev/null +++ b/b06chart/b06chart.xml @@ -0,0 +1,157 @@ + + + + b06chart + + + + + 设定当前年份 + + + + + 设定当前月份 + + + + + 设定图表抬头 + + + + + 设定X轴文本 + + + + + 设定Y轴文本 + + + + + 图表类型:是=LineChart,否=BarChart + + + + + 使用默认数据 + + + + + 显示月份选择器 + + + + + 隐藏选择器 + + + + + 使用/初始化日期选择控件日期 + + + + + 是否合并Bar显示 默认false + + + + + 强刷显示控件控制,Hack一下 + + + + + 设置日期选择控件日期 + + + + + + + + 初始化 ChartDataSource + + + + + + 数据生成,添加Labels和ChartDataset + + + + + + 切换合并显示 + + + + + 强刷控件,重新初始化控件外观 + + + + + Chart 工具类 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 流水号 + + + + + 单据日期 + + + + + 合计金额 + + + + + 订单详单 + + + + diff --git a/b06chart/logo.png b/b06chart/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/b06chart/logo.png differ diff --git a/b07geo/b07geo.csproj b/b07geo/b07geo.csproj index 89b7ad2..2dfb0d1 100644 --- a/b07geo/b07geo.csproj +++ b/b07geo/b07geo.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/b07geo/logo.png b/b07geo/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/b07geo/logo.png differ diff --git a/b08Menu/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj b/b08Menu/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj index ba1c2dd..953887a 100644 --- a/b08Menu/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj +++ b/b08Menu/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj @@ -16,10 +16,10 @@ - - - - + + + + diff --git a/b08Menu/BootstrapBlazorApp.Shared/Data/WebPages.cs b/b08Menu/BootstrapBlazorApp.Shared/Data/WebPages.cs index 90f90a3..cc3e482 100644 --- a/b08Menu/BootstrapBlazorApp.Shared/Data/WebPages.cs +++ b/b08Menu/BootstrapBlazorApp.Shared/Data/WebPages.cs @@ -100,16 +100,16 @@ public WebPages(string PageName, string? Url = null, string? Icon = null, strin } -//public static class Utility -//{ -// /// -// /// 菜单树状数据层次化方法 -// /// -// /// 数据集合 -// /// 父级节点 -// public static IEnumerable CascadingMenu(this IEnumerable items, string? parentId = null) => items.Where(i => i.ParentId == parentId).Select(i => -// { -// i.Items = CascadingMenu(items, i.Id).ToList(); -// return i; -// }); -//} +public static class Utility +{ + /// + /// 菜单树状数据层次化方法 + /// + /// 数据集合 + /// 父级节点 + public static IEnumerable CascadingMenu(this IEnumerable items, string? parentId = null) => items.Where(i => i.ParentId == parentId).Select(i => + { + i.Items = CascadingMenu(items, i.Id).ToList(); + return i; + }); +} diff --git a/b08Menu/BootstrapBlazorApp.Shared/logo.png b/b08Menu/BootstrapBlazorApp.Shared/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/b08Menu/BootstrapBlazorApp.Shared/logo.png differ diff --git a/b08Menu/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj b/b08Menu/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj index 88c709b..d00b427 100644 --- a/b08Menu/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj +++ b/b08Menu/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/n01UserSecrets/logo.png b/n01UserSecrets/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/n01UserSecrets/logo.png differ diff --git a/n02drag/logo.png b/n02drag/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/n02drag/logo.png differ diff --git a/n04LocalStorage/logo.png b/n04LocalStorage/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/n04LocalStorage/logo.png differ diff --git a/n04LocalStorage_wasm/logo.png b/n04LocalStorage_wasm/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/n04LocalStorage_wasm/logo.png differ diff --git a/n04LocalStorage_wasm/n04LocalStorage_wasm.csproj b/n04LocalStorage_wasm/n04LocalStorage_wasm.csproj index 37ffb86..2c6900b 100644 --- a/n04LocalStorage_wasm/n04LocalStorage_wasm.csproj +++ b/n04LocalStorage_wasm/n04LocalStorage_wasm.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/n08I18nText/i18ntext/@types/n08I18nText.I18nText.MyText.cs b/n08I18nText/i18ntext/@types/n08I18nText.I18nText.MyText.cs deleted file mode 100644 index 22bbd9e..0000000 --- a/n08I18nText/i18ntext/@types/n08I18nText.I18nText.MyText.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -namespace n08I18nText.I18nText -{ - public partial class MyText : global::Toolbelt.Blazor.I18nText.Interfaces.I18nTextFallbackLanguage, global::Toolbelt.Blazor.I18nText.Interfaces.I18nTextLateBinding, global::Toolbelt.Blazor.I18nText.Interfaces.I18nTextTableHash - { - string global::Toolbelt.Blazor.I18nText.Interfaces.I18nTextTableHash.Hash => "564i9lsind"; - - string global::Toolbelt.Blazor.I18nText.Interfaces.I18nTextFallbackLanguage.FallBackLanguage => "en"; - - public string this[string key] => global::Toolbelt.Blazor.I18nText.I18nTextExtensions.GetFieldValue(this, key); - - /// "BarCode" - public string BarCode; - - /// "Edit" - public string Edit; - - /// "Hello,World!" - public string HelloWorld; - - /// "ProductName" - public string ProductName; - - /// "Remark" - public string Remark; - - /// "Save" - public string Save; - - /// "How is Blazor working for you?" - public string Tip1; - - /// "Index" - public string Title; - - /// "Price" - public string UnitPrice; - - /// "View" - public string View; - } -} diff --git a/n08I18nText/logo.png b/n08I18nText/logo.png new file mode 100644 index 0000000..5d8b020 Binary files /dev/null and b/n08I18nText/logo.png differ diff --git a/n08I18nText/n08I18nText.csproj b/n08I18nText/n08I18nText.csproj index d5464ea..0a704eb 100644 --- a/n08I18nText/n08I18nText.csproj +++ b/n08I18nText/n08I18nText.csproj @@ -7,7 +7,7 @@ - +