fix: floatbutton animation not work
parent
a04cae1221
commit
1d9a521669
|
@ -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`,
|
||||
|
|
|
@ -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`)}
|
||||
|
|
Loading…
Reference in New Issue