diff --git a/src/BootstrapBlazor.WebConsole/Pages/Tables.razor b/src/BootstrapBlazor.WebConsole/Pages/Tables.razor
index edda8d98e..f57e33d73 100644
--- a/src/BootstrapBlazor.WebConsole/Pages/Tables.razor
+++ b/src/BootstrapBlazor.WebConsole/Pages/Tables.razor
@@ -146,7 +146,7 @@
diff --git a/src/BootstrapBlazor/Components/Table/Table.razor b/src/BootstrapBlazor/Components/Table/Table.razor
index 5e2e22f37..75c8af2f1 100644
--- a/src/BootstrapBlazor/Components/Table/Table.razor
+++ b/src/BootstrapBlazor/Components/Table/Table.razor
@@ -104,7 +104,7 @@
@if (OnSave != null || OnAdd != null)
{
-
+
@EditTemplate?.Invoke(EditModel)
diff --git a/src/BootstrapBlazor/Components/Table/TableBase_Edit.cs b/src/BootstrapBlazor/Components/Table/TableBase_Edit.cs
index b2d03fadb..40ebc8645 100644
--- a/src/BootstrapBlazor/Components/Table/TableBase_Edit.cs
+++ b/src/BootstrapBlazor/Components/Table/TableBase_Edit.cs
@@ -10,6 +10,11 @@ namespace BootstrapBlazor.Components
///
protected PopoverConfirm? DeleteConfirm { get; set; }
+ ///
+ /// 获得/设置 编辑弹窗 Title 文字
+ ///
+ protected string? EditModalTitleString { get; set; }
+
///
/// 获得/设置 被选中数据集合
///
@@ -22,14 +27,19 @@ namespace BootstrapBlazor.Components
protected ValidateForm? ValidateForm { get; set; }
///
- /// 编辑数据弹窗
+ /// 获得/设置 编辑数据弹窗实例
///
protected Modal? EditModal { get; set; }
///
- /// 编辑数据弹窗 Title
+ /// 获得/设置 编辑数据弹窗 Title
///
- [Parameter] public string? EditModalTitle { get; set; }
+ [Parameter] public string EditModalTitle { get; set; } = "编辑数据窗口";
+
+ ///
+ /// 获得/设置 新建数据弹窗 Title
+ ///
+ [Parameter] public string AddModalTitle { get; set; } = "新建数据窗口";
///
/// 获得/设置 EditTemplate 实例
diff --git a/src/BootstrapBlazor/Components/Table/TableBase_Toolbar.cs b/src/BootstrapBlazor/Components/Table/TableBase_Toolbar.cs
index 3a2cd5e63..9e0b8902d 100644
--- a/src/BootstrapBlazor/Components/Table/TableBase_Toolbar.cs
+++ b/src/BootstrapBlazor/Components/Table/TableBase_Toolbar.cs
@@ -79,7 +79,7 @@ namespace BootstrapBlazor.Components
{
if (OnAdd != null) EditModel = OnAdd.Invoke() ?? new TItem();
SelectedItems.Clear();
- EditModalTitle = "新建数据窗口";
+ EditModalTitleString = AddModalTitle;
EditModal?.Toggle();
}
@@ -91,6 +91,7 @@ namespace BootstrapBlazor.Components
if (SelectedItems.Count == 1)
{
EditModel = SelectedItems[0].Clone();
+ EditModalTitleString = EditModalTitle;
EditModal?.Toggle();
}
else