Merge pull request #174 from sijinhui/dongxiao-240924

fix add ele
This commit is contained in:
sijinhui 2024-09-26 13:49:34 +08:00 committed by GitHub
commit 96b273f9d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,10 +169,13 @@ export function ChatList(props: { narrow?: boolean }) {
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: [71, 0] },
{ height: 0 }, { height: 0 },
]} ]}
// TODO目前仅剩添加元素其他元素平移动画问题 // TODO修复添加元素其他元素平移动画问题但下面的好像不生效全靠指定高度
onEnd={({ key, type, target }) => {
if (type === "enter") target.style.height = "auto";
}}
// interval={150} // interval={150}
> >
{sessions.map((item, i) => ( {sessions.map((item, i) => (