Browse Source
type: replace unknown with TooltipRef (#43450)
Co-authored-by: 我们去月球漫步 <13105694+flymetothemoon-wj@user.noreply.gitee.com>
pull/43451/head
Fly me to the moon
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
components/popover/index.tsx
|
|
@ -4,7 +4,7 @@ import type { RenderFunction } from '../_util/getRenderPropValue'; |
|
|
|
import { getRenderPropValue } from '../_util/getRenderPropValue'; |
|
|
|
import { getTransitionName } from '../_util/motion'; |
|
|
|
import { ConfigContext } from '../config-provider'; |
|
|
|
import type { AbstractTooltipProps } from '../tooltip'; |
|
|
|
import type { AbstractTooltipProps, TooltipRef } from '../tooltip'; |
|
|
|
import Tooltip from '../tooltip'; |
|
|
|
import PurePanel from './PurePanel'; |
|
|
|
// CSSINJS
|
|
|
@ -28,7 +28,7 @@ const Overlay: React.FC<OverlayProps> = ({ title, content, prefixCls }) => ( |
|
|
|
</> |
|
|
|
); |
|
|
|
|
|
|
|
const Popover = React.forwardRef<unknown, PopoverProps>((props, ref) => { |
|
|
|
const Popover = React.forwardRef<TooltipRef, PopoverProps>((props, ref) => { |
|
|
|
const { |
|
|
|
prefixCls: customizePrefixCls, |
|
|
|
title, |
|
|
|