|
@@ -565,6 +565,9 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
|
|
|
const icon = this.renderIcon();
|
|
const icon = this.renderIcon();
|
|
|
const portalInnerStyle = omit(containerStyle, motion ? ['transformOrigin'] : undefined);
|
|
const portalInnerStyle = omit(containerStyle, motion ? ['transformOrigin'] : undefined);
|
|
|
const transformOrigin = get(containerStyle, 'transformOrigin');
|
|
const transformOrigin = get(containerStyle, 'transformOrigin');
|
|
|
|
|
+ const userOpacity = get(style, 'opacity');
|
|
|
|
|
+ const opacity = userOpacity ? userOpacity : 1;
|
|
|
|
|
+
|
|
|
const inner =
|
|
const inner =
|
|
|
<CSSAnimation
|
|
<CSSAnimation
|
|
|
fillMode="forwards"
|
|
fillMode="forwards"
|
|
@@ -580,13 +583,12 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
|
|
|
{
|
|
{
|
|
|
({ animationStyle, animationClassName, animationEventsNeedBind }) => {
|
|
({ animationStyle, animationClassName, animationEventsNeedBind }) => {
|
|
|
return <div
|
|
return <div
|
|
|
-
|
|
|
|
|
className={classNames(className, animationClassName)}
|
|
className={classNames(className, animationClassName)}
|
|
|
style={{
|
|
style={{
|
|
|
- opacity: isPositionUpdated ? '1' : "0",
|
|
|
|
|
...animationStyle,
|
|
...animationStyle,
|
|
|
transformOrigin,
|
|
transformOrigin,
|
|
|
...style,
|
|
...style,
|
|
|
|
|
+ opacity: isPositionUpdated ? opacity : "0",
|
|
|
}}
|
|
}}
|
|
|
{...portalEventSet}
|
|
{...portalEventSet}
|
|
|
{...animationEventsNeedBind}
|
|
{...animationEventsNeedBind}
|