You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 368e484
Browse filesBrowse the repository at this point in the historyBrowse files
"TreeViewCheckboxCheckBoxDisplayText2": "Automatically update parent node state (checked/indeterminate)",
5750
5750
"TreeViewCheckboxIntro": "Suitable for use when you need to select a level",
5751
5751
"TreeViewCheckboxTips1": "By setting the <code>OnTreeItemChecked</code> property to monitor the event when the tree control node is checked, when the check box in front of the tree control node is selected, the following log displays the data of the selected node",
5752
5752
"TreeViewCheckboxTips2": "The <code>Tree</code> component will keep the status of each node when loading data. The <b>Refresh</b> button will update the data source <code>Items</code> and reinitialize the component. When you click the <code>Append Node</code> button, only the data inside the data source will be changed without reassigning values, so the status of each node will remain unchanged.",
/// <para lang="en">Gets or sets whether to automatically update child nodes state when the node state changes. Child nodes keep the same state as this node. Default is false</para>
/// <para lang="en">Gets or sets whether to automatically update parent nodes state when the node state changes. Parent state is derived from children: checked when all children are checked, unchecked when none are checked, otherwise indeterminate. Default is false. When changed from true to false, indeterminate nodes are reset to unchecked</para>
323
323
/// </summary>
324
324
[Parameter]
325
325
publicboolAutoCheckParent{get;set;}
@@ -358,6 +358,10 @@ public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
Copy file name to clipboardExpand all lines: src/BootstrapBlazor/Misc/TreeNodeCache.cs
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -78,9 +78,9 @@ public void ToggleCheck(TNode node)
78
78
/// <para lang="en">Check whether current node is checked</para>
79
79
/// </summary>
80
80
/// <param name="node"></param>
81
-
privatevoidIsChecked(TNodenode)
81
+
/// <param name="autoCheckParent"><para lang="zh">是否由子节点状态派生本节点状态</para><para lang="en">Whether to derive the node state from its children</para></param>
/// <param name="autoCheckParent"><para lang="zh">是否由子节点状态派生父节点状态 默认 true</para><para lang="en">Whether to derive parent state from children. Default is true</para></param>
0 commit comments