fix(tsconfig): 修改ts提示

This commit is contained in:
NICE CODE BY DEV 2024-06-12 11:01:48 +08:00
parent 91ba49d94c
commit e44fa64760

View File

@ -134,6 +134,7 @@ const MapBox = forwardRef<MapRefProps, MapProps>((props, ref) => {
// 默认绘制配置
const [drawConfig] = useState<DrawControlProps>({
// @ts-ignore
displayControlsDefault: false,
position: 'top-left',
@ -212,6 +213,7 @@ const MapBox = forwardRef<MapRefProps, MapProps>((props, ref) => {
)}
{/* ---------------绘制图层--------------------- */}
{draw && (
// @ts-ignore
<DrawControl
ref={drawControlRef}
onCreate={onDrawCreate}