diff --git a/src/pages/salaryItemFlowGraph/index.less b/src/pages/salaryItemFlowGraph/index.less index 3156b89..489259b 100644 --- a/src/pages/salaryItemFlowGraph/index.less +++ b/src/pages/salaryItemFlowGraph/index.less @@ -16,6 +16,12 @@ } } +:global { + .relation-graph .rel-toolbar-h { + width: auto !important; + } +} + .rootNode { width: 100%; height: 100%; diff --git a/src/pages/salaryItemFlowGraph/index.tsx b/src/pages/salaryItemFlowGraph/index.tsx index cefe29d..8dea560 100644 --- a/src/pages/salaryItemFlowGraph/index.tsx +++ b/src/pages/salaryItemFlowGraph/index.tsx @@ -87,8 +87,13 @@ const Index: React.FC = () => { defaultExpandHolderColor: "rgba(0, 206, 209, 1)", defaultNodeColor: "transparent", defaultNodeBorderColor: "#333", - allowShowMiniToolBar: false, //工具栏展示与否 - // disableZoom: true, + allowShowMiniToolBar: true, //工具栏展示与否 + toolBarDirection: 'h', + toolBarPositionH: 'right', + toolBarPositionV: 'top', + allowShowFullscreenMenu: false, + allowShowDownloadButton: false, + disableZoom: true, disableDragNode: true, }; }, []);