!2687 fix(#I53KMB): update the ShowExtendEditButtonn/ShowExtendDeleteButton default value to true

* doc: 更新参数说明文档
* fix: 更新显示 编辑删除 按钮 默认值
This commit is contained in:
Argo 2022-04-19 16:27:54 +00:00
parent e7fa409949
commit 0c8e009e73
2 changed files with 118 additions and 94 deletions

View File

@ -265,13 +265,21 @@ public partial class Tables
}, },
new() new()
{ {
Name = "Category", Name = nameof(TableColumn<Foo, string>.GroupName),
Description = "当前属性分组", Description = "当前属性分组",
Type = "string", Type = "string",
ValueList = " — ", ValueList = " — ",
DefaultValue = " — " DefaultValue = " — "
}, },
new() new()
{
Name = nameof(TableColumn<Foo, string>.GroupOrder),
Description = "当前属性分组顺序",
Type = "int",
ValueList = " — ",
DefaultValue = " — "
},
new()
{ {
Name = "ShownWithBreakPoint", Name = "ShownWithBreakPoint",
Description = "显示节点阈值", Description = "显示节点阈值",
@ -717,6 +725,22 @@ public partial class Tables
DefaultValue = "false" DefaultValue = "false"
}, },
new() new()
{
Name = nameof(Table<Foo>.ShowExtendEditButton),
Description = "显示行编辑操作按钮",
Type = "boolean",
ValueList = "true / false",
DefaultValue = "true"
},
new()
{
Name = nameof(Table<Foo>.ShowExtendDeleteButton),
Description = "显示行删除操作按钮",
Type = "boolean",
ValueList = "true / false",
DefaultValue = "true"
},
new()
{ {
Name = "ShowSkeleton", Name = "ShowSkeleton",
Description = "加载时是否显示骨架屏", Description = "加载时是否显示骨架屏",

View File

@ -86,13 +86,13 @@ public partial class Table<TItem>
/// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示 /// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示
/// </summary> /// </summary>
[Parameter] [Parameter]
public bool ShowExtendEditButton { get; set; } public bool ShowExtendEditButton { get; set; } = true;
/// <summary> /// <summary>
/// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示 /// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示
/// </summary> /// </summary>
[Parameter] [Parameter]
public bool ShowExtendDeleteButton { get; set; } public bool ShowExtendDeleteButton { get; set; } = true;
/// <summary> /// <summary>
/// 获得/设置 是否固定扩展按钮列 默认为 false 不固定 /// 获得/设置 是否固定扩展按钮列 默认为 false 不固定