File tree 2 files changed +39
-1
lines changed
2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ const ActionIconGroup = memo<ActionIconGroupProps>(
69
69
const tooltipsPlacement = placement || ( direction === 'column' ? 'right' : 'top' ) ;
70
70
71
71
const mergeDropDownList = dropdownMenu ?. map ( ( item : any ) => {
72
- console . log ( '##cloes' , item ) ;
73
72
return {
74
73
...item ,
75
74
icon : < Icon icon = { item . icon } size = "small" /> ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * compact: true
3
+ */
4
+ import { chats } from '@/ProChat/mocks/threebody' ;
5
+ import { ProChat } from '@ant-design/pro-chat' ;
6
+ import { message } from 'antd' ;
7
+ import { useTheme } from 'antd-style' ;
8
+
9
+ export default ( ) => {
10
+ const theme = useTheme ( ) ;
11
+
12
+ return (
13
+ < div style = { { background : theme . colorBgLayout } } >
14
+ < ProChat
15
+ showTitle
16
+ userMeta = { {
17
+ avatar : 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg' ,
18
+ title : 'Ant Design' ,
19
+ } }
20
+ chatItemRenderConfig = { {
21
+ actionsCallbacks : {
22
+ onEditFinished : ( value , chatId ) => {
23
+ message . info ( `编辑完成,内容为:${ value } ,消息ID为:${ chatId } ` ) ;
24
+ } ,
25
+ onRegenerateFinished : ( id , error ) => {
26
+ if ( error ) {
27
+ message . error ( `消息ID为:${ id } 的消息重新生成失败` ) ;
28
+ } else {
29
+ message . success ( `消息ID为:${ id } 的消息重新生成成功` ) ;
30
+ }
31
+ } ,
32
+ } ,
33
+ } }
34
+ assistantMeta = { { avatar : '🛸' , title : '三体世界' , backgroundColor : '#67dedd' } }
35
+ initialChats = { Object . values ( chats . chats ) }
36
+ />
37
+ </ div >
38
+ ) ;
39
+ } ;
You can’t perform that action at this time.
0 commit comments