fix: tooltip position not correct

feat-dayjs
tangjinzhou 2020-10-18 22:58:37 +08:00
parent a62a0296e7
commit 4cff2a81a6
3 changed files with 7 additions and 4 deletions

View File

@ -5,10 +5,10 @@ const getTransitionGroupProps = (transitionName, opt = {}) => {
}
const transitionProps = {
appear: true,
appearFromClass: `${transitionName}-appear`,
appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
appearActiveClass: `${transitionName}`,
appearToClass: `${transitionName}-appear-active`,
enterFromClass: `${transitionName}-appear ${transitionName}-enter`,
enterFromClass: `${transitionName}-appear ${transitionName}-enter ${transitionName}-appear-prepare ${transitionName}-enter-prepare`,
enterActiveClass: `${transitionName}`,
enterToClass: `${transitionName}-appear-active ${transitionName}-enter-active`,
leaveActiveClass: `${transitionName} ${transitionName}-leave`,

View File

@ -4,10 +4,10 @@ const getTransitionProps = (transitionName, opt = {}) => {
}
const transitionProps = {
appear: true,
appearFromClass: `${transitionName}-appear`,
appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
// appearActiveClass: `antdv-base-transtion`,
appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
enterFromClass: `${transitionName}-enter`,
enterFromClass: `${transitionName}-enter ${transitionName}-enter-prepare`,
// enterActiveClass: `antdv-base-transtion`,
enterToClass: `${transitionName}-enter ${transitionName}-enter-active`,
leaveFromClass: ` ${transitionName}-leave`,

View File

@ -5,6 +5,9 @@
transform: scale(0); // need this by yiminghe
opacity: 0;
animation-timing-function: @ease-out-circ;
&-prepare {
transform: none;
}
}
.@{className}-leave {
animation-timing-function: @ease-in-out-circ;