mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
🐛 Add className in TooltipProps only, #16195
This commit is contained in:
parent
1ee297e3c7
commit
b2379fe139
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user