@((MarkupString)Localizer["TreeViewShowToolbarDesc"].Value)
+EnableKeyboardArrowUpDown=\"true\". ArrowLeft collapse the node, ArrowRight expand the node, ArrowUp move the node up, ArrowDown move the node down, Space select the node,",
"TreeViewVirtualizeTitle": "Virtualize",
"TreeViewVirtualizeIntro": "Enable virtual scrolling by setting IsVirtualize=\"true\" to support big data",
- "TreeViewVirtualizeDescription": "The component uses Virtualize to implement virtual scrolling logic, which reduces the pressure on the browser. However, if there is a lot of tree structure data, such as Select All, all data must be marked, resulting in large data in the memory. This problem has not been solved yet. Currently, this component still puts a lot of pressure on the CPU due to large data."
+ "TreeViewVirtualizeDescription": "The component uses Virtualize to implement virtual scrolling logic, which reduces the pressure on the browser. However, if there is a lot of tree structure data, such as Select All, all data must be marked, resulting in large data in the memory. This problem has not been solved yet. Currently, this component still puts a lot of pressure on the CPU due to large data.",
+ "TreeViewShowToolbarTitle": "Show Toolbar",
+ "TreeViewShowToolbarIntro": "Show the toolbar by setting ShowToolbar=\"true\"",
+ "TreeViewShowToolbarDesc": "After it is turned on, when the mouse hovers over a node, a toolbar icon appears on the right, and the toolbar function can be customized; data is updated by setting the OnUpdateCallbackAsync callback method; the toolbar template is defined by setting ToolbarTemplate, and if not set, the internal default node name template is used"
},
"BootstrapBlazor.Server.Components.Samples.SwitchButtons": {
"SwitchButtonsTitle": "Switch Button state switch button",
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index 49ef713068a..9f0918a687f 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -711,7 +711,10 @@
"TreeViewEnableKeyboardArrowUpDownIntro": "通过设置 EnableKeyboardArrowUpDown=\"true\" 支持键盘上下箭头操作。左箭头 收起节点,右箭头 展开节点,上箭头 向上移动节点,下箭头 向下移动节点,空格 选中节点",
"TreeViewVirtualizeTitle": "虚拟滚动",
"TreeViewVirtualizeIntro": "通过设置 IsVirtualize=\"true\" 开启虚拟滚动,支持大数据",
- "TreeViewVirtualizeDescription": "组件内部使用 Virtualize 来实现虚拟滚动逻辑,对浏览器压力会减少很多;但是如果树状结构数据比较多,比如 全选 等操作必须对所有数据进行标记,导致内存中确实有大数据存在,目前还没有解决这个问题,目前此组件由于大数据对 CPU 压力还是比较大的"
+ "TreeViewVirtualizeDescription": "组件内部使用 Virtualize 来实现虚拟滚动逻辑,对浏览器压力会减少很多;但是如果树状结构数据比较多,比如 全选 等操作必须对所有数据进行标记,导致内存中确实有大数据存在,目前还没有解决这个问题,目前此组件由于大数据对 CPU 压力还是比较大的",
+ "TreeViewShowToolbarTitle": "显示工具栏",
+ "TreeViewShowToolbarIntro": "通过设置 ShowToolbar=\"true\" 显示工具栏",
+ "TreeViewShowToolbarDesc": "开启后鼠标悬浮节点时,右侧出现工具栏图标,可自定义工具栏功能;通过设置 OnUpdateCallbackAsync 回调方法进行数据的更新;通过设置 ToolbarTemplate 定义工具栏模板,如未设置时使用内部默认更改节点名称模板"
},
"BootstrapBlazor.Server.Components.Samples.SwitchButtons": {
"SwitchButtonsTitle": "Switch Button 状态切换按钮",
diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor b/src/BootstrapBlazor/Components/TreeView/TreeView.razor
index de3fa3df839..a479ef8eac0 100644
--- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor
+++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor
@@ -8,7 +8,7 @@
{
if (_init)
{
-
+
}
else if (ShowSkeleton)
{
@@ -48,9 +48,7 @@ else
{