Commit a0e43a64 authored by wenmo's avatar wenmo

目录树搜索框置顶

parent 2bc29997
...@@ -376,8 +376,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => { ...@@ -376,8 +376,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
let scrollTop = document.documentElement.scrollTop; let scrollTop = document.documentElement.scrollTop;
setRightClickNode(e.node); setRightClickNode(e.node);
setRightClickNodeTreeItem({ setRightClickNodeTreeItem({
pageX: e.event.pageX-20, pageX: e.event.pageX-40,
pageY: position.y+sref.current.getScrollTop()+scrollTop-125-position.height, pageY: position.y+sref.current.getScrollTop()+scrollTop-145-position.height,
id: e.node.id, id: e.node.id,
categoryName: e.node.name categoryName: e.node.name
}); });
...@@ -460,8 +460,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => { ...@@ -460,8 +460,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
</Tooltip> </Tooltip>
</Col> </Col>
</Row> </Row>
<Scrollbars style={{height:(toolHeight-32)}} ref={sref}>
<Search style={{marginBottom: 8}} placeholder="Search" onChange={onChange} allowClear={true}/> <Search style={{marginBottom: 8}} placeholder="Search" onChange={onChange} allowClear={true}/>
<Scrollbars style={{height:(toolHeight-72)}} ref={sref}>
<DirectoryTree <DirectoryTree
multiple multiple
onRightClick={handleContextMenu} onRightClick={handleContextMenu}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment