fix: floatbutton animation not work

pull/6348/head
tangjinzhou 2023-03-03 17:25:11 +08:00
parent a04cae1221
commit 1d9a521669
2 changed files with 9 additions and 4 deletions

View File

@ -27,9 +27,9 @@ export const getTransitionProps = (transitionName: string, opt: TransitionProps
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
// appearActiveClass: `antdv-base-transtion`,
// appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
enterFromClass: `${transitionName} ${transitionName}-enter ${transitionName}-enter-prepare ${transitionName}-enter-start`,
enterActiveClass: `${transitionName} ${transitionName}-enter ${transitionName}-enter-prepare`,
enterToClass: `${transitionName} ${transitionName}-enter ${transitionName}-enter-active`,
enterFromClass: `${transitionName}-enter ${transitionName}-enter-prepare ${transitionName}-enter-start`,
enterActiveClass: `${transitionName}-enter ${transitionName}-enter-prepare`,
enterToClass: `${transitionName}-enter ${transitionName}-enter-active`,
leaveFromClass: ` ${transitionName}-leave`,
leaveActiveClass: `${transitionName}-leave ${transitionName}-leave-active`,
leaveToClass: `${transitionName}-leave ${transitionName}-leave-active`,

View File

@ -38,7 +38,12 @@ export default defineComponent({
colMItem,
);
(transitionGroupProps as any).role = 'alert';
(transitionGroupProps as any).class = [hashId.value, baseClassName.value, attrs.class];
(transitionGroupProps as any).class = [
hashId.value,
baseClassName.value,
attrs.class,
`${prefixCls.value}-show-help`,
];
return (
<Transition
{...getTransitionProps(`${prefixCls.value}-show-help`)}