🐛 Add className in TooltipProps only, #16195

This commit is contained in:
afc163 2019-04-26 17:12:19 +08:00
parent 1ee297e3c7
commit b2379fe139
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48

View File

@ -41,6 +41,7 @@ export interface AbstractTooltipProps {
prefixCls?: string;
overlayClassName?: string;
style?: React.CSSProperties;
className?: string;
overlayStyle?: React.CSSProperties;
placement?: TooltipPlacement;
builtinPlacements?: Object;
@ -81,7 +82,7 @@ const splitObject = (obj: any, keys: string[]) => {
return { picked, omitted };
};
class Tooltip extends React.Component<TooltipProps & React.HTMLAttributes<HTMLElement>, any> {
class Tooltip extends React.Component<TooltipProps, any> {
static defaultProps = {
placement: 'top' as TooltipPlacement,
transitionName: 'zoom-big-fast',