From 66e932fd8f02c5074234707616832e7d76afeb34 Mon Sep 17 00:00:00 2001 From: Zheeeng Date: Tue, 18 Oct 2022 20:02:09 +0800 Subject: [PATCH] fix(Tree): typo (#38079) * fix: typo for tree component * fix: restore typo less var for compatibility --- components/tree/index.en-US.md | 2 +- components/tree/style/mixin.less | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index d06fc42824..a385949366 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -111,7 +111,7 @@ File icon realize by using switcherIcon. You can overwrite the style to hide it: ### Why defaultExpandAll not working on ajax data? -`default` prefix prop only works when inited. So `defaultExpandAll` has already executed when ajax load data. You can control `expandedKeys` or render Tree when data loaded to realize expanded all. +`default` prefix prop only works when initializing. So `defaultExpandAll` has already executed when ajax load data. You can control `expandedKeys` or render Tree when data loaded to realize expanded all. ### Virtual scroll limitation diff --git a/components/tree/style/mixin.less b/components/tree/style/mixin.less index 1f31893d89..88acbfcc4c 100644 --- a/components/tree/style/mixin.less +++ b/components/tree/style/mixin.less @@ -4,7 +4,9 @@ @select-tree-prefix-cls: ~'@{ant-prefix}-select-tree'; @tree-motion: ~'@{ant-prefix}-motion-collapse'; @tree-node-padding: (@padding-xs / 2); +// @deprecated: kept for customization usages, recommend using @tree-node-highlight-color instead. @tree-node-hightlight-color: inherit; +@tree-node-highlight-color: @tree-node-hightlight-color; .antTreeSwitcherIcon(@type: 'tree-default-open-icon') { .@{tree-prefix-cls}-switcher-icon, @@ -114,7 +116,7 @@ } &:not(&-disabled).filter-node .@{custom-tree-prefix-cls}-title { - color: @tree-node-hightlight-color; + color: @tree-node-highlight-color; font-weight: 500; }