diff --git a/components/AntBlazor.xml b/components/AntBlazor.xml index 556ac9d45..ae2751989 100644 --- a/components/AntBlazor.xml +++ b/components/AntBlazor.xml @@ -195,7 +195,7 @@ - The position of the dots, which can be one of Top, Bottom, Left or Right, + The position of the dots, which can be one of Top, Bottom, Left or Right, @@ -205,7 +205,7 @@ - Transition effect, + Transition effect, @@ -311,12 +311,12 @@ "ltr"|"rtl" - + 'top' | 'middle' | 'bottom' - + 'start' | 'end' | 'center' | 'space-around' | 'space-between' diff --git a/components/affix/AntAffix.razor b/components/affix/Affix.razor similarity index 100% rename from components/affix/AntAffix.razor rename to components/affix/Affix.razor diff --git a/components/affix/AntAffix.razor.cs b/components/affix/Affix.razor.cs similarity index 99% rename from components/affix/AntAffix.razor.cs rename to components/affix/Affix.razor.cs index 0f57d6822..58fa11fca 100644 --- a/components/affix/AntAffix.razor.cs +++ b/components/affix/Affix.razor.cs @@ -9,7 +9,7 @@ using Microsoft.AspNetCore.Components; namespace AntDesign { - public partial class AntAffix : AntDomComponentBase + public partial class Affix : AntDomComponentBase { private const string PrefixCls = "ant-affix"; private const string RootScollSelector = "window"; diff --git a/components/alert/Alert.razor b/components/alert/Alert.razor index 34db4ff87..e368cf9e1 100644 --- a/components/alert/Alert.razor +++ b/components/alert/Alert.razor @@ -7,7 +7,7 @@ @if (ShowIcon) { - + } @if (!string.IsNullOrEmpty(Message)) diff --git a/components/avatar/Avatar.razor b/components/avatar/Avatar.razor index 7dfa914ea..9f8eff54e 100644 --- a/components/avatar/Avatar.razor +++ b/components/avatar/Avatar.razor @@ -4,7 +4,7 @@ @if (!string.IsNullOrEmpty(Icon) && _hasIcon) { - + } @if (!string.IsNullOrEmpty(Src) && _hasSrc) { diff --git a/components/back-top/AntBackTop.razor b/components/back-top/BackTop.razor similarity index 99% rename from components/back-top/AntBackTop.razor rename to components/back-top/BackTop.razor index f9fbedcf6..aa902d7c0 100644 --- a/components/back-top/AntBackTop.razor +++ b/components/back-top/BackTop.razor @@ -4,5 +4,6 @@
+
diff --git a/components/back-top/AntBackTop.razor.cs b/components/back-top/BackTop.razor.cs similarity index 81% rename from components/back-top/AntBackTop.razor.cs rename to components/back-top/BackTop.razor.cs index 488d75515..f347991e6 100644 --- a/components/back-top/AntBackTop.razor.cs +++ b/components/back-top/BackTop.razor.cs @@ -1,10 +1,11 @@ -using Microsoft.AspNetCore.Components; +using AntDesign.JsInterop; +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using System.Threading.Tasks; namespace AntDesign { - public partial class AntBackTop : AntDomComponentBase + public partial class BackTop : AntDomComponentBase { [Parameter] public string Title { get; set; } @@ -17,7 +18,7 @@ namespace AntDesign protected async Task OnClick() { - await JsInvokeAsync(JSInteropConstants.backTop, "BodyContainer"); + await JsInvokeAsync(JSInteropConstants.backTop, "BodyContainer"); } protected override void OnInitialized() diff --git a/components/breadcrumb/BreadcrumbItem.razor b/components/breadcrumb/BreadcrumbItem.razor index 4e87172dd..01e5b7f8a 100644 --- a/components/breadcrumb/BreadcrumbItem.razor +++ b/components/breadcrumb/BreadcrumbItem.razor @@ -9,7 +9,7 @@ @ChildContent - +
} else diff --git a/components/button/Button.razor b/components/button/Button.razor index 100f54ff7..1753a628b 100644 --- a/components/button/Button.razor +++ b/components/button/Button.razor @@ -5,11 +5,11 @@ } diff --git a/components/icon/AntIcon.razor b/components/icon/Icon.razor similarity index 100% rename from components/icon/AntIcon.razor rename to components/icon/Icon.razor diff --git a/components/icon/AntIcon.razor.cs b/components/icon/Icon.razor.cs similarity index 95% rename from components/icon/AntIcon.razor.cs rename to components/icon/Icon.razor.cs index b685ef6cc..d6f959d59 100644 --- a/components/icon/AntIcon.razor.cs +++ b/components/icon/Icon.razor.cs @@ -9,7 +9,7 @@ using OneOf; namespace AntDesign { - public partial class AntIcon : AntDomComponentBase + public partial class Icon : AntDomComponentBase { [Parameter] public bool Spin { get; set; } @@ -24,7 +24,7 @@ namespace AntDesign /// 'fill' | 'outline' | 'twotone'; /// [Parameter] - public string Theme { get; set; } = AntIconThemeType.Outline; + public string Theme { get; set; } = IconThemeType.Outline; [Parameter] public string TwotoneColor { get; set; } @@ -79,7 +79,7 @@ namespace AntDesign _baseUrl = NavigationManager.ToAbsoluteUri(NavigationManager.BaseUri); - if (this is AntIcon icon) + if (this is Icon icon) { Button?.Icons.Add(icon); } diff --git a/components/icon/AntIconThemeType.cs b/components/icon/IconThemeType.cs similarity index 86% rename from components/icon/AntIconThemeType.cs rename to components/icon/IconThemeType.cs index fcd544e3c..bda0bcc33 100644 --- a/components/icon/AntIconThemeType.cs +++ b/components/icon/IconThemeType.cs @@ -5,10 +5,10 @@ using System.Threading.Tasks; namespace AntDesign { - public static class AntIconThemeType + public static class IconThemeType { public const string Fill = "fill"; public const string Outline = "outline"; public const string Twotone = "twotone"; } -} \ No newline at end of file +} diff --git a/components/input-number/InputNumber.razor b/components/input-number/InputNumber.razor index 380fdf142..4aa889032 100644 --- a/components/input-number/InputNumber.razor +++ b/components/input-number/InputNumber.razor @@ -3,8 +3,8 @@
- - + +
diff --git a/components/input/Input.cs b/components/input/Input.cs index 15b55f5da..7ea47d10f 100644 --- a/components/input/Input.cs +++ b/components/input/Input.cs @@ -172,7 +172,7 @@ namespace AntDesign { Suffix = (builder) => { - builder.OpenComponent(31); + builder.OpenComponent(31); builder.AddAttribute(32, "Type", "close-circle"); if (string.IsNullOrEmpty(Value)) { diff --git a/components/input/InputPassword.razor.cs b/components/input/InputPassword.razor.cs index 841d93880..bf622d613 100644 --- a/components/input/InputPassword.razor.cs +++ b/components/input/InputPassword.razor.cs @@ -36,7 +36,7 @@ namespace AntDesign int i = 0; builder.OpenElement(i++, "span"); builder.AddAttribute(i++, "class", $"{PrefixCls}-suffix"); - builder.OpenComponent(i++); + builder.OpenComponent(i++); builder.AddAttribute(i++, "class", $"{PrefixCls}-password-icon"); builder.AddAttribute(i++, "type", _eyeIcon); builder.AddAttribute(i++, "onclick", CallbackFactory.Create(this, ToggleVisibility)); diff --git a/components/input/Search.razor.cs b/components/input/Search.razor.cs index b679daadc..350456d37 100644 --- a/components/input/Search.razor.cs +++ b/components/input/Search.razor.cs @@ -26,7 +26,7 @@ namespace AntDesign { Suffix = new RenderFragment((builder) => { - builder.OpenComponent(35); + builder.OpenComponent(35); builder.AddAttribute(36, "class", $"{PrefixCls}-search-icon"); builder.AddAttribute(37, "type", "search"); builder.AddAttribute(38, "onclick", CallbackFactory.Create(this, HandleSearch)); diff --git a/components/layout/Sider.razor b/components/layout/Sider.razor index b5ca46cf0..1b12d1382 100644 --- a/components/layout/Sider.razor +++ b/components/layout/Sider.razor @@ -6,7 +6,7 @@ { - + } diff --git a/components/layout/Sider.razor.cs b/components/layout/Sider.razor.cs index 04f2e0b01..8992f5bd3 100644 --- a/components/layout/Sider.razor.cs +++ b/components/layout/Sider.razor.cs @@ -64,7 +64,7 @@ namespace AntDesign private RenderFragment defaultTrigger => builder => { - builder.OpenComponent(1); + builder.OpenComponent(1); builder.AddAttribute(2, "Type", isCollapsed ? "right" : "left"); builder.AddAttribute(3, "Theme", "outline"); builder.CloseComponent(); @@ -123,4 +123,4 @@ namespace AntDesign StateHasChanged(); } } -} +} \ No newline at end of file diff --git a/components/list/AntList.razor b/components/list/AntList.razor index cb3f97866..87681b257 100644 --- a/components/list/AntList.razor +++ b/components/list/AntList.razor @@ -41,14 +41,14 @@ @