diff --git a/src/global.css b/src/global.css index 7ccc404..2710d5e 100644 --- a/src/global.css +++ b/src/global.css @@ -63,4 +63,5 @@ body { } .ant-tabs-left.editorTabclass .ant-tabs-content-holder{ overflow: auto; + padding:8px; } \ No newline at end of file diff --git a/src/pages/editor/Container.tsx b/src/pages/editor/Container.tsx index 42e46e1..2e9424d 100644 --- a/src/pages/editor/Container.tsx +++ b/src/pages/editor/Container.tsx @@ -45,7 +45,7 @@ const Container = (props: { }) => { const [scaleNum, setScale] = useState(1); const [collapsed, setCollapsed] = useState(true); - + const [rightColla, setRightColla] = useState(true); const { pstate, cstate, dispatch } = props; const pointData = pstate ? pstate.pointData : []; const cpointData = cstate ? cstate.pointData : []; @@ -55,7 +55,11 @@ const Container = (props: { setCollapsed(c); }; }, []); - + const changeRightColla = useMemo(() => { + return (c: boolean) => { + setRightColla(c); + }; + }, []); const context = useContext(dooringContext); const curPoint = useMemo(() => { if (context.theme === 'h5') { @@ -213,7 +217,13 @@ const Container = (props: { const renderRight = useMemo(() => { if (context.theme === 'h5') { return ( -