From f9b615c2cad33c11139c646ba9c31a46d77ac5fd Mon Sep 17 00:00:00 2001 From: "Henry.zhang" <53967483+1002527441@users.noreply.github.com> Date: Sun, 7 Jun 2020 19:41:00 +0800 Subject: [PATCH] feat: add more demos (#197) ...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline Co-authored-by: ElderJames --- components/AntBlazor.xml | 8 +- .../affix/{AntAffix.razor => Affix.razor} | 0 .../{AntAffix.razor.cs => Affix.razor.cs} | 2 +- components/alert/Alert.razor | 2 +- components/avatar/Avatar.razor | 2 +- .../{AntBackTop.razor => BackTop.razor} | 1 + .../{AntBackTop.razor.cs => BackTop.razor.cs} | 7 +- components/breadcrumb/BreadcrumbItem.razor | 2 +- components/button/Button.razor | 4 +- components/button/Button.razor.cs | 2 +- components/card/{AntCard.razor => Card.razor} | 2 +- .../card/{AntCard.razor.cs => Card.razor.cs} | 4 +- .../{AntCardGrid.razor => CardGrid.razor} | 0 ...AntCardLoading.razor => CardLoading.razor} | 0 .../{AntCardMeta.razor => CardMeta.razor} | 0 .../{AntDivider.razor => Divider.razor} | 4 + components/drawer/Drawer.razor | 2 +- components/icon/{AntIcon.razor => Icon.razor} | 0 .../icon/{AntIcon.razor.cs => Icon.razor.cs} | 6 +- .../{AntIconThemeType.cs => IconThemeType.cs} | 4 +- components/input-number/InputNumber.razor | 4 +- components/input/Input.cs | 2 +- components/input/InputPassword.razor.cs | 2 +- components/input/Search.razor.cs | 2 +- components/layout/Sider.razor | 2 +- components/layout/Sider.razor.cs | 4 +- components/list/AntList.razor | 4 +- components/list/AntListItem.razor | 10 +- components/message/MessageItem.razor | 10 +- components/modal/Modal.razor.cs | 2 +- components/modal/ModalService.cs | 8 +- components/modal/config/DialogOptions.cs | 2 +- components/notification/Notification.razor.cs | 2 +- .../notification/NotificationItem.razor | 8 +- components/pagination/PaginationItem.razor | 8 +- components/progress/Progress.razor | 16 +- components/rate/RateItem.razor | 4 +- components/result/Result.razor.cs | 2 +- .../steps/{AntStep.razor => Step.razor} | 8 +- .../steps/{AntStep.razor.cs => Step.razor.cs} | 4 +- .../steps/{AntSteps.razor => Steps.razor} | 0 .../{AntSteps.razor.cs => Steps.razor.cs} | 6 +- .../tabs/{AntTabPane.razor => TabPane.razor} | 0 .../{AntTabPane.razor.cs => TabPane.razor.cs} | 12 +- .../{AntTabPosition.cs => TabPosition.cs} | 2 +- components/tabs/{AntTabSize.cs => TabSize.cs} | 2 +- components/tabs/{AntTabType.cs => TabType.cs} | 4 +- components/tabs/{AntTabs.razor => Tabs.razor} | 28 +- .../tabs/{AntTabs.razor.cs => Tabs.razor.cs} | 72 ++-- components/tag/{AntTag.razor => Tag.razor} | 4 +- .../tag/{AntTag.razor.cs => Tag.razor.cs} | 2 +- .../{AntTimeline.razor => Timeline.razor} | 2 +- ...AntTimeline.razor.cs => Timeline.razor.cs} | 16 +- .../{AntTimelineItem.cs => TimelineItem.cs} | 8 +- .../{AntParagraph.cs => Paragraph.cs} | 6 +- components/typography/{AntText.cs => Text.cs} | 6 +- .../typography/{AntTitle.cs => Title.cs} | 6 +- ...AntTypographyBase.cs => TypographyBase.cs} | 2 +- site/AntBlazor.Docs/Demos/Affix/demo/Basic.md | 13 + .../Demos/Affix/demo/Basic.razor | 31 ++ .../Demos/Affix/demo/CallBack.md | 13 + .../Demos/Affix/demo/Callback.razor | 15 + .../AntBlazor.Docs/Demos/Affix/demo/Scroll.md | 13 + .../Demos/Affix/demo/Scroll.razor | 26 ++ .../Demos/Affix/doc/index.en-US.md | 26 ++ .../Demos/Affix/doc/index.zh-CN.md | 31 ++ .../Demos/BackTop/demo/Basic.md | 13 + .../Demos/BackTop/demo/Basic.razor | 7 + .../Demos/BackTop/demo/Scroll.md | 14 + .../Demos/BackTop/demo/Scroll.razor | 33 ++ .../Demos/BackTop/doc/index.en-US.md | 23 ++ .../Demos/BackTop/doc/index.zh-CN.md | 24 ++ .../Demos/Badge/demo/Basic.razor | 2 +- .../Demos/Badge/demo/Change.razor | 4 +- .../AntBlazor.Docs/Demos/Badge/demo/Dot.razor | 4 +- .../Demos/Breadcrumb/demo/Basic.md | 13 + .../Demos/Breadcrumb/demo/Basic.razor | 13 + .../Demos/Breadcrumb/demo/Dropdownmenu.md | 13 + .../Demos/Breadcrumb/demo/Dropdownmenu.razor | 26 ++ .../Demos/Breadcrumb/demo/Integration.md | 13 + .../Demos/Breadcrumb/demo/Integration.razor | 13 + .../Demos/Breadcrumb/demo/Separator.md | 13 + .../Demos/Breadcrumb/demo/Separator.razor | 13 + .../Demos/Breadcrumb/demo/With.md | 13 + .../Demos/Breadcrumb/demo/With.razor | 13 + .../Demos/Breadcrumb/doc/index.en-US.md | 37 ++ .../Demos/Breadcrumb/doc/index.zh-CN.md | 38 ++ .../Demos/Card/demo/Basic.razor | 14 +- .../Demos/Card/demo/Column.razor | 12 +- .../Demos/Card/demo/Customized.razor | 8 +- .../AntBlazor.Docs/Demos/Card/demo/Grid.razor | 36 +- .../Demos/Card/demo/Inner.razor | 12 +- .../Demos/Card/demo/Loading.razor | 4 +- .../Demos/Card/demo/Noborder.razor | 4 +- .../Demos/Card/demo/Simple.razor | 4 +- .../Demos/Card/demo/Support.razor | 14 +- .../Demos/Card/demo/{Tabs.md => Tabs1.md} | 0 .../Card/demo/{Tabs.razor => Tabs1.razor} | 40 +-- .../Demos/Divider/demo/Horizontal.md | 13 + .../Demos/Divider/demo/Horizontal.razor | 19 + .../Demos/Divider/demo/Title.md | 13 + .../Demos/Divider/demo/Title.razor | 24 ++ .../Demos/Divider/demo/Vertical.md | 13 + .../Demos/Divider/demo/Vertical.razor | 10 + .../Demos/Divider/demo/Without.md | 13 + .../Demos/Divider/demo/Without.razor | 28 ++ .../Demos/Divider/doc/index.en-US.md | 26 ++ .../Demos/Divider/doc/index.zh-CN.md | 26 ++ .../Demos/Drawer/demo/Formindrawer.razor | 10 +- .../Demos/Drawer/demo/Userprofile.razor | 68 ++-- .../Demos/Dropdown/demo/Basic.razor | 2 +- .../Dropdown/demo/DropdownButtonDemo.razor | 2 +- .../Demos/Dropdown/demo/Event.razor | 2 +- .../Demos/Dropdown/demo/Item.razor | 2 +- .../Demos/Dropdown/demo/OverlayVisible.razor | 2 +- .../Demos/Dropdown/demo/SubMenuDemo.razor | 2 +- .../Demos/Dropdown/demo/Trigger.razor | 2 +- .../Demos/Input/demo/Addon.razor | 2 +- .../Demos/Input/demo/Basic.razor | 2 +- site/AntBlazor.Docs/Demos/Input/demo/Group.md | 4 +- .../Demos/Input/demo/Prefix.razor | 2 +- .../Demos/Input/demo/Size.razor | 6 +- .../Demos/Layout/demo/CustomTrigger.razor | 10 +- .../Demos/Layout/demo/FixedSider.razor | 16 +- .../Demos/Layout/demo/Responsive.razor | 8 +- .../Demos/Layout/demo/Side.razor | 10 +- .../Demos/Layout/demo/TopSide.razor | 6 +- .../Demos/Layout/demo/TopSide2.razor | 6 +- .../AntBlazor.Docs/Demos/List/demo/Grid.razor | 4 +- .../Demos/List/demo/Simple.razor | 6 +- .../Demos/List/demo/resposive.md | 4 +- .../Demos/Menu/demo/Horizontal.razor | 6 +- .../Demos/Menu/demo/Inline.razor | 6 +- .../Demos/Menu/demo/InlineCollapsed.razor | 14 +- .../Demos/Menu/demo/SiderCurrent.razor | 6 +- .../Demos/Menu/demo/SwitchMode.razor | 8 +- .../Demos/Menu/demo/Theme.razor | 6 +- .../Demos/Menu/demo/Vertical.razor | 6 +- .../Demos/Modal/demo/Confirm.razor | 2 +- .../Demos/Modal/demo/ConfirmPromise.razor | 2 +- .../Demos/Modal/demo/ConfirmRouter.razor | 2 +- .../Demos/Modal/demo/Locale.razor | 2 +- .../Demos/Notification/demo/CustomIcon.razor | 2 +- .../Demos/Notification/demo/Placement.razor | 8 +- .../Demos/Pagination/demo/Changer.razor | 8 +- .../Demos/Pagination/demo/Controlled.razor | 6 +- .../Demos/Pagination/demo/Jump.razor | 4 +- .../Demos/Radio/demo/Optional.razor | 2 +- .../Demos/Rate/demo/Character.razor | 2 +- .../Demos/Result/demo/Error.razor | 20 +- .../Demos/Slider/demo/Icon.razor | 7 - .../Demos/Slider/demo/{Icon.md => Icon1.md} | 0 .../Demos/Slider/demo/Icon1.razor | 7 + .../Demos/Space/demo/Base.razor | 2 +- .../Demos/Space/demo/Vertical.razor | 8 +- .../Demos/Spin/demo/CustomIndicator.razor | 2 +- .../Demos/Switch/demo/Disable.razor | 4 +- .../Demos/Switch/demo/{Icon.md => Icon1.md} | 0 .../Switch/demo/{Icon.razor => Icon1.razor} | 4 +- .../Demos/Table/demo/Basic.razor | 2 +- .../Demos/Table/demo/Blazor.razor | 2 +- .../AntBlazor.Docs/Demos/Tag/demo/Basic.razor | 11 +- .../Demos/Tag/demo/Checkable.razor | 6 +- .../Demos/Tag/demo/Colorful.razor | 35 +- .../Demos/Tag/demo/Controlled.razor | 4 +- .../Demos/Tag/demo/Dynamic.razor | 15 +- site/AntBlazor.Docs/Demos/Tag/demo/Hot.razor | 8 +- .../Demos/Timeline/demo/Alternate.md | 13 + .../Demos/Timeline/demo/Alternate.razor | 21 ++ .../Demos/Timeline/demo/Basic.md | 13 + .../Demos/Timeline/demo/Basic.razor | 8 + .../Demos/Timeline/demo/Color.md | 13 + .../Demos/Timeline/demo/Color.razor | 26 ++ .../Demos/Timeline/demo/Custom.md | 13 + .../Demos/Timeline/demo/Custom.razor | 17 + .../Demos/Timeline/demo/Label.md | 13 + .../Demos/Timeline/demo/Label.razor | 21 ++ .../Demos/Timeline/demo/Reverse.md | 13 + .../Demos/Timeline/demo/Reverse.razor | 20 ++ .../Demos/Timeline/demo/Right.md | 13 + .../Demos/Timeline/demo/Right.razor | 17 + .../Demos/Timeline/doc/index.en-US.md | 34 ++ .../Demos/Timeline/doc/index.zh-CN.md | 37 ++ .../Demos/Typography/demo/Basic.md | 13 + .../Demos/Typography/demo/Basic.razor | 63 ++++ .../Demos/Typography/demo/Ellipsis.md | 13 + .../Demos/Typography/demo/Ellipsis.razor | 4 + .../Demos/Typography/demo/Interactive.md | 13 + .../Demos/Typography/demo/Interactive.razor | 23 ++ .../Demos/Typography/demo/Level.md | 13 + .../Demos/Typography/demo/Level.razor | 9 + .../Demos/Typography/demo/Style.md | 13 + .../Demos/Typography/demo/Style.razor | 22 ++ .../Demos/Typography/demo/Suffix.md | 13 + .../Demos/Typography/demo/Suffix.razor | 4 + .../Demos/Typography/doc/index.en-US.md | 67 ++++ .../Demos/Typography/doc/index.zh-CN.md | 64 ++++ site/AntBlazor.Docs/Pages/Affix.razor | 82 ----- site/AntBlazor.Docs/Pages/Affix.razor.cs | 33 -- site/AntBlazor.Docs/Pages/BackTop.razor | 69 ---- .../AntBlazor.Docs/Pages/BreadcrumbDemo.razor | 4 +- site/AntBlazor.Docs/Pages/Card.razor | 42 --- site/AntBlazor.Docs/Pages/Divider.razor | 27 -- site/AntBlazor.Docs/Pages/Grid.razor | 300 ---------------- site/AntBlazor.Docs/Pages/Icon.razor | 23 -- site/AntBlazor.Docs/Pages/Icondemo.razor | 23 ++ site/AntBlazor.Docs/Pages/Step.razor | 126 ------- site/AntBlazor.Docs/Pages/Stepdemo.razor | 126 +++++++ .../Pages/{Tabs.razor => Tabsdemo.razor} | 332 +++++++++--------- site/AntBlazor.Docs/Pages/Tag.razor | 33 -- site/AntBlazor.Docs/Pages/Timeline.razor | 47 --- site/AntBlazor.Docs/Pages/Typography.razor | 140 -------- site/AntBlazor.Docs/Shared/MainLayout.razor | 4 +- site/AntBlazor.Docs/wwwroot/menu.json | 18 +- 214 files changed, 2085 insertions(+), 1554 deletions(-) rename components/affix/{AntAffix.razor => Affix.razor} (100%) rename components/affix/{AntAffix.razor.cs => Affix.razor.cs} (99%) rename components/back-top/{AntBackTop.razor => BackTop.razor} (99%) rename components/back-top/{AntBackTop.razor.cs => BackTop.razor.cs} (81%) rename components/card/{AntCard.razor => Card.razor} (97%) rename components/card/{AntCard.razor.cs => Card.razor.cs} (92%) rename components/card/{AntCardGrid.razor => CardGrid.razor} (100%) rename components/card/{AntCardLoading.razor => CardLoading.razor} (100%) rename components/card/{AntCardMeta.razor => CardMeta.razor} (100%) rename components/divider/{AntDivider.razor => Divider.razor} (84%) rename components/icon/{AntIcon.razor => Icon.razor} (100%) rename components/icon/{AntIcon.razor.cs => Icon.razor.cs} (95%) rename components/icon/{AntIconThemeType.cs => IconThemeType.cs} (86%) rename components/steps/{AntStep.razor => Step.razor} (89%) rename components/steps/{AntStep.razor.cs => Step.razor.cs} (97%) rename components/steps/{AntSteps.razor => Steps.razor} (100%) rename components/steps/{AntSteps.razor.cs => Steps.razor.cs} (95%) rename components/tabs/{AntTabPane.razor => TabPane.razor} (100%) rename components/tabs/{AntTabPane.razor.cs => TabPane.razor.cs} (85%) rename components/tabs/{AntTabPosition.cs => TabPosition.cs} (89%) rename components/tabs/{AntTabSize.cs => TabSize.cs} (89%) rename components/tabs/{AntTabType.cs => TabType.cs} (89%) rename components/tabs/{AntTabs.razor => Tabs.razor} (83%) rename components/tabs/{AntTabs.razor.cs => Tabs.razor.cs} (86%) rename components/tag/{AntTag.razor => Tag.razor} (73%) rename components/tag/{AntTag.razor.cs => Tag.razor.cs} (98%) rename components/timeline/{AntTimeline.razor => Timeline.razor} (91%) rename components/timeline/{AntTimeline.razor.cs => Timeline.razor.cs} (85%) rename components/timeline/{AntTimelineItem.cs => TimelineItem.cs} (88%) rename components/typography/{AntParagraph.cs => Paragraph.cs} (92%) rename components/typography/{AntText.cs => Text.cs} (92%) rename components/typography/{AntTitle.cs => Title.cs} (92%) rename components/typography/{AntTypographyBase.cs => TypographyBase.cs} (97%) create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/Basic.md create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/Basic.razor create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/CallBack.md create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/Callback.razor create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/Scroll.md create mode 100644 site/AntBlazor.Docs/Demos/Affix/demo/Scroll.razor create mode 100644 site/AntBlazor.Docs/Demos/Affix/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/Affix/doc/index.zh-CN.md create mode 100644 site/AntBlazor.Docs/Demos/BackTop/demo/Basic.md create mode 100644 site/AntBlazor.Docs/Demos/BackTop/demo/Basic.razor create mode 100644 site/AntBlazor.Docs/Demos/BackTop/demo/Scroll.md create mode 100644 site/AntBlazor.Docs/Demos/BackTop/demo/Scroll.razor create mode 100644 site/AntBlazor.Docs/Demos/BackTop/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/BackTop/doc/index.zh-CN.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Basic.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Basic.razor create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Dropdownmenu.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Dropdownmenu.razor create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Integration.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Integration.razor create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Separator.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/Separator.razor create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/With.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/demo/With.razor create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/Breadcrumb/doc/index.zh-CN.md rename site/AntBlazor.Docs/Demos/Card/demo/{Tabs.md => Tabs1.md} (100%) rename site/AntBlazor.Docs/Demos/Card/demo/{Tabs.razor => Tabs1.razor} (56%) create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Horizontal.md create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Horizontal.razor create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Title.md create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Title.razor create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Vertical.md create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Vertical.razor create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Without.md create mode 100644 site/AntBlazor.Docs/Demos/Divider/demo/Without.razor create mode 100644 site/AntBlazor.Docs/Demos/Divider/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/Divider/doc/index.zh-CN.md delete mode 100644 site/AntBlazor.Docs/Demos/Slider/demo/Icon.razor rename site/AntBlazor.Docs/Demos/Slider/demo/{Icon.md => Icon1.md} (100%) create mode 100644 site/AntBlazor.Docs/Demos/Slider/demo/Icon1.razor rename site/AntBlazor.Docs/Demos/Switch/demo/{Icon.md => Icon1.md} (100%) rename site/AntBlazor.Docs/Demos/Switch/demo/{Icon.razor => Icon1.razor} (70%) create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Alternate.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Alternate.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Basic.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Basic.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Color.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Color.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Custom.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Custom.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Label.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Label.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Reverse.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Reverse.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Right.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/demo/Right.razor create mode 100644 site/AntBlazor.Docs/Demos/Timeline/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/Timeline/doc/index.zh-CN.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Basic.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Basic.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Ellipsis.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Ellipsis.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Interactive.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Interactive.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Level.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Level.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Style.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Style.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Suffix.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/demo/Suffix.razor create mode 100644 site/AntBlazor.Docs/Demos/Typography/doc/index.en-US.md create mode 100644 site/AntBlazor.Docs/Demos/Typography/doc/index.zh-CN.md delete mode 100644 site/AntBlazor.Docs/Pages/Affix.razor delete mode 100644 site/AntBlazor.Docs/Pages/Affix.razor.cs delete mode 100644 site/AntBlazor.Docs/Pages/BackTop.razor delete mode 100644 site/AntBlazor.Docs/Pages/Card.razor delete mode 100644 site/AntBlazor.Docs/Pages/Divider.razor delete mode 100644 site/AntBlazor.Docs/Pages/Grid.razor delete mode 100644 site/AntBlazor.Docs/Pages/Icon.razor create mode 100644 site/AntBlazor.Docs/Pages/Icondemo.razor delete mode 100644 site/AntBlazor.Docs/Pages/Step.razor create mode 100644 site/AntBlazor.Docs/Pages/Stepdemo.razor rename site/AntBlazor.Docs/Pages/{Tabs.razor => Tabsdemo.razor} (65%) delete mode 100644 site/AntBlazor.Docs/Pages/Tag.razor delete mode 100644 site/AntBlazor.Docs/Pages/Timeline.razor delete mode 100644 site/AntBlazor.Docs/Pages/Typography.razor 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 @@ @