feat: input-tree支持label高亮文字

This commit is contained in:
chengjinyang 2022-06-21 21:13:39 +08:00
parent 360dcb604e
commit 206b6ba0b4

View File

@ -88,6 +88,11 @@ export interface TreeControlSchema extends FormOptionsSchema {
showOutline?: boolean;
deferApi?: SchemaApi;
/**
*
*/
highlightTxt?: string;
}
export interface TreeProps
@ -207,7 +212,8 @@ export default class TreeControl extends React.Component<TreeProps> {
nodePath,
deferLoad,
expandTreeOptions,
translate: __
translate: __,
highlightTxt
} = this.props;
return (
@ -229,6 +235,7 @@ export default class TreeControl extends React.Component<TreeProps> {
delimiter={delimiter}
placeholder={__(placeholder)}
options={options}
highlightTxt={highlightTxt}
multiple={multiple}
initiallyOpen={initiallyOpen}
unfoldedLevel={unfoldedLevel}