chore: path

This commit is contained in:
lencx
2023-01-18 00:03:45 +08:00
parent f38d683f4e
commit a7d12bafc0
16 changed files with 144 additions and 56 deletions

25
src/components/Markdown/Editor.tsx vendored Normal file
View File

@@ -0,0 +1,25 @@
import Editor from "@monaco-editor/react";
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
import './index.scss';
const MarkdownEditor = () => {
return (
<div>
<PanelGroup direction="horizontal">
<Panel>
<Editor
height="calc(100vh - 120px)"
language="markdown"
/>
</Panel>
<PanelResizeHandle className="resize-handle" />
<Panel collapsible={true}>
<div>1284</div>
</Panel>
</PanelGroup>
</div>
)
};
export default MarkdownEditor;