Skip to content

Commit 024cec2

Browse files
committed
doc: 更正单词拼写错误
1 parent 8de67b6 commit 024cec2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/BootstrapBlazor/Components/Table/Table.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,13 @@
746746

747747
RenderFragment<TableContentCellContext<TItem>> RenderContentCell => context =>
748748
@<td colspan="@GetColSpan(context.ColSpan)" class="@GetFixedCellClassString(context.Col, context.CellClass)" style="@GetFixedCellStyleString(context.Col)">
749-
<DynamicElement TagName="div" TriggerClick="@context.HesTreeChildren"
750-
OnClick="@ToggleTreeRow(context.Item)" StopPropagation="context.HesTreeChildren"
751-
class="@GetCellClassString(context.Col, context.HesTreeChildren, context.IsInCell)" style="@GetCellStyleString(context.Col)">
749+
<DynamicElement TagName="div" TriggerClick="@context.HasTreeChildren"
750+
OnClick="@ToggleTreeRow(context.Item)" StopPropagation="context.HasTreeChildren"
751+
class="@GetCellClassString(context.Col, context.HasTreeChildren, context.IsInCell)" style="@GetCellStyleString(context.Col)">
752752
@if (context.IsFirstColOfTree)
753753
{
754754
<div class="is-node" style="@GetTreeStyleString(context.Degree)">
755-
@if (context.HesTreeChildren)
755+
@if (context.HasTreeChildren)
756756
{
757757
<i class="@GetTreeClassString(context.IsExpend)"></i>
758758
}

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,28 +1394,28 @@ private RenderFragment RenderContentRow(TItem item) => builder =>
13941394

13951395
var isFirstColOfTree = IsTree && index++ == 0;
13961396
var degree = 0;
1397-
var isExpend = false;
1397+
var isExpand = false;
13981398
var hasChildren = false;
13991399
if (isFirstColOfTree)
14001400
{
14011401
var treeItem = TreeNodeCache.Find(TreeRows, item, out degree);
14021402
if (treeItem != null)
14031403
{
1404-
isExpend = treeItem.IsExpand;
1404+
isExpand = treeItem.IsExpand;
14051405
hasChildren = treeItem.HasChildren;
14061406
}
14071407
}
1408-
var hesTreeChildren = isFirstColOfTree && hasChildren;
1408+
var hasTreeChildren = isFirstColOfTree && hasChildren;
14091409
var context = new TableContentCellContext<TItem>()
14101410
{
14111411
Item = item,
14121412
ColSpan = colSpan,
14131413
Col = col,
14141414
CellClass = cellClass,
1415-
HesTreeChildren = hesTreeChildren,
1415+
HasTreeChildren = hasTreeChildren,
14161416
IsInCell = isInCell,
14171417
Degree = degree,
1418-
IsExpend = isExpend,
1418+
IsExpand = isExpand,
14191419
IsFirstColOfTree = isFirstColOfTree,
14201420
ValueTemplate = valueTemplate,
14211421
Value = value

src/BootstrapBlazor/Components/Table/TableContentCellContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ readonly record struct TableContentCellContext<TItem>
1515

1616
public string? CellClass { get; init; }
1717

18-
public bool HesTreeChildren { get; init; }
18+
public bool HasTreeChildren { get; init; }
1919

2020
public bool IsInCell { get; init; }
2121

2222
public int Degree { get; init; }
2323

24-
public bool IsExpend { get; init; }
24+
public bool IsExpand { get; init; }
2525

2626
public bool IsFirstColOfTree { get; init; }
2727

0 commit comments

Comments
 (0)