doc(ErrorLogger): update sample code (#4568)

* refactor: 移除 Title 组件

* refactor: 增加 ErrorLogger 包裹组件
This commit is contained in:
Argo Zhang 2024-10-29 13:17:53 +08:00 committed by GitHub
parent f384e6c818
commit 6dfcef5ef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -58,8 +58,10 @@
}</Pre>
<DemoBlock Title="@Localizer["Block1Title"]" Introduction="@Localizer["Block1Intro"]" Name="Normal">
<p>@((MarkupString)Localizer["ExceptionTestIntroduce"].Value)</p>
<Button Icon="fa-solid fa-font-awesome" Text="@Localizer["ButtonText"]" OnClick="OnClick" />
<section ignore>@((MarkupString)Localizer["ExceptionTestIntroduce"].Value)</section>
<ErrorLogger>
<Button Icon="fa-solid fa-font-awesome" Text="@Localizer["ButtonText"]" OnClick="OnClick" />
</ErrorLogger>
</DemoBlock>
<DemoBlock Title="@Localizer["Block2Title"]" Introduction="@Localizer["Block2Intro"]" Name="Swal">

View File

@ -3,8 +3,6 @@
@RenderBody()
<Title></Title>
<Message @ref="MessageContainer"></Message>
<ToastContainer @ref="ToastContainer"></ToastContainer>
<DrawerContainer></DrawerContainer>