Cmen
3 years ago
5 changed files with 50 additions and 4 deletions
@ -0,0 +1,14 @@
|
||||
.map-stage{ |
||||
position: absolute; |
||||
width: 100%; |
||||
height: calc(100% - 40px); |
||||
top: 40px; |
||||
left: 0; |
||||
} |
||||
.tools-properties{ |
||||
position: absolute; |
||||
width: 100%; |
||||
height: 40px; |
||||
background-color: #fff; |
||||
border-bottom: 1px solid #ccc; |
||||
} |
@ -1,7 +1,28 @@
|
||||
import { Layout } from "antd"; |
||||
import { useEffect, useRef } from "react"; |
||||
import { MapStage } from "../../mapStage"; |
||||
|
||||
|
||||
import "./index.less"; |
||||
|
||||
const { Header, Footer, Sider, Content } = Layout; |
||||
|
||||
const Plot = () => { |
||||
return <h1>属性区域</h1>; |
||||
} |
||||
|
||||
const mapStageRef = useRef<HTMLDivElement>(null); |
||||
|
||||
useEffect(() => { |
||||
const map = new MapStage(mapStageRef.current!); |
||||
map.init(); |
||||
}); |
||||
|
||||
return ( |
||||
<> |
||||
<div className="map-stage" ref={mapStageRef}></div> |
||||
<div className="tools-properties"></div> |
||||
<div className="tools-area"></div> |
||||
</> |
||||
); |
||||
}; |
||||
|
||||
export default Plot; |
Loading…
Reference in new issue