Commit a0e43a64 authored by wenmo's avatar wenmo

目录树搜索框置顶

parent 2bc29997
......@@ -376,8 +376,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
let scrollTop = document.documentElement.scrollTop;
setRightClickNode(e.node);
setRightClickNodeTreeItem({
pageX: e.event.pageX-20,
pageY: position.y+sref.current.getScrollTop()+scrollTop-125-position.height,
pageX: e.event.pageX-40,
pageY: position.y+sref.current.getScrollTop()+scrollTop-145-position.height,
id: e.node.id,
categoryName: e.node.name
});
......@@ -460,8 +460,8 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
</Tooltip>
</Col>
</Row>
<Scrollbars style={{height:(toolHeight-32)}} ref={sref}>
<Search style={{marginBottom: 8}} placeholder="Search" onChange={onChange} allowClear={true}/>
<Scrollbars style={{height:(toolHeight-72)}} ref={sref}>
<DirectoryTree
multiple
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