We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用chats加载聊天记录(需要含有非纯文本的内容,比如链接),嵌入到iframe中的滚动条会有问题,默认不能自动到最底部 不嵌入到iframe中是正常的
//使用 scrollToBottom 也不行 setShowComponent(true) try { setTimeout(() => { console.log('proChatRef.current',proChatRef.current) proChatRef.current.scrollToBottom?.(); }, 1500); } catch (error) { console.error(' proChatRef.current.scrollToBottom发生错误:', error); }
` return ( <div style={{ background: theme.colorBgLayout ,height:'95%',width:'100%'}}>
{ showComponent && <ProChatProvider // initialChats={example.chats} // initialChats={initialChats} chats={initialChats} chatRef={proChatRef} placeholder={placeholder} helloMessage={hello} actions={ { render: (defaultDoms) => { const proChat = useProChat(); return [`
没有嵌入到iframe中是正常滚动到最底部的
期望自动滚动到最底部
可复现 demo
"@ant-design/pro-chat": "^1.13.6",
The text was updated successfully, but these errors were encountered:
可能是高宽导致的, 可以尝试下调整iframe的高宽来看看, 我有一个页面嵌套的层级较多, 高宽自定义之后, 也会出现类似的情况.
Sorry, something went wrong.
demo 是不是有点问题,我这边没有看到有 ProChat 诶
No branches or pull requests
🐛 bug 描述
使用chats加载聊天记录(需要含有非纯文本的内容,比如链接),嵌入到iframe中的滚动条会有问题,默认不能自动到最底部
不嵌入到iframe中是正常的
//使用 scrollToBottom 也不行 setShowComponent(true) try { setTimeout(() => { console.log('proChatRef.current',proChatRef.current) proChatRef.current.scrollToBottom?.(); }, 1500); } catch (error) { console.error(' proChatRef.current.scrollToBottom发生错误:', error); }
` return (
<div style={{ background: theme.colorBgLayout ,height:'95%',width:'100%'}}>
📷 复现步骤
没有嵌入到iframe中是正常滚动到最底部的
![e9897a7a0643234bfbe4ba7ad619bcc](https://private-user-images.githubusercontent.com/21009810/329769089-dcf83100-585e-4b33-95d1-a855236d2feb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MDUxMTIsIm5iZiI6MTczOTkwNDgxMiwicGF0aCI6Ii8yMTAwOTgxMC8zMjk3NjkwODktZGNmODMxMDAtNTg1ZS00YjMzLTk1ZDEtYTg1NTIzNmQyZmViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDE4NTMzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiOTFiZDM0Y2Q1MmJkOTYwMTI4MjQ0MDIxOThkMmZmODZiOGIwN2VhYTYxZTZiYWU3YzkxNTY5YzUxMDMzYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7L4PW4GTLg8FqFvl9V-7dkfp4R_jiVpyNVfCJvEMayE)
🏞 期望结果
期望自动滚动到最底部
💻 复现代码
可复现 demo
© 版本信息
"@ant-design/pro-chat": "^1.13.6",
🚑 其他信息
The text was updated successfully, but these errors were encountered: