Skip to content

Commit

Permalink
feat(Table): set ShowColumnWidthTooltip default value to false (#3838)
Browse files Browse the repository at this point in the history
* refactor: 更改默认值为 false

* doc: 更新默认值文档

* chore: bump version 8.7.2-beta04
  • Loading branch information
ArgoZhang authored Jul 12, 2024
1 parent a8611fe commit e114269
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,7 @@
"WidthP3": "Control whether the button is displayed by setting the button <code>IsShow</code> parameter",
"AllowResizingTitle": "Allow column resizing",
"AllowResizingIntro": "Set table columns to allow resizing by specifying <code>AllowResizing</code>",
"AllowResizingDesc": "<b>Note:</b> <code>Table</code> scrollbar only appears when the parent container has valid width values, By setting the <code>ShowColumnWidthTooltip</code> parameter, you can control whether to display the column width tooltip. The default value is <code>true</code>",
"AllowResizingDesc": "<b>Note:</b> <code>Table</code> scrollbar only appears when the parent container has valid width values, By setting the <code>ShowColumnWidthTooltip</code> parameter, you can control whether to display the column width tooltip. The default value is <code>false</code>",
"WidthButtonText1": "Details",
"WidthButtonText2": "Edit",
"WidthButtonText3": "Permissions",
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,7 @@
"WidthP3": "通过设置按钮 <code>IsShow</code> 参数来控制是否显示按钮",
"AllowResizingTitle": "允许列调整",
"AllowResizingIntro": "通过指定 <code>AllowResizing</code> 设置表格列允许调整宽度",
"AllowResizingDesc": "<b>注意:</b> <code>Table</code> 父容器有有效宽度值时 <code>Table</code> 才会出现滚动条,可通过设置 <code>ClientTableName</code> 参数开启本地化存储列宽功能,即通过拖拽后列宽下次打开时会保持,通过设置 <code>ShowColumnWidthTooltip</code> 参数控制是否显示列宽提示栏,默认 <code>true</code>",
"AllowResizingDesc": "<b>注意:</b> <code>Table</code> 父容器有有效宽度值时 <code>Table</code> 才会出现滚动条,可通过设置 <code>ClientTableName</code> 参数开启本地化存储列宽功能,即通过拖拽后列宽下次打开时会保持,通过设置 <code>ShowColumnWidthTooltip</code> 参数控制是否显示列宽提示栏,默认 <code>false</code>",
"WidthButtonText1": "明细",
"WidthButtonText2": "编辑",
"WidthButtonText3": "权限",
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>8.7.2-beta03</Version>
<Version>8.7.2-beta04</Version>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor/Components/Table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName(
public string? ColumnWidthTooltipPrefix { get; set; }

/// <summary>
/// 获得/设置 是否显示列宽提示信息,默认 true 显示
/// 获得/设置 是否显示列宽提示信息,默认 false 显示
/// </summary>
[Parameter]
public bool ShowColumnWidthTooltip { get; set; } = true;
public bool ShowColumnWidthTooltip { get; set; }

private string ScrollWidthString => $"width: {ActualScrollWidth}px;";

Expand Down

0 comments on commit e114269

Please sign in to comment.