diff --git a/src/components/AMapOverlayGroup/AMapOverlayGroup.tsx b/src/components/AMapOverlayGroup/AMapOverlayGroup.tsx index f0087b8..0c3907a 100644 --- a/src/components/AMapOverlayGroup/AMapOverlayGroup.tsx +++ b/src/components/AMapOverlayGroup/AMapOverlayGroup.tsx @@ -1,3 +1,4 @@ +import type { PropsWithChildren } from 'react'; import React, { forwardRef, useCallback, @@ -14,7 +15,7 @@ import AMapOverlayGroupContext from './AMapOverlayGroupContext'; import type { AMapOverlayGroupProps } from './interface'; // https://lbs.amap.com/api/javascript-api/reference/overlay#overlaygroup -const AMapOverlayGroup = forwardRef( +const AMapOverlayGroup = forwardRef>( ( { children, @@ -89,6 +90,7 @@ const AMapOverlayGroup = forwardRef( ); AMapOverlayGroup.defaultProps = { + // eslint-disable-next-line react/default-props-match-prop-types visible: true, };