fix(popover): fix the undefined classname

This commit is contained in:
Firede
2020-07-02 14:53:48 +08:00
parent 1f8a6a3e0f
commit e6792ffd8c
2 changed files with 3 additions and 1 deletions

View File

@@ -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="" />}
</>
)
}

View File

@@ -14,6 +14,7 @@ interface Props {
const defaultProps = {
trigger: 'click' as TriggerTypes,
placement: 'bottom' as Placement,
portalClassName: '',
}
type ExcludeTooltipProps = {