优化效果

This commit is contained in:
sijinhui 2024-09-25 12:00:32 +08:00
parent 3933a2735f
commit 4213440c63

View File

@ -165,14 +165,14 @@ export function ChatList(props: { narrow?: boolean }) {
{...provided.droppableProps} {...provided.droppableProps}
> >
<QueueAnim <QueueAnim
delay={[300, 0]} delay={[100, 0]}
ease={["easeOutQuart", "easeInOutQuart"]} ease={"easeOutQuart"} // "easeInOutQuart"
duration={[550, 450]} duration={[550, 450]}
animConfig={[ animConfig={[
{ opacity: [1, 0], translateY: [0, -30] }, { opacity: [1, 0], translateY: [0, -30] },
{ height: 0 }, { height: 0 },
]} ]}
// TODO离场动画还是有点卡顿 // TODO目前仅剩添加元素其他元素平移动画问题
// interval={150} // interval={150}
> >
{sessions.map((item, i) => ( {sessions.map((item, i) => (