Cmen
3 years ago
7 changed files with 50 additions and 9 deletions
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
const Catalog = () => { |
||||
return <h1>属性区域</h1>; |
||||
} |
||||
|
||||
export default Catalog; |
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
const Menu = () => { |
||||
return <h1>属性区域</h1>; |
||||
} |
||||
|
||||
export default Menu; |
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
const Plot = () => { |
||||
return <h1>属性区域</h1>; |
||||
} |
||||
|
||||
export default Plot; |
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
const Property = () => { |
||||
return <h1>属性区域</h1>; |
||||
} |
||||
|
||||
export default Property; |
@ -1,4 +1,11 @@
|
||||
|
||||
.editor-main{ |
||||
height: 100%; |
||||
} |
||||
.editor-header, .editor-body-left, .editor-body-right{ |
||||
background-color: #fff; |
||||
} |
||||
|
||||
#mapStage{ |
||||
height: 100%; |
||||
} |
@ -1,15 +1,20 @@
|
||||
import { useEffect, useRef } from "react"; |
||||
import { Layout } from "antd"; |
||||
import { MapStage } from "../mapStage"; |
||||
|
||||
import "./index.less"; |
||||
|
||||
export const Editor = () => { |
||||
const mapStageRef = useRef<HTMLDivElement>(null); |
||||
|
||||
useEffect(() => { |
||||
const mapStage = new MapStage(mapStageRef.current!); |
||||
mapStage.init(); |
||||
}); |
||||
const { Header, Footer, Sider, Content } = Layout; |
||||
|
||||
return <div id="mapStage" ref={mapStageRef}></div> |
||||
export const Editor = () => { |
||||
return ( |
||||
<Layout className="editor-main"> |
||||
<Header className="editor-header">header</Header> |
||||
<Layout className="editor-body"> |
||||
<Sider className="editor-body-left">Sider</Sider> |
||||
<Content className="editor-body-center">Content</Content> |
||||
<Sider className="editor-body-right">Sider</Sider> |
||||
</Layout> |
||||
</Layout> |
||||
); |
||||
} |
Loading…
Reference in new issue