From 1963b0ec9aaf1cea0580cbacda886fd185d3170c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 七月 2022 14:53:57 +0800 Subject: [PATCH] 2022-07-21 --- src/tabviews/custom/components/tree/antd-tree/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/tree/antd-tree/index.jsx b/src/tabviews/custom/components/tree/antd-tree/index.jsx index 305d461..5f5c919 100644 --- a/src/tabviews/custom/components/tree/antd-tree/index.jsx +++ b/src/tabviews/custom/components/tree/antd-tree/index.jsx @@ -462,7 +462,7 @@ const { config, loading, treeNodes, expandedKeys, selectedKeys } = this.state return ( - <div className="custom-tree-box" style={config.style}> + <div className="custom-tree-box" id={'anchor' + config.uuid} style={config.style}> {loading ? <div className="loading-mask"> <div className="ant-spin-blur"></div> @@ -470,7 +470,7 @@ </div> : null } {config.wrap.title || config.wrap.searchable === 'true' ? <div className="tree-header" style={config.headerStyle}> - <span className="title">{config.wrap.title}</span> + <span className={'title ' + (config.wrap.searchable !== 'true' ? 'search-unable' : '')}>{config.wrap.title}</span> {config.wrap.searchable === 'true' ? <Search allowClear onSearch={this.treeFilter} /> : null} </div> : null} {treeNodes && treeNodes.length > 0 ? <div className="tree-box" style={{height: config.wrap.contentHeight}}> -- Gitblit v1.8.0