@@ -132,11 +132,11 @@
ondragover="event.preventDefault();"
@ondragstart="(e)=>HandleDragStart(e, pane)"
@ondrop="(e)=>HandleDrop(pane)">
- @if (Type == AntTabType.EditableCard && pane.Closable)
+ @if (Type == TabType.EditableCard && pane.Closable)
{
@pane.Tab
-
RemoveTabPane(pane)" />
+ RemoveTabPane(pane)" />
}
else
@@ -154,11 +154,11 @@
ondragover="event.preventDefault();"
@ondragstart="(e)=>HandleDragStart(e, pane)"
@ondrop="(e)=>HandleDrop(pane)">
- @if (Type == AntTabType.EditableCard && pane.Closable)
+ @if (Type == TabType.EditableCard && pane.Closable)
{
@pane.Tab
-
RemoveTabPane(pane)" />
+ RemoveTabPane(pane)" />
}
else
diff --git a/components/tabs/AntTabs.razor.cs b/components/tabs/Tabs.razor.cs
similarity index 86%
rename from components/tabs/AntTabs.razor.cs
rename to components/tabs/Tabs.razor.cs
index 1fed27055..8e45cc80a 100644
--- a/components/tabs/AntTabs.razor.cs
+++ b/components/tabs/Tabs.razor.cs
@@ -8,16 +8,16 @@ using System.Threading.Tasks;
namespace AntDesign
{
- public partial class AntTabs : AntDomComponentBase
+ public partial class Tabs : AntDomComponentBase
{
private const string PrefixCls = "ant-tabs";
- private bool IsHorizontal { get => TabPosition == AntTabPosition.Top || TabPosition == AntTabPosition.Bottom; }
+ private bool IsHorizontal { get => TabPosition == AntDesign.TabPosition.Top || TabPosition == AntDesign.TabPosition.Bottom; }
private ClassMapper _barClassMapper = new ClassMapper();
private ClassMapper _prevClassMapper = new ClassMapper();
private ClassMapper _nextClassMapper = new ClassMapper();
private ClassMapper _navClassMapper = new ClassMapper();
- private AntTabPane _activePane;
- private AntTabPane _renderedActivePane;
+ private TabPane _activePane;
+ private TabPane _renderedActivePane;
private ElementReference _activeTabBar;
private ElementReference _scrollTabBar;
private ElementReference _tabBars;
@@ -30,7 +30,7 @@ namespace AntDesign
private int _navTotal;
private int _navSection;
private bool _needRefresh;
- internal List
_panes = new List();
+ internal List _panes = new List();
#region Parameters
@@ -40,7 +40,7 @@ namespace AntDesign
private string _activeKey;
///
- /// Current 's
+ /// Current 's
///
[Parameter]
public string ActiveKey
@@ -60,7 +60,7 @@ namespace AntDesign
}
///
- /// Whether to change tabs with animation. Only works while = or
+ /// Whether to change tabs with animation. Only works while = or
///
[Parameter]
public bool Animated { get; set; } = true;
@@ -72,13 +72,13 @@ namespace AntDesign
public object RenderTabBar { get; set; }
///
- /// Initial active 's , if is not set
+ /// Initial active 's , if is not set
///
[Parameter]
public string DefaultActiveKey { get; set; }
///
- /// Hide plus icon or not. Only works while =
+ /// Hide plus icon or not. Only works while =
///
[Parameter]
public bool HideAdd { get; set; } = false;
@@ -87,7 +87,7 @@ namespace AntDesign
/// Preset tab bar size
///
[Parameter]
- public string Size { get; set; } = AntTabSize.Default;
+ public string Size { get; set; } = TabSize.Default;
///
/// Extra content in tab bar
@@ -111,13 +111,13 @@ namespace AntDesign
/// Position of tabs
///
[Parameter]
- public string TabPosition { get; set; } = AntTabPosition.Top;
+ public string TabPosition { get; set; } = AntDesign.TabPosition.Top;
///
/// Basic style of tabs
///
[Parameter]
- public string Type { get; set; } = AntTabType.Line;
+ public string Type { get; set; } = TabType.Line;
///
/// Callback executed when active tab is changed
@@ -126,7 +126,7 @@ namespace AntDesign
public EventCallback
diff --git a/site/AntBlazor.Docs/Demos/Badge/demo/Dot.razor b/site/AntBlazor.Docs/Demos/Badge/demo/Dot.razor
index 1a91b70c4..89d4d406c 100644
--- a/site/AntBlazor.Docs/Demos/Badge/demo/Dot.razor
+++ b/site/AntBlazor.Docs/Demos/Badge/demo/Dot.razor
@@ -1,9 +1,9 @@