diff --git a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor index 48ad96e45f9..b4123bd28f8 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor @@ -6,8 +6,8 @@
Tree
@((MarkupString)Localizer["TreeViewsTips1"].Value) TItem="TreeFoo"
Tree
@((MarkupString)Localizer["TreeViewsTips1"].Value) TItem="TreeFoo"
@((MarkupString)Localizer["TreeViewNormalDescription"].Value)
+
+
@((MarkupString)Localizer["TreeViewTreeDisableDescription"].Value)
+@((MarkupString)Localizer["TreeViewAccordionModelDescription"].Value)
+
+
+
+
@((MarkupString)Localizer["TreeViewTreeValidationFormDescription"].Value)
+
+
ShowSkeleton
, the component displays the skeleton screen when the data is loaded asynchronously",
"TreeViewShowSkeletonButtonText": "Asynchronous loading",
- "TreeViewsAttrs": "TreeItem property"
+ "TreeViewsAttribute": "TreeItem property"
},
"BootstrapBlazor.Server.Components.Samples.Trees": {
"TreeIntro": "Obsolete,The TreeView provides more functions",
diff --git a/src/BootstrapBlazor.Server/Locales/zh.json b/src/BootstrapBlazor.Server/Locales/zh.json
index 2e94632b090..17cbf4580ba 100644
--- a/src/BootstrapBlazor.Server/Locales/zh.json
+++ b/src/BootstrapBlazor.Server/Locales/zh.json
@@ -658,7 +658,7 @@
"TreeViewShowSkeletonTitle": "加载骨架屏",
"TreeViewShowSkeletonIntro": "通过设置 ShowSkeleton
使异步加载数据时组件显示骨架屏",
"TreeViewShowSkeletonButtonText": "异步加载",
- "TreeViewsAttrs": "TreeItem 属性"
+ "TreeViewsAttribute": "TreeItem 属性"
},
"BootstrapBlazor.Server.Components.Samples.Trees": {
"TreeIntro": "
本组件已弃用,请使用新组件 TreeView 提供更多功能", diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss index 882b1097c0e..0d1d5a0d809 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss @@ -1,16 +1,16 @@ -.tree-view { +.tree-view { + --bb-tree-padding: #{$bb-tree-padding}; + --bb-tree-margin: #{$bb-tree-margin}; + --bb-tree-ul-padding-left: #{$bb-tree-ul-padding-left}; + --bb-tree-item-margin: #{$bb-tree-item-margin}; + --bb-tree-icon-width: #{$bb-tree-icon-width}; + --bb-tree-check-margin: #{$bb-tree-check-margin}; + --bb-tree-node-padding: #{$bb-tree-node-padding}; + --bb-tree-item-active-color: #{$bb-tree-item-active-color}; + --bb-tree-item-active-bg: #{$bb-tree-item-active-bg}; + --bb-tree-item-hover-bg: #{$bb-tree-item-hover-bg}; + --bb-tree-icon-margin-right: #{$bb-tree-icon-margin-right}; position: relative; - --bb-tree-padding: 0; - --bb-tree-margin: 0; - --bb-tree-ul-padding-left: 20px; - --bb-tree-item-margin: 1px 0; - --bb-tree-icon-width: 22px; - --bb-tree-check-margin: 0 4px; - --bb-tree-node-padding: .25rem .5rem; - --bb-tree-item-active-color: #409eff; - --bb-tree-item-active-bg: #e9ecef; - --bb-tree-item-hover-bg: var(--bs-secondary); - --bb-tree-icon-margin-right: .5rem; } .tree-view .tree-root { diff --git a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss index cfdabc79f3b..03a976005dc 100644 --- a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss +++ b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss @@ -610,4 +610,17 @@ $bb-transfer-panel-item-width: 160px; $bb-transfer-buttons-padding: 0 30px; $bb-transfer-filter-focus-border-color: #409eff; +// TreeView +$bb-tree-padding: 0; +$bb-tree-margin: 0; +$bb-tree-ul-padding-left: 20px; +$bb-tree-item-margin: 1px 0; +$bb-tree-icon-width: 22px; +$bb-tree-check-margin: 0 4px; +$bb-tree-node-padding: .25rem .5rem; +$bb-tree-item-active-color: #409eff; +$bb-tree-item-active-bg: #e9ecef; +$bb-tree-item-hover-bg: var(--bs-secondary); +$bb-tree-icon-margin-right: .5rem; + @import "../components.scss";