fix(tsconfig): 修改ts提示
This commit is contained in:
parent
91ba49d94c
commit
e44fa64760
@ -134,6 +134,7 @@ const MapBox = forwardRef<MapRefProps, MapProps>((props, ref) => {
|
|||||||
|
|
||||||
// 默认绘制配置
|
// 默认绘制配置
|
||||||
const [drawConfig] = useState<DrawControlProps>({
|
const [drawConfig] = useState<DrawControlProps>({
|
||||||
|
// @ts-ignore
|
||||||
displayControlsDefault: false,
|
displayControlsDefault: false,
|
||||||
position: 'top-left',
|
position: 'top-left',
|
||||||
|
|
||||||
@ -212,6 +213,7 @@ const MapBox = forwardRef<MapRefProps, MapProps>((props, ref) => {
|
|||||||
)}
|
)}
|
||||||
{/* ---------------绘制图层--------------------- */}
|
{/* ---------------绘制图层--------------------- */}
|
||||||
{draw && (
|
{draw && (
|
||||||
|
// @ts-ignore
|
||||||
<DrawControl
|
<DrawControl
|
||||||
ref={drawControlRef}
|
ref={drawControlRef}
|
||||||
onCreate={onDrawCreate}
|
onCreate={onDrawCreate}
|
||||||
|
Loading…
Reference in New Issue
Block a user