From 1d9a52166962f84c8454e9f5144dec7fca8c08f2 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 3 Mar 2023 17:25:11 +0800 Subject: [PATCH] fix: floatbutton animation not work --- components/_util/transition.tsx | 6 +++--- components/form/ErrorList.tsx | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx index 98903ca36..fd6ebc490 100644 --- a/components/_util/transition.tsx +++ b/components/_util/transition.tsx @@ -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`, diff --git a/components/form/ErrorList.tsx b/components/form/ErrorList.tsx index 657a29088..43eaf2664 100644 --- a/components/form/ErrorList.tsx +++ b/components/form/ErrorList.tsx @@ -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 (