diff --git a/src/BootstrapBlazor.Server/Components/Pages/Layout.razor b/src/BootstrapBlazor.Server/Components/Pages/Layout.razor index 5efd0c33605..e74a3dbf1c2 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/Layout.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/Layout.razor @@ -17,7 +17,7 @@ $zindex-popover: 1070; $zindex-swal: 1075; $zindex-tooltip: 1080; -

@Localizer["Para4"] Message Dialog Swal Toast @Localizer["Para5"]:

+

@Localizer["Para4"] Drawer Dialog Swal Message Toast @Localizer["Para5"]:

Drawer:                    1050;
 Dialog:                    1050;
diff --git a/src/BootstrapBlazor.Server/Components/Samples/DrawerServices.razor b/src/BootstrapBlazor.Server/Components/Samples/DrawerServices.razor
index b68e7e9a055..3746d9845e0 100644
--- a/src/BootstrapBlazor.Server/Components/Samples/DrawerServices.razor
+++ b/src/BootstrapBlazor.Server/Components/Samples/DrawerServices.razor
@@ -29,26 +29,28 @@ private DrawerService? DrawerService { get; set; }

4. 常见问题

-
- -

在使用弹窗的过程中基本都是需要根据自己的业务需求放置一些业务逻辑处理按钮的,比如放置 关闭 保存 应用 等等,这些按钮逻辑有些是需要处理业务逻辑结束后,根据业务逻辑处理结果决定是否关闭弹窗,代码关闭弹窗我们组件库内置了一下几种办法

- -
+

弹窗内部任何组件中均可以通过此级联参数获得一个关闭弹窗的方法,可以根据自己的业务逻辑需求自行调用关闭弹窗

+

注意:级联参数定义可以随意不一定是 OnCloseAsync 也可以根据自己需要更改为 CloseDrawerAsync

+ + + + + +

通过设置 DrawerOption 参数 ZIndex 值调节抽屉 z-index 位置,防止被其他弹窗遮挡

+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs index 8bdbadad442..a1b2ea77676 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs @@ -157,6 +157,14 @@ private static AttributeItem[] GetAttributes() => DefaultValue = " — " }, new() + { + Name = "ZIndex", + Description = "sets the z-order", + Type = "int?", + ValueList = " — ", + DefaultValue = " — " + }, + new() { Name = nameof(Drawer.OnCloseAsync), Description = "The callback when close drawer",