From ae5dcec1e809b5c1180b742f182b89dfcb7d314b Mon Sep 17 00:00:00 2001 From: jeremywu <591449570@qq.com> Date: Mon, 4 Jan 2021 14:59:09 +0800 Subject: [PATCH] fix(popper): Fix popper transition lost bug (#1190) - Fix popper transition lost issue --- packages/popper/index.ts | 3 ++- packages/theme-chalk/src/common/transition.scss | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/popper/index.ts b/packages/popper/index.ts index df9b7ccf6e..4d45212cfd 100644 --- a/packages/popper/index.ts +++ b/packages/popper/index.ts @@ -10,7 +10,8 @@ const _Popper: SFCWithInstall = Popper export default _Popper -export { default as defaultProps, Effect, Placement, Options } from './src/use-popper/defaults' +export { default as defaultProps, Effect } from './src/use-popper/defaults' +export type { Placement, Options } from '@popperjs/core' export type { TriggerType, IPopperOptions, PopperInstance } from './src/use-popper/defaults' export { default as usePopper } from './src/use-popper/index' export * from './src/renderers/index' diff --git a/packages/theme-chalk/src/common/transition.scss b/packages/theme-chalk/src/common/transition.scss index 34d64966f6..037b59de12 100644 --- a/packages/theme-chalk/src/common/transition.scss +++ b/packages/theme-chalk/src/common/transition.scss @@ -4,9 +4,9 @@ .fade-in-linear-leave-active { transition: $--fade-linear-transition; } + .fade-in-linear-enter-from, -.fade-in-linear-leave-from, -.fade-in-linear-leave-active { +.fade-in-linear-leave-to { opacity: 0; } @@ -15,8 +15,7 @@ transition: $--fade-linear-transition; } .el-fade-in-linear-enter-from, -.el-fade-in-linear-leave-from, -.el-fade-in-linear-leave-active { +.el-fade-in-linear-leave-to { opacity: 0; }