mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
fix(popover): fix the undefined classname
This commit is contained in:
@@ -10,6 +10,7 @@ interface Props {
|
||||
const defaultProps = {
|
||||
line: false,
|
||||
title: false,
|
||||
className: '',
|
||||
}
|
||||
|
||||
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>
|
||||
@@ -71,7 +72,7 @@ const PopoverItem: React.FC<React.PropsWithChildren<PopoverItemProps>> = ({
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
{title && <PopoverItem line title={false} />}
|
||||
{title && <PopoverItem line title={false} className="" />}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ interface Props {
|
||||
const defaultProps = {
|
||||
trigger: 'click' as TriggerTypes,
|
||||
placement: 'bottom' as Placement,
|
||||
portalClassName: '',
|
||||
}
|
||||
|
||||
type ExcludeTooltipProps = {
|
||||
|
||||
Reference in New Issue
Block a user