ð[BUG] åå§åäžäºè倩记åœïŒåµå ¥å°iframeäžçæ»åšæ¡äŒæé®é¢ïŒé»è®€äžèœèªåšå°æåºéš
#202 opened on 2024/05/11
Repository metrics
- Stars
-  (899 åã®ã¹ã¿ãŒ)
- PR merge metrics
- Â (PR metrics pending)
説æ
ð 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%'}}>
{
showComponent && <ProChatProvider
// initialChats={example.chats}
// initialChats={initialChats}
chats={initialChats}
chatRef={proChatRef}
placeholder={placeholder}
helloMessage={hello}
actions={
{
render: (defaultDoms) => {
const proChat = useProChat();
return [`
ð· å€ç°æ¥éª€
没æåµå
¥å°iframeäžæ¯æ£åžžæ»åšå°æåºéšç
ð ææç»æ
ææèªåšæ»åšå°æåºéš
ð» å€ç°ä»£ç
© çæ¬ä¿¡æ¯
"@ant-design/pro-chat": "^1.13.6",
- @ant-design/pro-chat çæ¬: [e.g. 1.0.0]
- æµè§åšç¯å¢
- åŒåç¯å¢ [e.g. mac OS]