From ac9e66bff7823d44dffc0d0b30980e4cd8cccfd4 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Thu, 26 Sep 2024 13:48:53 +0800 Subject: [PATCH] fix add ele --- app/components/chat-list.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/components/chat-list.tsx b/app/components/chat-list.tsx index 6adea1f07..55f26f4eb 100644 --- a/app/components/chat-list.tsx +++ b/app/components/chat-list.tsx @@ -169,10 +169,13 @@ export function ChatList(props: { narrow?: boolean }) { ease={"easeOutQuart"} // "easeInOutQuart" duration={[550, 450]} animConfig={[ - { opacity: [1, 0], translateY: [0, -30] }, + { opacity: [1, 0], translateY: [0, -30], height: [71, 0] }, { height: 0 }, ]} - // TODO:目前仅剩添加元素其他元素平移动画问题 + // TODO:修复添加元素其他元素平移动画问题,但下面的好像不生效全靠指定高度 + onEnd={({ key, type, target }) => { + if (type === "enter") target.style.height = "auto"; + }} // interval={150} > {sessions.map((item, i) => (