+
diff --git a/src/components/Tree/src/props.ts b/src/components/Tree/src/props.ts
index 287d2f95..faa5c03f 100644
--- a/src/components/Tree/src/props.ts
+++ b/src/components/Tree/src/props.ts
@@ -80,10 +80,17 @@ export const basicProps = {
>,
default: null,
},
+ // 高亮搜索值,仅高亮具体匹配值(通过title)值为true时使用默认色值,值为#xxx时使用此值替代且高亮开启
+ highlight: {
+ type: [Boolean, String] as PropType,
+ default: false,
+ },
// 搜索完成时自动展开结果
expandOnSearch: propTypes.bool.def(false),
// 搜索完成自动选中所有结果,当且仅当 checkable===true 时生效
checkOnSearch: propTypes.bool.def(false),
+ // 搜索完成自动select所有结果
+ selectedOnSearch: propTypes.bool.def(false),
};
export const treeNodeProps = {